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 @@