欢迎语页面

feature_0521
root 5 years ago
parent 0ae45869a7
commit d00e6e8752

@ -1,6 +1,6 @@
<template>
<div>
<Menu v-show="false" ref="menu" mode="horizontal" :active-name="selectedItemName" v-model="this.threeLevel[0].id">
<Menu v-show="false" ref="menu" mode="horizontal" :active-name="selectedItemName" v-model="this.threeLevel[0] && this.threeLevel[0].id">
<MenuItem :name="cItem.id" :to="cItem.resource" v-for="cItem in threeLevel"
:key="cItem.id">
{{cItem.name}}
@ -22,17 +22,17 @@
}
},
created() {
this.threeLevel = JSON.parse(sessionStorage.getItem("threeLevel"));
this.threeLevel = JSON.parse(sessionStorage.getItem("threeLevel")) || [];
this.menuInit();
},
mounted() {
this.threeLevel = JSON.parse(sessionStorage.getItem("threeLevel"));
this.threeLevel = JSON.parse(sessionStorage.getItem("threeLevel")) || [];
this.menuInit();
},
methods:{
menuInit(){
let that = this;
that.selectedItemName = that.threeLevel[0].id;
that.selectedItemName = that.threeLevel[0] && that.threeLevel[0].id;
this.$nextTick(() => {
that.$refs.menu.updateActiveName();
});

@ -0,0 +1,81 @@
<template>
<div>
<Row class="search-row">
<i-col span="24" class="search-col">
<Row class="row-style"></Row>
</i-col>
</Row>
<Table :columns="columns1" style="margin-top: 20px;" size="small">
<template slot-scope="{s}" slot="action">
<Button type="primary" size="small" @click="handleEdit(s)"></Button>
<Button type="error" size="small" @click="handleDelete(s)"></Button>
</template>
</Table>
<Page
:total="total"
:current="pageNum"
:page-size="pageSize"
show-elevator
show-total
placement="top"
@on-change="handlePage"
class="ks-page"
></Page>
</div>
</template>
<script>
import data from "../../utils/PhoneRegionData";
import http from "../../services/store/IncreaseStoreManager";
import staff from "../../services/staff/staff";
export default {
name: "IncreaseWelcomeList",
inject: ["setMenuName"],
data() {
return {
loading: true,
//
total: 0,
pageSize: 10,
pageNum: 1,
columns1: [
{ title: "序号", key: "id" },
{ title: "欢迎语", key: "content" },
{ title: "配置范围", key: "range" },
{ title: "配置时间", key: "createdate" },
{ title: "修改时间", key: "updatedate" },
{ title: "操作", slot: "action" },
],
formValidate: {
},
};
},
mounted() {
this.setMenuName("门店推广", "欢迎语");
this.handlePaginate();
},
methods: {
//
handlePaginate() {
},
//
handlePage: function(value) {
this.pageNum = value;
},
//
handleEdit(row) {
},
//
handleDelete(row) {
},
},
};
</script>
<style scoped>
</style>
Loading…
Cancel
Save