From 2bff5e788d4f7e505961270f0624aa3e78280e25 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期四, 13 十月 2022 14:31:29 +0800
Subject: [PATCH] 目录
---
src/views/goalManagement/performanceAppraisal/component/DailogAq.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/views/goalManagement/performanceAppraisal/component/DailogAq.vue b/src/views/goalManagement/performanceAppraisal/component/DailogAq.vue
index de62ee6..1bf1044 100644
--- a/src/views/goalManagement/performanceAppraisal/component/DailogAq.vue
+++ b/src/views/goalManagement/performanceAppraisal/component/DailogAq.vue
@@ -167,12 +167,14 @@
title: '', ////考核标题
});
const titles = ref();
+ const titleT = ref();
const disabled = ref(false);
// 打开弹窗
const openDailog = (title: string, value: any, id: number) => {
department();
dialogVisible.value = true;
titles.value = `${title}安全考核管理`;
+ titleT.value=title
disabled.value = title == '查看' ? true : false;
if (title == '查看' || title == '修改')
goalManagementApi()
@@ -282,6 +284,9 @@
if (!formEl) return;
await formEl.validate((valid, fields) => {
if (valid) {
+ if(titleT.value=='新建'){
+ delete form.value.id
+ }
dialogVisible.value = false;
let arr = [];
for (let i = 0; i < form.value.numberDetailJson.length; i++) {
@@ -403,6 +408,7 @@
console.log(form.value);
};
return {
+ titleT,
rules,
timeC,
numberC,
@@ -446,4 +452,4 @@
.el-row {
padding: 0 0 20px 0;
}
-</style>
+</style>
\ No newline at end of file
--
Gitblit v1.9.2