From ad7e2ab8877314025dc046671883ad98ba10653e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 22 Aug 2023 16:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E7=BB=9C=E7=94=9F=E6=80=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=AE=8C=E6=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/zongzhi/st.js | 24 ++++++++++ src/store/modules/dict.js | 2 +- .../components/componentLeft.vue | 43 +++++++++++++---- .../components/componentRight.vue | 48 +++++++++++++------ 4 files changed, 92 insertions(+), 25 deletions(-) diff --git a/src/api/zongzhi/st.js b/src/api/zongzhi/st.js index 7a65041..972e3ff 100644 --- a/src/api/zongzhi/st.js +++ b/src/api/zongzhi/st.js @@ -245,3 +245,27 @@ export function managescreen() { method: "get", }); } + + +// 网评文章录用情况; +export function networkArticles() { + return request({ + url: "/zongzhi/network/articles", + method: "get", + }); +} + +//网评员任务完成率(月) +export function networkAppraisercomplete() { + return request({ + url: "/zongzhi/network/appraisercomplete", + method: "get", + }); +} + +export function networkAppraiser() { + return request({ + url: "/zongzhi/network/appraiser", + method: "get", + }); +} \ No newline at end of file diff --git a/src/store/modules/dict.js b/src/store/modules/dict.js index b5b815b..4f6f7c7 100644 --- a/src/store/modules/dict.js +++ b/src/store/modules/dict.js @@ -25,7 +25,7 @@ const dict = { getDictType({ commit }) { return new Promise((resolve, reject) => { const query = { - list: "sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type,tc_net_safety_level,tc_yes_no,tc_unit_type,tc_tmt_type,tc_db_steam_state,tc_attack_type,tc_yh_level,tc_yh_source,tc_yq_type,tc_event_type,tc_cy_type,tc_yq_state,tc_steam_state", + list: "sys_user_sex,tc_net_sx,tc_yq_media,tc_enter_type,tc_inlet_yewu,tc_item_type,tc_net_safety_level,tc_yes_no,tc_unit_type,tc_tmt_type,tc_db_steam_state,tc_attack_type,tc_yh_level,tc_yh_source,tc_yq_type,tc_event_type,tc_cy_type,tc_yq_state,tc_steam_state,tc_wz_type", }; getDictList(query) .then((res) => { diff --git a/src/views/privateOrder/positiveEnergy/components/componentLeft.vue b/src/views/privateOrder/positiveEnergy/components/componentLeft.vue index cc4acef..2a23641 100644 --- a/src/views/privateOrder/positiveEnergy/components/componentLeft.vue +++ b/src/views/privateOrder/positiveEnergy/components/componentLeft.vue @@ -55,7 +55,7 @@
本级录用
{{ - 59 + articleType['本级录用'] }}
@@ -68,7 +68,7 @@
{{ 45 }} + >{{ articleType['苏州级录用'] }}
@@ -80,13 +80,14 @@
省级及以上录用
{{ - 1 + articleType['省级及以上录用'] }}
- + - {{ item.articleTitle }} + {{ item.articleTitle }} + + // import { getReviewArticle } from '@/api/common' -import { listSafetyadmin, listCommentator, listPingtai, listNetSafetyZcUnit, listPrincipal, listVolunteer, listArticle } from '@/api/zongzhi/st.js' +import { listSafetyadmin, listCommentator, listPingtai, listNetSafetyZcUnit, listPrincipal, listVolunteer, listArticle ,networkArticles} from '@/api/zongzhi/st.js' import vueSeamlessScroll from 'vue-seamless-scroll' window.JSZip = require('jszip') @@ -222,6 +224,11 @@ export default { }, data() { return { + articleType:{ + "本级录用":0, + "苏州级录用":0, + "省级及以上录用":0 + }, currentTitle: '', tableList: [], tableKey: [], @@ -384,6 +391,7 @@ export default { }, watch: {}, created() { + // getReviewArticle().then((res) => { // if (res['T_big_screen_review_article[]'].length > 0) { // this.dataList = [] @@ -404,10 +412,26 @@ export default { this.clearChange() }, mounted() { + this.getNetworkArticles() this.getWz() this.automaticChange(2) }, methods: { + /** + * 录用情况 + */ + getNetworkArticles(){ + networkArticles().then(res=>{ + for(let key in this.articleType){ + res.data.forEach(item=>{ + if(this.$filterDict('tc_wz_type',item.type) == key){ + this.articleType[key] = item.count + } + }) + } + + }) + }, /** 重置 */ reset() { this.tableList = [] @@ -623,8 +647,9 @@ export default { this.currentPage = val this.setCurrentPageData() }, - rowClick(row) { - // this.dialogTitle = row.labe + rowClick(e) { + let row = JSON.parse(e.target.dataset.item) + this.dialogTitle = row.articleTitle this.href = row.url this.pageDetails = true // this.dialogTitle = row.label diff --git a/src/views/privateOrder/positiveEnergy/components/componentRight.vue b/src/views/privateOrder/positiveEnergy/components/componentRight.vue index 213017e..319273a 100644 --- a/src/views/privateOrder/positiveEnergy/components/componentRight.vue +++ b/src/views/privateOrder/positiveEnergy/components/componentRight.vue @@ -26,14 +26,14 @@ /> 本级网评指令比例 - {{ ((bjNum / (sjNum + bjNum)) * 100) | numFilter }}% + {{ sjNum }}%
@@ -45,14 +45,14 @@ /> 上级网评指令比例 - {{ ((sjNum / (sjNum + bjNum)) * 100) | numFilter }}% + {{ bjNum}}%
@@ -70,6 +70,7 @@