diff --git a/src/views/businessManagement/processConfiguration/components/createForm.vue b/src/views/businessManagement/processConfiguration/components/createForm.vue index ecaa633..f441181 100644 --- a/src/views/businessManagement/processConfiguration/components/createForm.vue +++ b/src/views/businessManagement/processConfiguration/components/createForm.vue @@ -47,7 +47,7 @@ const processForm = reactive({ }); const checkAll = ref(false); const indeterminate = ref(false); -const value = ref([]); +// const value = ref([]); const subLibraryIdList = ref([]); const roleNameList = ref([]); const userNameList = ref([]); @@ -85,22 +85,25 @@ const rules = reactive({ remark: [{ required: true, message: "请输入", trigger: "blur" }] }); -watch(value, val => { - if (val.length === 0) { - checkAll.value = false; - indeterminate.value = false; - } else if (val.length === subLibraryIdList.value.length) { - checkAll.value = true; - indeterminate.value = false; - } else { - indeterminate.value = true; +watch( + () => processForm.baseIdList, + val => { + if (val.length === 0) { + checkAll.value = false; + indeterminate.value = false; + } else if (val.length === subLibraryIdList.value.length) { + checkAll.value = true; + indeterminate.value = false; + } else { + indeterminate.value = true; + } } -}); +); const handleCheckAll = (val: CheckboxValueType) => { indeterminate.value = false; if (val) { - processForm.baseIdList = subLibraryIdList.value.map(_ => _.value); + processForm.baseIdList = subLibraryIdList.value.map(_ => _.baseId); } else { processForm.baseIdList = []; } @@ -267,8 +270,8 @@ onMounted(() => { 知识报送 - 知识删除 - 知识撤回 + 知识删除 + 知识撤回
流程设计
diff --git a/src/views/businessManagement/processConfiguration/components/updateForm.vue b/src/views/businessManagement/processConfiguration/components/updateForm.vue index 3db8986..0a81de1 100644 --- a/src/views/businessManagement/processConfiguration/components/updateForm.vue +++ b/src/views/businessManagement/processConfiguration/components/updateForm.vue @@ -55,7 +55,6 @@ const processForm = reactive({ }); const checkAll = ref(false); const indeterminate = ref(false); -const value = ref([]); const subLibraryIdList = ref([]); const roleNameList = ref([]); const userNameList = ref([]); @@ -93,22 +92,25 @@ const rules = reactive({ remark: [{ required: true, message: "请输入", trigger: "blur" }] }); -watch(value, val => { - if (val.length === 0) { - checkAll.value = false; - indeterminate.value = false; - } else if (val.length === subLibraryIdList.value.length) { - checkAll.value = true; - indeterminate.value = false; - } else { - indeterminate.value = true; +watch( + () => processForm.baseIdList, + val => { + if (val.length === 0) { + checkAll.value = false; + indeterminate.value = false; + } else if (val.length === subLibraryIdList.value.length) { + checkAll.value = true; + indeterminate.value = false; + } else { + indeterminate.value = true; + } } -}); +); const handleCheckAll = (val: CheckboxValueType) => { indeterminate.value = false; if (val) { - processForm.baseIdList = subLibraryIdList.value.map(_ => _.value); + processForm.baseIdList = subLibraryIdList.value.map(_ => _.baseId); } else { processForm.baseIdList = []; } @@ -292,8 +294,8 @@ onMounted(() => { 知识报送 - 知识删除 - 知识撤回 + 知识删除 + 知识撤回
流程设计
diff --git a/src/views/businessManagement/processConfiguration/index.vue b/src/views/businessManagement/processConfiguration/index.vue index 9751e33..2c6a0ca 100644 --- a/src/views/businessManagement/processConfiguration/index.vue +++ b/src/views/businessManagement/processConfiguration/index.vue @@ -1,7 +1,7 @@