权限、统计接口、默认密码登录

This commit is contained in:
zhaoxiao
2021-09-23 18:32:01 +08:00
parent de97364b92
commit e13418046b
49 changed files with 989 additions and 530 deletions
@@ -29,7 +29,8 @@
style="width:100%"
:dropdownStyle="{ maxHeight: '200px',maxWidth:'100px','overflow-x':'hidden',' overflow-y': 'auto' }"
:treeData="treeDepartData"
v-model="queryParam.departId"
:replaceFields="replaceFields"
v-model="queryParam.departCode"
placeholder="请选择科室">
</a-tree-select>
</a-form-item>
@@ -67,7 +68,7 @@
</a-col>
<a-col :xl="4" :lg="7" :md="8" :sm="24">
<span class="table-page-search-submitButtons">
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
<a-button type="primary" icon="search" @click="searchQuery" v-has="'wholeInstituteStatistics:search'">查询</a-button>
<a-button icon="reload" @click="searchReset" class="reset-button">重置</a-button>
</span>
</a-col>
@@ -78,7 +79,7 @@
<!-- 操作按钮区域-->
<div class="table-operator">
<a-button type="primary" icon="export" @click="handleExportXls('全所统计')">导出</a-button>
<a-button type="primary" icon="export" @click="handleExportXls('全所统计')" v-has="'wholeInstituteStatistics:export'">导出</a-button>
</div>
<!-- 操作按钮区域-end-->
@@ -90,7 +91,7 @@
bordered
rowKey="id"
:columns="columns"
:scroll="{x: 1200}"
:scroll="{x: 1300}"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
@@ -116,7 +117,7 @@
ref="footTable"
rowKey="id"
:columns="columnsFooter"
:scroll="{x: 1200}"
:scroll="{x: 1300}"
:dataSource="footerDataSource"
:showHeader="false"
:pagination="false"
@@ -166,6 +167,9 @@ export default {
sm: { span: 10 }
},
treeDepartData: [],
replaceFields: {
value: 'orgCode'
},
columns: [
{
title: '序号',
@@ -197,13 +201,15 @@ export default {
}, {
title: '应收金额',
align: 'center',
width: 140,
dataIndex: 'allMoney'
width: 200,
dataIndex: 'allMoney',
scopedSlots: { customRender: 'text' }
}, {
title: '实收金额',
align: 'center',
width: 140,
dataIndex: 'comeAllMoney'
width: 200,
dataIndex: 'comeAllMoney',
scopedSlots: { customRender: 'text' }
}, {
title: '来款用途',
align: 'center',
@@ -239,13 +245,15 @@ export default {
}, {
title: '应收金额',
align: 'center',
width: 140,
dataIndex: 'allMoney'
width: 200,
dataIndex: 'allMoney',
scopedSlots: { customRender: 'text' }
}, {
title: '实收金额',
align: 'center',
width: 140,
dataIndex: 'comeAllMoney'
width: 200,
dataIndex: 'comeAllMoney',
scopedSlots: { customRender: 'text' }
}, {
title: '来款用途',
align: 'center',
@@ -254,6 +262,7 @@ export default {
}
],
footerDataSource: [],
// 给定当年作为来款年份默认查询条件
queryParam: {
year: new Date().getFullYear().toString()
},
@@ -323,7 +332,7 @@ export default {
this.loading = true
getAction(this.url.list, params).then((res) => {
if (res.success) {
this.dataSource = res.result.records
this.dataSource = res.result.pageList.records
// this.dataSource = res.result.pageList.records
let obj = {
id: '1',
@@ -332,8 +341,8 @@ export default {
comeAllMoney: res.result.sumOfReallyMoney.toString()
}
this.footerDataSource = [obj]
if (res.result.total) {
this.ipagination.total = res.result.total
if (res.result.pageList.total) {
this.ipagination.total = res.result.pageList.total
//清空列表选中
this.onClearSelected()
} else {
@@ -395,6 +404,7 @@ export default {
.footer-table {
/deep/ .ant-table-tbody > tr > td {
border: none;
background-color: #F5F5F5;
}
/deep/ .ant-table-fixed-right table {