weirenchun 2 gadi atpakaļ
vecāks
revīzija
3ce4ff632f

+ 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