{"remainingRequest":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\BasicDataManagement\\components\\workGroupContent.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\BasicDataManagement\\components\\workGroupContent.vue","mtime":1704711122344},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/sfz-lh-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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//\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//\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 { TableMixin } from '@/mixins/tableMixin';\nimport { dragController } from '@/assets/js/dragController';\nimport workGroupContent from '@/api/BasicDataManagement/workGroup.js';\nimport tollStationManagement from '@/api/BasicDataManagement/tollStationManagement.js';\nexport default {\n name: 'workGroupContent',\n mixins: [TableMixin],\n data: function data() {\n return {\n treeData: [],\n defaultProps: {\n id: 'id',\n children: 'children',\n label: 'label'\n },\n sreachTree: '',\n disabledDetils: false,\n currentPage: 1,\n tableMaxHeight: 400,\n loading: false,\n tableLoading: false,\n tableData: [],\n multipleSelection: [],\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n searchForm: {},\n // 顶部搜索对象\n deleteIds: '',\n // 是否选中列表解锁删除按钮\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {},\n disabled: false,\n // 是否禁止输入输入\n edit: false,\n // 是否是修改功能\n currentDataDel: [],\n // 删除时排查是否有在审核的数据\n rules: {\n name: {\n required: true,\n message: '请输入班种',\n trigger: 'blur'\n },\n restEndTime: {\n required: true,\n message: '请选择休息结束时间',\n trigger: 'blur'\n },\n restStartTime: {\n required: true,\n message: '请选择休息开始时间',\n trigger: 'blur'\n },\n workEndTime: {\n required: true,\n message: '请选择下班时间',\n trigger: 'blur'\n },\n workStartTime: {\n required: true,\n message: '请选择上班时间',\n trigger: 'blur'\n }\n },\n allData: {\n pageBean: {\n page: 1,\n pageSize: -1,\n total: 0\n }\n },\n currentNodekey: '',\n tollStationId: ''\n };\n },\n created: function created() {\n this.currentNodekey = sessionStorage.getItem('tollStationId');\n this.loadTollStation();\n },\n mounted: function mounted() {\n dragController();\n },\n methods: {\n handleNodeClick: function handleNodeClick(data) {\n this.currentNodekey = data.id;\n this.loadIdData();\n this.handleSearch();\n },\n // 通过收费站id匹配数据\n loadIdData: function loadIdData() {\n console.log(this.currentNodeKey);\n var querys = [];\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'tollStationId',\n relation: 'AND',\n value: this.currentNodekey\n });\n this.params.querys = querys;\n this.loadData(1);\n },\n // 获取收费站数据\n loadTollStation: function loadTollStation() {\n var _this = this;\n\n tollStationManagement.queryTollStation(this.allData).then(function (res) {\n var obj = [];\n\n for (var i = 0; i < res.data.rows.length; i++) {\n obj = {\n id: res.data.rows[i].id,\n label: res.data.rows[i].name\n };\n\n _this.treeData.push(obj);\n } // this.currentNodekey = res.data.rows[0].id\n\n\n _this.loadIdData();\n\n _this.$nextTick(function () {\n _this.$refs.myTree.setCurrentKey(_this.currentNodekey); //一定要加这个选中了否则样式没有出来\n\n });\n });\n },\n //获取数据\n loadData: function loadData(page) {\n var _this2 = this;\n\n if (page) this.params.pageBean.page = page;\n this.tableLoading = true;\n workGroupContent.queryWorkGroup(this.params).then(function (res) {\n _this2.tableLoading = false;\n var data = res && res.data || {};\n _this2.tableData = data.rows || [];\n\n if (data.page) {\n _this2.params.pageBean = {\n page: data.page,\n pageSize: data.pageSize,\n total: data.total\n };\n }\n });\n },\n //添加\n handleAdd: function handleAdd() {\n this.edit = false;\n this.disabledDetils = false;\n this.dialogForm = {\n tollStationId: this.currentNodekey\n };\n this.dialog.title = '添加';\n this.dialog.visible = true;\n },\n // 编辑\n handleEdit: function handleEdit(rows) {\n this.$refs.form.clearValidate();\n this.edit = true;\n this.disabledDetils = false;\n this.dialogForm = rows || {};\n this.dialogForm = _objectSpread({}, rows);\n this.dialog.title = '编辑';\n this.dialog.visible = true;\n },\n // 弹层关闭\n handleDialogClose: function handleDialogClose() {\n this.dialog.visible = false;\n },\n // 表单提交保存\n submit: function submit() {\n var _this3 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this3.loading = true;\n workGroupContent.batchSubmit(_this3.dialogForm).then(function (res) {\n console.log('res', res);\n\n if (res.data.state) {\n _this3.dialog.visible = false;\n\n _this3.loadData(1);\n }\n\n if (!res.errorMsg) {\n _this3.$message({\n message: !_this3.edit ? '添加成功' : '修改成功',\n type: 'success'\n });\n\n _this3.editVisible = false;\n }\n\n _this3.loading = false;\n }).catch(function () {\n _this3.loading = false;\n });\n } else {\n return false;\n }\n });\n },\n // 删除\n handleDelete: function handleDelete() {\n var _this4 = 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 workGroupContent.batchDelete(_this4.deleteIds).then(function (res) {\n _this4.loadData(1);\n\n if (!res.errorMsg) {\n _this4.$message({\n message: '删除成功',\n type: 'success'\n });\n }\n });\n });\n },\n // 顶部搜索\n handleSearch: function handleSearch() {\n var querys = [];\n\n for (var i in this.searchForm) {\n console.log(this.searchForm);\n\n if (this.searchForm[i]) {\n if (i == 'name') {\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: i,\n relation: 'AND',\n value: this.searchForm[i]\n });\n }\n }\n }\n\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'tollStationId',\n relation: 'AND',\n value: this.currentNodekey\n });\n this.params.querys = querys;\n this.loadData(1);\n },\n // 侧边栏搜索\n filterNode: function filterNode(value, treeData) {\n if (!value) return true;\n return treeData.label.indexOf(value) !== -1;\n } // handleChangeTollStation(data) {\n // let target = this.treeData.filter((item) => item.id == data)[0]\n // this.dialogForm.roadSegmentName = target.label\n // },\n\n },\n watch: {\n sreachTree: function sreachTree(val) {\n this.$refs.myTree.filter(val);\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}