|
@@ -5,6 +5,7 @@
|
|
|
<van-col span="24" class="one">
|
|
|
<van-button type="info" size="small" @click="toSearch()">查询条件</van-button>
|
|
|
<van-button type="danger" size="small" @click="selectDel()">批量删除</van-button>
|
|
|
+ <van-button type="danger" size="small" @click="onekeyDel()">一键删除</van-button>
|
|
|
<van-button type="info" size="small" @click="selectUser()">选择用户</van-button>
|
|
|
<van-button type="info" size="small" @click="selectSubmit()">确认批量分配</van-button>
|
|
|
<p>
|
|
@@ -75,7 +76,7 @@ export default {
|
|
|
this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...patentinfo(['query', 'updateUser', 'delete']),
|
|
|
+ ...patentinfo(['query', 'updateUser', 'delete', 'deleteMany']),
|
|
|
async search({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
|
let res = await this.query({ skip, limit, ...this.searchForm, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
@@ -116,6 +117,18 @@ export default {
|
|
|
this.$toast({ type: `error`, message: `缺少必要信息` });
|
|
|
}
|
|
|
},
|
|
|
+ // 一键删除
|
|
|
+ async onekeyDel() {
|
|
|
+ Dialog.confirm({ title: '信息提示', message: '删除操作不可恢复,如无查询条件,删除自动认定为全部信息,您确认要继续么?' })
|
|
|
+ .then(async () => {
|
|
|
+ let res = await this.deleteMany({ ...this.searchForm });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$toast({ type: `success`, message: `删除成功` });
|
|
|
+ this.search();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
// 选择用户
|
|
|
selectUser() {
|
|
|
this.dialog = { show: true, title: '选择用户', type: '2' };
|