index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. <template>
  2. <dv-full-screen-container>
  3. <el-scrollbar class="screen" ref="scrollDiv" >
  4. <!-- :style="{height:height}" -->
  5. <div class="statistics">
  6. <div class="editDate">
  7. <!-- 标题装饰组件 -->
  8. <header-decoration />
  9. <!-- <div class="stitle">实验室管理看板</div> -->
  10. <div class="block" style="display:none">
  11. <span class="demonstration">开始:</span>
  12. <el-date-picker v-model="BeginDate" type="year" size="mini" value-format="yyyy" format="yyyy年" style="width: 96px;"
  13. :clearable="false" @change="checkYear(BeginDate,'begin')" placeholder="选择日期">
  14. </el-date-picker>
  15. </div>
  16. <!-- <div class="block"> -->
  17. <!-- <span class="demonstration">查询年度:</span> -->
  18. <!-- <el-date-picker v-model="endDate" type="year" size="mini" value-format="yyyy" format="yyyy年" :clearable="false" style="width: 96px;"
  19. @change="checkYear(endDate,'end')" placeholder="选择日期"> -->
  20. <!-- <el-date-picker
  21. v-model="endDate"
  22. type="year"
  23. value-format="yyyy"
  24. @change="checkYear(endDate,'end')"
  25. placeholder="选择年">
  26. </el-date-picker> -->
  27. <!-- </el-date-picker> -->
  28. <!-- </div> -->
  29. <div
  30. style="width: 12%;
  31. height:2.825rem;
  32. line-height: 2.825rem;
  33. text-align:center;
  34. float: left;
  35. margin: -3% 0 0 3%;
  36. color: #000 !important;" >
  37. <el-date-picker
  38. v-model="endDate"
  39. type="year"
  40. value-format="yyyy"
  41. @change="checkYear(endDate,'end')"
  42. placeholder="选择年">
  43. </el-date-picker>
  44. <!-- <el-button type="primary" size="mini" plain @click="selectAll">
  45. 查询
  46. </el-button> -->
  47. <!-- <el-date-picker
  48. class="chooseMonth"
  49. v-model="NowTime1"
  50. type="month"
  51. @change="changeTime1"
  52. format="yyyy-MM"
  53. value-format="yyyy-MM"
  54. placeholder="请选择时间">
  55. </el-date-picker> -->
  56. </div>
  57. <!-- <div class="block">
  58. </div> -->
  59. <!-- <div class="goBackButton" @click.prevent="goBack()" >
  60. 返回
  61. </div> -->
  62. <div
  63. @click.prevent="rollstop()"
  64. style="width: 8%;
  65. height:2.825rem;
  66. line-height: 2.825rem;
  67. text-align:center;
  68. float: right;
  69. margin: -3% 12% 0 0;"
  70. v-if="rollup">
  71. <dv-border-box-8>暂停</dv-border-box-8>
  72. </div>
  73. <div
  74. @click.prevent="rollcontinue()"
  75. style="width: 8%;
  76. height:2.825rem;
  77. line-height: 2.825rem;
  78. text-align:center;
  79. float: right;
  80. margin: -3% 12% 0 0;"
  81. v-else>
  82. <dv-border-box-8>继续</dv-border-box-8>
  83. </div>
  84. <div
  85. @click.prevent="goBack()"
  86. style="width: 8%;
  87. height:2.825rem;
  88. line-height: 2.825rem;
  89. text-align:center;
  90. float: right;
  91. margin: -3% 3% 0 0;" >
  92. <dv-border-box-8>返回</dv-border-box-8>
  93. </div>
  94. </div>
  95. <dv-border-box-7 backgroundColor="rgba(6, 30, 93, 0.5)" ><div class="ttitle">质量方针:公正、科学、准确、高效</div></dv-border-box-7>
  96. <div class="congxiebox7" style="display: flex;justify-content: space-between;padding: 1.5% 0.2%;">
  97. <div style="width:16.4%">
  98. <div class="gongshiAll">
  99. <div class="touwidth">检测任务完成率=</div>
  100. <div style="margin: 0 0.2%;">
  101. <div class="gongshiXian">完成检测项目数量</div>
  102. <div style="text-align:center;font-size:12px;padding-top: 6%;">有效检测任务总数</div>
  103. </div>
  104. <div>×100%</div>
  105. </div>
  106. <div class="mubiaozhi">当前目标值:{{quality[0].val}}</div>
  107. </div>
  108. <div style="width:21.4%">
  109. <div class="gongshiAll">
  110. <div class="touwidth">检测报告差错率=</div>
  111. <div style="margin: 0 0.2%;">
  112. <div class="gongshiXian">统计期内检测数据的差错次数</div>
  113. <div style="text-align:center;font-size:12px;padding-top: 6%;">统计期内检测报告总数</div>
  114. </div>
  115. <div>×100%</div>
  116. </div>
  117. <div class="mubiaozhi">当前目标值:{{quality[1].val}}</div>
  118. </div>
  119. <div style="width:17.4%">
  120. <div class="gongshiAll">
  121. <div class="touwidth">客户满意度=</div>
  122. <div style="margin: 0 0.2%;">
  123. <div class="gongshiXian">评分得分*有效问卷数量</div>
  124. <div style="text-align:center;font-size:12px;padding-top: 6%;">有效问卷总分</div>
  125. </div>
  126. <div>×100%</div>
  127. </div>
  128. <div class="mubiaozhi">当前目标值:{{quality[2].val}}</div>
  129. </div>
  130. <div style="width:17.4%">
  131. <div class="gongshiAll">
  132. <div class="touwidth">投诉率=</div>
  133. <div style="margin: 0 0.2%;">
  134. <div class="gongshiXian">统计期内有效投诉项目数</div>
  135. <div style="text-align:center;font-size:12px;padding-top: 6%;">统计期内检测委托总数</div>
  136. </div>
  137. <div>×100%</div>
  138. </div>
  139. <div class="mubiaozhi">当前目标值:{{quality[3].val}}</div>
  140. </div>
  141. <div style="width:27.4%">
  142. <div class="gongshiAll">
  143. <div class="touwidth">投诉回复及时率=</div>
  144. <div style="margin: 0 0.2%;">
  145. <div class="gongshiXian">统计期内投诉处理完成次数</div>
  146. <div style="text-align:center;font-size:12px;padding-top: 6%;">统计期内有效投诉总次数</div>
  147. </div>
  148. <div>×100%</div>
  149. </div>
  150. <div class="mubiaozhi">当前目标值:{{quality[4].val}}</div>
  151. </div>
  152. </div>
  153. <div class="congxiebox7" v-if="pageOT">
  154. <div class="ttitle" style="text-align: center;">质量目标统计</div>
  155. <div class="componentsData" v-if="relOf">
  156. <s1zhiLiangMuBiao :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw" :mubiao = "quality[0].val"
  157. v-if="showAll || showComponents[1]" :data = "getS1renwu()"/>
  158. <s1jianCe :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw" :mubiao = "quality[1].val"
  159. v-if="showAll || showComponents[5]" :data = "getS2jianCe()" />
  160. <s2manYiDu :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw" :mubiao = "quality[2].val"
  161. v-if="showAll || showComponents[7]" :data = "getS2manYiDu()"/>
  162. <s3tousu :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw" :mubiao = "quality[3].val"
  163. v-if="showAll || showComponents[6]" :data = "getS3tousu()"/>
  164. <s13shengWu :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw" :mubiao = "quality[4].val"
  165. v-if="showAll || showComponents[17]" :data = "getS3tousu()"/>
  166. <div class="clear"></div>
  167. </div>
  168. </div>
  169. <div class="congxiebox7" style="display:inline-block;width:49%" v-if="pageOT">
  170. <div class="ttitle" style="margin:2% 0;text-align: center;">人员培训与管理</div>
  171. <div class="componentsData" v-if="relOf">
  172. <s4renYuanPeiXun :height="'290%'" :width="static=='row' ? '50%': '100%'" :colorw = "colorw"
  173. v-if="showAll || showComponents[8]" :data = "getS4renYuanPeiXun()"/>
  174. <s5renYuanJianDu :height="'290%'" :width="static=='row' ? '50%': '100%'" :colorw = "colorw"
  175. v-if="showAll || showComponents[9]" :data = "getS5renYuanJianDu()"/>
  176. <!-- <div class="clear"></div> -->
  177. </div>
  178. </div>
  179. <div class="congxiebox7" style="display:inline-block;width:49%;float:right;" v-if="pageOT">
  180. <div class="ttitle" style="margin:2% 0;text-align: center;">设备维保</div>
  181. <div class="componentsData" v-if="relOf">
  182. <s7sheBeiJiaoZhun :height="'290%'" :width="static=='row' ? '50%': '100%'" :colorw = "colorw"
  183. v-if="showAll || showComponents[12]" :data = "getJiaoYanObjNum()"/>
  184. <s8sheBeiHeCha :height="'290%'" :width="static=='row' ? '50%': '100%'" :colorw = "colorw"
  185. v-if="showAll || showComponents[11]" :data = "gethechaObjNum()"/>
  186. <!-- <div class="clear"></div> -->
  187. </div>
  188. </div>
  189. <div class="congxiebox7" v-if="!pageOT">
  190. <div class="ttitle" style="text-align: center;">标准物质</div>
  191. <div class="componentsData" v-if="relOf">
  192. <s11biaoZhunWu :height="'290%'" :width="static=='row' ? '33%': '100%'" :colorw = "colorw"
  193. v-if="showAll || showComponents[15]" :data = "getbiaozhunObjNum()"/>
  194. <s16bzJunZhu :height="'290%'" :width="static=='row' ? '33%': '100%'" :colorw = "colorw"
  195. v-if="showAll || showComponents[20]" :data = "getbzJunZhujNum()"/>
  196. <s17bzXiBao :height="'290%'" :width="static=='row' ? '33%': '100%'" :colorw = "colorw"
  197. v-if="showAll || showComponents[21]" :data = "getbzXiBaoObjNum()"/>
  198. <div class="clear"></div>
  199. </div>
  200. </div>
  201. <div class="congxiebox7" v-if="!pageOT">
  202. <div class="ttitle" style="text-align: center;">质量管理</div>
  203. <div class="componentsData" v-if="relOf">
  204. <s9neiBuZhiLiang :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw"
  205. v-if="showAll || showComponents[13]" :data = "getS9neiBuZhiLiang()"/>
  206. <s10waiBuNengLi :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw"
  207. v-if="showAll || showComponents[14]" :data = "getnengtliObjNum()"/>
  208. <s14bufuhexiang :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw"
  209. v-if="showAll || showComponents[18]" :data = "getS14bufuhexiang()"/>
  210. <s15tousu :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw"
  211. v-if="showAll || showComponents[19]" :data = "getS3tousu()"/>
  212. <s12fengXian :height="'290%'" :width="static=='row' ? '20%': '100%'" :colorw = "colorw"
  213. v-if="showAll || showComponents[16]" :data = "getS12fengXian()"/>
  214. <div class="clear"></div>
  215. </div>
  216. </div>
  217. </div>
  218. </el-scrollbar>
  219. </dv-full-screen-container>
  220. </template>
  221. <script>
  222. //全屏展示
  223. import screenfull from 'screenfull'
  224. //大屏标题组件
  225. import headerDecoration from './headerDecoration'
  226. import s1zhiLiangMuBiao from './item/s1zhiLiangMuBiao.vue'
  227. import s1zhiLiang1 from './item/s1zhiLiang1.vue'
  228. import s1zhiLiang2 from './item/s1zhiLiang2.vue'
  229. import s1zhiLiang3 from './item/s1zhiLiang3.vue'
  230. import s1jianCe from './item/s1jianCe.vue'
  231. import s2manYiDu from './item/s2manYiDu.vue'
  232. import s3tousu from './item/s3tousu.vue'
  233. import s4renYuanPeiXun from './item/s4renYuanPeiXun.vue'
  234. import s5renYuanJianDu from './item/s5renYuanJianDu.vue'
  235. import s6sheBeiWeiHu from './item/s6sheBeiWeiHu.vue'
  236. import s7sheBeiJiaoZhun from './item/s7sheBeiJiaoZhun.vue'
  237. import s8sheBeiHeCha from './item/s8sheBeiHeCha.vue'
  238. import s9neiBuZhiLiang from './item/s9neiBuZhiLiang.vue'
  239. import s10waiBuNengLi from './item/s10waiBuNengLi.vue'
  240. import s11biaoZhunWu from './item/s11biaoZhunWu.vue'
  241. import s12fengXian from './item/s12fengXian.vue'
  242. import s13shengWu from './item/s13shengWu.vue'
  243. import s14bufuhexiang from './item/s14bufuhexiang.vue'
  244. import s15tousu from './item/s15tousu.vue'
  245. import s16bzJunZhu from './item/s16bzJunZhu.vue'
  246. import s17bzXiBao from './item/s17bzXiBao.vue'
  247. import none from './item/none.vue'
  248. import { DBData ,getConfig,getJiaoYanObj, gethechaObj, getnengliObj, getbiaozhunObj,getbiaozhunTObj,getbzJunZhuObj,getbzJunZhuTObj,getbzXiBaoObj,getbzXiBaoTObj} from './js/selectDB.js'
  249. import sendDatas from './sendDatas.js'
  250. import repostCurd from '@/business/platform/form/utils/custom/joinCURD.js'
  251. import * as forEach from 'lodash/forEach'
  252. export default {
  253. components:{
  254. headerDecoration,
  255. none,
  256. s1zhiLiang1,
  257. s1zhiLiang2,
  258. s1zhiLiang3,
  259. s1zhiLiangMuBiao,
  260. s1jianCe,
  261. s2manYiDu,
  262. s3tousu,
  263. s4renYuanPeiXun,
  264. s5renYuanJianDu,
  265. s6sheBeiWeiHu,
  266. s7sheBeiJiaoZhun,
  267. s8sheBeiHeCha,
  268. s9neiBuZhiLiang,
  269. s10waiBuNengLi,
  270. s11biaoZhunWu,
  271. s12fengXian,
  272. s13shengWu,
  273. s14bufuhexiang,
  274. s15tousu,
  275. s16bzJunZhu,
  276. s17bzXiBao
  277. },
  278. props:{
  279. shows:{ //传入的内容显示序号
  280. type: Array,
  281. default:() => []
  282. },
  283. static:{ //显示类型,默认为横向 ,作为表单统计图的外部引用为 line
  284. type: String,
  285. default:'row'
  286. }
  287. },
  288. mixins: [sendDatas],
  289. mounted() {
  290. /*以shows是否有参数来判断, 是否需要仅显示部分子组件*/
  291. if(this.shows.length>0){
  292. this.showAll=false
  293. this.isShowComponents()
  294. }
  295. /* 开始及结束时间的默认设置*/
  296. if (!this.BeginDate && !this.endDate) {
  297. this.BeginDate = this.getDate(1) + ''
  298. this.endDate = this.getDate(0) + ''
  299. this.dataScope.push(this.BeginDate)
  300. this.dataScope.push(this.endDate)
  301. }
  302. this.getConfigData() //获取统计的配置
  303. this.getqualityData()
  304. this.timer1 = setInterval(()=>{
  305. this.pageOT = !this.pageOT
  306. console.log(this.pageOT)
  307. },5000)
  308. },
  309. data() {
  310. return {
  311. height:(window.screen.height-200)+"px",
  312. BeginDate: '',
  313. endDate: '',
  314. jiaoyanObj:[],
  315. hechaObj:[],
  316. nengliObj:[],
  317. biaozhunObj:[],
  318. biaozhunTObj:[],
  319. bzJunZhuObj:[],
  320. bzJunZhuTObj:[],
  321. bzXiBaoObj:[],
  322. bzXiBaoTObj:[],
  323. relData: {},
  324. relOf: false,
  325. selectEnd: '',
  326. selectBeg: '',
  327. showAll:true,
  328. timer: '',
  329. timer1: '',
  330. showComponents:{},//显示全部统计子组件 , 若有新增,往后累计。 供动态表单进行查阅使用。
  331. dataScope: [],
  332. colorw: '#fff',
  333. pageOT: true,
  334. rollup:true,
  335. quality:[
  336. {name: '任务及时完成率' ,val: ''},
  337. {name: '检测报告差错率' ,val: ''},
  338. {name: '客户满意度' ,val: ''},
  339. {name: '投诉率' ,val: ''},
  340. {name: '投诉处理及时率' ,val: ''}
  341. ]
  342. }
  343. },
  344. beforeDestroy() {
  345. if(screenfull.isFullscreen){
  346. screenfull.toggle()
  347. }
  348. clearInterval(this.timer);
  349. },
  350. methods: {
  351. /* 判断是否统计子组件中传递过来的,是否需要隐藏。若需要则进行隐藏的遍历 */
  352. isShowComponents(){
  353. /* 将参数进行显示 */
  354. for(let i=0;i<this.shows.length;i++){
  355. this.showComponents[this.shows[i]] = true
  356. }
  357. },
  358. getqualityData() {
  359. let sql='select xiang_mu_ming_,mu_biao_zhi_ from t_zlmbz'
  360. repostCurd('sql', sql).then(response => {
  361. let a = response.variables.data //结果一定存在第0个,因为只有一条数据
  362. this.quality.forEach((t,i)=>{
  363. a.forEach(e => {
  364. if (t.name === e.xiang_mu_ming_) {
  365. t.val = e.mu_biao_zhi_
  366. }
  367. });
  368. })
  369. console.log(this.quality,'546546654gsdf')
  370. })
  371. },
  372. /* 查询统计配置中的完成率*/
  373. getConfigData() {
  374. repostCurd('sql', getConfig()).then(response => {
  375. this.config = response.variables.data //结果一定存在第0个,因为只有一条数据
  376. this.getJiaoYanObjData(this.endDate)
  377. })
  378. },
  379. getJiaoYanObjData(end) {
  380. repostCurd('sql', getJiaoYanObj(end)).then(response => {
  381. this.jiaoyanObj = response.variables.data //结果一定存在第0个,因为只有一条数据
  382. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  383. // console.log(end,this.jiaoyanObj,"nmnakak")
  384. this.gethechaObjData(this.endDate)
  385. })
  386. },
  387. gethechaObjData(end) {
  388. repostCurd('sql', gethechaObj(end)).then(response => {
  389. this.hechaObj = response.variables.data //结果一定存在第0个,因为只有一条数据
  390. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  391. this.getnengliObjData(this.endDate)
  392. })
  393. },
  394. getnengliObjData(end) {
  395. repostCurd('sql', getnengliObj(end)).then(response => {
  396. this.nengliObj = response.variables.data //结果一定存在第0个,因为只有一条数据
  397. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  398. this.getbiaozhunObjData(this.endDate)
  399. })
  400. },
  401. getbiaozhunObjData(end) {
  402. repostCurd('sql', getbiaozhunObj(end)).then(response => {
  403. this.biaozhunObj = response.variables.data //结果一定存在第0个,因为只有一条数据
  404. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  405. // console.log(this.biaozhunObj,'8888')
  406. repostCurd('sql', getbiaozhunTObj(end)).then(response => {
  407. this.biaozhunTObj = response.variables.data //结果一定存在第0个,因为只有一条数据
  408. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  409. // console.log(this.biaozhunTObj,'8888')
  410. this.getbzJunZhuObjData(this.endDate)
  411. })
  412. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  413. })
  414. },
  415. getbzJunZhuObjData(end) {
  416. repostCurd('sql', getbzJunZhuObj(end)).then(response => {
  417. this.bzJunZhuObj = response.variables.data //结果一定存在第0个,因为只有一条数据
  418. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  419. // console.log(this.biaozhunObj,'8888')
  420. repostCurd('sql', getbzJunZhuTObj(end)).then(response => {
  421. this.bzJunZhuTObj = response.variables.data //结果一定存在第0个,因为只有一条数据
  422. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  423. // console.log(this.biaozhunTObj,'8888')
  424. this.getbzXiBaoObjData(this.endDate)
  425. })
  426. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  427. })
  428. },
  429. getbzXiBaoObjData(end) {
  430. repostCurd('sql', getbzXiBaoObj(end)).then(response => {
  431. this.bzXiBaoObj = response.variables.data //结果一定存在第0个,因为只有一条数据
  432. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  433. // console.log(this.biaozhunObj,'8888')
  434. repostCurd('sql', getbzXiBaoTObj(end)).then(response => {
  435. this.bzXiBaoTObj = response.variables.data //结果一定存在第0个,因为只有一条数据
  436. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  437. // console.log(this.biaozhunTObj,'8888')
  438. this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  439. })
  440. // this.getData(this.BeginDate, this.endDate, true, this.dataScope)
  441. })
  442. },
  443. /* 通过拼接的sql进行查询全部数据*/
  444. getData(beg, end, of, scope) {
  445. // console.log(2222,DBData(beg, end, scope))
  446. repostCurd('sql', DBData(beg, end, scope)).then(response => {
  447. if(typeof response.variables.data[0] === "undefined"){
  448. this.relData = [0] //结果一定存在第0个,因为只有一条数据
  449. }else{
  450. this.relData = response.variables.data[0] //结果一定存在第0个,因为只有一条数据
  451. }
  452. this.relOf = of
  453. // console.log(beg, end, of, response,this.relData,'getdata')
  454. })
  455. },
  456. /* 查询全部*/
  457. selectAll() {
  458. /* 上次查询时间不等于当次查询时间, 开始时间不能等于结束时间, 则开始查询。*/
  459. if (this.selectEnd != this.endDate) {
  460. // if ((this.selectEnd != this.endDate || this.selectBeg != this.BeginDate) && this.endDate != this.BeginDate && this.endDate > this.BeginDate) {
  461. // this.getData(this.BeginDate, this.endDate, false, this.dataScope)
  462. this.getConfigData()
  463. this.getqualityData()
  464. // this.$forceUpdate();
  465. // this.selectEnd = this.endDate
  466. // this.selectBeg = this.BeginDate
  467. /* 延迟刷新*/
  468. // console.log('111111fffff')
  469. this.relOf = true;
  470. this.timer = setTimeout(() => {
  471. this.relOf = false
  472. clearTimeout(this.timer)
  473. }, 0)
  474. // this.timer = setInterval(() => {
  475. // if (!this.relOf) {
  476. // this.relOf = true
  477. // clearInterval(this.timer)
  478. // }
  479. // }, 100);
  480. }
  481. // else if (this.endDate == this.BeginDate) {
  482. // this.$message({
  483. // showClose: true,
  484. // message: '年份相等无法进行查询对比',
  485. // type: 'warning'
  486. // });
  487. // } else if(this.endDate < this.BeginDate){
  488. // this.$message({
  489. // showClose: true,
  490. // message: '结束时间不得小于开始时间',
  491. // type: 'warning'
  492. // });
  493. // }
  494. },
  495. /* 年份不得大于当前年份*/
  496. checkYear(year, data) {
  497. // let that = this
  498. // that.dataScope.length = 0
  499. // if(that.BeginDate != '' && that.endDate != ''){
  500. // let poor = Number(that.endDate) - Number(that.BeginDate)
  501. // for (let i = 0; i <= poor; i++) {
  502. // let element = Number(that.BeginDate) + i;
  503. // that.dataScope.push(element+'')
  504. // }
  505. // }
  506. if (Number(year) > Number(this.getDate(0))) {
  507. // console.log(data,'3y87sdvfsdf')
  508. data == 'end' ?
  509. this.endDate = this.getDate(0) + '' :
  510. this.BeginDate = this.getDate(0) + ''
  511. this.$message({
  512. showClose: true,
  513. message: '年份不得大于当前年份',
  514. type: 'warning'
  515. });
  516. }
  517. this.selectAll()
  518. // else(
  519. // this.endDate = Number(year)
  520. // )
  521. // this.$forceUpdate();
  522. },
  523. /* 获取当前年份*/
  524. getDate(year) {
  525. year = year || 0
  526. let nowDate = new Date();
  527. return nowDate.getFullYear() - year;
  528. },
  529. allView(){
  530. screenfull.request() //默认显示全屏
  531. },
  532. goBack(){
  533. this.$router.back(-1)
  534. clearInterval(this.timer1);
  535. },
  536. rollcontinue(){
  537. this.timer1 = setInterval(()=>{
  538. this.pageOT = !this.pageOT
  539. console.log(this.pageOT)
  540. },5000)
  541. this.rollup=true
  542. },
  543. rollstop(){
  544. clearInterval(this.timer1);
  545. this.rollup=false
  546. }
  547. },
  548. created() {
  549. //时间
  550. // this.currentTime()
  551. if(screenfull.isEnabled && !screenfull.isFullscreen){
  552. this.allView()
  553. }
  554. }
  555. }
  556. </script>
  557. <style lang="scss">
  558. .statistics {
  559. color: #fff;
  560. .editDate{
  561. display: contents;
  562. overflow: hidden;
  563. background-color:rgb(249, 255, 255);
  564. position: relative;
  565. }
  566. .block{
  567. float: left;
  568. font-size: 14px;
  569. }
  570. }
  571. #dv-full-screen-container {
  572. background-image: url('./img/stars.png');
  573. background-size: 100% 100%;
  574. box-shadow: 0 0 3px blue;
  575. display: flex;
  576. flex-direction: column;
  577. // background-color: #f9ffff;
  578. display: flex;
  579. flex-direction:column;
  580. align-items: stretch;
  581. // .headerContent{
  582. // flex: 1;
  583. // // background-color: rgb(99, 12, 41);
  584. // }
  585. }
  586. .el-scrollbar__wrap{
  587. overflow-x: hidden;
  588. }
  589. .goBackButton{
  590. width: 2%;
  591. position: absolute;
  592. right: 0;
  593. }
  594. #dv-border-box-8{
  595. border: none;
  596. }
  597. .stitle{
  598. text-align: center;
  599. font-size: 150%;
  600. // font-family: PingFangSC-Semibold, sans-serif;
  601. font-weight: 600;
  602. margin: 0;
  603. }
  604. .ttitle{
  605. font-size: 120%;
  606. font-weight: 600;
  607. margin: 1% 0;
  608. }
  609. .screen{
  610. height: 100%;
  611. margin: 0 0.5%;
  612. }
  613. .clear{ clear: both; }
  614. .congxiebox7{
  615. background-color: rgba(6, 30, 93, 0.5);
  616. box-shadow: rgb(128 128 128 / 30%) 0px 0px 40px inset;
  617. border: 1px solid rgba(128, 128, 128, 0.3);
  618. margin: 1% 0 0 0 ;
  619. font-size: 12px;
  620. }
  621. .gongshiAll{
  622. display: flex;
  623. align-items: center;
  624. justify-content: center;
  625. // width: 20%;
  626. .touwidth{
  627. width: 30%;
  628. text-align:right;
  629. }
  630. .gongshiXian{
  631. border-bottom: #fff solid 2px;
  632. padding-bottom: 6%;
  633. text-align:center;
  634. font-size: 12px;
  635. }
  636. }
  637. .mubiaozhi{
  638. text-align: center;
  639. margin-top: 3%;
  640. }
  641. </style>
  642. <style lang="scss">
  643. .el-year-table .today .cell {
  644. color: #606266 !important;
  645. font-weight: 100 !important;
  646. }
  647. </style>