安全教育(项目课程):新增课程回显bug修复
This commit is contained in:
parent
7753fbaeb0
commit
eeded064a2
@ -31,7 +31,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 课程分类 -->
|
<!-- 课程分类 -->
|
||||||
<el-form-item :label="$t('message.safetyEducation.courseClass')" prop="classifyId">
|
<el-form-item :label="$t('message.safetyEducation.courseClass')" prop="classifyId">
|
||||||
<el-select :disabled="eduId!=''"
|
<el-select :disabled="classifyId!=''"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-model="ruleForm.classifyId"
|
v-model="ruleForm.classifyId"
|
||||||
:placeholder="$t('message.safetyEducation.pleaseEnter')"
|
:placeholder="$t('message.safetyEducation.pleaseEnter')"
|
||||||
@ -48,12 +48,12 @@
|
|||||||
<!-- 课程视频 -->
|
<!-- 课程视频 -->
|
||||||
<el-form-item :label="$t('message.safetyEducation.courseVideo')" prop="eduVideo">
|
<el-form-item :label="$t('message.safetyEducation.courseVideo')" prop="eduVideo">
|
||||||
<!-- <el-input v-model="ruleForm.eduVideo"></el-input> -->
|
<!-- <el-input v-model="ruleForm.eduVideo"></el-input> -->
|
||||||
<el-upload :disabled="eduId!=''"
|
<el-upload :disabled="eduVideo!=''"
|
||||||
class="upload-demo" name="files"
|
class="upload-demo" name="files"
|
||||||
:action="$store.state.UPLOADURL"
|
:action="$store.state.UPLOADURL"
|
||||||
:on-success="handleSuccess"
|
:on-success="handleSuccess"
|
||||||
:show-file-list="false" accept="video/mp4">
|
: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') }}
|
{{ $t('message.safetyEducation.clickUpload') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
@ -399,7 +399,9 @@ export default {
|
|||||||
mounted(){
|
mounted(){
|
||||||
|
|
||||||
// console.log(process.env.NODE_ENV)
|
// 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
|
this.styleType = this.$store.state.userInfo.styleType
|
||||||
console.log(this.styleType)
|
console.log(this.styleType)
|
||||||
if(this.eduId==''){
|
if(this.eduId==''){
|
||||||
@ -415,6 +417,16 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// watch:{
|
||||||
|
// 'ruleForm.classifyId':{
|
||||||
|
// handler(newVal,oldVal){
|
||||||
|
// if(newVal!=oldVal){
|
||||||
|
// this.getClassifyList()
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// deep:true,
|
||||||
|
// }
|
||||||
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
//生成二维码
|
//生成二维码
|
||||||
createQRcode(index){
|
createQRcode(index){
|
||||||
@ -624,6 +636,12 @@ export default {
|
|||||||
getClassifyList() {
|
getClassifyList() {
|
||||||
educationClassifyListApi({sn: this.ruleForm.projectSn}).then(result => {
|
educationClassifyListApi({sn: this.ruleForm.projectSn}).then(result => {
|
||||||
this.classifyList = result.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) {
|
handleSizeChange(value) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user