- 将全站 Avue CRUD 操作列宽度统一修改为 180px,替换原有不同宽度配置 - 修正部分页面菜单宽度从 160、220、250、300、350 等多值变为统一 180 - 新增全局样式,实现操作列内容左对齐,解决内置右对齐不统一问题 - 统一所有“删 除”按钮文本为“删除”,提升文案一致性 - 根据 cargo-type 参考,精简全站操作列宽度,提升界面紧凑度和一致性 - 说明风险:部分按钮较多页面可能出现换行或溢出,需单独处理
217 lines
3.8 KiB
JavaScript
217 lines
3.8 KiB
JavaScript
export const optionParent = {
|
|
height: 'auto',
|
|
calcHeight: 32,
|
|
tip: false,
|
|
searchShow: true,
|
|
searchMenuSpan: 24,
|
|
searchIcon: true,
|
|
searchIndex: 8,
|
|
searchMenuPosition: 'right',
|
|
border: true,
|
|
index: true,
|
|
selection: true,
|
|
viewBtn: true,
|
|
menuWidth: 180,
|
|
dialogWidth: 880,
|
|
dialogClickModal: false,
|
|
column: [
|
|
{
|
|
label: '字典编号',
|
|
prop: 'code',
|
|
search: true,
|
|
slot: true,
|
|
span: 24,
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: '请输入字典编号',
|
|
trigger: 'blur',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '字典名称',
|
|
prop: 'dictValue',
|
|
search: true,
|
|
align: 'center',
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: '请输入字典名称',
|
|
trigger: 'blur',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '字典排序',
|
|
prop: 'sort',
|
|
type: 'number',
|
|
align: 'right',
|
|
width: 100,
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: '请输入字典排序',
|
|
trigger: 'blur',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '封存',
|
|
prop: 'isSealed',
|
|
type: 'switch',
|
|
align: 'center',
|
|
width: 100,
|
|
dicData: [
|
|
{
|
|
label: '否',
|
|
value: 0,
|
|
},
|
|
{
|
|
label: '是',
|
|
value: 1,
|
|
},
|
|
],
|
|
value: 0,
|
|
slot: true,
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: '请选择封存',
|
|
trigger: 'blur',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '字典备注',
|
|
prop: 'remark',
|
|
hide: true,
|
|
},
|
|
],
|
|
};
|
|
|
|
export const optionChild = {
|
|
height: 'auto',
|
|
calcHeight: 95,
|
|
tip: false,
|
|
searchShow: true,
|
|
searchMenuSpan: 24,
|
|
searchIcon: true,
|
|
searchIndex: 8,
|
|
searchMenuPosition: 'right',
|
|
tree: true,
|
|
border: true,
|
|
index: true,
|
|
selection: true,
|
|
viewBtn: true,
|
|
menuWidth: 180,
|
|
dialogWidth: 880,
|
|
dialogClickModal: false,
|
|
column: [
|
|
{
|
|
label: '字典编号',
|
|
prop: 'code',
|
|
addDisplay: false,
|
|
editDisplay: false,
|
|
search: true,
|
|
span: 24,
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: '请输入字典编号',
|
|
trigger: 'blur',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '字典名称',
|
|
prop: 'dictValue',
|
|
search: true,
|
|
align: 'center',
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: '请输入字典名称',
|
|
trigger: 'blur',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '上级字典',
|
|
prop: 'parentId',
|
|
type: 'tree',
|
|
dicData: [],
|
|
hide: true,
|
|
props: {
|
|
label: 'title',
|
|
},
|
|
addDisabled: true,
|
|
editDisabled: true,
|
|
rules: [
|
|
{
|
|
required: false,
|
|
message: '请选择上级字典',
|
|
trigger: 'click',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '字典键值',
|
|
prop: 'dictKey',
|
|
width: 85,
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: '请输入字典键值',
|
|
trigger: 'blur',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '字典排序',
|
|
prop: 'sort',
|
|
type: 'number',
|
|
align: 'right',
|
|
hide: true,
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: '请输入字典排序',
|
|
trigger: 'blur',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '封存',
|
|
prop: 'isSealed',
|
|
type: 'switch',
|
|
align: 'center',
|
|
width: 80,
|
|
dicData: [
|
|
{
|
|
label: '否',
|
|
value: 0,
|
|
},
|
|
{
|
|
label: '是',
|
|
value: 1,
|
|
},
|
|
],
|
|
value: 0,
|
|
slot: true,
|
|
rules: [
|
|
{
|
|
required: true,
|
|
message: '请选择封存',
|
|
trigger: 'blur',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: '字典备注',
|
|
prop: 'remark',
|
|
hide: true,
|
|
},
|
|
],
|
|
};
|