Commit 0c53a5a8 by 杨北旺

角色管理/创建角色/修改角色

2 parents 3e06ae54 a9d049a6
...@@ -6,46 +6,46 @@ ...@@ -6,46 +6,46 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http_config } from '@/main'
const getMerchantTree = params => { const getMerchantTree = params => {
params.method = 'org.ore.api.common.findMerchantTreeByMerchantNo.list' params.method = 'org.ore.api.common.findMerchantTreeByMerchantNo.list'
return http({ return http_config({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getDepartment = params => { const getDepartment = params => {
params.method = 'cn.com.glsx.entmicro.department.listDepartmentTree' params.method = 'cn.com.glsx.entmicro.department.listDepartmentTree'
return http({ return http_config({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const toGL = params => { const toGL = params => {
params.method = 'org.ore.api.common.relevanceEntmicro.list' params.method = 'org.ore.api.common.relevanceEntmicro.list'
return http({ return http_config({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const merchantInfo = params => { const merchantInfo = params => {
params.method = 'org.ore.api.common.findMerchantInfoByMerchantNo.list' params.method = 'org.ore.api.common.findMerchantInfoByMerchantNo.list'
return http({ return http_config({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
export default { export default {
getMerchantTree, getMerchantTree,
getDepartment, getDepartment,
toGL, toGL,
merchantInfo merchantInfo
} }
\ No newline at end of file \ No newline at end of file
<template> <template>
<div disabled class="btn-unselect" :class="{ 'selectd-type': typeStatus }" @click="tabType"> <div disabled class="btn-unselect" :class="{ 'selectd-type': typeStatus,'no_click': stopClick }" @click="tabType">
<span class="select-type-title">{{ btnLabel }}</span <span class="select-type-title">{{ btnLabel }}</span
><i class="btn-icon" :class="{ 'el-icon-check': typeStatus }"></i> ><i class="btn-icon" :class="{ 'el-icon-check': typeStatus }"></i>
</div> </div>
...@@ -64,6 +64,9 @@ export default { ...@@ -64,6 +64,9 @@ export default {
background: #5850ff; background: #5850ff;
} }
} }
&.no_click {
cursor: not-allowed!important;
}
.select-type-title { .select-type-title {
display: inline-block; display: inline-block;
padding: 0 16px; padding: 0 16px;
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
</template> </template>
<script> <script>
import AMap from "AMap";
let map, placeSearch; let map, placeSearch;
export default { export default {
name: "map", name: "map",
......
...@@ -27,4 +27,5 @@ start() ...@@ -27,4 +27,5 @@ start()
export { bootstrap, mount, unmount } export { bootstrap, mount, unmount }
from '@/setup' from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params)
\ No newline at end of file \ No newline at end of file
export const http_common = params => Vue.prototype.$http_common(params)
export const http_config = params => Vue.prototype.$http_config(params)
\ No newline at end of file \ No newline at end of file
...@@ -13,7 +13,7 @@ let routes = [] ...@@ -13,7 +13,7 @@ let routes = []
let router = null let router = null
let instance = null let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState }) { export async function bootstrap({ name, id, history, common, messenger, globalState }) {
const { response, request, sign, secret, request_common } = await fetchConfig() const { response, request, sign, secret, request_common, request_config } = await fetchConfig()
console.log(request) console.log(request)
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
...@@ -22,6 +22,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt ...@@ -22,6 +22,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, request: request_common, sign, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, request: request_common, sign, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.prototype.$http_config = new common.Http({ response, request: request_config, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] }) Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
......
...@@ -3,14 +3,12 @@ ...@@ -3,14 +3,12 @@
<div v-show="step == 1"> <div v-show="step == 1">
<div class="account-header scrm-flex-between scrm-box-f"> <div class="account-header scrm-flex-between scrm-box-f">
<span>创建子商户/门店</span> <span>创建子商户/门店</span>
<el-select v-model="status" slot="prepend" placeholder="请选择">
<el-option label="门店" :value="1"></el-option>
<el-option label="商户" :value="2"></el-option>
</el-select>
</div> </div>
<div class="account-body scrm-box-f"> <div class="account-body scrm-box-f">
<div class="form-title">企业基本信息</div> <div class="form-title">企业基本信息</div>
<el-form <base-info ref="baseInfoForm" :brandData="brandData" :accountAddForm="accountAddForm" :businessScopeCustomize="businessScopeCustomize" :businessOption="businessOption"></base-info>
<!-- <el-form
ref="baseForm" ref="baseForm"
:model="accountAddForm" :model="accountAddForm"
class="account-body-form" class="account-body-form"
...@@ -39,9 +37,9 @@ ...@@ -39,9 +37,9 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="商户类型" class="merchant-row"> <el-form-item
size="small" label="商户类型" class="merchant-row">
<el-input <el-input
size="small"
v-model="accountAddForm.merchantOrgcode" v-model="accountAddForm.merchantOrgcode"
placeholder="请输入组织机构号码" placeholder="请输入组织机构号码"
v-if="accountAddForm.merchantType == 2" v-if="accountAddForm.merchantType == 2"
...@@ -75,10 +73,11 @@ ...@@ -75,10 +73,11 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="24">
<el-form-item size="small" label="商户地址" class="form-row"> <el-form-item size="small" label="商户地址" class="form-row">
<el-input v-model="accountAddForm.merchantAddress"> </el-input> <el-input v-model="accountAddForm.merchantAddress"> </el-input>
<el-button <el-button
readonly
type="primary" type="primary"
class="form-btn" class="form-btn"
@click="dialogMapVisible = true" @click="dialogMapVisible = true"
...@@ -239,7 +238,7 @@ ...@@ -239,7 +238,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form> -->
</div> </div>
<div class="account-body scrm-box-f"> <div class="account-body scrm-box-f">
<div class="form-title">账户信息</div> <div class="form-title">账户信息</div>
...@@ -373,12 +372,14 @@ import util from "@/utils/util"; ...@@ -373,12 +372,14 @@ import util from "@/utils/util";
import mapView from "@/components/mapView/index"; import mapView from "@/components/mapView/index";
import autoButton from "@/components/auto-button/index"; import autoButton from "@/components/auto-button/index";
import selectProduct from "./components/selectProduct"; import selectProduct from "./components/selectProduct";
import baseInfo from "./components/baseInfo";
export default { export default {
name: "index", name: "index",
components: { components: {
mapView, mapView,
autoButton, autoButton,
selectProduct, selectProduct,
baseInfo
}, },
data() { data() {
const validatePhone = (rule, value, callback) => { const validatePhone = (rule, value, callback) => {
...@@ -406,7 +407,7 @@ export default { ...@@ -406,7 +407,7 @@ export default {
businessScopeCustomize: [{ name: "" }], businessScopeCustomize: [{ name: "" }],
accountAddForm: { accountAddForm: {
status: 1, status: 1,
merchantType: "1", merchantType: 1,
businessScope: [], businessScope: [],
parentId: "", parentId: "",
isloginName: false, isloginName: false,
...@@ -519,7 +520,7 @@ export default { ...@@ -519,7 +520,7 @@ export default {
//下一步 //下一步
handleNext() { handleNext() {
const pm1 = new Promise((resolve, reject) => { const pm1 = new Promise((resolve, reject) => {
this.$refs.baseForm.validate((valid) => { this.$refs.baseInfoForm.$refs.baseForm.validate((valid) => {
if (valid) resolve(); if (valid) resolve();
}); });
}); });
...@@ -548,7 +549,8 @@ export default { ...@@ -548,7 +549,8 @@ export default {
if (params.businessScope) { if (params.businessScope) {
params.businessScope = params.businessScope.join(","); params.businessScope = params.businessScope.join(",");
} }
params.merchantBrand = this.$refs.brandTree.getCheckedKeys().join(","); console.log(this.$refs.baseInfoForm)
params.merchantBrand = this.$refs.baseInfoForm.$refs.brandTree.getCheckedKeys().join(",");
params.isloginName ? (params.isloginName = 1) : (params.isloginName = 0); params.isloginName ? (params.isloginName = 1) : (params.isloginName = 0);
params.merchantAccountLevel = this.accountDetail.merchantAccountLevel; params.merchantAccountLevel = this.accountDetail.merchantAccountLevel;
let businessScopeCustomize = this.businessScopeCustomize.map((item) => item.name); let businessScopeCustomize = this.businessScopeCustomize.map((item) => item.name);
...@@ -568,7 +570,7 @@ export default { ...@@ -568,7 +570,7 @@ export default {
this.nextStatus = true; this.nextStatus = true;
if (typeof res == "number") { if (typeof res == "number") {
this.parentId = res; this.parentId = res;
this.findMenuFunTreeByMerId(); this.$refs.productForm.findMenuFunTreeByMerId();
} }
this.twoMerchantDetail(this.parentId); this.twoMerchantDetail(this.parentId);
} }
......
...@@ -75,7 +75,8 @@ ...@@ -75,7 +75,8 @@
</div> </div>
<div class="account-body scrm-box-f"> <div class="account-body scrm-box-f">
<div class="form-title">修改企业信息</div> <div class="form-title">修改企业信息</div>
<el-form <base-info ref="baseInfoForm" :brandData="brandData" :accountAddForm="accountAddForm" :businessScopeCustomize="businessScopeCustomize" :businessOption="businessOption"></base-info>
<!-- <el-form
ref="baseForm" ref="baseForm"
:model="accountAddForm" :model="accountAddForm"
class="account-body-form" class="account-body-form"
...@@ -299,7 +300,7 @@ ...@@ -299,7 +300,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form> -->
</div> </div>
</div> </div>
<div v-show="step == 'first'"> <div v-show="step == 'first'">
...@@ -326,12 +327,14 @@ ...@@ -326,12 +327,14 @@
import mapView from "@/components/mapView/index"; import mapView from "@/components/mapView/index";
import autoButton from "@/components/auto-button/index"; import autoButton from "@/components/auto-button/index";
import selectProduct from "./components/selectProduct"; import selectProduct from "./components/selectProduct";
import baseInfo from "./components/baseInfo";
export default { export default {
name: "index", name: "index",
components: { components: {
mapView, mapView,
autoButton, autoButton,
selectProduct selectProduct,
baseInfo
}, },
data() { data() {
return { return {
...@@ -449,7 +452,7 @@ export default { ...@@ -449,7 +452,7 @@ export default {
//下一步 //下一步
handleNext() { handleNext() {
const pm1 = new Promise((resolve, reject) => { const pm1 = new Promise((resolve, reject) => {
this.$refs.baseForm.validate((valid) => { this.$refs.baseInfoForm.$refs.baseForm.validate((valid) => {
if (valid) resolve(); if (valid) resolve();
}); });
}); });
...@@ -466,7 +469,7 @@ export default { ...@@ -466,7 +469,7 @@ export default {
if (params.businessScope) { if (params.businessScope) {
params.businessScope = params.businessScope.join(","); params.businessScope = params.businessScope.join(",");
} }
params.merchantBrand = this.$refs.brandTree.getCheckedKeys().join(","); params.merchantBrand = this.$refs.baseInfoForm.$refs.brandTree.getCheckedKeys().join(",");
params.isloginName ? (params.isloginName = 1) : (params.isloginName = 0); params.isloginName ? (params.isloginName = 1) : (params.isloginName = 0);
let businessScopeCustomize = this.businessScopeCustomize.map((item) => item.name); let businessScopeCustomize = this.businessScopeCustomize.map((item) => item.name);
params.businessScopeCustomize = businessScopeCustomize.join(","); params.businessScopeCustomize = businessScopeCustomize.join(",");
...@@ -540,7 +543,7 @@ export default { ...@@ -540,7 +543,7 @@ export default {
for (let i in merchantBrand) { for (let i in merchantBrand) {
merchantBrand[i] = parseInt(merchantBrand[i]); merchantBrand[i] = parseInt(merchantBrand[i]);
} }
this.$refs.brandTree.setCheckedKeys(merchantBrand); this.$refs.baseInfoForm.$refs.brandTree.setCheckedKeys(merchantBrand);
}); });
}, },
getCarbrandTree() { getCarbrandTree() {
......
<template> <template>
<div class="scrm-main"> <div class="scrm-main">
<div class="form-header"> <div class="form-header">
<el-button type="primary" @click="handleSearch" size="small" icon="el-icon-link" <el-button type="primary" @click="handleContact" size="small" icon="el-icon-link"
>门店账户关联企微</el-button >门店账户关联企微</el-button
> >
</div> </div>
<div class="follow-form"> <div class="follow-form">
<el-form :inline="true" :model="searchForm" class="follow-form-item" label-width="80px"> <el-form
:inline="true"
:model="searchForm"
class="follow-form-item"
label-width="80px"
>
<el-row> <el-row>
<el-form-item size="small" label="关联企微"> <el-form-item size="small" label="关联企微">
<el-select v-model="searchForm.isRelevance" placeholder="请选择"> <el-select v-model="searchForm.isRelevance" placeholder="请选择">
<el-option <el-option
v-for="item in optionsContact" v-for="item in optionsContact"
:key="item.value" :key="item.value"
...@@ -18,8 +23,13 @@ ...@@ -18,8 +23,13 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="merchant-row" size="small"> <el-form-item class="merchant-row" size="small">
<el-input size="small" v-model="searchForm.merchantLoginAccount" placeholder="请输入" v-if="searchForm.accountOrPhone == 1"> <el-input
size="small"
v-model="searchForm.merchantLoginAccount"
placeholder="请输入"
v-if="searchForm.accountOrPhone == 1"
>
<el-select <el-select
size="small" size="small"
v-model="searchForm.accountOrPhone" v-model="searchForm.accountOrPhone"
...@@ -30,7 +40,12 @@ ...@@ -30,7 +40,12 @@
<el-option label="手机号" :value="2"></el-option> <el-option label="手机号" :value="2"></el-option>
</el-select> </el-select>
</el-input> </el-input>
<el-input size="small" v-model="searchForm.merchantLegalPersonPhone" placeholder="请输入" v-if="searchForm.accountOrPhone == 2"> <el-input
size="small"
v-model="searchForm.merchantLegalPersonPhone"
placeholder="请输入"
v-if="searchForm.accountOrPhone == 2"
>
<el-select <el-select
size="small" size="small"
v-model="searchForm.accountOrPhone" v-model="searchForm.accountOrPhone"
...@@ -75,7 +90,7 @@ ...@@ -75,7 +90,7 @@
placeholder="请输入商户名称/关联的企业微信名" placeholder="请输入商户名称/关联的企业微信名"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float:right"> <el-form-item size="small" style="float: right">
<el-button type="primary" @click="handleSearch">查询</el-button> <el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item> </el-form-item>
</el-row> </el-row>
...@@ -100,8 +115,16 @@ ...@@ -100,8 +115,16 @@
</div> </div>
<template slot="auth-button" slot-scope="scope" :data="scope.scope"> <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="handleLook(scope.scope)">查看</el-button> <el-button type="text" @click="handleLook(scope.scope)">查看</el-button>
<el-button type="text" @click="handleEdit(scope.scope)" v-if="$globalState.session.merchantId != scope.scope.merchantNo">修改</el-button> <el-button
<el-button type="text" @click="handleAdd(scope.scope)" v-if="scope.scope.status == 2 && $globalState.session.accountLevel != 4" type="text"
@click="handleEdit(scope.scope)"
v-if="$globalState.session.merchantId != scope.scope.merchantNo"
>修改</el-button
>
<el-button
type="text"
@click="handleAdd(scope.scope)"
v-if="scope.scope.status == 2 && $globalState.session.accountLevel != 4"
>创建子商户/门店</el-button >创建子商户/门店</el-button
> >
</template> </template>
...@@ -157,6 +180,9 @@ export default { ...@@ -157,6 +180,9 @@ export default {
{ {
label: "关联的企业微信", label: "关联的企业微信",
prop: "entmicroName", prop: "entmicroName",
formatter: (cellValue) => {
return cellValue.entmicroName ? cellValue.entmicroName : "--";
},
}, },
{ {
label: "账户类型", label: "账户类型",
...@@ -184,6 +210,9 @@ export default { ...@@ -184,6 +210,9 @@ export default {
{ {
label: "联系人", label: "联系人",
prop: "merchantLegalPerson", prop: "merchantLegalPerson",
formatter: (cellValue) => {
return cellValue.merchantLegalPerson ? cellValue.merchantLegalPerson : "--";
},
}, },
{ {
label: "手机号", label: "手机号",
...@@ -198,14 +227,17 @@ export default { ...@@ -198,14 +227,17 @@ export default {
}; };
}, },
methods: { methods: {
handleContact() {
this.$router.push("/baseInfo/relevance/");
},
handleLook(scope) { handleLook(scope) {
this.$router.push("/account/detailAccount/"+scope.id); this.$router.push("/account/detailAccount/" + scope.id);
}, },
handleEdit(scope) { handleEdit(scope) {
this.$router.push("/account/editAccount/"+scope.id); this.$router.push("/account/editAccount/" + scope.id);
}, },
handleAdd(scope) { handleAdd(scope) {
this.$router.push("/account/addAccount/"+scope.id); this.$router.push("/account/addAccount/" + scope.id);
}, },
findAllDictData(dictType) { findAllDictData(dictType) {
var params = { var params = {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<div class="tittle1 text_w">门店名称</div> <div class="tittle1 text_w">门店名称</div>
<div class="tittle2 text_w">有效期</div> <div class="tittle2 text_w">有效期</div>
</div> </div>
<div class="line_body"> <div class="line_body" :style="{height: tableHeight+ 'px'}">
<template v-if="list.length"> <template v-if="list.length">
<div v-for="(item, index) in list" :key="index" class="line_wrapper"> <div v-for="(item, index) in list" :key="index" class="line_wrapper">
<div class="tittle">{{ index + 1 }}</div> <div class="tittle">{{ index + 1 }}</div>
...@@ -66,9 +66,16 @@ ...@@ -66,9 +66,16 @@
<script> <script>
export default { export default {
name: '', name: '',
props: {
list: Array,
bloc: null
},
data() { data() {
return { return {
curOpenIndex: 0, curOpenIndex: 0,
tableHeight: 0,
dataList: [], dataList: [],
leftData: [], leftData: [],
rightData: [], rightData: [],
...@@ -88,10 +95,7 @@ export default { ...@@ -88,10 +95,7 @@ export default {
isOpen: false isOpen: false
} }
}, },
props: {
list: Array,
bloc: null
},
methods: { methods: {
// changeLeftOpenStatus(item, index) { // changeLeftOpenStatus(item, index) {
// this.leftData[index].open = !item.open // this.leftData[index].open = !item.open
...@@ -116,9 +120,14 @@ export default { ...@@ -116,9 +120,14 @@ export default {
// console.log(right) // console.log(right)
// } // }
}, },
mounted() {}
} mounted() {
</script> let clientHeight = document.documentElement.clientHeight;
this.tableHeight = clientHeight - 475;
}
};
</script>
<style lang="scss" scoped> <style lang="scss" scoped>
.bloc-info-module { .bloc-info-module {
box-sizing: border-box; box-sizing: border-box;
...@@ -167,10 +176,6 @@ export default { ...@@ -167,10 +176,6 @@ export default {
height: 0; height: 0;
// transition: height 0.1s ease-in-out; // transition: height 0.1s ease-in-out;
} }
.table_wrapper_open {
height: 378px;
// transition: height 0.1s ease-in-out;
}
.line_wrapper { .line_wrapper {
width: 100%; width: 100%;
min-height: 54px; min-height: 54px;
...@@ -211,7 +216,6 @@ export default { ...@@ -211,7 +216,6 @@ export default {
} }
.line_body { .line_body {
width: 100%; width: 100%;
height: 324px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
} }
......
...@@ -40,9 +40,12 @@ ...@@ -40,9 +40,12 @@
</div> </div>
</div> </div>
<div style="height: 64px"></div> <div style="height: 64px"></div>
<div class="fixed-footer"> <div class="fixed-footer" :style="{
left: footerLeft + 'px',
width: footerWidth + 'px',
}">
<div :style="{ width: customWidth + 'px' }" class="btn-custom" @click="closeCurRouter">取消</div> <div :style="{ width: customWidth + 'px' }" class="btn-custom" @click="closeCurRouter">取消</div>
<div style="width: 40px"></div> <div style="width: 20px"></div>
<div :style="{ width: customWidth + 'px' }" ref="btnWidth" class="btn-custom pruple" @click="handleMutiGL">确定关联({{ dataList.length }})</div> <div :style="{ width: customWidth + 'px' }" ref="btnWidth" class="btn-custom pruple" @click="handleMutiGL">确定关联({{ dataList.length }})</div>
</div> </div>
</div> </div>
...@@ -51,6 +54,7 @@ ...@@ -51,6 +54,7 @@
<script> <script>
export default { export default {
name: '', name: '',
data() { data() {
return { return {
departmentList: [], departmentList: [],
...@@ -89,11 +93,7 @@ export default { ...@@ -89,11 +93,7 @@ export default {
selectedDepartment: '' selectedDepartment: ''
} }
}, },
created() {
this.getDepartmentList()
this.getMerchantList()
},
mounted() {},
methods: { methods: {
// 设置底部按钮宽度 // 设置底部按钮宽度
setBtnWidth() { setBtnWidth() {
...@@ -270,9 +270,20 @@ export default { ...@@ -270,9 +270,20 @@ export default {
return arr1 return arr1
} }
},
created() {
this.getDepartmentList()
this.getMerchantList()
},
mounted() {
this.footerLeft = document.querySelector(".base-container-right").offsetLeft;
this.footerWidth = document.documentElement.clientWidth - this.footerLeft;
} }
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.gl-page { .gl-page {
box-sizing: border-box; box-sizing: border-box;
...@@ -319,7 +330,7 @@ export default { ...@@ -319,7 +330,7 @@ export default {
} }
.tbale-wrapper { .tbale-wrapper {
width: 100%; width: 100%;
height: 590px; min-height: 200px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box; box-sizing: border-box;
...@@ -358,7 +369,7 @@ export default { ...@@ -358,7 +369,7 @@ export default {
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
padding: 8px 0; padding: 12px 0;
} }
.pruple { .pruple {
background: #5850ff; background: #5850ff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!