mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 22:06:45 +08:00
讲师管理bug
This commit is contained in:
@@ -127,12 +127,13 @@
|
||||
<a-upload :disabled="!formParam.name" name="avatar" list-type="picture-card" class="avatar-uploader" :show-upload-list="false"
|
||||
:headers="headers" :before-upload="beforeUpload">
|
||||
<img class="i_upload_img" v-if="formParam.photo" :src="formParam.photo" alt="avatar" title="更换头像" />
|
||||
<div class="i_upload" v-else>
|
||||
<img class="i_upload_img" v-else src="../../assets/avatar.png" alt="avatar" title="更换头像" />
|
||||
<!-- <div class="i_upload" v-else>
|
||||
<div class="addimg">
|
||||
<div class="heng"></div>
|
||||
<div class="shu"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</a-upload>
|
||||
</div>
|
||||
<div class="i_bottom">
|
||||
@@ -449,7 +450,7 @@ export default {
|
||||
certStatus: 0,//认证状态
|
||||
defaultTeachingTime: null,
|
||||
teacherType:1,
|
||||
photo: avatar,
|
||||
photo: null,
|
||||
orgLists: [],
|
||||
certification: null,
|
||||
certificationName: null,
|
||||
@@ -633,7 +634,7 @@ export default {
|
||||
let array = [];
|
||||
arr.map((value) => {
|
||||
let obj = {
|
||||
value: value.levelCode,
|
||||
value: value.levelName,
|
||||
label: value.levelName,
|
||||
};
|
||||
array.push(obj);
|
||||
@@ -903,7 +904,7 @@ export default {
|
||||
cancel()
|
||||
state.teacherdialog = true;
|
||||
state.teacherdialogtitle = '新增讲师'
|
||||
state.formParam.photo = avatar
|
||||
state.formParam.photo = null
|
||||
state.formParam.status = '1'
|
||||
state.vf = true
|
||||
}
|
||||
@@ -1195,7 +1196,7 @@ export default {
|
||||
state.formParam.description = state.formParam.description === null ? '' : state.formParam.description
|
||||
state.formParam.workExp0erience = state.formParam.workExperience === null ? '' : state.formParam.workExperience
|
||||
state.formParam.courses = state.formParam.courses === null ? '' : state.formParam.courses
|
||||
state.formParam.photo = state.formParam.photo === null ? avatar : state.formParam.photo
|
||||
// state.formParam.photo = state.formParam.photo === null ? avatar : state.formParam.photo
|
||||
state.tSystemNames.systemName = res.data.data.tsystemName
|
||||
state.tSystemNames.systemId = res.data.data.tsystemId
|
||||
state.tSystemNames.systemCode = res.data.data.systemCode
|
||||
|
||||
Reference in New Issue
Block a user