From eeded064a2c23183d0d34926e1c1cf69a3d412ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=86=E4=B9=90?= <342503599@qq.com> Date: Wed, 14 Sep 2022 15:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=95=99=E8=82=B2(=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=AF=BE=E7=A8=8B)=EF=BC=9A=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=9B=9E=E6=98=BEbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../safetyEducation/addCourse.vue | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/views/projectFront/safetyEducation/addCourse.vue b/src/views/projectFront/safetyEducation/addCourse.vue index d6966f75..27203c0b 100644 --- a/src/views/projectFront/safetyEducation/addCourse.vue +++ b/src/views/projectFront/safetyEducation/addCourse.vue @@ -31,7 +31,7 @@ - - - + {{ $t('message.safetyEducation.clickUpload') }} @@ -399,7 +399,9 @@ export default { mounted(){ // console.log(process.env.NODE_ENV) - this.ruleForm.classifyId=parseInt(this.classifyId) + if(this.classifyId != ''){ + this.ruleForm.classifyId=parseInt(this.classifyId) + } this.styleType = this.$store.state.userInfo.styleType console.log(this.styleType) if(this.eduId==''){ @@ -415,6 +417,16 @@ export default { } }, + // watch:{ + // 'ruleForm.classifyId':{ + // handler(newVal,oldVal){ + // if(newVal!=oldVal){ + // this.getClassifyList() + // } + // }, + // deep:true, + // } + // }, methods: { //生成二维码 createQRcode(index){ @@ -624,6 +636,12 @@ export default { getClassifyList() { educationClassifyListApi({sn: this.ruleForm.projectSn}).then(result => { this.classifyList = result.result; + // console.log('this.classifyList',this.classifyList) + // this.classifyList.find((item)=>{ + // if(this.classifyId == item.id){ + // this.ruleForm.classifyId = item.classifyName + // } + // }) }) }, handleSizeChange(value) {