mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 12:56:45 +08:00
细节
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<script setup >
|
<script setup lang="jsx">
|
||||||
import { ref,reactive,onMounted,computed,watch } from 'vue'
|
import { ref,reactive,onMounted,computed,watch } from 'vue'
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
import AddInstructor from './AddInstructor.vue'
|
import AddInstructor from './AddInstructor.vue'
|
||||||
@@ -174,6 +174,17 @@ const ViewReviewcolumns = reactive([
|
|||||||
dataIndex: '工号',
|
dataIndex: '工号',
|
||||||
fixed: 'left',
|
fixed: 'left',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '课程名称',
|
||||||
|
key: '课程名称',
|
||||||
|
dataIndex: '课程名称',
|
||||||
|
fixed: 'left',
|
||||||
|
customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}},
|
||||||
|
customRender: ({ text }) => {
|
||||||
|
return <span title={text}>{text ? text : ""}</span>
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '认证结果',
|
title: '认证结果',
|
||||||
key: '认证结果',
|
key: '认证结果',
|
||||||
@@ -241,7 +252,7 @@ const columnsTeacher = [
|
|||||||
title: '工号',
|
title: '工号',
|
||||||
key: 'teacherNo',
|
key: 'teacherNo',
|
||||||
dataIndex: 'teacherNo',
|
dataIndex: 'teacherNo',
|
||||||
width: 100,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '课程名称',
|
title: '课程名称',
|
||||||
@@ -387,11 +398,17 @@ const remould = () => {
|
|||||||
ViewReviewcolumns.splice(index, 1);
|
ViewReviewcolumns.splice(index, 1);
|
||||||
ViewReviewcolumns.push(averageScoreColumn);
|
ViewReviewcolumns.push(averageScoreColumn);
|
||||||
}
|
}
|
||||||
|
const averageScoreOne = ViewReviewcolumns.find(column => column.title === "课程名称");
|
||||||
|
if (averageScoreOne) {
|
||||||
|
const index = ViewReviewcolumns.indexOf(averageScoreOne);
|
||||||
|
ViewReviewcolumns.splice(index, 1);
|
||||||
|
ViewReviewcolumns.splice(3, 0, averageScoreOne);
|
||||||
|
}
|
||||||
const averageScore = ViewReviewcolumns.find(column => column.title === "认证结果");
|
const averageScore = ViewReviewcolumns.find(column => column.title === "认证结果");
|
||||||
if (averageScore) {
|
if (averageScore) {
|
||||||
const index = ViewReviewcolumns.indexOf(averageScore);
|
const index = ViewReviewcolumns.indexOf(averageScore);
|
||||||
ViewReviewcolumns.splice(index, 1);
|
ViewReviewcolumns.splice(index, 1);
|
||||||
ViewReviewcolumns.splice(3, 0, averageScore);
|
ViewReviewcolumns.splice(4, 0, averageScore);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1286,7 +1303,6 @@ const vwtext = ref(null)
|
|||||||
{{text}}
|
{{text}}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
@@ -1402,7 +1418,7 @@ const vwtext = ref(null)
|
|||||||
<div >
|
<div >
|
||||||
<div style="display: flex;width: 100%; height: 88px;">
|
<div style="display: flex;width: 100%; height: 88px;">
|
||||||
<div>
|
<div>
|
||||||
<img v-if="techerDetail?.avatar" style="width: 60px; height: 58px;margin-left: 22px;margin-right: 29px;margin-top: 13px;" :src="techerDetail?.avatar"/>
|
<img v-if="userInfo?.avatar" style="width: 60px; height: 58px;margin-left: 22px;margin-right: 29px;margin-top: 13px;" :src="userInfo?.avatar"/>
|
||||||
<img
|
<img
|
||||||
v-else
|
v-else
|
||||||
style="width: 60px; height: 58px;margin-left: 22px;margin-right: 29px;margin-top: 13px;"
|
style="width: 60px; height: 58px;margin-left: 22px;margin-right: 29px;margin-top: 13px;"
|
||||||
|
|||||||
Reference in New Issue
Block a user