{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\maintenanceInspection\\regularInspection\\RegularInspectionSlope.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\maintenanceInspection\\regularInspection\\RegularInspectionSlope.vue","mtime":1717179230360},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\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/es6.object.keys\";\nimport \"core-js/modules/es6.reflect.delete-property\";\nimport _typeof from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/typeof.js\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"core-js/modules/es6.string.iterator\";\nimport \"core-js/modules/es6.map\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Dict from '@/components/dict/DictSelectUtils.js';\nimport DqSlopeDialog from '@/components/dialog/DqSlopeDialog.vue';\nimport companyInfoSelector from '@/components/selector/companyInfoSelector.vue';\nimport sctionInfoSelector from '@/components/selector/sctionInfoSelector.vue';\nimport basicData from '@/api/basicData.js';\nimport req from '@/request.js';\nimport CascaderCompany from '@/components/selector/CascaderCompany.vue';\nimport { uploadMixin } from '@/mixins/uploadMixin';\nexport default {\n components: {\n DqSlopeDialog: DqSlopeDialog,\n // sctionInfoSelector,\n // companyInfoSelector\n CascaderCompany: CascaderCompany\n },\n mixins: [uploadMixin],\n data: function data() {\n return {\n //批量导出历史记录参数\n loading: false,\n checkDate: '',\n dialogVisibleExport: false,\n pid: '',\n adventData: [{\n text: '未临期',\n value: '0'\n }, {\n text: '临期',\n value: '1'\n }],\n dictSelection: [],\n //勾选复选框\n searchForm: {},\n companyOptions: [],\n company: [],\n roadData: [],\n dataBaseOptions: {\n dataBaseId: '',\n tableName: 'biz_side_slope_regular_check',\n // 必填\n tableSchema: ''\n },\n originAPIOptions: {\n url: '/bizSideSlopeInformation/v1/getJsonRegularVo',\n // 列表请求接口地址\n method: 'post',\n // 列表请求方法\n moduleRoot: 'yhxt' // 微服务根路径\n },\n\n exportQuery: {},\n data: [],\n childrenTablData: [],\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n },\n form: {\n lastCheckDate: '',\n checkDate: ''\n },\n title: '',\n rules: {\n // lastRepairDate: [\n // {required: true, message: '请输入上次大中修日期', trigger: 'blur'}\n // ],\n // lastCheckDate: [\n // {required: true, message: '请输入上次检查日期', trigger: 'blur'}\n // ],\n tunnelName: [{\n required: true,\n message: '请输入上次检查日期',\n trigger: 'blur'\n }],\n checkDate: [{\n required: true,\n message: '检查日期',\n trigger: 'blur'\n }],\n weather: [{\n required: true,\n message: '天气',\n trigger: 'blur'\n }],\n accessories: {\n required: true,\n message: '请上传附件',\n trigger: 'blur'\n }\n },\n activeName: 'first',\n dialogVisible: false,\n tableData: [],\n directionValue: [{\n text: '上行方向',\n value: '上行方向'\n }, {\n text: '下行方向',\n value: '下行方向'\n }, {\n text: '上下双向',\n value: '上下双向'\n }]\n };\n },\n created: function created() {\n if (this.$route.query.type == '1') {\n this.searchForm.temporary = '1';\n this.findinfo();\n }\n this.company = this.getCompany();\n this.roadData = this.getroad();\n },\n methods: {\n //临期选择框重新赋值\n handleIsopenSelect: function handleIsopenSelect() {\n this.$forceUpdate();\n },\n //批量导出历史记录弹框\n submitExport: function submitExport() {\n var _this = this;\n var params_ = \"pid=\".concat(this.pid);\n if (this.checkDate) {\n params_ = \"pid=\".concat(this.pid, \"&timeGrateThan=\").concat(this.checkDate[0], \"&timeLessThan=\").concat(this.checkDate[1]);\n }\n this.loading = true;\n var url = window.context.yhxt + \"/checkExportRegular/v1/sideSlope/exportSideSlopeRegularHistory?\".concat(params_);\n req.downloadGet(url).then(function (res) {\n if (res.status == 500) {\n _this.$message.error('该边坡暂无经常检查记录');\n }\n _this.loading = false;\n _this.dialogVisibleExport = false;\n });\n },\n handleCloseExport: function handleCloseExport(done) {\n done();\n },\n //批量导出历史记录\n handelHistoryExports: function handelHistoryExports() {\n var data = this.dictSelection;\n if (data.length == 0) return this.$message.info('请选择要导出的数据');\n var arr = [];\n data.forEach(function (i) {\n arr.push(i.id);\n });\n this.pid = arr.join(',');\n this.dialogVisibleExport = true;\n },\n //字典触发回调事件\n handleDict: function handleDict(val, obj, str) {\n if (str === 'bpztzkpddj') {\n this.form.overallRatingValue = obj.name;\n } else if (str === 'ty-tq') {\n this.form.weatherValue = obj.name;\n }\n },\n handleClick: function handleClick(tab, event) {\n console.log(tab, event);\n },\n uniqueFunc: function uniqueFunc(arr, uniId) {\n var res = new Map();\n return arr.filter(function (item) {\n return !res.has(item[uniId]) && res.set(item[uniId], 1);\n });\n },\n handleReset: function handleReset() {\n this.searchForm = _objectSpread(_objectSpread({}, this.searchForm), {}, {\n companyId: ['1419863231459102720'],\n roadSegmentName: '',\n direction: '',\n type: '',\n temporary: ''\n });\n this.findinfo();\n },\n findinfo: function findinfo() {\n var _this2 = this;\n typeof this.$refs.filterTable !== 'undefined' && this.$refs.filterTable.clearFilter();\n var query = [];\n var search = {\n company_id_: this.searchForm.companyIds,\n road_segment_id_: this.searchForm.roadSegmentName,\n direction: this.searchForm.direction,\n type: this.searchForm.type,\n temporary: this.searchForm.temporary\n };\n for (var i in search) {\n if (search[i]) {\n if (i == 'company_id_') {\n query.push({\n group: 'companyIds',\n operation: 'IN',\n parentGroup: '',\n property: 'COMPANY_ID_',\n relation: 'AND',\n value: search[i]\n });\n } else if (i == 'road_segment_id_') {\n query.push({\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'road_segment_id_',\n relation: 'AND',\n value: search[i]\n });\n } else {\n query.push({\n group: 'advance',\n operation: 'LIKE',\n property: i,\n relation: 'AND',\n value: search[i]\n });\n }\n }\n }\n query = this.uniqueFunc(query, 'property');\n var data = {\n pageBean: {\n page: 1,\n pageSize: 20,\n showTotal: true\n },\n querys: query\n };\n this.topQuery = query;\n this.$http.post('${form}/bizSideSlopeInformation/v1/getJsonRegularVo', data).then(function (res) {\n console.log(res, '11');\n var response = res.data;\n _this2.data = response.rows;\n _this2.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n });\n },\n getroad: function getroad() {\n var arr = [];\n basicData.getRoadManagement().then(function (res) {\n res.rows.forEach(function (item) {\n arr.push({\n value: item.name,\n key: item.id\n });\n });\n console.log(arr, '12');\n });\n return arr;\n },\n getCompany: function getCompany() {\n var _this3 = this;\n this.$http.post('${yhxt}/Company/v1/getCompany').then(function (res) {\n res.data.forEach(function (item) {\n _this3.companyOptions.push({\n id: item.id,\n name: item.name\n });\n });\n });\n },\n //深层拷贝回去公司名称\n deepClone: function deepClone(obj) {\n var objClone = Array.isArray(obj) ? [] : {};\n if (obj && _typeof(obj) === 'object') {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n //判断ojb子元素是否为对象,如果是,递归复制\n if (obj[key] && _typeof(obj[key]) === 'object') {\n objClone[key] = this.deepClone(obj[key]);\n } else {\n if (obj[key] == obj.name) {\n this.companyOptions.push({\n id: obj.id,\n name: obj.name\n });\n } //如果不是,简单复制\n objClone[key] = obj[key];\n }\n }\n }\n }\n },\n loadData: function loadData(param, cb, tree) {\n var _this4 = this;\n var params = JSON.parse(sessionStorage.getItem('search_form'));\n if (params) {\n this.searchForm = params;\n sessionStorage.removeItem('search_form');\n this.findinfo();\n cb();\n return;\n }\n // let r = JSON.stringify(param.pageBean)\n // let l = JSON.stringify(this.pageResult)\n // console.log(r, l)\n // if (r == l) {\n // console.log('一样')\n // param\n // } else {\n // console.log('不一样')\n // let query = []\n // let search = {\n // company_id_: this.searchForm.companyId,\n // road_segment_name_: this.searchForm.roadSegmentName,\n // direction: this.searchForm.direction,\n // type: this.searchForm.type\n // }\n // for (let i in search) {\n // if (search[i]) {\n // query.push({\n // group: 'advance',\n // operation: 'LIKE',\n // property: i,\n // relation: 'AND',\n // value: search[i]\n // })\n // }\n // }\n // param.querys = query\n // }\n if (typeof this.topQuery !== 'undefined' && this.topQuery.length !== 0) {\n param.querys = typeof param.querys !== 'undefined' ? param.querys : [];\n this.topQuery.forEach(function (item) {\n param.querys.push(item);\n });\n param.querys = this.uniqueFunc(param.querys, 'property');\n }\n this.exportQuery = param;\n this.$http.post('${form}/bizSideSlopeInformation/v1/getJsonRegularVo', param).then(function (resp) {\n var response = resp.data;\n _this4.data = response.rows;\n console.log(_this4.data);\n // for (let i in this.data) {\n // let lastM = new Date(\n // new Date().setMonth(new Date().getMonth() + 1)\n // )\n // lastM = this.formTime(lastM)\n // lastM = new Date(lastM.replace(/-/g, '/'))\n // let dayM = new Date(this.data[i].checkDate)\n // let days = lastM.getTime() - dayM.getTime()\n // days = parseInt(days / (1000 * 60 * 60 * 24))\n // this.data[i].cardDay = days\n // }\n _this4.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }, function (error) {\n reject(error);\n }).finally(function () {\n if (cb) {\n cb();\n }\n });\n },\n handleSubmit: function handleSubmit() {\n var _this5 = this;\n this.tableData.forEach(function (item) {\n item.unitName = item.name;\n });\n // 验证表单是否填写完\n this.$refs.ruleForm.validate(function (bool) {\n if (bool) {\n _this5.dialogVisible = false;\n Reflect.deleteProperty(_this5.form, 'accessories');\n var data = {\n accessories: _this5.accessories,\n sideRegularCheckDetails: _this5.tableData,\n sideSlopeRegularCheck: _this5.form\n };\n //请求保存提交\n _this5.$http.post('${form}/sideSlopeRegularCheck/v1/saveSideSlopeRegularCheck', data).then(function (res) {\n console.log(res);\n _this5.$message({\n message: res.data.message,\n type: 'success'\n });\n _this5.form = {};\n _this5.tableData = [];\n _this5.$refs.htTable.load(true);\n });\n }\n });\n },\n handleEdit: function handleEdit(data) {\n // this.title = '桥梁经常检查列表'\n // this.dialogVisible = true\n this.$refs.fredialog.open(data);\n },\n handle: function handle(scope) {\n console.log(scope);\n },\n toggleRowExpansion: function toggleRowExpansion(row) {\n console.log(row);\n },\n formTime: function formTime(dete) {\n var date = new Date(dete);\n var y = date.getFullYear();\n var m = date.getMonth() + 1;\n m = m < 10 ? '0' + m : m;\n var d = date.getDate();\n d = d < 10 ? '0' + d : d;\n var time = y + '-' + m + '-' + d;\n return time;\n },\n handleCommand: function handleCommand(params) {\n var _this6 = this;\n if (params.command == 'Fillin') {\n this.dadToSon.fileList = [];\n this.tableData = Dict.getDictItemsFromCache('bpdqjcmx');\n this.title = '新增检查填报';\n this.form = {\n sideSlopeName: params.row.name,\n sideSlopeId: params.row.id,\n lastCheckDate: params.row.checkDate,\n weather: 1,\n weatherValue: this.getDictName('ty-tq', 1),\n overallRating: 1,\n overallRatingValue: this.getDictName('bpztzkpddj', 1),\n checkDate: this.getDate(),\n accessories: []\n };\n // this.form.tunnelName = params.row.name\n // this.form.sideSlopeId = params.row.id\n // this.form.lastCheckDate = params.row.checkDate\n // this.form.weather = '1'\n // // this.form.overallRating = 1\n // this.form.checkDate = this.getDate()\n this.dialogVisible = true;\n this.tableData = this.tableData.filter(function (item) {\n return delete item['id'];\n });\n this.tableData.forEach(function (item) {\n _this6.$set(item, 'score', '5');\n });\n } else if (params.command == 'admin') {\n sessionStorage.setItem('search_form', JSON.stringify(this.searchForm));\n this.$router.push({\n name: 'DqSlope',\n params: params\n });\n }\n },\n handleClose: function handleClose(done) {\n done();\n },\n handleCancel: function handleCancel() {\n this.dialogVisible = false;\n this.form = {};\n this.tableData = [];\n },\n handleSelect: function handleSelect(selection) {\n this.dictSelection = selection;\n },\n //导出\n handelExport: function handelExport() {\n var _this7 = this;\n console.log('点了');\n if (!this.dictSelection.length) {\n this.$message.warning(\"\\u8BF7\\u9009\\u62E9\\u8981\\u5BFC\\u51FA\\u7684\\u6570\\u636E\");\n return;\n } else {\n var msg = \"\\u786E\\u5B9A\\u5BFC\\u51FA\\u9009\\u4E2D\\u6570\\u636E\\u5417?\";\n this.$confirm(msg, '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n var ids = [];\n _this7.dictSelection.forEach(function (item) {\n console.log(item);\n ids.push(item.id);\n });\n var param = _this7.qs.stringify({\n ids: ids.join(',')\n });\n // 调用接口 提交数据\n var url = window.context.yhxt + '/checkExport/v1/sideSlope/exportSideSlopeRegularList?' + param;\n req.downloadGet(url);\n _this7.dictSelection = [];\n // this.$http.get(\n // '${yhxt}/assessment/curingAssessment/v1/exportCuringAssessment?' +\n // param\n // )(res => {\n // this.dictSelection = []\n // this.$refs.htTable.load()\n // })\n }).catch(function () {\n _this7.$message({\n type: 'info',\n message: \"\\u5DF2\\u5BFC\\u51FA\\u9009\\u4E2D\\u7684\\u6570\\u636E\"\n });\n _this7.$refs.htTable.load(); //重新获取数据\n });\n }\n }\n }\n};",null]}