成绩报告参考答案字体不一致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 { /deep/ .cell {
font-size: 12px; font-size: 12px;
} }

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

Loading…
Cancel
Save