|
|
@@ -33,10 +33,11 @@ export const pointColumns: BasicColumn[] = [
|
|
|
width: 100,
|
|
|
customRender: ({ text }) => {
|
|
|
const map: Record<number, string> = {
|
|
|
- 1: '省局',
|
|
|
- 2: '执法处',
|
|
|
- 3: '煤矿',
|
|
|
- 4: '测风点',
|
|
|
+ 1: '矿井进风',
|
|
|
+ 2: '采区进风',
|
|
|
+ 3: '采区用风',
|
|
|
+ 4: '采区回风',
|
|
|
+ 5: '矿井回风',
|
|
|
};
|
|
|
return map[text] || text;
|
|
|
},
|
|
|
@@ -126,6 +127,8 @@ export const formSchema: FormSchema[] = [
|
|
|
field: 'mineCode',
|
|
|
component: 'MineCascader',
|
|
|
required: true,
|
|
|
+ // 编辑态(已有 id)禁用矿编码,避免误改归属矿井;新增态保持可选
|
|
|
+ dynamicDisabled: ({ values }) => !!values.id,
|
|
|
componentProps: {
|
|
|
placeholder: '请输入煤矿编号',
|
|
|
},
|
|
|
@@ -146,10 +149,11 @@ export const formSchema: FormSchema[] = [
|
|
|
componentProps: {
|
|
|
placeholder: '请选择层级',
|
|
|
options: [
|
|
|
- { label: '省局', value: 1 },
|
|
|
- { label: '执法处', value: 2 },
|
|
|
- { label: '煤矿', value: 3 },
|
|
|
- { label: '测风点', value: 4 },
|
|
|
+ { label: '矿井进风', value: 1 },
|
|
|
+ { label: '采区进风', value: 2 },
|
|
|
+ { label: '采区用风', value: 3 },
|
|
|
+ { label: '采区回风', value: 4 },
|
|
|
+ { label: '矿井回风', value: 5 },
|
|
|
],
|
|
|
},
|
|
|
},
|