导出数据调整

This commit is contained in:
wangxuemei
2024-11-13 14:38:00 +08:00
parent 572d39d3bb
commit aa27a245d8
8 changed files with 56 additions and 76 deletions

View File

@@ -11,7 +11,7 @@
</a-input>
</a-form-item>
<a-form-item class="select">
<a-select style="width: 276px" placeholder="请选择讲师体系" v-model:value="searchParam.tSystemId" allowClear
<a-select style="width: 276px" placeholder="请选择讲师体系" v-model:value="searchParam." allowClear
:options="LecturerSystemList" @change="changetlevel">
</a-select>
</a-form-item>
@@ -75,16 +75,16 @@
@expand="expandTable" :pagination="false">
<template #bodyCell="{ record, column }">
<!-- <template v-if="column.key === 'orgName'">
<template v-if="column.key === 'orgName'">
<a-space style="display:flex ;justify-content: space-around; ">
<a-popover>
<template #content>
<p>{{ record.orgName }}</p>
<p>{{ record.orgName}}</p>
</template>
<span>{{ record.neworganizationName }}</span>
</a-popover>
</a-space>
</template> -->
</template>
<template v-if="column.key === 'operation'">
<a-space>
<a-button type="link" @click="() => handleLook(record, String(record.courseform))">查看</a-button>
@@ -113,7 +113,7 @@
</div>
<!-- 弹窗组件 -->
<a-drawer v-model:visible="teacherdialog" placement="right" @closa="cancelTeacherDialog" :maskClosable="true"
width="40%" :title="teacherdialogtitle">
width="60%" :title="teacherdialogtitle">
<a-form :model="formParam" :rules="rules" layout="vertical" ref="formRef">
<a-row>
<a-col :span="24">
@@ -154,7 +154,6 @@
<template #content>
{{ formParam.orgNames }}
</template>
<a-input disabled v-model:value="formParam.orgName" class="draitem"
placeholder="自动带出讲师的组织,展示主要部分,鼠标浮上去展示所有" allowClear showSearch>
</a-input>
@@ -185,9 +184,9 @@
<a-col :span="24">
<a-form-item label="初始授课时长" name="defaultTeachingTime">
<a-input v-model:value="formParam.defaultTeachingTime" style="width:80%; height: 40px; border-radius: 8px; "
@blur="clearNonNumber" placeholder="0" allowClear showSearch suffix="分钟">
@blur="clearNonNumber" placeholder="0" allowClear suffix="分钟">
</a-input>
<span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime == null">0.00小时</span>
<span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime === null">0.00小时</span>
<span style="margin-left: 5px ;" v-if="formParam.defaultTeachingTime != null">{{
(formParam.defaultTeachingTime / 60).toFixed(2) }}小时</span>
</a-form-item>
@@ -315,7 +314,7 @@
<span>提示</span>
</div>
<div class="body">
<span>确定要删除此讲师</span>
<span>确定要将该讲师删除吗</span>
</div>
<div class="del_btnbox">
<div class="del_btn btn2" @click="cancelTeacherDialog1" style="margin-right: 32px">
@@ -478,7 +477,7 @@ export default {
if(val){
const parts = val.split('/');
const reversedParts = parts.reverse();
state.formParam.orgName = reversedParts.join('/');
state.formParam.orgName = reversedParts.join('/');
}
})
const headers = { token: getCookieForName("token") };
@@ -853,16 +852,17 @@ export default {
let objA = { ...state.searchParam };
getTeacherList(objA)
.then((res) => {
tableData.value = res.data.data.records
// tableData.value = res.data.data.records
console.log(tableData.value,'tableData.value')
// let objA = res.data.data.records
// objA.map((item) => {
// if (item.orgName !== null) {
// item.neworganizationName = item.orgName.split('/')
// item.neworganizationName = item.neworganizationName[item.neworganizationName.length - 1]
// }
// })
// tableData.value = objA
let objA = res.data.data.records
objA.map((item) => {
if (item.orgName !== null) {
item.neworganizationName = item.orgName.split('/')
item.neworganizationName = item.neworganizationName[item.neworganizationName.length - 1]
}
// console.log(item.orgName)
})
tableData.value = objA
state.tableDataTotal = Number(res.data.data.total);
state.tableLoading = false
}).catch(err => {