src/mixins/JeecgListMixin.js
@@ -8,6 +8,7 @@
import Vue from 'vue'
import { ACCESS_TOKEN, TENANT_ID } from "@/store/mutation-types"
import store from '@/store'
import { buttonShowAuthFilter } from '@/utils/authFilter'
export const JeecgListMixin = {
  data(){
@@ -30,6 +31,10 @@
      },
      /* 排序参数 */
      isorter:{
        column: 'createTime',
        order: 'desc',
      },
      defaultSorter:{
        column: 'createTime',
        order: 'desc',
      },
@@ -74,6 +79,9 @@
    }
  },
  methods:{
    isShowAuth(code){
      return buttonShowAuthFilter(code);
    },
    loadData(arg) {
      if(!this.url.list){
        this.$message.error("请设置url.list属性!")
@@ -84,7 +92,6 @@
        this.ipagination.current = 1;
      }
      var params = this.getQueryParams();//查询条件
      console.log('params',params)
      if(!params){
        return false;
      }
@@ -298,7 +305,10 @@
      // 打开详情抽屉时禁用设备编码、设备名称输入框
      this.$refs.modalForm.disSeach = true;
      // 调用抽屉表单组件中的清除表单验证方法
      this.$refs.modalForm.removeValidate()
      if(this.$refs.modalForm.removeValidate) {
        this.$refs.modalForm.removeValidate()
      }
    },
    /* 导出 */
    handleExportXls2(){
@@ -370,6 +380,7 @@
          this.loadData()
        } else {
          // this.$message.error(`${info.file.name} ${info.file.response.message}.`);
          this.loading = false
          this.$notification.error({
            message:'消息',
            description:`${info.file.name} ${info.file.response.message}.`