weirenchun 2 лет назад
Родитель
Сommit
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