浏览代码

2023-08-23

weirenchun 2 年之前
父节点
当前提交
3ce4ff632f
共有 2 个文件被更改,包括 20 次插入0 次删除
  1. 10 0
      src/views/project/componens/info4.vue
  2. 10 0
      src/views/project/componens/info5.vue

+ 10 - 0
src/views/project/componens/info4.vue

@@ -183,6 +183,16 @@ export default {
   methods: {
     save() {
       console.log('save')
+      this.$api.project.proUpdate(this.detail).then(res => {
+        if (res.code === 200) {
+          if (show) {
+            this.$message.success(res.msg)
+            this.show = false
+          }
+        } else {
+          this.$message.error(res.msg)
+        }
+      })
     },
     change(res) {
       this.disabled = res

+ 10 - 0
src/views/project/componens/info5.vue

@@ -63,6 +63,16 @@ export default {
   methods: {
     save() {
       console.log('save')
+      this.$api.project.proUpdate(this.detail).then(res => {
+        if (res.code === 200) {
+          if (show) {
+            this.$message.success(res.msg)
+            this.show = false
+          }
+        } else {
+          this.$message.error(res.msg)
+        }
+      })
     },
     change(res) {
       this.disabled = res