|
@@ -30,18 +30,28 @@
|
|
<el-table class="data-table" ref="data-table" :data="dataList" >
|
|
<el-table class="data-table" ref="data-table" :data="dataList" >
|
|
<sa-td type="selection"></sa-td>
|
|
<sa-td type="selection"></sa-td>
|
|
<sa-td name="手机号码" prop="phone" ></sa-td>
|
|
<sa-td name="手机号码" prop="phone" ></sa-td>
|
|
- <sa-td name="姓名" prop="name" ></sa-td>
|
|
|
|
|
|
+ <sa-td name="姓名" prop="name" width="100"></sa-td>
|
|
<sa-td name="类型" prop="userType" type="enum" :jv="{1: '普通边民', 2: '边民组长', 3: '收购商', 4: '司机', 5: '外籍商户', 6: '合作社'}"></sa-td>
|
|
<sa-td name="类型" prop="userType" type="enum" :jv="{1: '普通边民', 2: '边民组长', 3: '收购商', 4: '司机', 5: '外籍商户', 6: '合作社'}"></sa-td>
|
|
- <!-- <sa-td name="外联id,user_type=1=>边民ID;user_type=3=>商户ID" prop="fkId" ></sa-td> -->
|
|
|
|
- <sa-td name="状态" prop="status" type="enum" :jv="{0: '禁用', 1: '启用'}"></sa-td>
|
|
|
|
- <sa-td name="是否认证" prop="auth" type="enum" :jv="{0: '未认证', 1: '已认证'}"></sa-td>
|
|
|
|
|
|
+ <sa-td name="状态" prop="enable" width="90" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-tag type="primary" v-if="scope.row.status==1">启用</el-tag>
|
|
|
|
+ <el-tag type="danger" v-if="scope.row.status==0">禁用</el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ </sa-td>
|
|
|
|
+ <sa-td name="是否认证" prop="enable" width="90" align="center">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-tag type="success" v-if="scope.row.auth==1">已认证</el-tag>
|
|
|
|
+ <el-tag type="danger" v-if="scope.row.auth==0">未认证</el-tag>
|
|
|
|
+ </template>
|
|
|
|
+ </sa-td>
|
|
<sa-td name="认证时间" prop="authTime" ></sa-td>
|
|
<sa-td name="认证时间" prop="authTime" ></sa-td>
|
|
- <sa-td name="登录次数" prop="loginCount" ></sa-td>
|
|
|
|
|
|
+ <sa-td name="登录次数" prop="loginCount" width="90"></sa-td>
|
|
<sa-td name="上次登录时间" prop="lastLoginTime" ></sa-td>
|
|
<sa-td name="上次登录时间" prop="lastLoginTime" ></sa-td>
|
|
- <el-table-column label="操作" fixed="right" width="240px">
|
|
|
|
|
|
+ <el-table-column label="操作" fixed="right" width="270px">
|
|
<template slot-scope="s">
|
|
<template slot-scope="s">
|
|
<el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看</el-button>
|
|
<el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看</el-button>
|
|
<el-button v-if="sa.isAuth('app-user-edit')" class="c-btn" type="primary" icon="el-icon-edit" @click="update(s.row)">修改</el-button>
|
|
<el-button v-if="sa.isAuth('app-user-edit')" class="c-btn" type="primary" icon="el-icon-edit" @click="update(s.row)">修改</el-button>
|
|
|
|
+ <el-button v-if="sa.isAuth('app-user-edit')" class="c-btn" type="primary" icon="el-icon-view" @click="pass(s.row)">改密</el-button>
|
|
<el-button v-if="sa.isAuth('app-user-del')" class="c-btn" type="danger" icon="el-icon-delete" @click="del(s.row)">删除</el-button>
|
|
<el-button v-if="sa.isAuth('app-user-del')" class="c-btn" type="danger" icon="el-icon-delete" @click="del(s.row)">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -93,6 +103,10 @@
|
|
update: function(data) {
|
|
update: function(data) {
|
|
sa.showIframe('修改数据', 'app-user-add.html?id=' + data.id, '1000px', '90%');
|
|
sa.showIframe('修改数据', 'app-user-add.html?id=' + data.id, '1000px', '90%');
|
|
},
|
|
},
|
|
|
|
+ // 改密
|
|
|
|
+ pass: function(data) {
|
|
|
|
+ sa.showIframe('修改密码', 'app-user-pass.html?id=' + data.id, '500px', '50%');
|
|
|
|
+ },
|
|
// 新增
|
|
// 新增
|
|
add: function(data) {
|
|
add: function(data) {
|
|
sa.showIframe('新增数据', 'app-user-add.html?id=-1', '1000px', '90%');
|
|
sa.showIframe('新增数据', 'app-user-add.html?id=-1', '1000px', '90%');
|