功能变化: npm run lint
parent
a4fa5bb2eb
commit
15cc1a2191
|
@ -396,6 +396,7 @@ export default {
|
||||||
const tableLength = tableData.length
|
const tableLength = tableData.length
|
||||||
if (tableLength === 0) {
|
if (tableLength === 0) {
|
||||||
const { row } = $table.insert()
|
const { row } = $table.insert()
|
||||||
|
console.log(row)
|
||||||
} else {
|
} else {
|
||||||
const errMap = await $table.validate().catch(errMap => errMap)
|
const errMap = await $table.validate().catch(errMap => errMap)
|
||||||
if (errMap) {
|
if (errMap) {
|
||||||
|
|
|
@ -102,7 +102,7 @@ export const crudOptions = (vm) => {
|
||||||
title: '上级部门',
|
title: '上级部门',
|
||||||
key: 'parent',
|
key: 'parent',
|
||||||
type: 'tree-selector',
|
type: 'tree-selector',
|
||||||
minWidth:200,
|
minWidth: 200,
|
||||||
dict: {
|
dict: {
|
||||||
isTree: true,
|
isTree: true,
|
||||||
label: 'name',
|
label: 'name',
|
||||||
|
@ -127,7 +127,7 @@ export const crudOptions = (vm) => {
|
||||||
key: 'name',
|
key: 'name',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
treeNode: true, // 设置为树形列
|
treeNode: true, // 设置为树形列
|
||||||
minWidth:180,
|
minWidth: 180,
|
||||||
search: {
|
search: {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
component: {
|
component: {
|
||||||
|
@ -159,7 +159,7 @@ export const crudOptions = (vm) => {
|
||||||
title: '部门标识',
|
title: '部门标识',
|
||||||
key: 'key',
|
key: 'key',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth:100,
|
minWidth: 100,
|
||||||
form: {
|
form: {
|
||||||
component: {
|
component: {
|
||||||
props: {
|
props: {
|
||||||
|
@ -176,7 +176,7 @@ export const crudOptions = (vm) => {
|
||||||
title: '负责人',
|
title: '负责人',
|
||||||
key: 'owner',
|
key: 'owner',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth:100,
|
minWidth: 100,
|
||||||
form: {
|
form: {
|
||||||
component: {
|
component: {
|
||||||
span: 12,
|
span: 12,
|
||||||
|
@ -191,7 +191,7 @@ export const crudOptions = (vm) => {
|
||||||
title: '联系电话',
|
title: '联系电话',
|
||||||
key: 'phone',
|
key: 'phone',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth:100,
|
minWidth: 100,
|
||||||
form: {
|
form: {
|
||||||
component: {
|
component: {
|
||||||
span: 12,
|
span: 12,
|
||||||
|
@ -206,7 +206,7 @@ export const crudOptions = (vm) => {
|
||||||
title: '邮箱',
|
title: '邮箱',
|
||||||
key: 'email',
|
key: 'email',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth:100,
|
minWidth: 100,
|
||||||
form: {
|
form: {
|
||||||
component: {
|
component: {
|
||||||
span: 12,
|
span: 12,
|
||||||
|
|
|
@ -92,7 +92,7 @@ export const crudOptions = (vm) => {
|
||||||
{
|
{
|
||||||
title: '字典名称',
|
title: '字典名称',
|
||||||
key: 'label',
|
key: 'label',
|
||||||
minWidth:100,
|
minWidth: 100,
|
||||||
search: {
|
search: {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
component: {
|
component: {
|
||||||
|
@ -121,7 +121,7 @@ export const crudOptions = (vm) => {
|
||||||
{
|
{
|
||||||
title: '字典编号',
|
title: '字典编号',
|
||||||
key: 'value',
|
key: 'value',
|
||||||
minWidth:100,
|
minWidth: 100,
|
||||||
search: {
|
search: {
|
||||||
disabled: true,
|
disabled: true,
|
||||||
component: {
|
component: {
|
||||||
|
|
|
@ -8,7 +8,7 @@ export const crudOptions = (vm) => {
|
||||||
// rowKey: true, // 必须设置,true or false
|
// rowKey: true, // 必须设置,true or false
|
||||||
rowId: 'id',
|
rowId: 'id',
|
||||||
height: '100%', // 表格高度100%, 使用toolbar必须设置
|
height: '100%', // 表格高度100%, 使用toolbar必须设置
|
||||||
highlightCurrentRow: false,
|
highlightCurrentRow: false
|
||||||
},
|
},
|
||||||
rowHandle: {
|
rowHandle: {
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
|
|
|
@ -96,7 +96,7 @@ export const crudOptions = (vm) => {
|
||||||
title: '角色名称',
|
title: '角色名称',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth:120,
|
minWidth: 120,
|
||||||
search: {
|
search: {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
component: {
|
component: {
|
||||||
|
@ -126,7 +126,7 @@ export const crudOptions = (vm) => {
|
||||||
title: '权限标识',
|
title: '权限标识',
|
||||||
key: 'key',
|
key: 'key',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth:100,
|
minWidth: 100,
|
||||||
form: {
|
form: {
|
||||||
rules: [ // 表单校验规则
|
rules: [ // 表单校验规则
|
||||||
{ required: true, message: '权限标识必填项' }
|
{ required: true, message: '权限标识必填项' }
|
||||||
|
@ -159,7 +159,7 @@ export const crudOptions = (vm) => {
|
||||||
key: 'admin',
|
key: 'admin',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
minWidth:120,
|
minWidth: 120,
|
||||||
dict: {
|
dict: {
|
||||||
data: vm.dictionary('button_whether_bool')
|
data: vm.dictionary('button_whether_bool')
|
||||||
},
|
},
|
||||||
|
@ -181,7 +181,7 @@ export const crudOptions = (vm) => {
|
||||||
disabled: false
|
disabled: false
|
||||||
},
|
},
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
minWidth:100,
|
minWidth: 100,
|
||||||
dict: {
|
dict: {
|
||||||
data: vm.dictionary('button_status_bool')
|
data: vm.dictionary('button_status_bool')
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { request } from '@/api/service'
|
import { request } from '@/api/service'
|
||||||
import util from '@/libs/util'
|
|
||||||
|
|
||||||
export const crudOptions = (vm) => {
|
export const crudOptions = (vm) => {
|
||||||
// util.filterParams(vm, ['dept_name', 'role_info{name}', 'dept_name_all'])
|
// util.filterParams(vm, ['dept_name', 'role_info{name}', 'dept_name_all'])
|
||||||
|
|
Loading…
Reference in New Issue