|
@@ -291,28 +291,26 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // 添加
|
|
|
- toAdd() {
|
|
|
- console.log('添加');
|
|
|
- },
|
|
|
- // 修改handleEdit 详情
|
|
|
+ // 审核
|
|
|
async handleEdit1(data) {
|
|
|
- if (data.role == '6') {
|
|
|
- // console.log();
|
|
|
- const res = await this.exportuserFetch(data.uid);
|
|
|
- // console.log(res);
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `form`, res.data);
|
|
|
- }
|
|
|
- } else {
|
|
|
- const res = await this.fetch(data.uid);
|
|
|
- // console.log(res);
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `form`, res.data);
|
|
|
- }
|
|
|
- }
|
|
|
- this.$set(this, `editData`, data);
|
|
|
this.dialog = true;
|
|
|
+ console.log(data);
|
|
|
+ // if (data.role == '6') {
|
|
|
+ // // console.log();
|
|
|
+ // const res = await this.exportuserFetch(data.uid);
|
|
|
+ // // console.log(res);
|
|
|
+ // if (this.$checkRes(res)) {
|
|
|
+ // this.$set(this, `form`, res.data);
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // const res = await this.fetch(data.uid);
|
|
|
+ // // console.log(res);
|
|
|
+ // if (this.$checkRes(res)) {
|
|
|
+ // this.$set(this, `form`, res.data);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // this.$set(this, `editData`, data);
|
|
|
+ // this.dialog = true;
|
|
|
},
|
|
|
// 提交
|
|
|
async handleSave() {
|
|
@@ -341,26 +339,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // 取消
|
|
|
- handleClose() {
|
|
|
- this.dialog = false;
|
|
|
- this.form = {};
|
|
|
- },
|
|
|
- uploadSuccess({ type, data }) {
|
|
|
- this.$set(this.form, `${type}`, data.uri);
|
|
|
- },
|
|
|
- setIsQy(data) {
|
|
|
- let val = '0';
|
|
|
- data == '2' ? (val = '0') : (val = '1');
|
|
|
- this.$set(this.form, `is_qy`, val);
|
|
|
- },
|
|
|
- // 审核
|
|
|
- // async handleEdit1(data) {
|
|
|
- // const res = await this.exportuserFetch(data.uid);
|
|
|
- // console.log(res);
|
|
|
- // this.$set(this, `form`, data);
|
|
|
- // this.dialog = true;
|
|
|
- // },
|
|
|
// 刪除
|
|
|
async handleDelete(data) {
|
|
|
this.$confirm('您确定要删除此信息吗?', '提示', {
|
|
@@ -398,6 +376,20 @@ export default {
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
+ // 取消
|
|
|
+ handleClose() {
|
|
|
+ this.dialog = false;
|
|
|
+ this.form = {};
|
|
|
+ },
|
|
|
+ // 图片
|
|
|
+ uploadSuccess({ type, data }) {
|
|
|
+ this.$set(this.form, `${type}`, data.uri);
|
|
|
+ },
|
|
|
+ setIsQy(data) {
|
|
|
+ let val = '0';
|
|
|
+ data == '2' ? (val = '0') : (val = '1');
|
|
|
+ this.$set(this.form, `is_qy`, val);
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|