|
@@ -136,13 +136,18 @@
|
|
<el-link v-if="user.timeType.isSecretSalary==0" @click.native="showSalaryList(scope.row)"><i class="iconfont firerock-iconrecord"></i></el-link>
|
|
<el-link v-if="user.timeType.isSecretSalary==0" @click.native="showSalaryList(scope.row)"><i class="iconfont firerock-iconrecord"></i></el-link>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" width="330">
|
|
|
|
|
|
+ <el-table-column label="状态" width="160">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{scope.row.isActive==0 ? '离职(' + scope.row.inactiveDate + ')' : '在职'}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="操作" width="300">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName == '超级管理员' && user.id == scope.row.id" @click="transferRole(scope.row)">转让</el-button>
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName == '超级管理员' && user.id == scope.row.id" @click="transferRole(scope.row)">转让</el-button>
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName != '超级管理员'" @click="resetPwd(scope.row)">重置</el-button>
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName != '超级管理员'" @click="resetPwd(scope.row)">重置</el-button>
|
|
<el-button size="mini" type="primary" v-if="scope.row.roleName != '超级管理员'" @click="openInsertDialog(scope.row)">编辑</el-button>
|
|
<el-button size="mini" type="primary" v-if="scope.row.roleName != '超级管理员'" @click="openInsertDialog(scope.row)">编辑</el-button>
|
|
<el-button size="mini" type="primary" v-if="scope.row.roleName == '超级管理员'" @click="openInsertDialog1(scope.row)">编辑</el-button>
|
|
<el-button size="mini" type="primary" v-if="scope.row.roleName == '超级管理员'" @click="openInsertDialog1(scope.row)">编辑</el-button>
|
|
- <el-button size="mini" type="danger" v-if="scope.row.roleName != '超级管理员'" @click="deleteUser(scope.row)">删除</el-button>
|
|
|
|
|
|
+ <!-- <el-button size="mini" type="danger" v-if="scope.row.roleName != '超级管理员'" @click="deleteUser(scope.row)">删除</el-button> -->
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName != '超级管理员' && scope.row.isActive==1" @click="showDeactiveDialog(scope.row)">停用</el-button>
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName != '超级管理员' && scope.row.isActive==1" @click="showDeactiveDialog(scope.row)">停用</el-button>
|
|
<el-button size="mini" type="success" v-if="scope.row.roleName != '超级管理员' && scope.row.isActive==0" @click="setActive(scope.row, 1)">启用</el-button>
|
|
<el-button size="mini" type="success" v-if="scope.row.roleName != '超级管理员' && scope.row.isActive==0" @click="setActive(scope.row, 1)">启用</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -309,6 +314,7 @@
|
|
|
|
|
|
</el-form>
|
|
</el-form>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="danger" @click="deleteUser(insertForm)" style="float:left;">删除</el-button>
|
|
<el-button @click="dialogVisible=false">取消</el-button>
|
|
<el-button @click="dialogVisible=false">取消</el-button>
|
|
<el-button type="primary" @click="submitInsert('insertForm')" :loading="submitLoading">提交</el-button>
|
|
<el-button type="primary" @click="submitInsert('insertForm')" :loading="submitLoading">提交</el-button>
|
|
</span>
|
|
</span>
|
|
@@ -1717,6 +1723,7 @@
|
|
// console.log('insertForm',this.insertForm);
|
|
// console.log('insertForm',this.insertForm);
|
|
}
|
|
}
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
|
|
+ console.log(this.insertForm);
|
|
},
|
|
},
|
|
|
|
|
|
submitInsert() {
|
|
submitInsert() {
|