{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\ImportExportData\\SelectDict.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\ImportExportData\\SelectDict.vue","mtime":1675071991131},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport portal from '@/api/portal';\nexport default {\n  name: 'selectDict',\n  data: function data() {\n    return {\n      dialogShow: false,\n      tableHeight: 300,\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      data: [],\n      defaultQuerys: [{\n        property: 'flag_',\n        value: 1\n      }],\n      querySearch: [{\n        label: '名称',\n        prop: 'name_'\n      }, {\n        label: '编码',\n        prop: 'code_'\n      }],\n      selectRow: {}\n    };\n  },\n  mounted: function mounted() {\n    var _this = this;\n\n    this.calcTableHeight();\n    this.$root.$on('resize', function () {\n      _this.calcTableHeight(500);\n    });\n  },\n  methods: {\n    // 选择字典回调\n    rowClick: function rowClick(row) {\n      this.selectRow = row;\n    },\n    // 加载字典\n    loadData: function loadData(param, cb) {\n      var _this2 = this;\n\n      portal.loadDictList(param).then(function (resp) {\n        var response = resp;\n        _this2.data = response.rows;\n        _this2.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      }).finally(function () {\n        return cb();\n      });\n    },\n    handleOk: function handleOk() {\n      if (this.selectRow.code) {\n        this.$emit('change', this.selectRow.code);\n      }\n\n      this.closeDialog();\n    },\n    openDialog: function openDialog() {\n      this.dialogShow = true;\n    },\n    closeDialog: function closeDialog() {\n      this.selectRow = {};\n      this.data = [];\n      this.dialogShow = false;\n    },\n    // 动态计算表格的高度，自适应当前容器\n    calcTableHeight: function calcTableHeight(delay) {\n      var _this3 = this;\n\n      setTimeout(function () {\n        _this3.tableHeight = document.documentElement.clientHeight * 0.9 - 200;\n      }, delay || 0);\n    }\n  }\n};",null]}