优化:非普通商户不显示是否已经成为员工
This commit is contained in:
parent
626ad4774c
commit
45775c1929
|
|
@ -35,7 +35,7 @@
|
||||||
<span>{{ scope.row.user_type | statusFilter }}</span>
|
<span>{{ scope.row.user_type | statusFilter }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="是否已成为员工" min-width="150" align="center">
|
<el-table-column label="是否已成为员工" min-width="150" align="center" v-if="config.merchant_type == 0">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.is_store_service == 1" type="success" effect="dark">是</el-tag>
|
<el-tag v-if="scope.row.is_store_service == 1" type="success" effect="dark">是</el-tag>
|
||||||
<el-tag v-else type="info" effect="dark">否</el-tag>
|
<el-tag v-else type="info" effect="dark">否</el-tag>
|
||||||
|
|
@ -61,6 +61,7 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import { userLstApi } from '@/api/system'
|
import { userLstApi } from '@/api/system'
|
||||||
|
import {getConfigApi} from "@/api/systemForm";
|
||||||
export default {
|
export default {
|
||||||
name: 'UserList',
|
name: 'UserList',
|
||||||
filters: {
|
filters: {
|
||||||
|
|
@ -85,6 +86,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
config: {},
|
||||||
moren: require('@/assets/images/f.png'),
|
moren: require('@/assets/images/f.png'),
|
||||||
templateRadio: 0,
|
templateRadio: 0,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
|
@ -101,6 +103,11 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList(1)
|
this.getList(1)
|
||||||
|
getConfigApi().then(res => {
|
||||||
|
this.config = res.data || {};
|
||||||
|
}).catch(res => {
|
||||||
|
this.$message.error(res.message)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTemplateRow(idx, row) {
|
getTemplateRow(idx, row) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue