{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\VehicleManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\duty\\VehicleManager.vue","mtime":1690541169595},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 VehicleManage from '@/api/manager/duty/vehicleManage.js';\nimport VechicleManageDialog from '@/views/Manage/duty/components/VechicleManageDialog';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport { mapState } from 'vuex';\nimport CmgtDutyVehicleArea from \"./CmgtDutyVehicleArea.vue\";\nexport default {\n name: 'VehicleManage',\n components: {\n VechicleManageDialog: VechicleManageDialog,\n CmgtDutyVehicleArea: CmgtDutyVehicleArea\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n url: {\n delete: '/manager/duty/vehicle/'\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'code_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name_',\n relation: 'AND',\n value: ''\n }],\n StshowFormDias: false,\n fuelTypes: [],\n licensePlate: '',\n // 选择车牌号\n showDistrictDia: false // 控制测量管区弹层\n\n };\n },\n computed: mapState({\n header: function header(state) {\n if (state.login && state.login.currentUser) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n\n return {};\n },\n actionUrl: function actionUrl() {\n return window.context.portal + '/manager/duty/vehicle/importExcel';\n }\n }),\n created: function created() {// this.fuelTypes = dictContracts.getDictItemsFromCache('cmgt_rylx')\n },\n mounted: function mounted() {},\n methods: {\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n },\n // 获取list\n loadData: function loadData(page) {\n var _this = this;\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.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 VehicleManage.loadVehicle(this.queryParam, function (res) {\n _this.total = res.total;\n _this.tableData = res.rows;\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n });\n },\n // 修改\n handleUpdate: function handleUpdate(row) {\n console.log(row.id);\n this.$refs.formModal.Update(row);\n },\n // 关联设备\n // handleClick(item) {\n // console.log(item.id)\n // this.StshowFormDias = true\n // },\n closeStshowForm: function closeStshowForm() {\n this.StshowFormDias = false;\n },\n // 文件导入中钩子函数\n uploadProgressfile: function uploadProgressfile() {\n this.loading = true;\n },\n // 导入后钩子函数\n uploadSuccessfileSpace: function uploadSuccessfileSpace(res, file) {\n if (res.state === true) {\n this.$notify({\n type: 'success',\n message: '导入数据成功',\n duration: 2200 // offset: 80\n\n });\n this.loading = false;\n this.loadData();\n } else {\n // 导入出错\n this.$notify({\n type: 'error',\n message: '导入数据失败',\n duration: 2200,\n offset: 80\n });\n this.loading = false;\n }\n },\n // 文件导入前钩子函数\n beforeUploadExcel: function beforeUploadExcel(file) {\n var filetype = file.name.substring(file.name.lastIndexOf('.') + 1);\n var typeCheck = filetype == 'xls' || 'xlsx'; // const isLt = file.size / 1024 / 1024 < 10;\n\n if (!typeCheck) {\n this.$notify({\n showClose: true,\n message: '上传文档只能是xls或xlsx格式!',\n type: 'error',\n duration: 2200,\n offset: 80\n });\n }\n\n if (typeCheck) {}\n\n return typeCheck;\n },\n // 下载模板按钮\n dowmTemplate: function dowmTemplate() {\n window.open(window.context.portal + '/manager/duty/vehicle/downModel', '_blank');\n },\n // 车辆管区按钮点击事件\n districtClick: function districtClick(row) {\n this.licensePlate = row.code;\n this.showDistrictDia = true;\n },\n // 车辆管区弹层关闭\n districtClose: function districtClose() {\n this.showDistrictDia = false;\n }\n }\n};",null]}