{"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\\DeviceManagement\\dialog\\editVideo.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\sfz-lh-fvue\\src\\views\\Normal\\DeviceManagement\\dialog\\editVideo.vue","mtime":1705604912221},{"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/es6.function.name\";\nimport \"core-js/modules/es6.regexp.constructor\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 chargeData from '@/api/DataManagement/chargeData.js';\nimport routerManagement from '@/api/BasicDataManagement/tollStationManagement.js';\nimport warn from '@/api/DeviceManagement/warn.js';\nimport moment from 'moment';\nimport utils from '@/utils.js';\nimport device from '@/api/DeviceManagement/device.js';\n\nvar ImgPreviewUpload = function ImgPreviewUpload() {\n return import('@/views/Normal/components/ImgPreviewUploadAccessor.vue');\n};\n\nexport default {\n name: 'editDevice',\n components: {\n ImgPreviewUpload: ImgPreviewUpload\n },\n data: function data() {\n var IPValidator = function IPValidator(rule, value, callback) {\n var ip_ip = '(25[0-5]|2[0-4]\\\\d|1\\\\d\\\\d|\\\\d\\\\d|\\\\d)';\n var ip_ipdot = ip_ip + '\\\\.';\n var isIPaddress = new RegExp('^' + ip_ipdot + ip_ipdot + ip_ipdot + ip_ip + '$');\n\n if (value && !isIPaddress.test(value)) {\n callback(new Error('IP地址格式错误'));\n } else {\n callback();\n }\n };\n\n return {\n id: '',\n loading: false,\n dialogForm: {\n sourceType: 3,\n cameraCode: 1,\n type: 1,\n x: 0,\n y: 0,\n z: 0,\n status: 1,\n isLot: 1,\n isPing: 1,\n cameraType: 1,\n channleType: 1,\n factoryDate: moment().format('YYYY-MM-DD'),\n repairDate: moment().format('YYYY-MM-DD')\n },\n positionOptions: [],\n //位置数据\n tollStationOptions: [],\n // 收费站数据\n rules: {\n name: {\n required: true,\n message: '请输入设备名称'\n },\n code: {\n required: true,\n message: '请输入设备编码'\n },\n ip: {\n validator: IPValidator,\n message: '请输入正确的IP地址',\n trigger: 'blur'\n },\n cameraCode: {\n required: true,\n message: '请输入通道编码'\n }\n },\n statusList: [{\n label: '在线',\n key: 1,\n type: 'success'\n }, {\n label: '离线',\n key: 2,\n type: 'info'\n }, {\n label: '故障',\n key: 3,\n type: 'danger'\n }],\n showWarnConfig: false,\n warnConfigLoading: false,\n searchconfigName: '',\n tableData: [],\n deviceViews: {\n bizPath: 'deviceManagement',\n fileList: []\n },\n cameraType: [] //摄像头类型\n\n };\n },\n mounted: function mounted() {\n this.loadTollStation();\n this.id = this.$route.query.id;\n this.dialogForm.positionId = this.$route.query.positionId;\n\n if (this.id) {\n this.getDataById();\n }\n\n this.cameraType = utils.getDictItemsFromCache('sxtlx');\n },\n methods: {\n loadPosition: function loadPosition() {\n var _this = this;\n\n this.positionOptions = [];\n var data = this.qs.stringify({\n stationId: this.dialogForm.tollStationId\n });\n device.queryPositionTree(data).then(function (res) {\n _this.positionOptions = res.value || [];\n });\n },\n changeStatus: function changeStatus(status) {\n this.dialogForm.status = status;\n },\n getDataById: function getDataById() {\n var _this2 = this;\n\n device.queryById(this.id).then(function (res) {\n console.log('getDataById', res); // 根据返回数据 组织数据结构\n\n _this2.dialogForm = res;\n _this2.config = _this2.dialogForm.bizWarnConfig;\n _this2.dialogForm.bizWarnConfigName = _this2.config.name;\n\n if (_this2.dialogForm.tollStationId) {\n _this2.handleChangeTollStation(_this2.dialogForm.tollStationId);\n }\n });\n },\n handleDialogOpen: function handleDialogOpen() {\n this.showWarnConfig = true;\n this.loadConfig();\n },\n handleDialogClose: function handleDialogClose() {\n this.showWarnConfig = false;\n },\n handleClickConfig: function handleClickConfig(row, column, event) {\n this.config = row;\n },\n handleChangeWarnConfig: function handleChangeWarnConfig() {\n this.dialogForm.bizWarnConfigName = this.config.name;\n this.dialogForm.bizWarnConfig = this.config;\n this.handleDialogClose();\n },\n loadConfig: function loadConfig() {\n var _this3 = this;\n\n var params = {\n pageBean: {\n page: 1,\n pageSize: -1\n },\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name',\n relation: 'AND',\n value: this.searchconfigName\n }]\n };\n this.warnConfigLoading = true;\n warn.queryDataConfig(params).then(function (res) {\n _this3.warnConfigLoading = false;\n _this3.tableData = res.rows || [];\n });\n },\n // 获取字典值翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n // 收费站\n loadTollStation: function loadTollStation() {\n var _this4 = this;\n\n var params = {\n pageBean: {\n page: 1,\n pageSize: -1\n }\n };\n routerManagement.queryTollStation(params).then(function (res) {\n var data = res.data;\n _this4.tollStationOptions = data.rows || [];\n _this4.dialogForm.tollStationId = _this4.$route.query.treeTollStationId;\n\n if (_this4.dialogForm.tollStationId) {\n _this4.handleChangeTollStation(_this4.dialogForm.tollStationId);\n }\n });\n },\n // 根据收费站id 为所属公司所属路段赋值\n handleChangeTollStation: function handleChangeTollStation(data) {\n var options = utils.deepClone(this.tollStationOptions);\n var target = options.filter(function (item) {\n return item.id = data;\n })[0];\n this.dialogForm.tollStationId = data;\n this.dialogForm.tollStationName = target.name;\n this.dialogForm.companyName = target.companyName;\n this.dialogForm.companyId = target.companyId;\n this.dialogForm.roadId = target.roadSegmentId;\n this.dialogForm.roadName = target.roadSegmentName;\n this.loadPosition();\n },\n changePosition: function changePosition(val) {\n console.log(val, '121212');\n },\n sonToDad: function sonToDad(data) {\n this.dialogForm.accessories = data;\n },\n submit: function submit() {\n var _this5 = this;\n\n this.$refs.form.validate(function (valid) {\n if (valid) {\n _this5.loading = true;\n device.saveDevice(_this5.dialogForm).then(function (res) {\n console.log('res', res);\n\n if (res.data.state) {\n _this5.$router.go(-1);\n }\n\n if (res.data.state) {\n _this5.$message({\n message: !_this5.id ? '添加成功' : '修改成功',\n type: 'success'\n });\n }\n\n _this5.loading = false;\n }).catch(function () {\n _this5.loading = false;\n });\n } else {\n return false;\n }\n });\n }\n }\n};",null]}