新增类型问题修复

This commit is contained in:
骆乐 2022-09-29 13:42:01 +08:00
parent 08c3e42165
commit 5a9d0f4059
3 changed files with 23 additions and 24 deletions

View File

@ -45,8 +45,8 @@ export default new Vuex.Store({
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试
// FILEURL:'http://10.0.1.43:6023/image/',//测试
BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', //
UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
// UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
// FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
/* 2022-05-16 */
// tag: 部署河南项目时,需要打开这两行代码
// UPLOADURL: 'http://124.71.178.44:100/upload/image',
@ -56,8 +56,8 @@ export default new Vuex.Store({
// UPLOADURL: 'http://182.90.224.237:7000/upload/image',
// FILEURL: 'http://182.90.224.237:7000/image/',
// 邱平毅的
// UPLOADURL: 'http://192.168.34.216:6023/upload/image',
// FILEURL: 'http://192.168.34.216:6023/image/',
UPLOADURL: 'http://192.168.34.216:6023/upload/image',
FILEURL: 'http://192.168.34.216:6023/image/',
// UPLOADURL:'http://'+"61.190.32.219:9050"+'/upload/image',//正式
// FILEURL:'http://'+"61.190.32.219:9050"+'/image/',//正式

View File

@ -30,10 +30,10 @@
</el-select>
</el-form-item>
<!-- 课程分类 -->
<el-form-item :label="$t('message.safetyEducation.courseClass')" prop="classifyId">
<el-form-item :label="$t('message.safetyEducation.courseClass')" prop="classifyName">
<el-select :disabled="classifyId!=''"
style="width: 100%"
v-model="ruleForm.classifyId"
v-model="ruleForm.classifyName"
:placeholder="$t('message.safetyEducation.pleaseEnter')"
>
<el-option
@ -331,7 +331,8 @@ export default {
questionList: [],
totalScore: "",
videoType: 1,
classifyId:''
classifyId:'',
classifyName:""
},
indexList: [
"A",
@ -396,7 +397,7 @@ export default {
//
{ required: true, message: this.$t('message.safetyEducation.rulesA2'), trigger: "change" },
],
classifyId:[
classifyName:[
//
{ required: true, message: this.$t('message.safetyEducation.rulesA3'), trigger: "change" }
],
@ -427,9 +428,10 @@ export default {
};
},
mounted(){
// console.log(process.env.NODE_ENV)
if(this.classifyId != ''){
this.ruleForm.classifyName= this.$route.query.name
console.log('=====',this.ruleForm.classifyName)
this.ruleForm.classifyId=parseInt(this.classifyId)
}
this.styleType = this.$store.state.userInfo.styleType
@ -457,14 +459,14 @@ export default {
// deep:true,
// }
// },
watch:{
'radio1':{
handler(newVal,oldVal){
console.log(newVal,oldVal)
},
immediate:true,
}
},
// watch:{
// 'radio1':{
// handler(newVal,oldVal){
// console.log(newVal,oldVal)
// },
// immediate:true,
// }
// },
methods: {
//
createQRcode(index){
@ -511,6 +513,7 @@ export default {
getDetailData(){
safeEducationQuestionDetailApi({eduId:this.eduId}).then(res=>{
this.ruleForm=res.result.safeEducation
this.ruleForm.classifyName = this.$route.query.name
})
},
addOptions() {
@ -525,7 +528,7 @@ export default {
editBefore(data,index){
this.qusTitle = "编辑试题"
this.dialogVisible=true
console.log('编辑回显的信息',data)
// console.log('',data)
this.$nextTick(()=>{
this.addEditForm=JSON.parse(JSON.stringify(data))
var optionList=data.optionList
@ -696,13 +699,8 @@ export default {
//
getClassifyList() {
educationClassifyListApi({sn: this.ruleForm.projectSn}).then(result => {
console.log('获取课程分类',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) {

View File

@ -239,6 +239,7 @@ export default {
},
editBefore(item) {
this.itemId = item.id;
console.log('展示')
this.pageType = "detail";
},
deleteBefore(item) {