diff --git a/src/views/modules/eam/eamBuDocumentListDefinition.vue b/src/views/modules/eam/eamBuDocumentListDefinition.vue
index cc05fa4..aaca8a6 100644
--- a/src/views/modules/eam/eamBuDocumentListDefinition.vue
+++ b/src/views/modules/eam/eamBuDocumentListDefinition.vue
@@ -130,7 +130,7 @@
-
+
-
+
{
- if (data && data.code === '0') {
- this.getDataList()
- this.modalFlag=false
- this.disableButton = false
- this.$message({
- message: '操作成功',
- type: 'success',
- duration: 1500,
- onClose: () => {}
- })
- } else {
- this.$alert(data.msg, '错误', {
- confirmButtonText: '确定'
- })
- }
- })
+ if (this.modalCompareData.projectCategory !== this.modalData.projectCategory || this.modalCompareData.projectPhase !== this.modalData.projectPhase) {
+ // 用户进行了修改,可以继续保存数据
+ // 向后端发送保存请求的逻辑
+ eamBuDocumentEdit(this.modalData).then(({data}) => {
+ if (data && data.code === '0') {
+ this.getDataList()
+ this.modalFlag=false
+ this.disableButton = false
+ this.$message({
+ message: '操作成功',
+ type: 'success',
+ duration: 1500,
+ onClose: () => {}
+ })
+ } else {
+ this.$alert(data.msg, '错误', {
+ confirmButtonText: '确定'
+ })
+ }
+ })
+ this.modalCompareData.projectPhase = ''
+ this.modalCompareData.projectCategory = ''
+ } else {
+ // 用户没有修改数据,不需要保存
+ this.modalCompareData.projectPhase = ''
+ this.modalCompareData.projectCategory = ''
+ this.modalFlag = false;
+ this.disableButton = false;
+ }
}
},
@@ -929,6 +970,9 @@
this.authUpdate = !updateFlag
this.authDelete = !deleteFlag
},
+ handleInput() {
+ this.isDataModified = true;
+ }
}
}