疯狂的狮子li
2021-09-13 2af534eea471f4adb104906c7a814bcc66d4d68d
ruoyi-ui/src/views/system/dict/index.vue
@@ -118,7 +118,7 @@
      <el-table-column label="字典名称" align="center" prop="dictName" :show-overflow-tooltip="true" />
      <el-table-column label="字典类型" align="center" :show-overflow-tooltip="true">
        <template slot-scope="scope">
          <router-link :to="'/dict/type/data/' + scope.row.dictId" class="link-type">
          <router-link :to="'/system/dict-data/index/' + scope.row.dictId" class="link-type">
            <span>{{ scope.row.dictType }}</span>
          </router-link>
        </template>
@@ -193,15 +193,10 @@
</template>
<script>
import { listType, getType, delType, addType, updateType, exportType, refreshCache } from "@/api/system/dict/type";
// 字典标签组件(使用频繁可在全局挂载)
import DictTag from '@/components/DictTag'
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
export default {
  name: "Dict",
  components: {
    DictTag
  },
  data() {
    return {
      // 遮罩层
@@ -351,18 +346,7 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      const queryParams = this.queryParams;
      this.$confirm('是否确认导出所有类型数据项?', "警告", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }).then(() => {
          this.exportLoading = true;
          return exportType(queryParams);
        }).then(response => {
          this.download(response.msg);
          this.exportLoading = false;
        }).catch(() => {});
      this.downLoadExcel('/system/dict/type/export', this.queryParams);
    },
    /** 刷新缓存按钮操作 */
    handleRefreshCache() {
@@ -372,4 +356,4 @@
    }
  }
};
</script>
</script>