Commit adce86e5 authored by hangjun83's avatar hangjun83

前端:优化页面及bug修复

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