Commit 3fd0f68e by 张立顺

fix bug

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