mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-19 15:56:47 +08:00
讲师管理bug
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
</a-table>
|
||||
</div>
|
||||
<div style="margin-bottom: 100px">
|
||||
<a-table v-if="threeList" :columns="columnsThree" :data-source="formData?.tableDataThree" :pagination="false"/>
|
||||
<a-table v-if="threeList" :columns="columnsThree" :loading="formData?.loadingThree" :data-source="formData?.tableDataThree" :pagination="false"/>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
@@ -246,18 +246,28 @@ const columnsTwo = ref([
|
||||
slots: { customRender: "action" },
|
||||
}
|
||||
])
|
||||
const approvalData = ref(null)
|
||||
const threeList = ref(false)
|
||||
const lookList = (record) => {
|
||||
console.log(record,'resssssss')
|
||||
threeList.value = true
|
||||
api.getApprovalResultByApprovalIdList(record.approvalId).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
formData.value.tableDataThree = res.data.data
|
||||
}
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
if(!threeList.value||record.approvalId!=approvalData.value){
|
||||
threeList.value = true
|
||||
approvalData.value = record.approvalId
|
||||
formData.value.loadingThree = true
|
||||
api.getApprovalResultByApprovalIdList(record.approvalId).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
formData.value.tableDataThree = res.data.data
|
||||
}
|
||||
formData.value.loadingThree = false
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
formData.value.loadingThree = false
|
||||
message.error(err.data.msg)
|
||||
})
|
||||
}else{
|
||||
threeList.value = false
|
||||
approvalData.value = null
|
||||
}
|
||||
}
|
||||
const visible = ref(false);
|
||||
watch(visible, (val)=>{
|
||||
@@ -288,7 +298,6 @@ const getTwoData = () => {
|
||||
params.total = res.data.data.total
|
||||
}
|
||||
formData.value.loadingTwo = false
|
||||
console.log(formData.value.tableDataTwo,'xixixi')
|
||||
}).catch(err=>{
|
||||
message.destroy()
|
||||
message.error(err.data.msg)
|
||||
@@ -358,7 +367,8 @@ function openDrawer() {
|
||||
.impotergroupleader {
|
||||
.drawerMain {
|
||||
min-width: 600px;
|
||||
margin: 0px 32px 0px 32px;
|
||||
margin:0;
|
||||
padding: 0px 32px 0px 32px;
|
||||
overflow-x: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -379,6 +389,7 @@ function openDrawer() {
|
||||
color: #333333;
|
||||
line-height: 25px;
|
||||
// margin-left: 24px;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
.content{
|
||||
|
||||
Reference in New Issue
Block a user