update code

prv
haha 2024-01-21 21:33:26 +08:00
parent bea8384839
commit 78b2ba8750
2 changed files with 7 additions and 7 deletions

View File

@ -72,7 +72,7 @@
</module-one-3-1> </module-one-3-1>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<module-one-1-1 :label="'专项培训('+WorkTrainCnt1+')'" style="position: relative;"> <module-one-1-1 :label="'教育培训('+WorkTrainCnt1+')'" style="position: relative;">
<img src="images/icon2001.png" <img src="images/icon2001.png"
style="position: absolute;cursor: pointer;right: 20px;top: 13px;z-index: 9;" style="position: absolute;cursor: pointer;right: 20px;top: 13px;z-index: 9;"
@click="doShowWorkTrain(0)"> @click="doShowWorkTrain(0)">
@ -344,7 +344,7 @@ export default {
//2 //2
WorkTrainCnt2:0, WorkTrainCnt2:0,
WorkTrainChart2:[], WorkTrainChart2:[],
// //
workTrainList: [], workTrainList: [],
// //
emergencyDrillList: [], emergencyDrillList: [],
@ -492,7 +492,7 @@ export default {
}, },
doShowDlgTrain(it, type) { doShowDlgTrain(it, type) {
if (type == "0") { if (type == "0") {
it.title = "专项培训"; it.title = "教育培训";
it.typeTitle = "培训"; it.typeTitle = "培训";
} else { } else {
it.title = "应急演练"; it.title = "应急演练";
@ -595,13 +595,13 @@ export default {
this.$refs.chart4.init(opt2); this.$refs.chart4.init(opt2);
}); });
}, },
// //
getWorkTrainList() { getWorkTrainList() {
this.$api.workTrain.getWorkTrainList(0, this.dept?.id||0,this.projectInfo?.id||0).then(d => { this.$api.workTrain.getWorkTrainList(0, this.dept?.id||0,this.projectInfo?.id||0).then(d => {
this.workTrainList = d.rows; this.workTrainList = d.rows;
}); });
}, },
// //
getEmergencyDrillList() { getEmergencyDrillList() {
this.$api.workTrain.getWorkTrainList(1, this.dept?.id||0,this.projectInfo?.id||0).then(d => { this.$api.workTrain.getWorkTrainList(1, this.dept?.id||0,this.projectInfo?.id||0).then(d => {
this.emergencyDrillList = d.rows; this.emergencyDrillList = d.rows;

View File

@ -1,6 +1,6 @@
<template> <template>
<MyDialog v-if="show" v-model="show" width="1600px" height="740px" class="work-train-dialog"> <MyDialog v-if="show" v-model="show" width="1600px" height="740px" class="work-train-dialog">
<template slot="title">{{ trainType == 0 ? '专项培训' : '应急演练' }}{{ prjName ? ' - ' + prjName : '' }}</template> <template slot="title">{{ trainType == 0 ? '教育培训' : '应急演练' }}{{ prjName ? ' - ' + prjName : '' }}</template>
<div class="head-title-tab" style="padding: 10px 0px;max-width: unset;"> <div class="head-title-tab" style="padding: 10px 0px;max-width: unset;">
<div v-for="(it, idx) in dicts" :key="idx" :class="nav == it.dictValue ? 'head-nav active' : 'head-nav'" @click="doNav(it.dictValue)" <div v-for="(it, idx) in dicts" :key="idx" :class="nav == it.dictValue ? 'head-nav active' : 'head-nav'" @click="doNav(it.dictValue)"
>{{ it.dictLabel }}</div> >{{ it.dictLabel }}</div>
@ -75,7 +75,7 @@ export default {
methods: { methods: {
doShowDlgTrain(it) { doShowDlgTrain(it) {
if (this.trainType == 0) { if (this.trainType == 0) {
it.title = "专项培训"; it.title = "教育培训";
it.typeTitle = "培训"; it.typeTitle = "培训";
} else { } else {
it.title = "应急演练"; it.title = "应急演练";