Commit f7ce5275 authored by zhengke's avatar zhengke

页面修改

parent ec0f891c
......@@ -42,6 +42,7 @@
.el-table th {
padding: 5px 0;
}
</style>
<template>
<div class="page-body ReturnperiodsList">
......@@ -75,7 +76,9 @@
<el-table-column prop="CreateDate" label="创建时间"> </el-table-column>
<el-table-column label="财务单据">
<template slot-scope="scope">
{{scope.row.FinanceIds}}
<template v-if="scope.row.FinanceIdList" v-for="item in scope.row.FinanceIdList">
<a @click="goDetails(item)" style="cursor:pointer;color:blue;text-decoration:underline;">{{item}}</a> <br/>
</template>
</template>
</el-table-column>
<el-table-column label="操作">
......@@ -172,20 +175,28 @@
this.getList(); //获取提成周期列表
},
methods: {
//跳转到单据详情
goDetails(item) {
this.OpenNewUrl("/financial/financalDocument/FinancialDocumentsDetail", {
id: item
});
},
getList() {
this.loading = true;
getCommissionPeriodsPageList(this.msg).then(res => {
if (res.Code == 1) {
console.log("res",res);
this.loading = false;
var tempArray= res.Data.PageData;
if(tempArray&&tempArray.length>0)
{
tempArray.foreach(item=>{
console.log("item",item);
})
var tempArray = res.Data.PageData;
if (tempArray && tempArray.length > 0) {
tempArray.forEach(item => {
var finaceArray = [];
if (item.FinanceIds && item.FinanceIds != '') {
finaceArray = item.FinanceIds.split(',');
}
item.FinanceIdList = finaceArray;
})
}
this.tableData =tempArray;
this.tableData = tempArray;
this.total = res.Data.Count
}
})
......@@ -257,7 +268,9 @@
},
},
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
\ No newline at end of file
</style>
......@@ -138,7 +138,6 @@
this.loading = true;
GetStudentAdvisorConfigPage(this.msg).then(res => {
this.loading = false;
console.log(res, '数据');
if (res.Code == 1) {
this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment