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