@@ -37,9 +37,33 @@
this.$set(this, `total`, res.total);
},
async tomake({data}) {
- data.status = '1';
- const res = await this.update(data);
- alert(JSON.stringify(res));
+ if(data.type!=0){
+ if(data.status!='0'){
+ this.$message({
+ message: '已发布至至金控审核',
+ type: 'success',
+ });
+ }else{
+ data.status = '1';
+ const res = await this.update(data);
+ if (res.errcode === 0) {
+ message: '发布至金控审核成功',
+ message: '发布至金控审核失败',
+ type: 'error',
+ }
+ message: '您还没有权限发布股权融资',
};