|
@@ -8,7 +8,7 @@
|
|
|
<van-button type="info" size="small" @click="thrAdd">手动分发</van-button>
|
|
|
</van-col>
|
|
|
<van-col span="24">
|
|
|
- <list-1 :list="list"></list-1>
|
|
|
+ <list-1 :list="list" @toDel="toDel"></list-1>
|
|
|
</van-col>
|
|
|
</template>
|
|
|
</admin-frame>
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...patentwarning(['query']),
|
|
|
+ ...patentwarning(['query', 'delete']),
|
|
|
async search({ skip = 0, limit = this.limit, searchName, ...info } = {}) {
|
|
|
let res = await this.query({ skip, limit, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
@@ -46,6 +46,7 @@ export default {
|
|
|
this.$set(this, `total`, res.total);
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
// 分发消息创建
|
|
|
add() {
|
|
|
this.$router.push({ path: '/patent/admin/examine/hairmess_create' });
|
|
@@ -58,6 +59,16 @@ export default {
|
|
|
thrAdd() {
|
|
|
this.$router.push({ path: '/patent/admin/examine/hairmess_manualCreate' });
|
|
|
},
|
|
|
+ // 删除文件
|
|
|
+ async toDel({ data }) {
|
|
|
+ this.$dialog
|
|
|
+ .confirm({ title: '信息提示', message: '删除操作不可恢复,您确定要继续么?' })
|
|
|
+ .then(async () => {
|
|
|
+ let res = await this.delete(data._id);
|
|
|
+ if (this.$checkRes(res, '删除数据成功', `${res.errmsg}`)) this.search();
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
// 返回
|
|
|
back() {
|
|
|
this.$router.push({ path: '/patent/index' });
|