安全教育(项目课程):新增课程回显bug修复
This commit is contained in:
parent
7753fbaeb0
commit
eeded064a2
@ -31,7 +31,7 @@
|
||||
</el-form-item>
|
||||
<!-- 课程分类 -->
|
||||
<el-form-item :label="$t('message.safetyEducation.courseClass')" prop="classifyId">
|
||||
<el-select :disabled="eduId!=''"
|
||||
<el-select :disabled="classifyId!=''"
|
||||
style="width: 100%"
|
||||
v-model="ruleForm.classifyId"
|
||||
:placeholder="$t('message.safetyEducation.pleaseEnter')"
|
||||
@ -48,12 +48,12 @@
|
||||
<!-- 课程视频 -->
|
||||
<el-form-item :label="$t('message.safetyEducation.courseVideo')" prop="eduVideo">
|
||||
<!-- <el-input v-model="ruleForm.eduVideo"></el-input> -->
|
||||
<el-upload :disabled="eduId!=''"
|
||||
<el-upload :disabled="eduVideo!=''"
|
||||
class="upload-demo" name="files"
|
||||
:action="$store.state.UPLOADURL"
|
||||
:on-success="handleSuccess"
|
||||
:show-file-list="false" accept="video/mp4">
|
||||
<el-button size="small" type="primary" v-show="eduId==''">
|
||||
<el-button size="small" type="primary" v-show="eduVideo==''">
|
||||
<!-- 点击上传 -->
|
||||
{{ $t('message.safetyEducation.clickUpload') }}
|
||||
</el-button>
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user