Commit 6b3e42d4 by 胡悦

添加排序限制

1 parent c0e80b69
......@@ -183,7 +183,7 @@ export default {
{ label: '字典类型:', prop: 'dictType', type: 'input', readonly: true },
{ label: '字典标签:', prop: 'dictLabel', type: 'input', maxlength: 20 },
{ label: '字典键值:', prop: 'dictValue', type: 'input', maxlength: 50 },
{ label: '字典排序:', prop: 'dictSort', type: 'input' },
{ label: '字典排序:', prop: 'dictSort', type: 'input', maxlength: 5 },
{ label: '状态', prop: 'enableStatus', type: 'switch' },
{ label: '备注', prop: 'remark', type: 'input', inputText: 'textarea', maxlength: 200, showWordLimit: true }
],
......@@ -319,4 +319,9 @@ export default {
}
}
}
</script>
\ No newline at end of file
</script>
<style lang="">
.el-table__indent {
padding-left: 16px;
}
</style>
\ No newline at end of file
......@@ -224,7 +224,7 @@ export default {
{ label: '菜单名称', prop: 'menuName', type: 'input', maxlength: 20 },
{ label: '权限标识', prop: 'permissionTag', type: 'input' },
{ label: '前端路由', prop: 'frontRoute', type: 'input' },
{ label: '显示排序', prop: 'orderNum', type: 'input' },
{ label: '显示排序', prop: 'orderNum', type: 'input', maxlength: 5 },
{ label: '显示状态', prop: 'enableStatus', type: 'switch' },
{ label: '图标', prop: 'icon', type: 'input', hidden: false }
],
......
......@@ -37,6 +37,7 @@
lazy
stripe
:load="load"
:row-style="tableRowClassName"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
<el-table-column
......@@ -184,7 +185,7 @@ export default {
orginizaData: [
{ label: '上级组织', prop: 'superiorName', type: 'input', hidden: false, readonly: true },
{ label: '组织名称', prop: 'departmentName', type: 'input', maxlength: 20 },
{ label: '显示排序', prop: 'orderNum', type: 'input' },
{ label: '显示排序', prop: 'orderNum', type: 'input', maxlength: 5 },
{ label: '组织状态', prop: 'enableStatus', type: 'switch' }
],
orginizaRules: {
......@@ -246,7 +247,7 @@ export default {
message: '操作成功'
})
if (this.isRoot) {
this.getList()
this.search()
} else {
getChildren({ rootId: params.superiorId }).then(res => {
const nodes = res.data
......@@ -300,7 +301,9 @@ export default {
this.editEvent(scope)
break
case 'delete':
this.deleteEvent(scope)
organizaInfo({ id: scope.id }).then(res => {
this.deleteEvent(res.data)
})
break
}
},
......@@ -334,7 +337,7 @@ export default {
message: '删除成功!'
})
if (!row.superiorId) {
this.getList()
this.search()
} else {
getChildren({ rootId: row.superiorId }).then(res => {
const nodes = res.data
......@@ -387,6 +390,9 @@ export default {
this.page.pageNumber = value
this.search()
},
tableRowClassName() {
return 'padding-left: 16px;'
}
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!