Browse Source

数据字典-印章类型档案 -类型里的数据不允许删除

jingbb 1 year ago
parent
commit
49a751ac39
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/system/DictItemList.vue

+ 8 - 2
src/views/system/DictItemList.vue

@@ -62,8 +62,8 @@
 
           <span slot="action" slot-scope="text, record">
             <a @click="handleEdit(record)">编辑</a>
-            <a-divider type="vertical"/>
-            <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+            <a-divider type="vertical" v-if='show'/>
+            <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)" v-if='show'>
               <a>删除</a>
             </a-popconfirm>
           </span>
@@ -115,6 +115,7 @@
         },
         title: "操作",
         visible: false,
+        show:false,
         screenWidth: 800,
         model: {},
         dictId: "",
@@ -152,6 +153,11 @@
         if (record.id) {
           this.dictId = record.id;
         }
+        if(record.dictName=='印章类别'){
+          this.show = false
+        }else{
+          this.show = true
+        }
         this.queryParam = {}
         this.form.resetFields();
         this.model = Object.assign({}, record);