更新任务审批
This commit is contained in:
parent
bf64e4d08b
commit
09cb9a43df
@ -117,7 +117,7 @@
|
||||
</div>
|
||||
</el-card>
|
||||
<audit-other-popup
|
||||
v-if="showEdit && openType == 1"
|
||||
v-if="showEdit && showAuditOther"
|
||||
ref="auditOtherRef"
|
||||
:dict-data="dictData"
|
||||
@success="getLists"
|
||||
@ -172,6 +172,12 @@ const checkStatusList = ref([
|
||||
},
|
||||
]);
|
||||
|
||||
// 显示默认审批界面的类型
|
||||
const showAuditTypeList = ref([1, 5, 6]);
|
||||
const showAuditOther = computed(() => {
|
||||
return showAuditTypeList.value.includes(openType.value);
|
||||
});
|
||||
|
||||
// 选中数据
|
||||
const selectData = ref<any[]>([]);
|
||||
|
||||
@ -201,7 +207,7 @@ const handleEdit = async (data: any, type = "edit") => {
|
||||
openType.value = data.type;
|
||||
showEdit.value = true;
|
||||
await nextTick();
|
||||
if (data.type == 1) {
|
||||
if (showAuditOther) {
|
||||
auditOtherRef.value?.open(type);
|
||||
auditOtherRef.value?.setFormData(data);
|
||||
} else if (data.type == 4) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user