Commit f7ce5275 authored by zhengke's avatar zhengke

页面修改

parent ec0f891c
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
.el-table th { .el-table th {
padding: 5px 0; padding: 5px 0;
} }
</style> </style>
<template> <template>
<div class="page-body ReturnperiodsList"> <div class="page-body ReturnperiodsList">
...@@ -75,7 +76,9 @@ ...@@ -75,7 +76,9 @@
<el-table-column prop="CreateDate" label="创建时间"> </el-table-column> <el-table-column prop="CreateDate" label="创建时间"> </el-table-column>
<el-table-column label="财务单据"> <el-table-column label="财务单据">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
...@@ -172,20 +175,28 @@ ...@@ -172,20 +175,28 @@
this.getList(); //获取提成周期列表 this.getList(); //获取提成周期列表
}, },
methods: { methods: {
//跳转到单据详情
goDetails(item) {
this.OpenNewUrl("/financial/financalDocument/FinancialDocumentsDetail", {
id: item
});
},
getList() { getList() {
this.loading = true; this.loading = true;
getCommissionPeriodsPageList(this.msg).then(res => { getCommissionPeriodsPageList(this.msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
console.log("res",res);
this.loading = false; this.loading = false;
var tempArray= res.Data.PageData; var tempArray = res.Data.PageData;
if(tempArray&&tempArray.length>0) if (tempArray && tempArray.length > 0) {
{ tempArray.forEach(item => {
tempArray.foreach(item=>{ var finaceArray = [];
console.log("item",item); if (item.FinanceIds && item.FinanceIds != '') {
}) finaceArray = item.FinanceIds.split(',');
}
item.FinanceIdList = finaceArray;
})
} }
this.tableData =tempArray; this.tableData = tempArray;
this.total = res.Data.Count this.total = res.Data.Count
} }
}) })
...@@ -257,7 +268,9 @@ ...@@ -257,7 +268,9 @@
}, },
}, },
} }
</script> </script>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style>
\ No newline at end of file </style>
...@@ -138,7 +138,6 @@ ...@@ -138,7 +138,6 @@
this.loading = true; this.loading = true;
GetStudentAdvisorConfigPage(this.msg).then(res => { GetStudentAdvisorConfigPage(this.msg).then(res => {
this.loading = false; this.loading = false;
console.log(res, '数据');
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount; 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