This commit is contained in:
xiaozhiyong
2023-02-23 17:08:13 +08:00
parent 70d54bcfa5
commit b66f88ac17
3 changed files with 74 additions and 60 deletions

View File

@@ -122,7 +122,6 @@
:data="tableData"
fit
style="width: 100%"
@sort-change="sortHandler"
@selection-change="handleSelectionChange"
>
@@ -275,63 +274,29 @@
width="180px"
align="center"
>
<template slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.row.id)">
详情
</el-button>
<el-dropdown>
<el-button type="text">
更多
<i class="el-icon-arrow-down el-icon--right" />
</el-button>
<template slot-scope="{ row }">
<span class="el-dropdown-link">详情</span>
<el-dropdown
@command="
(val) => {
commandMore(val, row);
}
"
>
<span class="el-dropdown-link">
更多<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item @click.native="toUpdate(scope.row.id)">
基础资料
</el-dropdown-item>
<el-dropdown-item command="base"> 基础资料 </el-dropdown-item>
<el-dropdown-item
v-if="scope.row.auditMark === 0"
@click.native="toAddAuth(scope.row.id)"
command="attestation"
v-if="row.auditMark === 0"
>
<el-button
type="text"
>
<svg-icon icon-class="iconicon-" />
认证信息
</el-button>
认证信息
</el-dropdown-item>
<el-dropdown-item
v-if="scope.row.auditMark !== 0"
@click.native="toUpdateAuth(scope.row.id)"
>
type="text"
>
<svg-icon icon-class="iconicon-" />
认证信息
</el-button>
</el-dropdown-item>
<el-dropdown-item @click.native="toBankAuth(scope.row)">
<el-button
type="text"
>
<svg-icon icon-class="iconicon-" />
银行信息
</el-button>
</el-dropdown-item>
<el-dropdown-item @click.native="toFinance(scope.row.id)">
<el-button
type="text"
>
<svg-icon icon-class="iconicon-" />
财务信息
</el-button>
<el-dropdown-item command="bank"> 银行信息 </el-dropdown-item>
<el-dropdown-item command="finance">
财务信息
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
@@ -654,6 +619,19 @@ export default {
};
this.controlWindows.add = true;
},
//更多
commandMore(val, row) {
if (val === "base") {
serve.getInfo(row.id).then((res) => {
this.controlWindows.addInfo = {
title: "修改",
...res.data,
};
this.controlWindows.add = true;
});
}
},
// detail(row) {
// Promise.all([
// serve.get(row.id),