新增类型问题修复
This commit is contained in:
parent
08c3e42165
commit
5a9d0f4059
@ -45,8 +45,8 @@ export default new Vuex.Store({
|
|||||||
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试
|
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试
|
||||||
// FILEURL:'http://10.0.1.43:6023/image/',//测试
|
// FILEURL:'http://10.0.1.43:6023/image/',//测试
|
||||||
BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', //
|
BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', //
|
||||||
UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
|
// UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
|
||||||
FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
|
// FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
|
||||||
/* 2022-05-16 */
|
/* 2022-05-16 */
|
||||||
// tag: 部署河南项目时,需要打开这两行代码
|
// tag: 部署河南项目时,需要打开这两行代码
|
||||||
// UPLOADURL: 'http://124.71.178.44:100/upload/image',
|
// 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',
|
// UPLOADURL: 'http://182.90.224.237:7000/upload/image',
|
||||||
// FILEURL: 'http://182.90.224.237:7000/image/',
|
// FILEURL: 'http://182.90.224.237:7000/image/',
|
||||||
// 邱平毅的
|
// 邱平毅的
|
||||||
// UPLOADURL: 'http://192.168.34.216:6023/upload/image',
|
UPLOADURL: 'http://192.168.34.216:6023/upload/image',
|
||||||
// FILEURL: 'http://192.168.34.216:6023/image/',
|
FILEURL: 'http://192.168.34.216:6023/image/',
|
||||||
|
|
||||||
// UPLOADURL:'http://'+"61.190.32.219:9050"+'/upload/image',//正式
|
// UPLOADURL:'http://'+"61.190.32.219:9050"+'/upload/image',//正式
|
||||||
// FILEURL:'http://'+"61.190.32.219:9050"+'/image/',//正式
|
// FILEURL:'http://'+"61.190.32.219:9050"+'/image/',//正式
|
||||||
|
|||||||
@ -30,10 +30,10 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</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="classifyName">
|
||||||
<el-select :disabled="classifyId!=''"
|
<el-select :disabled="classifyId!=''"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
v-model="ruleForm.classifyId"
|
v-model="ruleForm.classifyName"
|
||||||
:placeholder="$t('message.safetyEducation.pleaseEnter')"
|
:placeholder="$t('message.safetyEducation.pleaseEnter')"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
@ -331,7 +331,8 @@ export default {
|
|||||||
questionList: [],
|
questionList: [],
|
||||||
totalScore: "",
|
totalScore: "",
|
||||||
videoType: 1,
|
videoType: 1,
|
||||||
classifyId:''
|
classifyId:'',
|
||||||
|
classifyName:""
|
||||||
},
|
},
|
||||||
indexList: [
|
indexList: [
|
||||||
"A",
|
"A",
|
||||||
@ -396,7 +397,7 @@ export default {
|
|||||||
// 请选择课程类型
|
// 请选择课程类型
|
||||||
{ required: true, message: this.$t('message.safetyEducation.rulesA2'), trigger: "change" },
|
{ required: true, message: this.$t('message.safetyEducation.rulesA2'), trigger: "change" },
|
||||||
],
|
],
|
||||||
classifyId:[
|
classifyName:[
|
||||||
// 请选择课程分类
|
// 请选择课程分类
|
||||||
{ required: true, message: this.$t('message.safetyEducation.rulesA3'), trigger: "change" }
|
{ required: true, message: this.$t('message.safetyEducation.rulesA3'), trigger: "change" }
|
||||||
],
|
],
|
||||||
@ -427,9 +428,10 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
|
|
||||||
// console.log(process.env.NODE_ENV)
|
// console.log(process.env.NODE_ENV)
|
||||||
if(this.classifyId != ''){
|
if(this.classifyId != ''){
|
||||||
|
this.ruleForm.classifyName= this.$route.query.name
|
||||||
|
console.log('=====',this.ruleForm.classifyName)
|
||||||
this.ruleForm.classifyId=parseInt(this.classifyId)
|
this.ruleForm.classifyId=parseInt(this.classifyId)
|
||||||
}
|
}
|
||||||
this.styleType = this.$store.state.userInfo.styleType
|
this.styleType = this.$store.state.userInfo.styleType
|
||||||
@ -457,14 +459,14 @@ export default {
|
|||||||
// deep:true,
|
// deep:true,
|
||||||
// }
|
// }
|
||||||
// },
|
// },
|
||||||
watch:{
|
// watch:{
|
||||||
'radio1':{
|
// 'radio1':{
|
||||||
handler(newVal,oldVal){
|
// handler(newVal,oldVal){
|
||||||
console.log(newVal,oldVal)
|
// console.log(newVal,oldVal)
|
||||||
},
|
// },
|
||||||
immediate:true,
|
// immediate:true,
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
methods: {
|
methods: {
|
||||||
//生成二维码
|
//生成二维码
|
||||||
createQRcode(index){
|
createQRcode(index){
|
||||||
@ -511,6 +513,7 @@ export default {
|
|||||||
getDetailData(){
|
getDetailData(){
|
||||||
safeEducationQuestionDetailApi({eduId:this.eduId}).then(res=>{
|
safeEducationQuestionDetailApi({eduId:this.eduId}).then(res=>{
|
||||||
this.ruleForm=res.result.safeEducation
|
this.ruleForm=res.result.safeEducation
|
||||||
|
this.ruleForm.classifyName = this.$route.query.name
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addOptions() {
|
addOptions() {
|
||||||
@ -525,7 +528,7 @@ export default {
|
|||||||
editBefore(data,index){
|
editBefore(data,index){
|
||||||
this.qusTitle = "编辑试题"
|
this.qusTitle = "编辑试题"
|
||||||
this.dialogVisible=true
|
this.dialogVisible=true
|
||||||
console.log('编辑回显的信息',data)
|
// console.log('编辑回显的信息',data)
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
this.addEditForm=JSON.parse(JSON.stringify(data))
|
this.addEditForm=JSON.parse(JSON.stringify(data))
|
||||||
var optionList=data.optionList
|
var optionList=data.optionList
|
||||||
@ -696,13 +699,8 @@ export default {
|
|||||||
//获取课程分类
|
//获取课程分类
|
||||||
getClassifyList() {
|
getClassifyList() {
|
||||||
educationClassifyListApi({sn: this.ruleForm.projectSn}).then(result => {
|
educationClassifyListApi({sn: this.ruleForm.projectSn}).then(result => {
|
||||||
|
console.log('获取课程分类',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) {
|
||||||
|
|||||||
@ -239,6 +239,7 @@ export default {
|
|||||||
},
|
},
|
||||||
editBefore(item) {
|
editBefore(item) {
|
||||||
this.itemId = item.id;
|
this.itemId = item.id;
|
||||||
|
console.log('展示')
|
||||||
this.pageType = "detail";
|
this.pageType = "detail";
|
||||||
},
|
},
|
||||||
deleteBefore(item) {
|
deleteBefore(item) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user