Commit 3fd0f68e by 张立顺

fix bug

1 parent 78277973
...@@ -234,6 +234,12 @@ export function getResidentListApi(data) { ...@@ -234,6 +234,12 @@ export function getResidentListApi(data) {
return request(data, "post") return request(data, "post")
} }
// 分页查询园区店员工列表(可增加特殊门店列表)
export function getEmployee(data) {
data.method = `dj.api.employee.yq.page`
return request(data, "post")
}
// 导入员工修订工资 // 导入员工修订工资
export function importStaffSalaryApi(data) { export function importStaffSalaryApi(data) {
data.method = `${path2}staffMonthSalary.staffSalary.import` data.method = `${path2}staffMonthSalary.staffSalary.import`
......
<!-- 权限管理 --> <!-- 权限管理 -->
<template> <template>
<d2-dialog title="权限管理" :is-visible="isShow" class="accountDailog" @closeDialog="handleClose" width="850px" <d2-dialog title="权限管理" :is-visible="isShow" class="accountDailog" @closeDialog="handleClose" width="600px"
@confirmDialog="handleAddConfirm"> @confirmDialog="handleAddConfirm">
<div class="content"> <div class="content">
<el-form ref="form" :model="form" :rules="rules" label-suffix=":" label-width="140px"> <el-form ref="form" :model="form" :rules="rules" label-suffix=":" label-width="140px">
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
<el-select multiple collapse-tags v-model="form.staffIds" value-key="id" filterable remote reserve-keyword <el-select multiple collapse-tags v-model="form.staffIds" value-key="id" filterable remote reserve-keyword
placeholder="请选择员工(多选)" style="width: 350px" :remote-method="remoteMethod" @change="changeOpt" placeholder="请选择员工(多选)" style="width: 350px" :remote-method="remoteMethod" @change="changeOpt"
:loading="loading"> :loading="loading">
<el-option v-for="(item, index) in options" :key="item.id" :label="item.staffName" :value="item"> <el-option class="option" v-for="(item, index) in options" :key="item.id" :label="item.staffName"
:value="item">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -24,7 +25,7 @@ ...@@ -24,7 +25,7 @@
</template> </template>
<script> <script>
import { getResidentListApi, getPermissionsList, addBatchPermissions } from "@api/resident" import { getResidentListApi, getPermissionsList, addBatchPermissions, getEmployee } from "@api/resident"
import { deepClone } from '@/common/util' import { deepClone } from '@/common/util'
import { merchantClassifyList } from '@/common/constants' import { merchantClassifyList } from '@/common/constants'
export default { export default {
...@@ -123,8 +124,8 @@ export default { ...@@ -123,8 +124,8 @@ export default {
}) })
}, },
getResidentList() { getResidentList() {
getResidentListApi({ getEmployee({
pageSize: 10, pageSize: 20,
currentPage: 1 currentPage: 1
}).then(res => { }).then(res => {
console.log(res) console.log(res)
...@@ -176,7 +177,7 @@ export default { ...@@ -176,7 +177,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.loading = false this.loading = false
var params = { currentPage: 1, pageSize: 100, staffName: queryString, } var params = { currentPage: 1, pageSize: 100, staffName: queryString, }
getResidentListApi(params).then(res => { getEmployee(params).then(res => {
const list = this.form.staffIds || [] const list = this.form.staffIds || []
const options = [...list, ...res.list || []] const options = [...list, ...res.list || []]
// // 对数据对象去重过滤 // // 对数据对象去重过滤
...@@ -275,4 +276,8 @@ export default { ...@@ -275,4 +276,8 @@ export default {
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
} }
.option {
width: 26%;
}
</style> </style>
<!-- 服务商管理 --> <!-- 服务商管理 -->
<template> <template>
<d2-container class="service-manage"> <d2-container class="service-manage">
<div class="header" <div class="header" slot="header">
slot="header"> <d2-search ref="showSearch" class="show-search" label-width="100px" :search-form="searchForm"
<d2-search ref="showSearch"
class="show-search"
label-width="100px"
:search-form="searchForm"
:form-data="showFormData" /> :form-data="showFormData" />
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" size="small" type="primary">
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -25,27 +18,16 @@ ...@@ -25,27 +18,16 @@
<span slot="left">园区店服务商关联列表</span> <span slot="left">园区店服务商关联列表</span>
<auth-button category="Button" /> <auth-button category="Button" />
</d2-table-header> </d2-table-header>
<d2-table ref="serviceStoreTable" <d2-table ref="serviceStoreTable" :search-form="searchForm" :table-params="tableParams" :get-list-api="getListApi"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" <auth-button slot="auth-button" slot-scope="scope" :data="scope.scope">
slot-scope="scope"
:data="scope.scope">
</auth-button> </auth-button>
</d2-table> </d2-table>
<qrcode-dialog :q-rcode-visible="qRcodeVisible" <qrcode-dialog :q-rcode-visible="qRcodeVisible" :info="recordInfo" v-if="qRcodeVisible"
:info="recordInfo"
v-if="qRcodeVisible"
@dialogClose="dialogClose" /> @dialogClose="dialogClose" />
</div> </div>
<wxQRcodeDialog :q-rcode-visible.sync="QRcodeDialog" <wxQRcodeDialog :q-rcode-visible.sync="QRcodeDialog" v-if="QRcodeDialog" :merchant-info="recordInfo" />
v-if="QRcodeDialog" <scene-entry-dialog :scene-entry-visible="sceneEntryVisible" :info="recordInfo" v-if="sceneEntryVisible"
:merchant-info="recordInfo" />
<scene-entry-dialog :scene-entry-visible="sceneEntryVisible"
:info="recordInfo"
v-if="sceneEntryVisible"
@dialogClose="sceneDialogClose" /> @dialogClose="sceneDialogClose" />
</d2-container> </d2-container>
</template> </template>
...@@ -131,6 +113,10 @@ export default { ...@@ -131,6 +113,10 @@ export default {
prop: 'yqCode' prop: 'yqCode'
}, },
{ {
label: '园区店号',
prop: 'merchantId'
},
{
label: '模式', label: '模式',
prop: '', prop: '',
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -149,10 +135,7 @@ export default { ...@@ -149,10 +135,7 @@ export default {
label: '主服务商', label: '主服务商',
prop: 'partnerMerchantName' prop: 'partnerMerchantName'
}, },
{
label: '园区店号',
prop: 'merchantId'
},
{ {
label: '登录账户', label: '登录账户',
prop: 'accountName' prop: 'accountName'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!