{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/homeToAlert.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/homeToAlert.vue","mtime":1725957645724},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["\nexport default {\n data() {\n return {\n cockPitListArr: [],\n DialogVisible: false,\n loading: false,\n title: \"\",\n url: `/static/portal/vue/index.html#/open?appId=__BW3MQkflZe4tN0xxpJZ&actionContent=____nOUaNbEmDDW5viPtO9d&opentarget=detail&linkType=00&realformId=__nOUaNbEmDDW5viPtO9d&docid=${this.docid}`, //跳转\n };\n },\n mounted() {\n this.toAlertList();\n },\n methods: {\n listdetailli(its) {\n if (its.item_url) {\n if (its.item_url.indexOf(\"http\") > -1) {\n window.open(its.item_url);\n return;\n }\n this.DialogVisible = true;\n this.title = its.item_title;\n this.url = its.item_url;\n }\n },\n toAlertList() {\n let data = {\n name: \"工作台\",\n type: 2,\n };\n this.$api.v3CockPitListApi(data, {\n onSucess: (response) => {\n console.log(response.data);\n if (response.data.code == 0) {\n this.cockPitListArr = response.data.data;\n console.log(this.cockPitListArr);\n if (response.data.data.length) {\n console.log(response.data.data);\n response.data.data.forEach((item) => {\n if (item.children.length) {\n item.children.forEach((its) => {\n console.log(its);\n switch (its.item_priority) {\n case \"紧急\":\n this.$set(its, \"libgcolor\", 1);\n break;\n case \"高\":\n this.$set(its, \"libgcolor\", 2);\n break;\n case \"中\":\n this.$set(its, \"libgcolor\", 3);\n break;\n case \"低\":\n this.$set(its, \"libgcolor\", 4);\n break;\n default:\n this.$set(its, \"libgcolor\", 4);\n }\n let dateli = {\n id: its.id,\n };\n this.$api.v3CockPitChildId(dateli, {\n onSucess: (res) => {\n console.log(res.data.data.title);\n if (res.data.code == 0) {\n let sum = res.data.data && res.data.data.data[0].sum;\n this.cockPitListArr.forEach((ims) => {\n if (ims.children.length) {\n ims.children.forEach((iks) => {\n if (iks.item_title == res.data.data.title) {\n this.$set(iks, \"count\", sum);\n this.$set(\n iks,\n \"isshow\",\n res.data.data.isshow\n );\n this.$forceUpdate();\n }\n });\n }\n });\n console.log(this.cockPitListArr);\n }\n },\n });\n });\n }\n });\n }\n }\n },\n });\n },\n },\n};\n",null]}