网络生态修复完毕

lijinlong
许宏杰 1 year ago
parent 9970590151
commit ad7e2ab887

@ -245,3 +245,27 @@ export function managescreen() {
method: "get", 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",
});
}

@ -25,7 +25,7 @@ const dict = {
getDictType({ commit }) { getDictType({ commit }) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const query = { 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) getDictList(query)
.then((res) => { .then((res) => {

@ -55,7 +55,7 @@
<div class="employ-text">本级录用</div> <div class="employ-text">本级录用</div>
<div class="employ-num"> <div class="employ-num">
<span :class="status === 1 ? 'numchecked' : 'numunchecked'">{{ <span :class="status === 1 ? 'numchecked' : 'numunchecked'">{{
59 articleType['本级录用']
}}</span> }}</span>
<span></span> <span></span>
</div> </div>
@ -68,7 +68,7 @@
<div class="employ-num"> <div class="employ-num">
<span <span
:class="status === 2 ? 'numchecked' : 'numunchecked'" :class="status === 2 ? 'numchecked' : 'numunchecked'"
>{{ 45 }} >{{ articleType['苏州级录用'] }}
</span> </span>
<span></span> <span></span>
</div> </div>
@ -80,12 +80,13 @@
<div class="employ-text">省级及以上录用</div> <div class="employ-text">省级及以上录用</div>
<div class="employ-num"> <div class="employ-num">
<span :class="status === 3 ? 'numchecked' : 'numunchecked'">{{ <span :class="status === 3 ? 'numchecked' : 'numunchecked'">{{
1 articleType['省级及以上录用']
}}</span> }}</span>
<span></span> <span></span>
</div> </div>
</div> </div>
</div> </div>
<div @click="rowClick($event)">
<vue-seamless-scroll <vue-seamless-scroll
:data="dataList" :data="dataList"
class="employ-table" class="employ-table"
@ -95,12 +96,13 @@
v-for="(item, idx) in dataList" v-for="(item, idx) in dataList"
:key="idx" :key="idx"
class="text" class="text"
@click="rowClick(item)"
> >
<span class="text-inner" :title="item.label">{{ item.articleTitle }}</span> <span class="text-inner" :data-item="JSON.stringify(item)">{{ item.articleTitle }}</span>
</div> </div>
</vue-seamless-scroll> </vue-seamless-scroll>
</div> </div>
</div>
<!-- 网络力量弹框 --> <!-- 网络力量弹框 -->
<el-dialog <el-dialog
v-if="centerDialogVisible" v-if="centerDialogVisible"
@ -212,7 +214,7 @@
<script> <script>
// import { getReviewArticle } from '@/api/common' // 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' import vueSeamlessScroll from 'vue-seamless-scroll'
window.JSZip = require('jszip') window.JSZip = require('jszip')
@ -222,6 +224,11 @@ export default {
}, },
data() { data() {
return { return {
articleType:{
"本级录用":0,
"苏州级录用":0,
"省级及以上录用":0
},
currentTitle: '', currentTitle: '',
tableList: [], tableList: [],
tableKey: [], tableKey: [],
@ -384,6 +391,7 @@ export default {
}, },
watch: {}, watch: {},
created() { created() {
// getReviewArticle().then((res) => { // getReviewArticle().then((res) => {
// if (res['T_big_screen_review_article[]'].length > 0) { // if (res['T_big_screen_review_article[]'].length > 0) {
// this.dataList = [] // this.dataList = []
@ -404,10 +412,26 @@ export default {
this.clearChange() this.clearChange()
}, },
mounted() { mounted() {
this.getNetworkArticles()
this.getWz() this.getWz()
this.automaticChange(2) this.automaticChange(2)
}, },
methods: { 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() { reset() {
this.tableList = [] this.tableList = []
@ -623,8 +647,9 @@ export default {
this.currentPage = val this.currentPage = val
this.setCurrentPageData() this.setCurrentPageData()
}, },
rowClick(row) { rowClick(e) {
// this.dialogTitle = row.labe let row = JSON.parse(e.target.dataset.item)
this.dialogTitle = row.articleTitle
this.href = row.url this.href = row.url
this.pageDetails = true this.pageDetails = true
// this.dialogTitle = row.label // this.dialogTitle = row.label

@ -26,14 +26,14 @@
/> />
<span>本级网评指令比例 </span> <span>本级网评指令比例 </span>
<span style="margin-left: 20px; color: #71e8fb"> <span style="margin-left: 20px; color: #71e8fb">
{{ ((bjNum / (sjNum + bjNum)) * 100) | numFilter }}% {{ sjNum }}%
</span> </span>
<div class="progress"> <div class="progress">
<div <div
:style="{ :style="{
backgroundColor: '#71e8fb', backgroundColor: '#71e8fb',
height: 9, height: 9,
width: (bjNum / (sjNum + bjNum)) * 100 + '%', width: sjNum+'%',
}" }"
></div> ></div>
</div> </div>
@ -45,14 +45,14 @@
/> />
<span>上级网评指令比例</span> <span>上级网评指令比例</span>
<span style="margin-left: 20px; color: #79ffd0"> <span style="margin-left: 20px; color: #79ffd0">
{{ ((sjNum / (sjNum + bjNum)) * 100) | numFilter }}% {{ bjNum}}%
</span> </span>
<div class="progress"> <div class="progress">
<div <div
:style="{ :style="{
backgroundColor: '#79ffd0', backgroundColor: '#79ffd0',
height: 9, height: 9,
width: (sjNum / (sjNum + bjNum)) * 100 + '%', width: bjNum+'%',
}" }"
></div> ></div>
</div> </div>
@ -70,6 +70,7 @@
<script> <script>
import { getComplete } from '@/api/common' import { getComplete } from '@/api/common'
import { networkAppraisercomplete ,networkAppraiser} from '@/api/zongzhi/st.js'
export default { export default {
components: {}, components: {},
filters: { filters: {
@ -80,11 +81,11 @@ export default {
}, },
data() { data() {
return { return {
sjNum: 19.8, sjNum: 0,
bjNum: 80.2, bjNum: 0,
percentageList: null, percentageList: null,
percentageName: null, percentageName: [],
percentageValue: null, percentageValue: [],
sjdata: null, sjdata: null,
bjdata: null bjdata: null
} }
@ -98,16 +99,33 @@ export default {
destroyed() { }, destroyed() { },
mounted() { mounted() {
this.getpercentageData() this.getpercentageData()
this.getNetworkAppraiser()
// this.sjdata = Math.round(this.sjNum)
// this.bjdata = Math.round(this.bjNum)
// this.inItCylinder()
},
methods: {
getNetworkAppraiser(){
networkAppraiser().then(res=>{
this.sjNum = res.data[0].pt
this.bjNum = res.data[1].pt
this.sjdata = Math.round(this.sjNum) this.sjdata = Math.round(this.sjNum)
this.bjdata = Math.round(this.bjNum) this.bjdata = Math.round(this.bjNum)
this.inItCylinder() this.inItCylinder()
})
}, },
methods: {
// data // data
getpercentageData() { getpercentageData() {
this.percentageName = ['陆渡街道', '港区', '浮桥镇', '编办', '老干部局', '党校', '档案馆'] networkAppraisercomplete().then(res=>{
this.percentageValue = [80, 90, 60, 90, 90, 70, 50] res.data.forEach(item=>{
this.percentageName.push(item.name)
this.percentageValue.push(item.pt)
this.inItBar() this.inItBar()
})
})
// this.percentageName = ['', '', '', '', '', '', '']
// this.percentageValue = [80, 90, 60, 90, 90, 70, 50]
// this.inItBar()
// getComplete().then((res) => { // getComplete().then((res) => {
// this.percentageName = res['T_DEPT_COMPLETE[]'].map(e => { // this.percentageName = res['T_DEPT_COMPLETE[]'].map(e => {
// return e.dept_name // return e.dept_name
@ -137,7 +155,7 @@ export default {
}, },
xAxis: { xAxis: {
data: ['陆渡街道', '港区', '浮桥镇', '编办', '老干部局', '党校', '档案馆'], data:this.percentageName,
axisLine: { axisLine: {
show: true, // X线 show: true, // X线
lineStyle: { lineStyle: {

Loading…
Cancel
Save