|
@@ -249,7 +249,7 @@ export default {
|
|
|
methods: {
|
|
|
...authUser({ authdelete: 'delete' }),
|
|
|
...users(['fetch', 'create', 'query', 'update', 'delete', 'userquery']),
|
|
|
- ...expertsuser({ exportuserFetch: 'fetch', exportuserCreate: 'create', exportuserUpdate: 'update' }),
|
|
|
+ ...expertsuser({ exportuserFetch: 'fetch', exportuserCreate: 'create', exportuserUpdate: 'update', exportuserDelete: 'delete' }),
|
|
|
async search({ skip = 0, limit = 10, pid = '', ...info } = {}) {
|
|
|
if (this.user.code == 'JLCJGLY') {
|
|
|
const res = await this.userquery({ skip, ...info });
|
|
@@ -382,6 +382,18 @@ export default {
|
|
|
this.search();
|
|
|
}
|
|
|
}
|
|
|
+ } else {
|
|
|
+ let res = await this.exportuserDelete(data.id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ res = await this.authdelete(data.id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({
|
|
|
+ message: '删除信息成功',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ this.search();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {});
|