Commit ca3f8bcc by 前端

菜单迁移

1 parent 8c1aeb0f
...@@ -96,8 +96,242 @@ export const routerName = { ...@@ -96,8 +96,242 @@ export const routerName = {
parentId: "91205", parentId: "91205",
label: "查看标签", label: "查看标签",
handle: "handleViewLabel" handle: "handleViewLabel"
},
{
authId: "9120502",
parentId: "91205",
label: "设备登录历史",
category: "Button",
type: "primary",
handle: "handleLoginHistory"
},
{
authId: "9120503",
parentId: "91205",
label: "导出人员",
category: "Button",
type: "primary",
handle: "handleExportPerson"
},
{
authId: "9120504",
parentId: "91205",
label: "导出标签",
category: "Button",
type: "primary",
handle: "handleExportLabel"
} }
], ],
component: _import("systemConfig/inStoreManage/index") component: _import("systemConfig/inStoreManage/index")
},
91206: {
path: "/staffManage",
name: "staffManage",
meta: {
title: "驻店工资绩效",
authId: "91206",
parentId: "912",
cache: false
},
auth: [
{
authId: "9120601",
parentId: "91206",
label: "导出工资绩效",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9120602",
parentId: "91206",
label: "导入员工",
category: "Button",
handle: "handleImport"
},
{
authId: "9120603",
parentId: "91206",
label: "绩效配置",
handle: "handlePerformance",
addRoutePath: [
{
authId: "912060301",
name: "绩效配置",
parentId: "91206"
}
]
},
{
authId: "9120604",
parentId: "91206",
label: "导师配置",
handle: "handleMentor",
addRoutePath: [
{
authId: "912060401",
name: "导师配置",
parentId: "91206"
}
]
},
{
authId: "9120605",
parentId: "91206",
label: "启用工资绩效",
handle: "handleEnableOrDisable",
ruleObj: {
attr: "performanceFlag",
rule: {
N: "启用工资绩效",
Y: "禁用工资绩效"
}
}
},
{
authId: "9120606",
parentId: "91206",
label: "业绩详情",
handle: "handleDetail"
}
],
component: _import("systemConfig/businessSchoolManage/index")
},
912060301: {
path: "/performanceConfig",
name: "performanceConfig",
meta: {
title: "绩效配置",
authId: "912060301",
parentId: "91206",
sideHidden: true,
activePath: "/staffManage"
},
component: _import("systemConfig/businessSchoolManage/performanceConfig")
},
912060401: {
path: "/mentorConfig",
name: "mentorConfig",
meta: {
title: "导师配置",
authId: "912060401",
parentId: "91206",
sideHidden: true,
activePath: "/staffManage"
},
component: _import("systemConfig/businessSchoolManage/mentorConfig")
},
91207: {
path: "/inStoreGoalsConfig",
name: "inStoreGoalsConfig",
meta: {
title: "驻店目标配置",
authId: "91207",
parentId: "912",
cache: false
},
auth: [
{
authId: "9120701",
parentId: "91207",
label: "新增",
category: "Button",
type: "primary",
handle: "handleAdd",
addRoutePath: [
{
authId: "912070101",
name: "新增",
parentId: "91207"
}
]
},
{
authId: "9120702",
parentId: "91207",
label: "查看",
handle: "handleStoreView",
addRoutePath: [
{
authId: "912070201",
name: "查看",
parentId: "91207"
}
]
},
{
authId: "9120703",
parentId: "91207",
label: "编辑",
handle: "handleStoreEdit",
addRoutePath: [
{
authId: "912070101",
name: "编辑",
parentId: "91207"
}
]
},
{
authId: "9120704",
parentId: "91207",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
},
{
authId: "9120705",
parentId: "91207",
label: "查看",
handle: "handleStaffView",
addRoutePath: [
{
authId: "912070501",
name: "查看任务",
parentId: "91207"
}
]
}
],
component: _import("systemConfig/inStoreGoalsConfig/index")
},
912070101: {
path: "/addInStoreConfig",
name: "addInStoreConfig",
meta: {
title: "新增",
authId: "912070101",
parentId: "91207",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/addInStoreConfig")
},
// 查看店面目标配置
912070201: {
path: "/inStoreConfigView",
name: "inStoreConfigView",
meta: {
title: "查看",
authId: "912070201",
parentId: "91207",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/addInStoreConfig")
},
// 查看驻店员工任务
912070501: {
path: "/employeeTasksView",
name: "employeeTasksView",
meta: {
title: "查看任务",
authId: "912070501",
parentId: "91207",
sideHidden: true,
activePath: "/inStoreGoalsConfig"
},
component: _import("systemConfig/inStoreGoalsConfig/employeeTasksView")
} }
} }
...@@ -10,10 +10,13 @@ ...@@ -10,10 +10,13 @@
:form-data="showFormData"> :form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <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>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -24,7 +27,9 @@ ...@@ -24,7 +27,9 @@
<span class="table-header-title">工资绩效员工列表</span> <span class="table-header-title">工资绩效员工列表</span>
<div class="table-header-tips">共<span class="count">{{ totalNum }}</span>个员工启用工资绩效</div> <div class="table-header-tips">共<span class="count">{{ totalNum }}</span>个员工启用工资绩效</div>
</div> </div>
<auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062101', '9062102']" /> <auth-button category="Button"
style="{display: inline-block}"
:show-btn-ids="['9120601', '9120602']" />
</d2-table-header> </d2-table-header>
<d2-table ref="staffManageTable" <d2-table ref="staffManageTable"
:has-num="false" :has-num="false"
...@@ -33,29 +38,39 @@ ...@@ -33,29 +38,39 @@
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"> @setTableFinishFun="setTableFinishFun">
<div slot="partnerMerchantNameId" slot-scope="scope"> <div slot="partnerMerchantNameId"
slot-scope="scope">
<div v-if="!scope.scope.partnerMerchantNameIdList.length">-</div> <div v-if="!scope.scope.partnerMerchantNameIdList.length">-</div>
<div v-else v-for="(item, index) in scope.scope.partnerMerchantNameIdList" :key="index">{{ item }}</div> <div v-else
v-for="(item, index) in scope.scope.partnerMerchantNameIdList"
:key="index">{{ item }}</div>
</div> </div>
<div slot="partnerMerchantId" slot-scope="scope"> <div slot="partnerMerchantId"
slot-scope="scope">
<div v-if="!scope.scope.partnerMerchantIdList.length">-</div> <div v-if="!scope.scope.partnerMerchantIdList.length">-</div>
<div v-else v-for="(item, index) in scope.scope.partnerMerchantIdList" :key="index">{{ item }}</div> <div v-else
v-for="(item, index) in scope.scope.partnerMerchantIdList"
:key="index">{{ item }}</div>
</div> </div>
<div slot="auth-button" <div slot="auth-button"
slot-scope="scope"> slot-scope="scope">
<!-- 绩效配置 --> <!-- 绩效配置 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062103']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9120603']" />
</span> </span>
<!-- 导师配置 --> <!-- 导师配置 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062104']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9120604']" />
</span> </span>
<!-- 禁/启用工资绩效 --> <!-- 禁/启用工资绩效 -->
<auth-button :data="scope.scope" :show-btn-ids="['9062105']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9120605']" />
<!-- 业绩详情 --> <!-- 业绩详情 -->
<span> <span>
<auth-button :data="scope.scope" :show-btn-ids="['9062106']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9120606']" />
</span> </span>
</div> </div>
</d2-table> </d2-table>
...@@ -109,25 +124,37 @@ ...@@ -109,25 +124,37 @@
ref="exportFileRuleForm" ref="exportFileRuleForm"
label-width="140px" label-width="140px"
:rules="exportFormRules"> :rules="exportFormRules">
<el-form-item label="选择导出月份:" prop="exportMonth"> <el-form-item label="选择导出月份:"
<el-date-picker prop="exportMonth">
v-model="exportFileForm.exportMonth" <el-date-picker v-model="exportFileForm.exportMonth"
class="wid_280" class="wid_280"
type="month" type="month"
placeholder="选择月" placeholder="选择月"
:picker-options="beforeRangePickerOptions"> :picker-options="beforeRangePickerOptions">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="选择园区店:" prop="exportYqMerchantId"> <el-form-item label="选择园区店:"
<el-select class="wid_280" v-model="exportFileForm.exportYqMerchantId" multiple collapse-tags filterable clearable> prop="exportYqMerchantId">
<el-option v-for="(item, index) in yqMerchantList" :key="index" :label="item.merchantName" :value="item.merchantId"></el-option> <el-select class="wid_280"
v-model="exportFileForm.exportYqMerchantId"
multiple
collapse-tags
filterable
clearable>
<el-option v-for="(item, index) in yqMerchantList"
:key="index"
:label="item.merchantName"
:value="item.merchantId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
</slot> </slot>
</d2-dialog> </d2-dialog>
<!-- 业绩详情 --> <!-- 业绩详情 -->
<performance-detail-dialog v-if="perDetailVisible" :detail-info-data="detailInfoData" :per-detail-visible="perDetailVisible" @handleConfirm="handleDetail"></performance-detail-dialog> <performance-detail-dialog v-if="perDetailVisible"
:detail-info-data="detailInfoData"
:per-detail-visible="perDetailVisible"
@handleConfirm="handleDetail"></performance-detail-dialog>
</d2-container> </d2-container>
</template> </template>
...@@ -542,18 +569,18 @@ export default { ...@@ -542,18 +569,18 @@ export default {
.m-t-40 { .m-t-40 {
margin-top: 40px; margin-top: 40px;
} }
.table-header-title{ .table-header-title {
font-size: 16px; font-size: 16px;
color: #333333; color: #333333;
font-weight: 500; font-weight: 500;
} }
.table-header-tips{ .table-header-tips {
font-size: 12px; font-size: 12px;
color: #999999; color: #999999;
display: inline-block; display: inline-block;
margin-left: 8px; margin-left: 8px;
.count{ .count {
color: #D9646C; color: #d9646c;
} }
} }
.staff-list .m-l-md { .staff-list .m-l-md {
...@@ -581,13 +608,13 @@ export default { ...@@ -581,13 +608,13 @@ export default {
top: 50px; top: 50px;
left: 0; left: 0;
} }
::v-deep .el-tag--info{ ::v-deep .el-tag--info {
max-width: 140px; max-width: 140px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
::v-deep .wid_280{ ::v-deep .wid_280 {
width: 280px !important; width: 280px !important;
} }
</style> </style>
...@@ -10,17 +10,22 @@ ...@@ -10,17 +10,22 @@
:form-data="showFormData"> :form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button @click="searchList" size="small" type="primary"> <el-button @click="searchList"
size="small"
type="primary">
查询 查询
</el-button> </el-button>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062504']" /> <auth-button category="Button"
style="{display: inline-block}"
:show-btn-ids="['9120704']" />
</d2-table-header> </d2-table-header>
<d2-table ref="staffTargetTable" <d2-table ref="staffTargetTable"
:has-num="false" :has-num="false"
...@@ -31,57 +36,77 @@ ...@@ -31,57 +36,77 @@
@refreshTable="jumpPage" @refreshTable="jumpPage"
:array-span-method="arraySpanMethod"> :array-span-method="arraySpanMethod">
<!-- 车主类型 --> <!-- 车主类型 -->
<template slot="selectCarType" slot-scope="scope"> <template slot="selectCarType"
slot-scope="scope">
<div v-if="scope.scope.selectCarType == 0">无</div> <div v-if="scope.scope.selectCarType == 0">无</div>
<div v-if="scope.scope.selectCarType == 1">车辆价格:{{ scope.scope.minCarPrice }}-{{ scope.scope.maxCarPrice }}万</div> <div v-if="scope.scope.selectCarType == 1">
车辆价格:{{ scope.scope.minCarPrice }}-{{ scope.scope.maxCarPrice }}万</div>
<div v-if="scope.scope.selectCarType == 2">车辆类型: <div v-if="scope.scope.selectCarType == 2">车辆类型:
<span v-for="(subItem, subIndex) in scope.scope.carList" :key="subIndex">{{ `${subItem.carSeriesName}` }}<span v-if="subIndex < scope.scope.carList.length - 1"> / </span></span> <span v-for="(subItem, subIndex) in scope.scope.carList"
:key="subIndex">{{ `${subItem.carSeriesName}` }}<span
v-if="subIndex < scope.scope.carList.length - 1"> / </span></span>
</div> </div>
</template> </template>
<!-- 商品分类 --> <!-- 商品分类 -->
<template slot="selectGoodsType" slot-scope="scope"> <template slot="selectGoodsType"
slot-scope="scope">
<div v-if="scope.scope.selectGoodsType == 0">无</div> <div v-if="scope.scope.selectGoodsType == 0">无</div>
<div v-if="scope.scope.selectGoodsType == 1"> <div v-if="scope.scope.selectGoodsType == 1">
<span v-for="(subItem, subIndex) in scope.scope.goodsTypeList" :key="subIndex">{{ subItem.goodsTypeName }}<span v-if="subIndex < scope.scope.goodsTypeList.length - 1"> + </span></span> <span v-for="(subItem, subIndex) in scope.scope.goodsTypeList"
:key="subIndex">{{ subItem.goodsTypeName }}<span
v-if="subIndex < scope.scope.goodsTypeList.length - 1"> + </span></span>
</div> </div>
</template> </template>
<!-- 主推产品套餐 --> <!-- 主推产品套餐 -->
<template slot="selectPackageType" slot-scope="scope"> <template slot="selectPackageType"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 0">无</div> <div v-if="scope.scope.selectPackageType == 0">无</div>
<!-- 单商品/多个商品 --> <!-- 单商品/多个商品 -->
<div v-if="scope.scope.selectPackageType == 1"> <div v-if="scope.scope.selectPackageType == 1">
<div style="padding: 0 3px;width: 180px;overflow: hidden; text-overflow: ellipsis;white-space: nowrap;" v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ subItem.upgradeGoodsName }}</div> <div style="padding: 0 3px;width: 180px;overflow: hidden; text-overflow: ellipsis;white-space: nowrap;"
v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ subItem.upgradeGoodsName }}</div>
</div> </div>
<!-- 商品组合 --> <!-- 商品组合 -->
<div v-if="scope.scope.selectPackageType == 2"> <div v-if="scope.scope.selectPackageType == 2">
<span v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ subItem.upgradeGoodsName }}<span v-if="subIndex < scope.scope.packageList.length - 1"> + </span></span> <span v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ subItem.upgradeGoodsName }}<span
v-if="subIndex < scope.scope.packageList.length - 1"> + </span></span>
</div> </div>
</template> </template>
<!-- 目标转化率 --> <!-- 目标转化率 -->
<template slot="conversionRate" slot-scope="scope"> <template slot="conversionRate"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1"> <div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `${subItem.conversionRate}%` || '-' }}</div> <div v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ `${subItem.conversionRate}%` || '-' }}</div>
</div> </div>
<div v-else>{{ `${scope.scope.conversionRate}%` || '-' }}</div> <div v-else>{{ `${scope.scope.conversionRate}%` || '-' }}</div>
</template> </template>
<!-- 目标转化率提成 --> <!-- 目标转化率提成 -->
<template slot="conversionRatePercentage" slot-scope="scope"> <template slot="conversionRatePercentage"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1"> <div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `${subItem.conversionRatePercentage}%` || '-' }}</div> <div v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ `${subItem.conversionRatePercentage}%` || '-' }}</div>
</div> </div>
<div v-else>{{ `${scope.scope.conversionRatePercentage}%` || '-' }}</div> <div v-else>{{ `${scope.scope.conversionRatePercentage}%` || '-' }}</div>
</template> </template>
<!-- 客单价 --> <!-- 客单价 -->
<template slot="customerUnitPrice" slot-scope="scope"> <template slot="customerUnitPrice"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1"> <div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `¥${subItem.customerUnitPrice}` || '-' }}</div> <div v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ `¥${subItem.customerUnitPrice}` || '-' }}</div>
</div> </div>
<div v-else>{{ `¥${scope.scope.customerUnitPrice}` || '-' }}</div> <div v-else>{{ `¥${scope.scope.customerUnitPrice}` || '-' }}</div>
</template> </template>
<!-- 客单价提成 --> <!-- 客单价提成 -->
<template slot="customerUnitPricePercentage" slot-scope="scope"> <template slot="customerUnitPricePercentage"
slot-scope="scope">
<div v-if="scope.scope.selectPackageType == 1"> <div v-if="scope.scope.selectPackageType == 1">
<div v-for="(subItem, subIndex) in scope.scope.packageList" :key="subIndex">{{ `${subItem.customerUnitPricePercentage}%` || '-' }}</div> <div v-for="(subItem, subIndex) in scope.scope.packageList"
:key="subIndex">{{ `${subItem.customerUnitPricePercentage}%` || '-' }}</div>
</div> </div>
<div v-else>{{ `${scope.scope.customerUnitPricePercentage}%` || '-' }}</div> <div v-else>{{ `${scope.scope.customerUnitPricePercentage}%` || '-' }}</div>
</template> </template>
...@@ -97,7 +122,8 @@ ...@@ -97,7 +122,8 @@
slot-scope="scope"> slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062505']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9120705']" />
</span> </span>
</div> </div>
</d2-table> </d2-table>
......
...@@ -10,17 +10,22 @@ ...@@ -10,17 +10,22 @@
:form-data="showFormData"> :form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <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>
<el-button size="small" @click="handleReset"> <el-button size="small"
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<d2-table-header> <d2-table-header>
<auth-button category="Button" style="{display: inline-block}" :show-btn-ids="['9062501']" /> <auth-button category="Button"
style="{display: inline-block}"
:show-btn-ids="['9120701']" />
</d2-table-header> </d2-table-header>
<d2-table ref="storeTargetTable" <d2-table ref="storeTargetTable"
:has-num="false" :has-num="false"
...@@ -29,27 +34,34 @@ ...@@ -29,27 +34,34 @@
:get-list-api="getListApi" :get-list-api="getListApi"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"> @setTableFinishFun="setTableFinishFun">
<template slot="sceneType" slot-scope="scope"> <template slot="sceneType"
slot-scope="scope">
<div v-if="scope.scope.sceneType == 1">精品升级</div> <div v-if="scope.scope.sceneType == 1">精品升级</div>
<div v-if="scope.scope.sceneType == 0">会员权益/升级</div> <div v-if="scope.scope.sceneType == 0">会员权益/升级</div>
</template> </template>
<template slot="partnerMerchantName" slot-scope="scope"> <template slot="partnerMerchantName"
<div v-for="item in scope.scope.serviceList" :key="item.merchantId">{{ item.merchantName }}</div> slot-scope="scope">
<div v-for="item in scope.scope.serviceList"
:key="item.merchantId">{{ item.merchantName }}</div>
<div v-if="!scope.scope.serviceList.length">-</div> <div v-if="!scope.scope.serviceList.length">-</div>
</template> </template>
<template slot="partnerMerchantId" slot-scope="scope"> <template slot="partnerMerchantId"
<div v-for="item in scope.scope.serviceList" :key="item.merchantId">{{ item.merchantId }}</div> slot-scope="scope">
<div v-for="item in scope.scope.serviceList"
:key="item.merchantId">{{ item.merchantId }}</div>
<div v-if="!scope.scope.serviceList.length">-</div> <div v-if="!scope.scope.serviceList.length">-</div>
</template> </template>
<div slot="auth-button" <div slot="auth-button"
slot-scope="scope"> slot-scope="scope">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062502']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9120702']" />
</span> </span>
<!-- 编辑 --> <!-- 编辑 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" :show-btn-ids="['9062503']" /> <auth-button :data="scope.scope"
:show-btn-ids="['9120703']" />
</span> </span>
</div> </div>
</d2-table> </d2-table>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!