Commit 0f0e4bec by lsk

布局调整

parent 1663365a
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
class="eContainer-table" class="eContainer-table"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
:row-key="getRowKey" :row-key="getRowKey"
:header-cell-style="{ background: 'eef1f6', color: '#606266' }" :header-cell-style="{ background: 'rgb(235, 235, 235)', color: 'rgb(51, 51, 51)' }"
:highlight-current-row="true" :highlight-current-row="true"
@row-click="rowClick" @row-click="rowClick"
:border="true" :border="true"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
style="width: 100%" style="width: 100%"
class="eContainer-table" class="eContainer-table"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
:header-cell-style="{background: 'eef1f6', color: '#606266'}" :header-cell-style="{background: 'rgb(235, 235, 235)', color: 'rgb(51, 51, 51)'}"
:border="true"> :border="true">
<el-table-column <el-table-column
v-for="(item, key) in tableColumns" v-for="(item, key) in tableColumns"
......
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
:index="item.path + '_' + index" :index="item.path + '_' + index"
> >
<template slot="title"> <template slot="title">
<!-- <i :class="item.icon"></i> --> <i class="el-icon-caret-right" v-if="openFlgArr[index]"></i>
<img :src="item.icon" alt=""> <i class="el-icon-caret-bottom" v-if="!openFlgArr[index]"></i>
<!-- <img :src="item.icon" alt=""> -->
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
</template> </template>
<SubMenu :subMenuList="item.children" /> <SubMenu :subMenuList="item.children" />
...@@ -29,7 +30,7 @@ import SubMenu from "./SubMenu.vue"; ...@@ -29,7 +30,7 @@ import SubMenu from "./SubMenu.vue";
export default { export default {
name: "SubMenu", name: "SubMenu",
components: { SubMenu }, components: { SubMenu },
props: ['subMenuList'], props: ['subMenuList','openFlgArr'],
}; };
</script> </script>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
ref="table" ref="table"
style="width: 100%" style="width: 100%"
class="eContainer-table" class="eContainer-table"
:header-cell-style="{ background: 'eef1f6', color: '#606266' }" :header-cell-style="{ background: 'rgb(235, 235, 235)', color: 'rgb(51, 51, 51)' }"
v-bind="$attrs" v-bind="$attrs"
v-on="tableListeners" v-on="tableListeners"
v-loading="loading" v-loading="loading"
......
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
<style> <style>
#business_container { #business_container {
/* height: 100%; */ /* height: 100%; */
height: calc(100% - 45px); height: calc(100% - 39px);
position: absolute; position: absolute;
width: 100%; width: 100%;
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<i class="el-icon-menu"></i> <i class="el-icon-menu"></i>
<span slot="title">主页</span> <span slot="title">主页</span>
</el-menu-item> --> </el-menu-item> -->
<SubMenu :subMenuList="menus"></SubMenu> <SubMenu :subMenuList="menus" :openFlgArr="openFlgArr"></SubMenu>
</el-menu> </el-menu>
</c-content> </c-content>
</c-row> </c-row>
...@@ -41,6 +41,7 @@ export default { ...@@ -41,6 +41,7 @@ export default {
components: { Button, SubMenu }, components: { Button, SubMenu },
data: function () { data: function () {
return { return {
openFlgArr: [],
menuOpen: true, menuOpen: true,
searchContent: "", searchContent: "",
menuList: [ menuList: [
...@@ -48,25 +49,25 @@ export default { ...@@ -48,25 +49,25 @@ export default {
// { inifrm: "sptsel", ininam: "待办任务", pntmiu: "0" }, // { inifrm: "sptsel", ininam: "待办任务", pntmiu: "0" },
// { inifrm: "trnrel", ininam: "复核任务", pntmiu: "0" }, // { inifrm: "trnrel", ininam: "复核任务", pntmiu: "0" },
// { inifrm: "diasel", ininam: "备忘录选择交易", pntmiu: "0" }, // { inifrm: "diasel", ininam: "备忘录选择交易", pntmiu: "0" },
{ inifrm: "1", ininam: "汇款", pntmiu: "", icon: require("~/assets/icons/sideMenu/汇款.svg") }, { inifrm: "1", ininam: "汇款", pntmiu: ""},
{ inifrm: "infcpd", ininam: "汇款查询", pntmiu: "1" }, { inifrm: "infcpd", ininam: "汇款查询", pntmiu: "1" },
{ inifrm: "cptopn", ininam: "汇出汇款", pntmiu: "1" }, { inifrm: "cptopn", ininam: "汇出汇款", pntmiu: "1" },
{ inifrm: "cptadv", ininam: "汇入汇款", pntmiu: "1" }, { inifrm: "cptadv", ininam: "汇入汇款", pntmiu: "1" },
{ inifrm: "2", ininam: "国内证", pntmiu: "", icon: require("~/assets/icons/sideMenu/国内证.svg") }, { inifrm: "2", ininam: "国内证", pntmiu: "" },
{ inifrm: "ditopn", ininam: "买方信用证开立", pntmiu: "2" }, { inifrm: "ditopn", ininam: "买方信用证开立", pntmiu: "2" },
{ inifrm: "ditame", ininam: "信用证修改", pntmiu: "2" }, { inifrm: "ditame", ininam: "信用证修改", pntmiu: "2" },
{ inifrm: "ditsel", ininam: "信用证查询", pntmiu: "2" }, { inifrm: "ditsel", ininam: "信用证查询", pntmiu: "2" },
{ inifrm: "infbdd", ininam: "买方信用证单据查询", pntmiu: "2" }, { inifrm: "infbdd", ininam: "买方信用证单据查询", pntmiu: "2" },
{ inifrm: "bdtudp", ininam: "国内证承兑", pntmiu: "2" }, { inifrm: "bdtudp", ininam: "国内证承兑", pntmiu: "2" },
{ inifrm: "bdtdcr", ininam: "国内证不符点/拒付", pntmiu: "2" }, { inifrm: "bdtdcr", ininam: "国内证不符点/拒付", pntmiu: "2" },
{ inifrm: "3", ininam: "出口信用证", pntmiu: "", icon: require("~/assets/icons/sideMenu/出口信用证.svg") }, { inifrm: "3", ininam: "出口信用证", pntmiu: "" },
//{ inifrm: "3", ininam: "出口信用证", pntmiu: "" }, //{ inifrm: "3", ininam: "出口信用证", pntmiu: "" },
{ inifrm: "letsel", ininam: "出口信用证查询", pntmiu: "3" }, { inifrm: "letsel", ininam: "出口信用证查询", pntmiu: "3" },
{ inifrm: "letopn", ininam: "出口信用证通知", pntmiu: "3" }, { inifrm: "letopn", ininam: "出口信用证通知", pntmiu: "3" },
{ inifrm: "letame", ininam: "出口信用证修改", pntmiu: "3" }, { inifrm: "letame", ininam: "出口信用证修改", pntmiu: "3" },
{ inifrm: "letrsv", ininam: "出口信用证补通知", pntmiu: "3" }, { inifrm: "letrsv", ininam: "出口信用证补通知", pntmiu: "3" },
{ inifrm: "infled", ininam: "出口信用证查询infled", pntmiu: "3" }, { inifrm: "infled", ininam: "出口信用证查询infled", pntmiu: "3" },
{ inifrm: "4", ininam: "进口信用证", pntmiu: "", icon: require("~/assets/icons/sideMenu/进口信用证.svg")}, { inifrm: "4", ininam: "进口信用证", pntmiu: "" },
{ inifrm: "inflid", ininam: "进口信用证查询", pntmiu: "4" }, { inifrm: "inflid", ininam: "进口信用证查询", pntmiu: "4" },
{ inifrm: "litopn", ininam: "进口信用证开立", pntmiu: "4" }, { inifrm: "litopn", ininam: "进口信用证开立", pntmiu: "4" },
{ inifrm: "litdav", ininam: "进口信用证通知到单", pntmiu: "4" }, { inifrm: "litdav", ininam: "进口信用证通知到单", pntmiu: "4" },
...@@ -79,11 +80,11 @@ export default { ...@@ -79,11 +80,11 @@ export default {
// { inifrm: "bctacc", ininam: "进口代收承兑", pntmiu: "5" }, // { inifrm: "bctacc", ininam: "进口代收承兑", pntmiu: "5" },
// { inifrm: "6", ininam: "静态参数管理", pntmiu: "" }, // { inifrm: "6", ininam: "静态参数管理", pntmiu: "" },
// { inifrm: "infusr", ininam: "用户信息", pntmiu: "6" }, // { inifrm: "infusr", ininam: "用户信息", pntmiu: "6" },
{ inifrm: "5", ininam: "进口代收", pntmiu: "", icon: require("~/assets/icons/sideMenu/进口代收.svg") }, { inifrm: "5", ininam: "进口代收", pntmiu: "" },
{ inifrm: "bctacc", ininam: "进口代收承兑", pntmiu: "5" }, { inifrm: "bctacc", ininam: "进口代收承兑", pntmiu: "5" },
{ inifrm: "6", ininam: "静态参数管理", pntmiu: "", icon: require("~/assets/icons/sideMenu/静态参数.svg") }, { inifrm: "6", ininam: "静态参数管理", pntmiu: "", },
{ inifrm: "infusr", ininam: "用户信息", pntmiu: "6" }, { inifrm: "infusr", ininam: "用户信息", pntmiu: "6" },
{ inifrm: "7", ininam: "转让证", pntmiu: "", icon: require("~/assets/icons/sideMenu/出口信用证.svg") }, { inifrm: "7", ininam: "转让证", pntmiu: "" },
{ inifrm: "lttopn", ininam: "转让证开立", pntmiu: "7" }, { inifrm: "lttopn", ininam: "转让证开立", pntmiu: "7" },
{ inifrm: "lttame", ininam: "转让证修改", pntmiu: "7" }, { inifrm: "lttame", ininam: "转让证修改", pntmiu: "7" },
{ inifrm: "lttcan", ininam: "转让证注销", pntmiu: "7" }, { inifrm: "lttcan", ininam: "转让证注销", pntmiu: "7" },
...@@ -102,6 +103,7 @@ export default { ...@@ -102,6 +103,7 @@ export default {
this.generateMenuTree(arr); this.generateMenuTree(arr);
this.menusOrigin = arr; this.menusOrigin = arr;
this.menus = this.menusOrigin; this.menus = this.menusOrigin;
this.openFlgArr = new Array(this.menus.length).fill(true)
}, },
methods: { methods: {
searchMenuEvent() { searchMenuEvent() {
...@@ -172,9 +174,9 @@ export default { ...@@ -172,9 +174,9 @@ export default {
list.push({ list.push({
name: menuItem.ininam, name: menuItem.ininam,
path: menuItem.path, path: menuItem.path,
icon: menuItem.icon,
children, children,
}); });
} }
} else { } else {
if (menuItem.pntmiu === item.inifrm) { if (menuItem.pntmiu === item.inifrm) {
...@@ -191,11 +193,13 @@ export default { ...@@ -191,11 +193,13 @@ export default {
} }
} }
}, },
handleOpen(key, keyPath) { handleOpen(index, indexPath) {
console.log(key, keyPath); // console.log(index, indexPath);
this.$set(this.openFlgArr, index.split("_")[1], false)
}, },
handleClose(key, keyPath) { handleClose(index, indexPath) {
console.log(key, keyPath); // console.log(index, indexPath);
this.$set(this.openFlgArr, index.split("_")[1], true)
}, },
openMenu() { openMenu() {
this.menuOpen = true; this.menuOpen = true;
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="acccovamt" label="Acc Amount" width="150px"> <el-table-column prop="acccovamt" label="Acc Amount" width="150px">
</el-table-column> </el-table-column>
<el-table-column label="OP" width="75px" fixed="right"> <el-table-column label="操作" width="75px" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<c-button style="margin-left:0" type="primary" size="small" @click="onLiaccvDel(scope.$index,scope.row)"> <c-button style="margin-left:0" type="primary" size="small" @click="onLiaccvDel(scope.$index,scope.row)">
Del</c-button> Del</c-button>
......
...@@ -419,7 +419,7 @@ ...@@ -419,7 +419,7 @@
</el-table-column> </el-table-column>
<el-table-column label="Rate" prop="rat" width="120px"> <el-table-column label="Rate" prop="rat" width="120px">
</el-table-column> </el-table-column>
<el-table-column label="" width="80px" fixed="right"> <el-table-column label="操作" width="135px" fixed="right">
<template> <template>
<el-button <el-button
style="margin-left:0" style="margin-left:0"
...@@ -427,9 +427,15 @@ ...@@ -427,9 +427,15 @@
type="primary" type="primary"
>Get</el-button >Get</el-button
> >
<el-button
style="margin-left:0"
size="small"
type="primary"
>详情</el-button
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="" width="80px"> <!-- <el-table-column label="" width="80px">
<template> <template>
<el-button <el-button
style="margin-left:0" style="margin-left:0"
...@@ -437,7 +443,7 @@ ...@@ -437,7 +443,7 @@
type="primary" type="primary"
>详情</el-button >详情</el-button
> >
</template> </el-table-column> </template> </el-table-column> -->
</c-table> </c-table>
</c-col> </c-col>
......
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