Commit 600201d9 by crushh

fix: 行政架构列表

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