|
|
@@ -5,7 +5,6 @@
|
|
|
<!-- 左侧树Start -->
|
|
|
<SplitArea :size="leftSplitWidth" :minSize="240">
|
|
|
<div>
|
|
|
- <el-checkbox v-model="containsSubDeptChecked">包含下级机构</el-checkbox>
|
|
|
<el-divider></el-divider>
|
|
|
<tree :setting="ztreeSetting" :nodes="ztreeNodes" @onClick="onZTreeClick" @onCreated="onZTreeCreated"/>
|
|
|
</div>
|
|
|
@@ -39,7 +38,30 @@
|
|
|
</el-form>
|
|
|
</el-row> -->
|
|
|
<!-- 筛选区域End -->
|
|
|
-
|
|
|
+ <el-row >
|
|
|
+ <el-form ref="queryFormRef" :model="pageRequest" label-width="80px">
|
|
|
+ <el-col :span="5">
|
|
|
+ <el-form-item label="机构名称">
|
|
|
+ <el-input
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ placeholder="机构名称"
|
|
|
+ v-model="pageRequest.deptName"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-form-item label="">
|
|
|
+ <el-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ @click="queryStaffInfo"
|
|
|
+ >查询</el-button
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-form>
|
|
|
+ </el-row>
|
|
|
<!-- 审核通过 -->
|
|
|
<kt-common-table :showOperation="false" :data="pageResult" :columns="columns" :showBatchDelete="false" @findPage="findPage" >
|
|
|
</kt-common-table>
|
|
|
@@ -65,16 +87,14 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- peopleid:"",
|
|
|
- peopledeptid:"",
|
|
|
-
|
|
|
+ // peopleid:"",
|
|
|
+ // peopledeptId:"",
|
|
|
/**Split 开始 */
|
|
|
leftSplitWidth: 20,
|
|
|
rightSplitWidth: 80,
|
|
|
/**Split 结束 */
|
|
|
|
|
|
//----ztreeLeft begin---------
|
|
|
- containsSubDeptChecked: true, //是否包含下级机构
|
|
|
ztreeObj: null,
|
|
|
ztreeSetting: {
|
|
|
check: {
|
|
|
@@ -101,24 +121,17 @@
|
|
|
pageRequest: { //查询的默认条件
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
- columnFilters: {
|
|
|
- "deptid": {
|
|
|
- "name": "deptid",
|
|
|
- "value": ''
|
|
|
- },
|
|
|
- "containsSubDept": {
|
|
|
- "name": "containsSubDept",
|
|
|
- "value": 1
|
|
|
- }
|
|
|
- }
|
|
|
+ deptId:JSON.parse(localStorage.getItem('user_data')).deptId ,
|
|
|
},
|
|
|
columns: [ // 数据列
|
|
|
- { prop: "deptid",label: "机构编码",minWidth: 80,sortable: false},
|
|
|
- { prop: "deptName",label: "机构名称",minWidth: 80,sortable: false,formatter:this.companyNameFormatter},
|
|
|
- { prop: "accountBalance",label: "可提现余额",minWidth: 80,sortable: false},
|
|
|
+ { prop: "deptId",label: "机构编码",minWidth: 80,sortable: false},
|
|
|
+ // { prop: "deptName",label: "机构名称",minWidth: 80,sortable: false,formatter:this.companyNameFormatter},
|
|
|
+ { prop: "deptName",label: "机构名称",minWidth: 80,sortable: false,},
|
|
|
+ { prop: "managementFee",label: "可提现余额",minWidth: 80,sortable: false},
|
|
|
{ prop: "applyAmount",label: "提现中金额",minWidth: 80,sortable: false},
|
|
|
{ prop: "payamount",label: "已提现金额",minWidth: 100,sortable: false},
|
|
|
- { prop: "totalAmount",label: "累计提现",minWidth: 100,sortable: false}
|
|
|
+ { prop: "totalAmount",label: "累计提现",minWidth: 100,sortable: false},
|
|
|
+ { prop: "createTime",label: "创建时间",minWidth: 100,sortable: false}
|
|
|
],
|
|
|
// 右侧列表查询数据End
|
|
|
|
|
|
@@ -134,14 +147,14 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.peopleid = Cookies.get('user');
|
|
|
- if(this.peopleid!='admin'){
|
|
|
- this.peopledeptid = Cookies.get('user').split('D')[0];
|
|
|
- this.pageRequest.columnFilters.deptid.value = this.peopledeptid;
|
|
|
- }else{
|
|
|
- this.peopledeptid = '9';
|
|
|
- this.pageRequest.columnFilters.deptid.value = this.peopledeptid;
|
|
|
- }
|
|
|
+ // this.peopleid = Cookies.get('user');
|
|
|
+ // if(this.peopleid!='admin'){
|
|
|
+ // this.peopledeptId = Cookies.get('user').split('D')[0];
|
|
|
+ // this.pageRequest.columnFilters.deptId.value = this.peopledeptId;
|
|
|
+ // }else{
|
|
|
+ // this.peopledeptId = '9';
|
|
|
+ // this.pageRequest.columnFilters.deptId.value = this.peopledeptId;
|
|
|
+ // }
|
|
|
//获取所有下拉框数据(字典)
|
|
|
this.findLeftTreeData();// 获取机构树的数据
|
|
|
},
|
|
|
@@ -149,12 +162,6 @@
|
|
|
//用像素初始化左边的split的宽度
|
|
|
this.changeTreeWidth(240);// 初始化树的宽度
|
|
|
},
|
|
|
- watch:{
|
|
|
- containsSubDeptChecked(){ // 监听是否包含下级
|
|
|
- this.pageRequest.columnFilters.containsSubDept.value = this.containsSubDeptChecked ? "1" : "0";
|
|
|
- this.findPage();
|
|
|
- }
|
|
|
- },
|
|
|
methods: {
|
|
|
/**Split 开始 */
|
|
|
changeTreeWidth(widthVal){
|
|
|
@@ -167,7 +174,7 @@
|
|
|
//--left tree start-------
|
|
|
findLeftTreeData: function() {
|
|
|
// 获取数据
|
|
|
- this.$api.dept.findLeftDeptTree(this.peopledeptid).then(res => {
|
|
|
+ this.$api.dept.findTree().then(res => {
|
|
|
this.ztreeNodes = res.data;
|
|
|
});
|
|
|
},
|
|
|
@@ -180,21 +187,18 @@
|
|
|
onZTreeClick: function(evt, treeId, treeNode) {
|
|
|
// 点击事件
|
|
|
this.currentTreeNode = treeNode;
|
|
|
- this.pageRequest.columnFilters.deptid.value = this.currentTreeNode.id;
|
|
|
+ this.pageRequest.deptId = this.currentTreeNode.id;
|
|
|
this.findPage();
|
|
|
},
|
|
|
//--left tree end-------
|
|
|
|
|
|
companyNameFormatter(row, column){
|
|
|
- let companyId = row.deptid;
|
|
|
+ let companyId = row.deptId;
|
|
|
return CommonUtil.getDataName({dataList: this.ztreeNodes, value: 'id', label: 'name', data: companyId})
|
|
|
},
|
|
|
|
|
|
// 查询Start
|
|
|
queryStaffInfo(val){
|
|
|
- // this.pageRequest.columnFilters.id.value = this.queryFrom.id;
|
|
|
- // this.pageRequest.columnFilters.name.value = this.queryFrom.name;
|
|
|
- // this.pageRequest.columnFilters.mobile.value = this.queryFrom.tel;
|
|
|
this.pageRequest.pageNum = 1;
|
|
|
this.findPage();
|
|
|
},
|
|
|
@@ -207,9 +211,13 @@
|
|
|
this.pageRequest.pageNum = data.pageRequest.pageNum;
|
|
|
this.pageRequest.pageSize = data.pageRequest.pageSize;
|
|
|
}
|
|
|
- this.$api.task.deptAccountPage(this.pageRequest).then((res) => {
|
|
|
- console.log(res.data)
|
|
|
+ this.$api.task.sysDeptAccountPage(this.pageRequest).then((res) => {
|
|
|
+ res.data.pageNum=res.data.current
|
|
|
+ res.data.pageSize=res.data.size
|
|
|
+ res.data.totalSize=res.data.total
|
|
|
+ res.data.content= res.data.records
|
|
|
this.pageResult = res.data;
|
|
|
+
|
|
|
}).then(data != null ? data.callback : '')
|
|
|
},
|
|
|
// 右侧列表的方法End
|