|
@@ -293,18 +293,18 @@ export default {
|
|
|
toAdd() {
|
|
|
console.log('添加');
|
|
|
},
|
|
|
- // 修改handleEdit
|
|
|
+ // 修改handleEdit 详情
|
|
|
async handleEdit1(data) {
|
|
|
if (data.role == '6') {
|
|
|
// console.log();
|
|
|
const res = await this.exportuserFetch(data.uid);
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `form`, res.data);
|
|
|
}
|
|
|
} else {
|
|
|
const res = await this.fetch(data.uid);
|
|
|
- console.log(res);
|
|
|
+ // console.log(res);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `form`, res.data);
|
|
|
}
|
|
@@ -315,9 +315,11 @@ export default {
|
|
|
// 提交
|
|
|
async handleSave() {
|
|
|
let data = this.form;
|
|
|
+ console.log(data);
|
|
|
if (data.role == '4' || data.role == '5') {
|
|
|
- data.id = data.uid;
|
|
|
- let res = await this.update(data);
|
|
|
+ // data.id = data.uid;
|
|
|
+ let res = await this.update(data.id);
|
|
|
+ console.log(res);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$message({
|
|
|
message: '审核信息成功',
|
|
@@ -326,8 +328,8 @@ export default {
|
|
|
this.handleClose();
|
|
|
}
|
|
|
} else if (data.role == '6') {
|
|
|
- data.id = data.uid;
|
|
|
- let res = await this.exportuserUpdate(data);
|
|
|
+ // data.id = data.uid;
|
|
|
+ let res = await this.exportuserUpdate(data.id);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$message({
|
|
|
message: '修改信息成功',
|