|
@@ -16,16 +16,15 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
- <el-button type="success" icon="el-icon-edit" :disabled="ids.length != 1" @click="op('edit', ids)" v-hasPermi="['work:user:edit']">审核</el-button>
|
|
|
<el-button type="danger" icon="el-icon-delete" :disabled="ids.length == 0" @click="del" v-hasPermi="['work:user:remove']">删除{{ ids.length > 0 ? '(' + ids.length + ')' : '' }}</el-button>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
-
|
|
|
<el-table :data="response.rows" border @selection-change="selects" height="calc(100vh - 270px)">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="姓名" align="center" prop="name" />
|
|
|
+ <el-table-column label="姓名" align="center" prop="name" width="130" />
|
|
|
+ <el-table-column label="性别" align="center" prop="sex" width="80" />
|
|
|
<el-table-column label="身份证" align="center" prop="idCard" />
|
|
|
- <el-table-column label="手机号" align="center" prop="phone" />
|
|
|
+ <el-table-column label="手机号" align="center" prop="phone" width="130" />
|
|
|
<el-table-column label="实名认证" align="center" prop="isAuthentication" width="130">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag type="danger" v-if="scope.row.isAuthentication == 0">未实名</el-tag>
|
|
@@ -37,9 +36,10 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag type="danger" v-if="scope.row.isContract == 0">未签署</el-tag>
|
|
|
<el-tag type="success" v-if="scope.row.isContract == 1">已签署</el-tag>
|
|
|
+ <span class="pon" @click="op('contract', scope.row)">查看</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="关联企业数" align="center" prop="isCompany" width="130" />
|
|
|
+ <el-table-column label="关联企业数" align="center" prop="isCompany" width="120" />
|
|
|
<el-table-column label="账号状态" align="center" prop="state" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="switch">
|
|
@@ -49,11 +49,10 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="注册日期" align="center" prop="createTime" />
|
|
|
- <el-table-column label="操作" align="center">
|
|
|
+ <el-table-column label="注册日期" align="center" prop="createTime" width="160" />
|
|
|
+ <el-table-column label="操作" align="center" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)" v-hasPermi="['work:user:list']">详情</el-button>
|
|
|
- <el-button size="mini" type="text" icon="el-icon-edit" @click="op('edit', scope.row)" v-hasPermi="['work:user:edit']">审核</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="del(scope.row)" v-hasPermi="['work:user:remove']">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -67,10 +66,19 @@
|
|
|
|
|
|
<script>
|
|
|
import edit from './edit';
|
|
|
+import contract from './contract';
|
|
|
export default {
|
|
|
name: 'Users',
|
|
|
data() {
|
|
|
return {
|
|
|
+ //设置文档网络地址,可以是相对地址
|
|
|
+ isShowDocx: false,
|
|
|
+ docx: 'https://501351981.github.io/vue-office/examples/dist/static/test-files/test.docx',
|
|
|
+ editorOptions: {
|
|
|
+ toolbar: true,
|
|
|
+ width: '800px',
|
|
|
+ height: '600px'
|
|
|
+ },
|
|
|
ids: [],
|
|
|
showSearch: true,
|
|
|
response: {},
|
|
@@ -109,10 +117,10 @@ export default {
|
|
|
op(tag, row) {
|
|
|
const id = row.id || this.ids[0];
|
|
|
if (tag == 'detail') {
|
|
|
- this.iframe({ obj: audit, param: { id: id, detail: true, companyName: row.companyName }, title: '充值详情', width: '45%', height: '65%' });
|
|
|
+ this.iframe({ obj: edit, param: { id: id, detail: true }, title: '查看详情', width: '55%', height: '60%' });
|
|
|
}
|
|
|
- if (tag == 'edit') {
|
|
|
- this.iframe({ obj: edit, param: { id: id }, title: '审核', width: '60%', height: '70%' });
|
|
|
+ if (tag == 'contract') {
|
|
|
+ this.iframe({ obj: contract, param: { id: id }, title: '查看合同', width: '55%', height: '85%' });
|
|
|
}
|
|
|
//账号状态
|
|
|
if (tag == 'change') {
|