{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\videoImport.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Device\\deviceManage\\videoImport.vue","mtime":1687747617167},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 utils from '@/utils.js'\nimport req from '@/request.js'\nimport {\n\tmapState\n} from 'vuex'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nconst portal = window.context.portal\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport equipmentManage from '@/api/device/equipmentManage.js'\nimport videoImport from '@/api/device/videoImport.js'\nexport default {\n\tname: 'ReportManagement',\n\tcomponents: {},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\tloading: false,\n\t\t\tuploading: false,\n\t\t\tdialogVisible: false,\n\t\t\tactiveName: '',\n\t\t\toptions: [{\n\t\t\t\t\tlabel: '以选择的区域为发布标准',\n\t\t\t\t\tvalue: 1\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: '以导入的区域为发布标准',\n\t\t\t\t\tvalue: 2\n\t\t\t\t}\n\t\t\t],\n\t\t\tradio: 2,\n\t\t\tquerys: [{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'i.platform_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t}, {\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'LIKE',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'i.name_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'i.status_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tgroup: 'main',\n\t\t\t\t\toperation: 'EQUAL',\n\t\t\t\t\tparentGroup: '',\n\t\t\t\t\tproperty: 'i.area_code_',\n\t\t\t\t\trelation: 'AND',\n\t\t\t\t\tvalue: '',\n\t\t\t\t}\n\t\t\t],\n\n\t\t\tdialogLoading: false,\n\t\t\ttableData: [],\n\t\t\tparams: {\n\n\t\t\t},\n\t\t\tfbztList: [],\n\t\t\tsxtlxList: [],\n\t\t\tuploadData: {\n\t\t\t\tplatform: ''\n\t\t\t},\n\t\t\tactionUrl: '',\n\t\t\tregionList: [],\n\t\t\tregionValue: [],\n\t\t\tselectList: [],\n\t\t\ttreeData: [],\n\t\t\tregion: []\n\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.actionUrl = window.context.portal\n\t\tthis.conditions = dictUtils.getDictItemsFromCache('spdwsspt')\n\t\tthis.fbztList = dictUtils.getDictItemsFromCache('fbzt')\n\t\tthis.sxtlxList = dictUtils.getDictItemsFromCache('sxtlx')\n\t\tthis.queryParam.pageBean.pageSize = 50\n\t\tthis.activeName = this.conditions[0].value\n\t\tthis.querys[0].value = this.activeName\n\t\tthis.uploadData.platform = this.conditions[0].value\n\t\tthis.getTreeAll()\n\t\tthis.getAreaTree()\n\t},\n\t//获取token\n\tcomputed: mapState({\n\t\theader: state => {\n\t\t\treturn {\n\t\t\t\tAuthorization: `Bearer ${state.login.currentUser.token}`\n\t\t\t}\n\t\t}\n\t}),\n\tmethods: {\n\t\tgetAreaTree() {\n\t\t\tequipmentManage.loadAreaTree({\n\t\t\t\tid: '0'\n\t\t\t}, res => {\n\t\t\t\tthis.treeData = res.value // this.formatData(res.rows)\n\t\t\t\tthis.$set(this.treeData)\n\t\t\t})\n\t\t},\n\t\thandleAvatarProgress() {\n\t\t\tthis.uploading = true\n\t\t},\n\t\t//上传成功\n\t\thandleAvatarSuccess(res, file) {\n\t\t\t//提示\n\t\t\tthis.$message.success('导入成功')\n\t\t\tthis.uploading = false\n\t\t\tthis.loadData() //调用用页面查询接口,刷新数据\n\t\t},\n\t\t//上传失败\n\t\thandleAvatarError(err, file, fileList) {\n\t\t\t//提示\n\t\t\tthis.uploading = false\n\t\t\tthis.$message.error(err.message)\n\t\t},\n\t\tgetRowKey(row) {\n\t\t\treturn row.id\n\t\t},\n\t\tloadData(page) {\n\t\t\tif (page) {\n\t\t\t\tthis.queryParam.pageBean.page = page\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tthis.tableData = []\n\t\t\tthis.queryParam.querys = []\n\t\t\tif (this.region.length > 0) {\n\t\t\t\tlet value = JSON.parse(JSON.stringify(this.region))\n\t\t\t\tthis.querys[3].value = value.pop()\n\t\t\t} else {\n\t\t\t\tthis.querys[3].value = ''\n\t\t\t}\n\t\t\tif (this.querys[0].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[0])\n\t\t\t}\n\t\t\tif (this.querys[1].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[1])\n\t\t\t}\n\t\t\tif (this.querys[2].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[2])\n\t\t\t}\n\t\t\tif (this.querys[3].value) {\n\t\t\t\tthis.queryParam.querys.push(this.querys[3])\n\t\t\t}\n\t\t\tvideoImport.getList(this.queryParam, res => {\n\t\t\t\tif (res) {\n\t\t\t\t\tthis.tableData = res.rows\n\t\t\t\t\tthis.tableData.forEach(item => {\n\t\t\t\t\t\tthis.fbztList.forEach(val => {\n\t\t\t\t\t\t\tif (item.status == val.value) {\n\t\t\t\t\t\t\t\titem['statusName'] = val.name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.sxtlxList.forEach(val => {\n\t\t\t\t\t\t\tif (item.type == val.value) {\n\t\t\t\t\t\t\t\titem['typeName'] = val.name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\n\n\n\t\t\t\t\tthis.total = res.total\n\t\t\t\t\tthis.loading = false\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\t//搜索\n\t\thandleSearch() {\n\n\t\t},\n\t\t//tab切换\n\t\thandleTabsClick(tab) {\n\t\t\tthis.querys[0].value = this.activeName\n\t\t\tthis.uploadData.platform = this.activeName\n\t\t\tthis.loadData(1)\n\t\t},\n\t\tselectable(row, index) {\n\t\t\tif (row.status != 1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t},\n\t\t//下架\n\t\thandleUnPublish(val) {\n\t\t\tconst formData = new FormData()\n\t\t\tconst config = {\n\t\t\t\theaders: {\n\t\t\t\t\t'Content-Type': 'multipart/form-data'\n\t\t\t\t}\n\t\t\t}\n\t\t\tformData.append('ids', val.id)\n\t\t\tthis.$http.post(window.context.portal + `/biz/catalog/videoImport/v1/unPublishPoint`, formData, config)\n\t\t\t\t.then(res => {\n\t\t\t\t\tif (res.data.state) {\n\t\t\t\t\t\tthis.$message.success(`下架成功`)\n\t\t\t\t\t\tthis.loadData(1)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t},\n\t\t//打开弹框\n\t\topenPublish(val, data) {\n\t\t\tthis.selectList = []\n\t\t\tif (val == 'single') {\n\t\t\t\tthis.selectList.push(data.id)\n\t\t\t} else {\n\t\t\t\tthis.selectList = this.multipleSelection\n\t\t\t}\n\t\t\tthis.dialogVisible = true\n\t\t},\n\t\thandleClose() {\n\t\t\tthis.dialogVisible = false\n\t\t\tthis.selectList = []\n\t\t\tthis.regionValue = []\n\t\t},\n\t\t//确认发布\n\t\thandlePublish() {\n\t\t\tif (this.regionValue.length == 0) {\n\t\t\t\tthis.$message.warning('请选择区域')\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.dialogLoading = true\n\t\t\tlet zoneCode = JSON.parse(JSON.stringify(this.regionValue))\n\t\t\tconst config = {\n\t\t\t\theaders: {\n\t\t\t\t\t'Content-Type': 'multipart/form-data'\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst formData = new FormData()\n\t\t\tformData.append('ids', this.selectList ? this.selectList.join(',') : '')\n\t\t\tformData.append('zoneCode', zoneCode ? zoneCode.pop() : '')\n\t\t\tformData.append('type', this.radio ? this.radio : '')\n\t\t\tthis.$http.post(window.context.portal + `/biz/catalog/videoImport/v1/publishPoint`, formData, config).then(\n\t\t\t\tres => {\n\t\t\t\t\tif (res.data.state) {\n\t\t\t\t\t\tthis.$message.success(`发布成功`)\n\t\t\t\t\t\tthis.handleClose()\n\t\t\t\t\t\tthis.loadData(1)\n\t\t\t\t\t}\n\t\t\t\t\tthis.dialogLoading = false\n\t\t\t\t})\n\t\t},\n\t\tgetTreeAll() {\n\t\t\tvideoImport.getTree({}, res => {\n\t\t\t\tif (res.state) {\n\t\t\t\t\tthis.regionList = res.value\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\t}\n}\n",null]}