成绩报告参考答案字体不一致bug

dev_2022-05-11
e 3 years ago
parent 762b73ad39
commit ed867825c7
  1. 9
      src/pages/achievement/show/index.vue
  2. 32
      src/pages/system/list/staff.vue

@ -420,7 +420,14 @@ export default {
}
}
}
/deep/ pre, code, kbd, samp{
font-family: 'PingFang SC', "Helvetica Neue", Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif;
word-wrap: break-word;
white-space: pre-wrap;
}
/deep/ pre{
white-space: pre-wrap;
}
/deep/ .cell {
font-size: 12px;
}

@ -68,15 +68,18 @@
<el-form-item prop="workNumber" label="工号">
<el-input v-model.trim="teacherForm.workNumber" placeholder="请输入职工工号"></el-input>
</el-form-item>
<template v-for="item in teacherForm.roleAndDeptList">
<el-form-item :label="`${item.roleName}所属部门`">
<el-cascader
v-model="item.cascaderValue"
:options="majorList"
style="width: 100%"
></el-cascader>
</el-form-item>
</template>
<el-form-item v-for="item in teacherForm.roleAndDeptList" :label="`${item.roleName}所属部门`" :rules="{
required: true, message: '请选择', trigger: 'change'
}">
<el-cascader
v-model="item.cascaderValue"
:options="majorList"
style="width: 100%"
></el-cascader>
</el-form-item>
<!-- <template v-for="item in teacherForm.roleAndDeptList">-->
<!-- -->
<!-- </template>-->
<el-form-item prop="phone" label="手机号">
<el-input v-model.trim="teacherForm.phone" placeholder="请输入手机号" maxlength="11" @blur="phoneChange"></el-input>
@ -471,10 +474,15 @@ export default {
}
},
roleRemove(value) { //
let index = this.teacherForm.roleAndDeptList.findIndex(i => i.roleName === value);
if (index !== -1) {
this.teacherForm.roleAndDeptList.splice(index, 1);
let list = [];
for(var i=0;i<this.teacherForm.roleAndDeptList.length;i++){
if (this.teacherForm.roleAndDeptList[i].roleId == value){
}else{
list.push(this.teacherForm.roleAndDeptList[i])
}
}
this.teacherForm.roleAndDeptList = list
},
async saveSure(teacherForm) {
this.$refs[teacherForm].validate((valid) => {

Loading…
Cancel
Save