Commit adce86e5 authored by hangjun83's avatar hangjun83

前端:优化页面及bug修复

parent 286a94d0
......@@ -202,8 +202,6 @@ export default {
if (currWidth <= 1200) {
this.sliceNum = 2;
}
this.setStore("currNav", 'page_index');
this.$store.commit("setCurrNav", '平台首页');
},
getCurrNav() {
// 读取选中顶部菜单名
......@@ -342,6 +340,9 @@ export default {
if (this.navList && this.navList.length > 0) {
this.getCurrNav();
}
//默认取第一个菜单为默认菜单
//this.setStore("currNav", this.navList[0].name);
//this.$store.commit("setCurrNav", this.navList[0].title);
},
};
</script>
\ No newline at end of file
</script>
......@@ -20,7 +20,6 @@
</Row>
<Footer />
</Col>
<LangSwitch />
</Row>
</div>
</template>
......
......@@ -10,9 +10,6 @@
<Button @click="addRole" type="primary" icon="md-add">添加角色</Button>
<Button @click="delAll" icon="md-trash">批量删除</Button>
<Button @click="init" icon="md-refresh">刷新</Button>
<Button type="dashed" @click="openTip = !openTip">{{
openTip ? "关闭提示" : "开启提示"
}}</Button>
</Row>
<Alert show-icon v-show="openTip">
已选择
......
......@@ -16,20 +16,14 @@
<FormItem label="登录账号" prop="username">
<Input type="text" v-model="searchForm.username" clearable placeholder="请输入登录账号" style="width: 200px" />
</FormItem>
<FormItem label="创建时间">
<DatePicker :options="options" v-model="selectDate" type="daterange" format="yyyy-MM-dd" clearable @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
</FormItem>
<FormItem style="margin-left: -35px" class="br">
<Button @click="handleSearch" type="primary" icon="ios-search">搜索</Button>
<Button @click="handleReset">重置</Button>
<a class="drop-down" @click="dropDown">
{{ dropDownContent }}
<Icon :type="dropDownIcon"></Icon>
</a>
</FormItem>
</Form>
</Row>
<Row class="operation">
<Col span="12">
<Button @click="add" type="primary" icon="md-add">添加用户</Button>
<Button @click="delAll" icon="md-trash">批量删除</Button>
<Dropdown @on-click="handleDropdown">
......@@ -41,12 +35,12 @@
<DropdownItem name="refresh">刷新</DropdownItem>
</DropdownMenu>
</Dropdown>
<Button type="dashed" @click="openSearch = !openSearch">{{
openSearch ? "关闭搜索" : "开启搜索"
}}</Button>
<Button type="dashed" @click="openTip = !openTip">{{
openTip ? "关闭提示" : "开启提示"
}}</Button>
</Col>
<Col span="12">
<div style="text-align:right;">
<Button icon="ios-search" style="margin-top:10px" type="text" @click="openSearch = !openSearch">关闭/开启搜索</Button>
</div>
</Col>
</Row>
<Alert show-icon v-show="openTip">
已选择
......
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