Explorar el Código

专利信息注释删除按钮

guhongwei hace 3 años
padre
commit
39467864bf
Se han modificado 2 ficheros con 1 adiciones y 10 borrados
  1. 0 1
      src/layout/patentInfo/list-1.vue
  2. 1 9
      src/views/patent/admin/patent/index.vue

+ 0 - 1
src/layout/patentInfo/list-1.vue

@@ -18,7 +18,6 @@
             <van-button type="info" size="small" @click="toView(item)">详细信息</van-button>
             <template v-if="user.role == '1'">
               <van-button type="info" size="small" @click="toEdit(item)">修改信息</van-button>
-              <van-button type="danger" size="small" @click="toDel(item)">刪除信息</van-button>
             </template>
             <template v-else-if="user.role == '3'">
               <van-button type="info" size="small" @click="toAssess(item)" v-if="item.term != '失效'">价值评估</van-button>

+ 1 - 9
src/views/patent/admin/patent/index.vue

@@ -6,7 +6,7 @@
           <van-button type="info" size="small" @click="toImport()">导入专利</van-button>
         </van-col>
         <van-col span="24" class="two">
-          <list-1 :list="list" @toView="toView" @toEdit="toEdit" @toDel="toDel"></list-1>
+          <list-1 :list="list" @toView="toView" @toEdit="toEdit"></list-1>
         </van-col>
       </template>
     </admin-frame>
@@ -59,14 +59,6 @@ export default {
     toEdit(data) {
       this.$router.push({ path: '/patent/admin/patent/detail', query: { id: data.id } });
     },
-    // 删除信息
-    async toDel(data) {
-      let res = await this.delete(data.id);
-      if (this.$checkRes(res)) {
-        this.$toast({ type: `success`, message: `操作完成` });
-        this.search();
-      }
-    },
     // 添加
     toAdd() {
       this.$router.push({ path: '/patent/admin/patent/detail' });