|
|
@@ -42,7 +42,7 @@
|
|
|
<script>
|
|
|
import screenfull from 'screenfull'
|
|
|
import curdPost from '@/business/platform/form/utils/custom/joinCURD.js'
|
|
|
- import { acceptList, colors, getRandomColor } from './data.js'
|
|
|
+ import { colors, getRandomColor } from './data.js'
|
|
|
export default {
|
|
|
name: 'checkBoard',
|
|
|
components: {
|
|
|
@@ -69,7 +69,8 @@
|
|
|
],
|
|
|
data: [],
|
|
|
rowNum: 7,
|
|
|
- columnWidth: ['350','100','100','90']
|
|
|
+ columnWidth: ['350','100','100','90'],
|
|
|
+ waitTime: 1500
|
|
|
},
|
|
|
middleCardData: {
|
|
|
acceptData:[],
|
|
|
@@ -95,15 +96,21 @@
|
|
|
this.allView()
|
|
|
}
|
|
|
|
|
|
- this.updateAll()
|
|
|
-
|
|
|
- if (this.timer){
|
|
|
- clearInterval(this.timer)
|
|
|
- }
|
|
|
-
|
|
|
- this.timer = setInterval(() => {
|
|
|
+ const sql = 'select lei_xing_ming_che from t_mjjclx'
|
|
|
+ curdPost('sql', sql).then(res => {
|
|
|
+ const { data = [] } = res.variables || {}
|
|
|
+ this.acceptList = data.map(i => i.lei_xing_ming_che)
|
|
|
this.updateAll()
|
|
|
- }, 1000 * 10)
|
|
|
+
|
|
|
+ if (this.timer){
|
|
|
+ clearInterval(this.timer)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ this.timer = setInterval(() => {
|
|
|
+ this.updateAll()
|
|
|
+ }, 1000 * 10)
|
|
|
+ })
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
if (screenfull.isFullscreen) {
|
|
|
@@ -244,11 +251,11 @@
|
|
|
getMiddleData() {
|
|
|
// 获取检测数据
|
|
|
// const sql1 = `select tm.jian_ce_xiang_mu_, tm.jian_ce_lei_bie_, IFNULL(rw.qi_wang_wan_cheng, '') as qi_wang_wan_cheng, rw.zhuang_tai_, ipe.NAME_ from t_rwfpb rw, ibps_party_employee ipe, t_mjjcnlfw tm where rw.jian_ce_yuan_ = ipe.ID_ and rw.jian_ce_xiang_mu_ = tm.id_ and rw.create_time_ like '${this.month}%'`
|
|
|
- const sql1 = `select tm.jian_ce_xiang_mu_, IFNULL(jc.jian_ce_shi_jian_, '') as startDate, IFNULL(jc.update_time_, '') as endDate, ipe.NAME_ as names from ibps_party_employee ipe, t_mjjcnlfw tm, t_jchzb jc where jc.jian_ce_yuan_ = ipe.ID_ and jc.jian_ce_xiang_mu_ = tm.id_ and jc.jian_ce_zhuang_ta = '已完成' and jc.create_time_ like '${this.month}%' order by jc.create_time_ desc`
|
|
|
+ const sql1 = `select tm.jian_ce_xiang_mu_, IFNULL(jc.jian_ce_shi_jian_, '') as startDate, IFNULL(jc.update_time_, '') as endDate, ipe.NAME_ as names from ibps_party_employee ipe, t_mjjcnlfw tm, t_jchzb jc where jc.jian_ce_yuan_ = ipe.ID_ and jc.jian_ce_xiang_mu_ = tm.id_ and jc.jian_ce_zhuang_ta = '已完成' and jc.jian_ce_shi_jian_ like '${this.month}%' order by jc.jian_ce_shi_jian_ desc`
|
|
|
// 获取检测受理类型数据
|
|
|
let sqlStr = ''
|
|
|
- acceptList.forEach((item, index) => {
|
|
|
- sqlStr += `count(tm.jian_ce_lei_bie_ = '${item}' or null) as r${index}${index === acceptList.length - 1 ? '' : ', '}`
|
|
|
+ this.acceptList.forEach((item, index) => {
|
|
|
+ sqlStr += `count(tm.jian_ce_lei_bie_ = '${item}' or null) as r${index}${index === this.acceptList.length - 1 ? '' : ', '}`
|
|
|
})
|
|
|
const sql2 = `select ${sqlStr} from t_jchzb tj, t_mjjcnlfw tm where tj.jian_ce_xiang_mu_ = tm.id_ and tj.create_time_ like '${this.month}%'`
|
|
|
// console.log(sqlStr, sql2)
|
|
|
@@ -275,10 +282,10 @@
|
|
|
|
|
|
let result = []
|
|
|
let tempRes = Object.values(data2[0])
|
|
|
- acceptList.forEach((item, index) => {
|
|
|
+ this.acceptList.forEach((item, index) => {
|
|
|
let o = {
|
|
|
name: item,
|
|
|
- value: tempRes[index]
|
|
|
+ value: tempRes[index] ? tempRes[index] : null
|
|
|
}
|
|
|
result.push(o)
|
|
|
})
|
|
|
@@ -543,6 +550,7 @@
|
|
|
background: rgba(255, 255, 255, 0);
|
|
|
border: none;
|
|
|
color: #fff;
|
|
|
+ font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
}
|