|
@@ -38,7 +38,11 @@ watch?.(
|
|
|
resetQuery();
|
|
|
}
|
|
|
);
|
|
|
-
|
|
|
+// 控制该数组里面的值不能新增
|
|
|
+const noAddTypeCode = ["device_type"];
|
|
|
+const addValStatus = computed(() => {
|
|
|
+ return noAddTypeCode.includes(props.typeCode);
|
|
|
+});
|
|
|
const queryFormRef = ref(ElForm);
|
|
|
const dataFormRef = ref(ElForm);
|
|
|
|
|
@@ -117,7 +121,7 @@ function openDialog(form?: any) {
|
|
|
dataFormRef.value.label = "";
|
|
|
dataFormRef.value = "";
|
|
|
formData.dictLabel = "";
|
|
|
- formData.dictValue = ""
|
|
|
+ formData.dictValue = "";
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -224,6 +228,7 @@ onMounted?.(() => {
|
|
|
<el-button
|
|
|
v-hasPerm="[ButtonPermKeys.SYSTEM.BTNS.dict_add]"
|
|
|
type="primary"
|
|
|
+ v-if="!addValStatus"
|
|
|
@click="openDialog()"
|
|
|
><i-ep-plus />新增</el-button
|
|
|
>
|