|
@@ -12,13 +12,13 @@
|
|
|
<el-form-item label="证书模板名称" prop="templateName" style="margin-top:20px;">
|
|
<el-form-item label="证书模板名称" prop="templateName" style="margin-top:20px;">
|
|
|
<el-input v-model="newData.templateName" placeholder="请输入证书模板名称" maxLength="20" style="width:500px;"></el-input>
|
|
<el-input v-model="newData.templateName" placeholder="请输入证书模板名称" maxLength="20" style="width:500px;"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="适用考试类型" prop="examTypeId">
|
|
|
|
|
- <el-select v-model="newData.examTypeId" placeholder="请选择考试类型" style="width: 500px">
|
|
|
|
|
|
|
+ <el-form-item label="适用考试类型" prop="templateType">
|
|
|
|
|
+ <el-select v-model="newData.templateType" placeholder="请选择证书类型" style="width: 500px">
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="dict in optionList"
|
|
v-for="dict in optionList"
|
|
|
- :key="dict.id"
|
|
|
|
|
- :label="dict.examTypeName"
|
|
|
|
|
- :value="dict.id"
|
|
|
|
|
|
|
+ :key="dict.value"
|
|
|
|
|
+ :label="dict.label"
|
|
|
|
|
+ :value="dict.value"
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -102,11 +102,11 @@
|
|
|
Authorization: getToken(),
|
|
Authorization: getToken(),
|
|
|
},
|
|
},
|
|
|
upData:[],
|
|
upData:[],
|
|
|
- optionList:[],
|
|
|
|
|
|
|
+ optionList:[{value:'1',label:'考试证书'},{value:'2',label:'培训证书'},],
|
|
|
optionDeptList:[],
|
|
optionDeptList:[],
|
|
|
newData:{
|
|
newData:{
|
|
|
templateName:'',
|
|
templateName:'',
|
|
|
- examTypeId:null,
|
|
|
|
|
|
|
+ templateType:null,
|
|
|
deptId:null,
|
|
deptId:null,
|
|
|
templateWordPath:'',
|
|
templateWordPath:'',
|
|
|
description:'',
|
|
description:'',
|
|
@@ -117,7 +117,7 @@
|
|
|
{ required: true, message: "请输入证书模板名称", trigger: "blur" },
|
|
{ required: true, message: "请输入证书模板名称", trigger: "blur" },
|
|
|
{ required: true, message: "请输入证书模板名称", validator: this.spaceJudgment, trigger: "blur" }
|
|
{ required: true, message: "请输入证书模板名称", validator: this.spaceJudgment, trigger: "blur" }
|
|
|
],
|
|
],
|
|
|
- examTypeId: [
|
|
|
|
|
|
|
+ templateType: [
|
|
|
{ required: true, message: "请选择考试类型", trigger: "blur" },
|
|
{ required: true, message: "请选择考试类型", trigger: "blur" },
|
|
|
{ required: true, message: "请选择考试类型", validator: this.spaceJudgment, trigger: "blur" }
|
|
{ required: true, message: "请选择考试类型", validator: this.spaceJudgment, trigger: "blur" }
|
|
|
],
|
|
],
|
|
@@ -144,7 +144,7 @@
|
|
|
},
|
|
},
|
|
|
mounted(){
|
|
mounted(){
|
|
|
this.initialize();
|
|
this.initialize();
|
|
|
- this.examElExamTypeList();
|
|
|
|
|
|
|
+ // this.examElExamTypeList();
|
|
|
this.systemDeptCurrentDept();
|
|
this.systemDeptCurrentDept();
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
@@ -153,7 +153,7 @@
|
|
|
this.$set(this,'newData',{
|
|
this.$set(this,'newData',{
|
|
|
id:this.propsData.id,
|
|
id:this.propsData.id,
|
|
|
templateName:this.propsData.templateName,
|
|
templateName:this.propsData.templateName,
|
|
|
- examTypeId:this.propsData.examTypeId,
|
|
|
|
|
|
|
+ templateType:this.propsData.templateType,
|
|
|
deptId:this.propsData.deptId,
|
|
deptId:this.propsData.deptId,
|
|
|
templateWordPath:this.propsData.templateWordPath,
|
|
templateWordPath:this.propsData.templateWordPath,
|
|
|
description:this.propsData.description,
|
|
description:this.propsData.description,
|