唐耀东
2022-08-15 5f700e8cdf48ab2b4db45ba9fb4b0a889f1a7208
src/views/system/dict/data.vue
@@ -65,6 +65,7 @@
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          class="del-btn"
          @click="handleDelete"
          v-hasPermi="['system:dict:remove']"
        >删除</el-button>
@@ -126,6 +127,7 @@
            size="mini"
            type="text"
            icon="el-icon-delete"
            class="del-btn"
            @click="handleDelete(scope.row)"
            v-hasPermi="['system:dict:remove']"
          >删除</el-button>
@@ -142,7 +144,7 @@
    />
    <!-- 添加或修改参数配置对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
    <Dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="字典类型">
          <el-input v-model="form.dictType" :disabled="true" />
@@ -186,7 +188,7 @@
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
    </Dialog>
  </div>
</template>
@@ -382,7 +384,7 @@
    /** 删除按钮操作 */
    handleDelete(row) {
      const dictCodes = row.dictCode || this.ids;
      this.$modal.confirm('是否确认删除字典编码为"' + dictCodes + '"的数据项?').then(function() {
      this.$modal.confirm('是否确认删除?').then(function() {
        return delData(dictCodes);
      }).then(() => {
        this.getList();