Commit 61a10ec0 by 陈羽

update: 删除门店签到权限控制

parent 5001affb
import { requests } from './index';
const PREFIX = 'api-auth/';
import config from '@/config';
export const url = config.api + PREFIX;
// 门店签到计划新建权限
export const getLoginUserInfo = params => requests(PREFIX + 'get-login-user-info', params);
......@@ -9,7 +9,7 @@
</el-select>
<el-input v-model="pageParams.storeSignName" class="w300" placeholder="计划名称" clearable @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
</div>
<el-button type="primary" @click="goAddPlan" v-if="rightCode">新建计划</el-button>
<el-button type="primary" @click="goAddPlan" >新建计划</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%">
<el-table-column :show-overflow-tooltip="true" align="left" prop="storeSignName" label="计划名称"></el-table-column>
......@@ -45,7 +45,6 @@
<script>
/* eslint-disable */
import { getPageSignPlan, delSignPlan } from '@/service/api/storeSign.js';
import { getLoginUserInfo } from '@/service/api/auth.js';
import { formatDateTimeByType } from '@/utils/index.js';
export default {
name: 'sign-record',
......@@ -60,7 +59,6 @@ export default {
},
total: 0,
tableList: [],
rightCode: false,
// 门店单选
storeName: '',
storeDialog: false,
......@@ -103,18 +101,9 @@ export default {
},
created() {
this.$store.commit('mutations_breadcrumb', [{ name: '门店签到' }, { name: '计划列表', path: '' }]);
this.getInfo();
this.fetch();
},
methods: {
async getInfo() {
let res = await getLoginUserInfo({});
if (res.errorCode === 0 && res.result && Array.isArray(res.result.aclList)) {
res.result.aclList.map((item) => {
if (item.rightCode === 'sign_setting_build') this.rightCode = true;
});
}
},
async fetch() {
try {
this.loading = true;
......
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