|
@@ -2,7 +2,7 @@
|
|
<div id="read">
|
|
<div id="read">
|
|
<admin-frame @search="search" :limit="limit" :total="total" topType="2" @back="back" :rightArrow="false" :useNav="false">
|
|
<admin-frame @search="search" :limit="limit" :total="total" topType="2" @back="back" :rightArrow="false" :useNav="false">
|
|
<template v-slot:info>
|
|
<template v-slot:info>
|
|
- <list-4 :list="list"></list-4>
|
|
|
|
|
|
+ <list-4 :list="list" @toDel="toDel"></list-4>
|
|
</template>
|
|
</template>
|
|
</admin-frame>
|
|
</admin-frame>
|
|
</div>
|
|
</div>
|
|
@@ -31,7 +31,7 @@ export default {
|
|
this.search();
|
|
this.search();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...patentearly(['query']),
|
|
|
|
|
|
+ ...patentearly(['query', 'delete']),
|
|
async search({ skip = 0, limit = this.limit, searchName, ...info } = {}) {
|
|
async search({ skip = 0, limit = this.limit, searchName, ...info } = {}) {
|
|
info.searchName = searchName;
|
|
info.searchName = searchName;
|
|
let res = await this.query({ skip, limit, ...info });
|
|
let res = await this.query({ skip, limit, ...info });
|
|
@@ -40,6 +40,14 @@ export default {
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 删除信息
|
|
|
|
+ async toDel(data) {
|
|
|
|
+ let res = await this.delete(data.id);
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ this.$toast({ type: 'success', message: '删除信息成功' });
|
|
|
|
+ this.search();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 返回
|
|
// 返回
|
|
back() {
|
|
back() {
|
|
this.$router.push({ path: '/patent/index' });
|
|
this.$router.push({ path: '/patent/index' });
|