Commit 600201d9 by crushh

fix: 行政架构列表

parent 5f2a9d79
...@@ -9,32 +9,30 @@ ...@@ -9,32 +9,30 @@
<template> <template>
<div class="employee-table"> <div class="employee-table">
<el-table :data="employeeList" @selection-change="selectMember" @row-click="linkToDetail"> <el-table :data="employeeList" @selection-change="selectMember" @row-click="linkToDetail">
<template v-for="prop in headList"> <el-table-column type="selection" width="42"> </el-table-column>
<el-table-column :key="prop" v-if="prop == 'selection'" type="selection" width="42"> </el-table-column> <el-table-column prop="name" label="姓名">
<el-table-column :key="prop" v-if="prop == 'name'" label="姓名"> <template slot-scope="scope">
<template slot-scope="scope"> <span>{{ scope.row.name }}</span>
<span>{{ scope.row.name }}</span> <span v-if="scope.row.isManager == 1" class="is-manager">部门负责人</span>
<span v-if="scope.row.isManager == 1" class="is-manager">部门负责人</span> </template>
</template> </el-table-column>
</el-table-column> <el-table-column prop="phoneNumber" label="手机号">
<el-table-column :key="prop" v-if="prop == 'phoneNumber'" label="手机号"> <template slot-scope="scope">
<template slot-scope="scope"> {{ scope.row.nationcode == '86' ? scope.row.phoneNumber : '+' + scope.row.nationcode + '-' + scope.row.phoneNumber || '--' }}
{{ scope.row.nationcode == '86' ? scope.row.phoneNumber : '+' + scope.row.nationcode + '-' + scope.row.phoneNumber || '--' }} </template>
</template> </el-table-column>
</el-table-column> <el-table-column label="职位" prop="positionName">
<el-table-column :key="prop" v-if="prop == 'positionName'" label="职位" prop="positionName"> <template slot-scope="scope">
<template slot-scope="scope"> {{ !!scope.row.positionName ? scope.row.positionName : '--' }}
{{ !!scope.row.positionName ? scope.row.positionName : '--' }} </template>
</template> </el-table-column>
</el-table-column> <el-table-column label="状态">
<el-table-column :key="prop" v-if="prop == 'activationStatus'" label="状态"> <template slot-scope="scope">
<template slot-scope="scope"> <div class="status-icon" :class="scope.row.activationStatus == 1 ? 'is-active' : ''">
<div class="status-icon" :class="scope.row.activationStatus == 1 ? 'is-active' : ''"> <i class="iconfont icon-shouji"></i>
<i class="iconfont icon-shouji"></i> </div>
</div> </template>
</template> </el-table-column>
</el-table-column>
</template>
</el-table> </el-table>
</div> </div>
</template> </template>
...@@ -74,6 +72,9 @@ export default { ...@@ -74,6 +72,9 @@ export default {
let path = '/employee?employeeClerkId=' + row.employeeClerkId; let path = '/employee?employeeClerkId=' + row.employeeClerkId;
this.$router.push(path); this.$router.push(path);
} }
},
mounted() {
console.log(this.employeeList);
} }
}; };
</script> </script>
......
...@@ -208,6 +208,13 @@ export default { ...@@ -208,6 +208,13 @@ export default {
* 批量删除成员 * 批量删除成员
*/ */
delMembers() { delMembers() {
if (!this.selectedList.length) {
this.$message({
message: '请选择员工',
type: 'warning'
});
return false;
}
let that = this; let that = this;
that that
.$confirm('是否要删除选中的员工?', '提示', { .$confirm('是否要删除选中的员工?', '提示', {
...@@ -219,14 +226,6 @@ export default { ...@@ -219,14 +226,6 @@ export default {
that.selectedList.forEach(li => { that.selectedList.forEach(li => {
arr.push(li.employeeClerkId); arr.push(li.employeeClerkId);
}); });
if (!arr.length) {
that.$message({
message: '请选择员工',
type: 'warning'
});
that.loading = false;
return false;
}
let params = { let params = {
ids: arr.join(',') ids: arr.join(',')
}; };
......
...@@ -632,7 +632,6 @@ export default { ...@@ -632,7 +632,6 @@ export default {
* 获取卡券列表 * 获取卡券列表
*/ */
getCardList(brandId) { getCardList(brandId) {
console.log(brandId);
const that = this; const that = this;
let para = { let para = {
brandId: brandId, brandId: brandId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment