{"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\\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\\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\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { mapState } from 'vuex';\nimport { TableMixin } from '@/mixins/tableMixin';\nvar 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 name: 'ReportManagement',\n components: {},\n mixins: [TableMixin],\n data: function data() {\n return {\n loading: false,\n uploading: false,\n dialogVisible: false,\n activeName: '',\n options: [{\n label: '以选择的区域为发布标准',\n value: 1\n }, {\n label: '以导入的区域为发布标准',\n value: 2\n }],\n radio: 2,\n querys: [{\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'i.platform_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'i.name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'i.status_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'i.area_code_',\n relation: 'AND',\n value: ''\n }],\n dialogLoading: false,\n tableData: [],\n params: {},\n fbztList: [],\n sxtlxList: [],\n uploadData: {\n platform: ''\n },\n actionUrl: '',\n regionList: [],\n regionValue: [],\n selectList: [],\n treeData: [],\n region: []\n };\n },\n created: function created() {\n this.actionUrl = window.context.portal;\n this.conditions = dictUtils.getDictItemsFromCache('spdwsspt');\n this.fbztList = dictUtils.getDictItemsFromCache('fbzt');\n this.sxtlxList = dictUtils.getDictItemsFromCache('sxtlx');\n this.queryParam.pageBean.pageSize = 50;\n this.activeName = this.conditions[0].value;\n this.querys[0].value = this.activeName;\n this.uploadData.platform = this.conditions[0].value;\n this.getTreeAll();\n this.getAreaTree();\n },\n //获取token\n computed: mapState({\n header: function header(state) {\n return {\n Authorization: \"Bearer \".concat(state.login.currentUser.token)\n };\n }\n }),\n methods: {\n getAreaTree: function getAreaTree() {\n var _this = this;\n\n equipmentManage.loadAreaTree({\n id: '0'\n }, function (res) {\n _this.treeData = res.value; // this.formatData(res.rows)\n\n _this.$set(_this.treeData);\n });\n },\n handleAvatarProgress: function handleAvatarProgress() {\n this.uploading = true;\n },\n //上传成功\n handleAvatarSuccess: function handleAvatarSuccess(res, file) {\n //提示\n this.$message.success('导入成功');\n this.uploading = false;\n this.loadData(); //调用用页面查询接口,刷新数据\n },\n //上传失败\n handleAvatarError: function handleAvatarError(err, file, fileList) {\n //提示\n this.uploading = false;\n this.$message.error(err.message);\n },\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n loadData: function loadData(page) {\n var _this2 = 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.region.length > 0) {\n var value = JSON.parse(JSON.stringify(this.region));\n this.querys[3].value = value.pop();\n } else {\n this.querys[3].value = '';\n }\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 if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n if (this.querys[3].value) {\n this.queryParam.querys.push(this.querys[3]);\n }\n\n videoImport.getList(this.queryParam, function (res) {\n if (res) {\n _this2.tableData = res.rows;\n\n _this2.tableData.forEach(function (item) {\n _this2.fbztList.forEach(function (val) {\n if (item.status == val.value) {\n item['statusName'] = val.name;\n }\n });\n\n _this2.sxtlxList.forEach(function (val) {\n if (item.type == val.value) {\n item['typeName'] = val.name;\n }\n });\n });\n\n _this2.total = res.total;\n _this2.loading = false;\n }\n });\n },\n //搜索\n handleSearch: function handleSearch() {},\n //tab切换\n handleTabsClick: function handleTabsClick(tab) {\n this.querys[0].value = this.activeName;\n this.uploadData.platform = this.activeName;\n this.loadData(1);\n },\n selectable: function selectable(row, index) {\n if (row.status != 1) {\n return true;\n }\n },\n //下架\n handleUnPublish: function handleUnPublish(val) {\n var _this3 = this;\n\n var formData = new FormData();\n var config = {\n headers: {\n 'Content-Type': 'multipart/form-data'\n }\n };\n formData.append('ids', val.id);\n this.$http.post(window.context.portal + \"/biz/catalog/videoImport/v1/unPublishPoint\", formData, config).then(function (res) {\n if (res.data.state) {\n _this3.$message.success(\"\\u4E0B\\u67B6\\u6210\\u529F\");\n\n _this3.loadData(1);\n }\n });\n },\n //打开弹框\n openPublish: function openPublish(val, data) {\n this.selectList = [];\n\n if (val == 'single') {\n this.selectList.push(data.id);\n } else {\n this.selectList = this.multipleSelection;\n }\n\n this.dialogVisible = true;\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.selectList = [];\n this.regionValue = [];\n },\n //确认发布\n handlePublish: function handlePublish() {\n var _this4 = this;\n\n if (this.regionValue.length == 0) {\n this.$message.warning('请选择区域');\n return;\n }\n\n this.dialogLoading = true;\n var zoneCode = JSON.parse(JSON.stringify(this.regionValue));\n var config = {\n headers: {\n 'Content-Type': 'multipart/form-data'\n }\n };\n var formData = new FormData();\n formData.append('ids', this.selectList ? this.selectList.join(',') : '');\n formData.append('zoneCode', zoneCode ? zoneCode.pop() : '');\n formData.append('type', this.radio ? this.radio : '');\n this.$http.post(window.context.portal + \"/biz/catalog/videoImport/v1/publishPoint\", formData, config).then(function (res) {\n if (res.data.state) {\n _this4.$message.success(\"\\u53D1\\u5E03\\u6210\\u529F\");\n\n _this4.handleClose();\n\n _this4.loadData(1);\n }\n\n _this4.dialogLoading = false;\n });\n },\n getTreeAll: function getTreeAll() {\n var _this5 = this;\n\n videoImport.getTree({}, function (res) {\n if (res.state) {\n _this5.regionList = res.value;\n }\n });\n }\n }\n};",null]}