Explorar el Código

Merge branch 'master' of http://git.cc-lotus.info/service-platform/mobile-official

wuhongyu hace 4 años
padre
commit
e27ca91e38

+ 3 - 10
src/views/userCenter/matter/index.vue

@@ -100,18 +100,11 @@ export default {
   computed: {},
   methods: {
     ...transactions({ transactionList: 'query', transactiondtetle: 'delete', shenheupdate: 'update' }),
-
-    async submit(item) {
-      console.log(item);
-      this.show = true;
-      this.$set(this, `newform`, item);
-      item.status = '2';
-      console.log(item);
-      let res = await this.shenheupdate(item);
+    submit(data) {
+      console.log(data);
     },
-
     onSubmit() {
-      console.log(this.newform);
+      console.log('同意');
     },
   },
   mounted() {

+ 7 - 2
src/views/userCenter/matter/parts/negotiation.vue

@@ -51,9 +51,14 @@ export default {
     },
     async submit(item) {
       item.status = '1';
-      console.log(item);
       let res = await this.shenheupdate(item);
-      this.$checkRes(res, '同意成功', '审核失败');
+      if (this.$checkRes(res)) {
+        this.$message({
+          message: '同意交易提交成功',
+          type: 'success',
+        });
+        this.searchInfo();
+      }
     },
   },
   computed: {