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