疯狂的狮子li
2021-09-02 1a695159e3cd3010381b0dff8b3dcd6f73fa189a
ruoyi-ui/src/views/system/dict/data.vue
@@ -183,7 +183,7 @@
</template>
<script>
import { listData, getData, delData, addData, updateData, exportData } from "@/api/system/dict/data";
import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data";
import { listType, getType } from "@/api/system/dict/type";
export default {
@@ -247,6 +247,7 @@
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        reasonable: true,
        dictName: undefined,
        dictType: undefined,
        status: undefined
@@ -388,18 +389,7 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      const queryParams = this.queryParams;
      this.$confirm('是否确认导出所有数据项?', "警告", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }).then(() => {
          this.exportLoading = true;
          return exportData(queryParams);
        }).then(response => {
          this.download(response.msg);
          this.exportLoading = false;
        }).catch(() => {});
      this.downLoadExcel('/system/dict/data/export', this.queryParams);
    }
  }
};