Sfoglia il codice sorgente

fix(字典): 编辑不允许删除和修改字典编码

liujt 6 mesi fa
parent
commit
6bf28cb1ba
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/views/system/dictionary/components/dict-edit.vue

+ 2 - 1
src/views/system/dictionary/components/dict-edit.vue

@@ -127,6 +127,7 @@
         <template slot-scope="scope">
           <el-input
             @blur="checkedValue(scope.row.code)"
+            :disabled="isUpdate"
             v-model="scope.row.code"
             placeholder=""
           ></el-input>
@@ -155,7 +156,7 @@
           </el-radio-group>
         </template>
       </el-table-column>
-      <el-table-column align="center" label="操作">
+      <el-table-column v-if="!isUpdate" align="center" label="操作">
         <template slot-scope="scope">
           <el-popconfirm
             class="ele-action"