|
@@ -580,18 +580,22 @@ export default {
|
|
|
// this.dialogVisible = false
|
|
|
// this.currentDbEdit = {}
|
|
|
console.log(this.currentDbEdit)
|
|
|
- this.currentDbEdit.jihuaStartDate = this.currentDbEdit.start_date ;
|
|
|
- this.currentDbEdit.parent = this.currentDbEdit.pid ;
|
|
|
- saveProjectJl(this.currentDbEdit).then((res) => {
|
|
|
- console.log("提交返回",res)
|
|
|
- if (res.success) {
|
|
|
- this.$message.success('提交成功');
|
|
|
- this.typeButton = null
|
|
|
- this.dialogVisible = false
|
|
|
- this.currentDbEdit = {}
|
|
|
- this.getHjlist()
|
|
|
- }
|
|
|
- })
|
|
|
+ if (this.currentDbEdit.status == 3) {
|
|
|
+ this.currentDbEdit.jihuaStartDate = this.currentDbEdit.start_date ;
|
|
|
+ this.currentDbEdit.parent = this.currentDbEdit.pid ;
|
|
|
+ saveProjectJl(this.currentDbEdit).then((res) => {
|
|
|
+ console.log("提交返回",res)
|
|
|
+ if (res.success) {
|
|
|
+ this.$message.success('提交成功');
|
|
|
+ this.typeButton = null
|
|
|
+ this.dialogVisible = false
|
|
|
+ this.currentDbEdit = {}
|
|
|
+ this.getHjlist()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message.error('不可修改');
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
}
|