{"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\\DataManagement\\chargeData.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\DataManagement\\chargeData.vue","mtime":1704418079150},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 routerManagement from '@/api/BasicDataManagement/tollStationManagement.js';\nimport chargeData from '@/api/DataManagement/chargeData.js';\nexport default {\n name: 'chargeData',\n mixins: [TableMixin],\n data: function data() {\n return {\n searchForm: {},\n params: {\n pageBean: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n },\n loading: false,\n tableLoading: false,\n tableData: [],\n dialog: {\n title: '添加',\n visible: false\n },\n dialogForm: {\n type: '1'\n },\n disabled: false,\n // 是否禁止输入输入\n edit: false,\n // 是否是修改功能\n rules: {},\n roadOptions: [],\n pickerOptions: {\n shortcuts: [{\n text: '最近一周',\n onClick: function onClick(picker) {\n var end = new Date();\n var start = new Date();\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);\n picker.$emit('pick', [start, end]);\n }\n }, {\n text: '最近一个月',\n onClick: function onClick(picker) {\n var end = new Date();\n var start = new Date();\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);\n picker.$emit('pick', [start, end]);\n }\n }, {\n text: '最近三个月',\n onClick: function onClick(picker) {\n var end = new Date();\n var start = new Date();\n start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);\n picker.$emit('pick', [start, end]);\n }\n }]\n }\n };\n },\n created: function created() {\n this.loadData();\n this.loadRoad();\n },\n methods: {\n // 路段数据\n loadRoad: function loadRoad() {\n var _this = this;\n\n var params = {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n };\n routerManagement.queryRoad(params).then(function (res) {\n _this.roadOptions = res.rows || [];\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 chargeData.queryChargeData(this.params).then(function (res) {\n _this2.tableLoading = false;\n _this2.tableData = res.rows || [];\n\n if (res.page) {\n _this2.params.pageBean = {\n page: res.page,\n pageSize: res.pageSize,\n total: res.total\n };\n }\n });\n },\n handleSearch: function handleSearch() {\n console.log('this.searchForm', this.searchForm);\n var querys = [];\n\n for (var key in this.searchForm) {\n if (key == 'roadId' || key == 'isEtc') {\n querys.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: key,\n relation: 'AND',\n value: this.searchForm[key]\n });\n }\n\n if (key == 'carNo') {\n querys.push({\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: key,\n relation: 'AND',\n value: this.searchForm[key]\n });\n }\n\n if (key == 'startTime') {\n querys.push({\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: key,\n relation: 'AND',\n value: this.searchForm[key]\n });\n }\n }\n\n this.params.querys = querys;\n this.loadData(1);\n },\n handleDelete: function handleDelete() {\n var _this3 = 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 chargeData.batchDeleteConfig(_this3.deleteIds).then(function (res) {\n _this3.loadData(1);\n\n if (res.data.state) {\n _this3.$message({\n message: '删除成功',\n type: 'success'\n });\n }\n });\n });\n },\n //添加\n handleAdd: function handleAdd() {\n this.$router.push({\n path: '/platLayout/editCharge'\n });\n },\n // 编辑\n handleEdit: function handleEdit(rows) {\n this.$router.push({\n path: '/platLayout/editCharge',\n query: {\n id: rows.id\n }\n });\n },\n handleDetail: function handleDetail(rows) {\n this.$router.push({\n path: '/platLayout/detailCharge',\n query: {\n id: rows.id\n }\n });\n },\n formatPassTime: function formatPassTime(data) {\n var totalseconds = data; // 时长 以秒为单位\n\n var hh = 0; //小时 默认0\n\n var mm = Math.floor(totalseconds / 60); //除以60取整数,得到整数分钟\n // 如果分钟大于60,将分钟转换成小时\n\n if (mm > 60) {\n // 获取小时整数\n hh = Math.floor(mm / 60); // 取余的分钟数\n\n mm = mm % 60;\n }\n\n var ss = totalseconds % 60; // 取余得秒\n\n function addZero(n) {\n var temp;\n n < 10 ? temp = '0' + n : temp = n;\n return temp;\n }\n\n return addZero(hh) + ':' + addZero(mm) + ':' + addZero(ss);\n }\n },\n computed: {\n SearchPanel: function SearchPanel() {\n return {\n '--searchPanel': this.searchPanel + 'px'\n };\n }\n }\n};",null]}