{"remainingRequest":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\InternationalSubject.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\src\\views\\basicInfo\\InternationalSubject.vue","mtime":1681547792208},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\cqlt-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\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//\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//\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 tree from '@/components/tree';\nimport pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport utils from '@/utils.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport internationalSubject from '@/api/basicInfo/internationalSubject.js';\nimport internationDialog from \"./components/internationDialog.vue\";\nimport internationTree from \"./components/internationTree.vue\";\nexport default {\n name: 'InternationalSubject',\n components: {\n tree: tree,\n pagination: pagination,\n internationDialog: internationDialog,\n internationTree: internationTree\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableMaxHeight: 400,\n form: {\n keyWord: '',\n qualification: ''\n },\n defaultProps: {\n children: 'children',\n label: 'name'\n },\n currentKey: null,\n filterText: '',\n expandAll: false,\n treeData: [{\n id: '0',\n name: this.$t('international.tree'),\n children: []\n }],\n loading: false,\n tableData: [],\n multipleSelection: [],\n searchName: '',\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'code',\n relation: 'AND',\n value: ''\n }, {\n group: 'quick',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'OR',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'parentId',\n relation: 'AND',\n value: ''\n }, {\n group: 'quick',\n operation: 'LIKE',\n parentGroup: '',\n property: 'nameEn',\n relation: 'OR',\n value: ''\n }, {\n group: 'main',\n operation: 'IN',\n parentGroup: '',\n property: 'type',\n relation: 'AND',\n value: ''\n }],\n typeValue: [],\n queryParam: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n sorter: [{\n direction: 'ASC',\n property: 'sn'\n }]\n },\n total: 0,\n jbList: [],\n parentId: 0,\n sortList: {}\n };\n },\n watch: {\n filterText: function filterText(val) {\n this.$refs.tree.filter(val);\n }\n },\n created: function created() {\n this.jbList = dictUtils.getDictItemsFromCache('subjec_type'); // if (this.$i18n.locale === 'zh-CN') {\n // \tthis.jbList = dictUtils.getDictItemsFromCache('subjec_type')\n // } else {\n // \tthis.jbList = dictUtils.getDictItemsFromCache('subjec_type_en')\n // }\n\n this.loadDataTree();\n this.getData();\n },\n mounted: function mounted() {},\n methods: {\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取数据\n getData: function getData(page) {\n var _this = this;\n\n console.log(this.typeValue);\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = [];\n\n if (this.searchName) {\n this.querys[1].value = this.searchName;\n this.querys[3].value = this.searchName;\n } else {\n this.querys[1].value = '';\n this.querys[3].value = '';\n }\n\n if (this.typeValue.length > 0) {\n this.querys[4].value = this.typeValue.join(',');\n }\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n if (this.querys[3].value) {\n this.queryParam.querys.push(this.querys[3]);\n }\n\n if (this.querys[4].value) {\n this.queryParam.querys.push(this.querys[4]);\n }\n\n internationalSubject.pageQuery(this.queryParam, function (res) {\n if (res.rows) {\n _this.tableData = res.rows;\n\n _this.tableData.forEach(function (e) {\n _this.jbList.forEach(function (j) {\n var typeName = '';\n e.type.split(',').forEach(function (t) {\n if (t == j.value) {\n typeName += j.name + ',';\n console.log(j.name);\n }\n });\n\n if (typeName.length > 0) {\n e.typeName = typeName.substr(0, typeName.length - 1);\n }\n });\n });\n\n _this.queryParam.pageBean.total = res.total;\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n }\n });\n },\n expandHandle: function expandHandle() {\n this.expandAll = !this.expandAll;\n this.expandNodes(this.$refs.tree.store.root);\n },\n // 遍历树形数据,设置每一项的expanded属性,实现展开收起\n expandNodes: function expandNodes(node) {\n node.expanded = this.expandAll;\n\n for (var i = 0; i < node.childNodes.length; i++) {\n node.childNodes[i].expanded = this.expandAll;\n\n if (node.childNodes[i].childNodes.length > 0) {\n this.expandNodes(node.childNodes[i]);\n }\n }\n },\n filterNode: function filterNode(value, data) {\n if (!value) return true;\n return data.name.indexOf(value) !== -1;\n },\n //树选中\n handleNodeClick: function handleNodeClick(data) {\n this.parentId = data.id;\n this.querys[2].value = data.id;\n this.getData(1);\n },\n //添加\n handleAdd: function handleAdd() {\n if (!this.parentId) {\n this.$message.warning(this.$t('common.noParentId'));\n return;\n }\n\n this.$refs.internationDialog.add(this.parentId);\n },\n //删除\n handleDelete: function handleDelete() {\n var _this2 = this;\n\n this.$confirm(this.$t('common.sureDelete'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n internationalSubject.delDate(_this2.multipleSelection, function (res) {\n if (res.state) {\n _this2.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000\n });\n }\n\n _this2.callData();\n });\n }).catch(function () {});\n },\n //修改\n handleDbClick: function handleDbClick(data) {\n this.$refs.internationDialog.edit(data.id);\n },\n // 刷新树数据\n loadDataTree: function loadDataTree() {\n var _this3 = this;\n\n internationalSubject.treeData({}, function (res) {\n if (res.state) {\n _this3.treeData[0].children = res.value;\n _this3.parentId = '';\n }\n });\n },\n //表格选中\n handleSelectionChange: function handleSelectionChange(val) {\n var _this4 = this;\n\n this.multipleSelection = [];\n this.$refs.multipleSelection.selection.forEach(function (item) {\n _this4.multipleSelection.push(item.id);\n });\n },\n //展示数量\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getData();\n },\n //表格页数\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getData();\n },\n //排序\n insort: function insort(val) {\n var id = val.id;\n var value = val.sn;\n this.sortList[id] = value;\n },\n // 保存排序\n savePropertyf: function savePropertyf() {\n var _this5 = this;\n\n this.$confirm(this.$t('common.sureSort'), this.$t('common.tips'), {\n confirmButtonText: this.$t('common.confirm'),\n cancelButtonText: this.$t('common.cancel'),\n type: 'warning'\n }).then(function () {\n internationalSubject.sortData(_this5.sortList, function (res) {\n if (res.state) {\n _this5.$notify({\n type: 'success',\n message: res.message,\n duration: 2000\n });\n\n _this5.getData();\n } else {\n _this5.$message.warning(res.message);\n }\n });\n }).catch(function () {});\n },\n //修改树\n editTree: function editTree() {\n this.$refs.internationTree.add();\n },\n callData: function callData() {\n this.loadDataTree();\n this.getData();\n }\n }\n};",null]}