Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
fc554ce855
@ -7,6 +7,16 @@
|
|||||||
<el-form-item label="试卷描述:" prop="desc">
|
<el-form-item label="试卷描述:" prop="desc">
|
||||||
<el-input v-model="formModel.desc" type="textarea" style="width:350px;" />
|
<el-input v-model="formModel.desc" type="textarea" style="width:350px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="组别:" prop="group">
|
||||||
|
<el-select v-model="formModel.group" placeholder="请选择" style="width:350px;">
|
||||||
|
<el-option
|
||||||
|
v-for="item in groupOption"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="所属赛季:" prop="seasonId">
|
<el-form-item label="所属赛季:" prop="seasonId">
|
||||||
<el-select v-model="formModel.seasonId" placeholder="请选择" style="width:350px;">
|
<el-select v-model="formModel.seasonId" placeholder="请选择" style="width:350px;">
|
||||||
<el-option
|
<el-option
|
||||||
@ -17,9 +27,6 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="支持拷贝:" prop="supportCopy">
|
|
||||||
<el-checkbox v-model="formModel.supportCopy" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button v-loading="loading" type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
|
<el-button v-loading="loading" type="primary" @click="doSave">{{ $t('global.confirm') }}</el-button>
|
||||||
@ -39,9 +46,16 @@ export default {
|
|||||||
name: '', // 试卷名称
|
name: '', // 试卷名称
|
||||||
desc: '', // 任务描述
|
desc: '', // 任务描述
|
||||||
seasonId: '', // 所属赛季id
|
seasonId: '', // 所属赛季id
|
||||||
supportCopy:false // 是否支持拷贝
|
group:'' // 高职和中职
|
||||||
},
|
},
|
||||||
seasonOptions:[],
|
seasonOptions:[],
|
||||||
|
groupOption:[{
|
||||||
|
value: 'ZZ',
|
||||||
|
label: '中职'
|
||||||
|
}, {
|
||||||
|
value: 'GZ',
|
||||||
|
label: '高职'
|
||||||
|
}],
|
||||||
loading: false
|
loading: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -54,6 +68,9 @@ export default {
|
|||||||
desc: [
|
desc: [
|
||||||
{ required: true, message: '请输入试卷描述', trigger: 'blur' }
|
{ required: true, message: '请输入试卷描述', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
|
group: [
|
||||||
|
{ required: true, message: '请选择试卷所属赛季', trigger: 'blur' }
|
||||||
|
],
|
||||||
seasonId: [
|
seasonId: [
|
||||||
{ required: true, message: '请选择试卷所属赛季', trigger: 'blur' }
|
{ required: true, message: '请选择试卷所属赛季', trigger: 'blur' }
|
||||||
]
|
]
|
||||||
@ -75,12 +92,13 @@ export default {
|
|||||||
this.formModel.name = row.name;
|
this.formModel.name = row.name;
|
||||||
this.formModel.desc = row.desc;
|
this.formModel.desc = row.desc;
|
||||||
this.formModel.seasonId = row.seasonId;
|
this.formModel.seasonId = row.seasonId;
|
||||||
this.formModel.supportCopy = row.supportCopy;
|
this.formModel.group = row.group;
|
||||||
} else {
|
} else {
|
||||||
this.formModel = {
|
this.formModel = {
|
||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
desc: '',
|
desc: '',
|
||||||
|
group:'',
|
||||||
seasonId: ''
|
seasonId: ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -90,8 +108,7 @@ export default {
|
|||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
desc: '',
|
desc: '',
|
||||||
seasonId: '',
|
seasonId: ''
|
||||||
supportCopy:false
|
|
||||||
};
|
};
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
|
@ -37,6 +37,17 @@ export default {
|
|||||||
name: {
|
name: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: '试卷名称:'
|
label: '试卷名称:'
|
||||||
|
},
|
||||||
|
seasonName: {
|
||||||
|
type: 'text',
|
||||||
|
label: '赛季名称:'
|
||||||
|
},
|
||||||
|
group: {
|
||||||
|
type: 'select',
|
||||||
|
label: '组 别',
|
||||||
|
config: {
|
||||||
|
data: [{label: '高职', value: 'GZ'}, {label: '中职', value: 'ZZ'}]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -53,6 +64,13 @@ export default {
|
|||||||
title: '试卷描述',
|
title: '试卷描述',
|
||||||
prop: 'desc'
|
prop: 'desc'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '组别',
|
||||||
|
prop: 'group',
|
||||||
|
type: 'tag',
|
||||||
|
columnValue: (row) => { return row.group === 'GZ' ? '高职' : '中职'; },
|
||||||
|
tagType: (row) => { return ''; }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '所属赛季',
|
title: '所属赛季',
|
||||||
prop: 'seasonName'
|
prop: 'seasonName'
|
||||||
@ -94,10 +112,7 @@ export default {
|
|||||||
{
|
{
|
||||||
name: '拷贝试卷',
|
name: '拷贝试卷',
|
||||||
handleClick: this.copyContestPaper,
|
handleClick: this.copyContestPaper,
|
||||||
type: 'warning',
|
type: 'warning'
|
||||||
showControl: row => {
|
|
||||||
return row.supportCopy;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog v-dialogDrag :title="title" :visible.sync="dialogVisible" width="500px" :before-close="handleClose" center :close-on-click-modal="false" append-to-body>
|
<el-dialog v-dialogDrag :title="title" :visible.sync="dialogVisible" width="540px" :before-close="handleClose" center :close-on-click-modal="false" append-to-body @keydown.enter.native.prevent>
|
||||||
<el-form ref="ruleForm" :model="formModel" :rules="rules" label-width="100px">
|
<el-form ref="ruleForm" :model="formModel" :rules="rules" label-width="120px">
|
||||||
<el-form-item v-if="editType == 'module'" label="模块名称:" prop="moduleName">
|
<el-form-item v-if="editType == 'module'" label="模块名称:" prop="moduleName">
|
||||||
<el-input v-model="formModel.moduleName" style="width: 350px;" />
|
<el-input v-model="formModel.moduleName" style="width: 350px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="editType == 'module'" label="考试时间:" prop="duration">
|
<el-form-item v-if="editType == 'module'" label="考试时间(分钟):" prop="duration">
|
||||||
<el-input v-model="formModel.duration" style="width:350px;" />
|
<el-input v-model="formModel.duration" style="width:350px;" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="editType == 'module'" label="评分规则:" prop="moduleScoreRuleId">
|
<el-form-item v-if="editType == 'module'" label="评分规则:" prop="moduleScoreRuleId">
|
||||||
@ -71,9 +71,6 @@ export default {
|
|||||||
duration: [
|
duration: [
|
||||||
{ required: true, message: '请输入考试时间', trigger: 'blur' }
|
{ required: true, message: '请输入考试时间', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
moduleScoreRuleId: [
|
|
||||||
{ required: true, message: '请选择任务', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
taskCatalogName: [
|
taskCatalogName: [
|
||||||
{ required: true, message: '请输入任务名称', trigger: 'blur' }
|
{ required: true, message: '请输入任务名称', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
@ -152,7 +149,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$emit('changeTreeData', 'taskCatalog', data, this.isAdd);
|
this.$emit('changeTreeData', 'taskCatalog', data, this.isAdd);
|
||||||
} else {
|
} else {
|
||||||
const data = this.formModel.tasks.map(task=>{ return {label:task, type:'tasks', parentId:this.parentId}; });
|
const data = this.formModel.tasks.reverse().map(task=>{ return {label:task, type:'tasks', parentId:this.parentId}; });
|
||||||
this.$emit('changeTreeData', 'task', data);
|
this.$emit('changeTreeData', 'task', data);
|
||||||
}
|
}
|
||||||
this.handleClose();
|
this.handleClose();
|
||||||
|
@ -47,12 +47,6 @@ export default {
|
|||||||
],
|
],
|
||||||
desc: [
|
desc: [
|
||||||
{ required: true, message: '请输入任务描述', trigger: 'blur' }
|
{ required: true, message: '请输入任务描述', trigger: 'blur' }
|
||||||
],
|
|
||||||
content: [
|
|
||||||
{ required: true, message: '请输入考核内容', trigger: 'blur' }
|
|
||||||
],
|
|
||||||
standards: [
|
|
||||||
{ required: true, message: '请输入评价标准', trigger: 'blur' }
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
return crules;
|
return crules;
|
||||||
|
Loading…
Reference in New Issue
Block a user