Commit 8a90beb2 authored by 张冬's avatar 张冬

左侧接口和bug修改

parent 8e1c6e29
......@@ -85,7 +85,7 @@ export default {
}else{
this.title="供应商"
}
bus.$emit('usertype', type);
bus.$emit('menuList', data.menuList);
}
} catch (e) {
console.log(e)
......
......@@ -11,37 +11,37 @@
router
>
<template v-for="item in items">
<template v-if="item.subs">
<template v-if="item.children">
<el-submenu :index="item.index" :key="item.index">
<template slot="title">
<i :class="item.icon"></i>
<span slot="title">{{ item.title }}</span>
<span slot="title">{{ item.label }}</span>
</template>
<template v-for="subItem in item.subs">
<template v-for="subItem in item.children">
<el-submenu
v-if="subItem.subs"
v-if="subItem.children"
:index="subItem.index"
:key="subItem.index"
>
<template slot="title">{{ subItem.title }}</template>
<template slot="title">{{ subItem.label }}</template>
<el-menu-item
v-for="(threeItem,i) in subItem.subs"
v-for="(threeItem,i) in subItem.children"
:key="i"
:index="threeItem.index"
>{{ threeItem.title }}</el-menu-item>
>{{ threeItem.label }}</el-menu-item>
</el-submenu>
<el-menu-item
v-else
:index="subItem.index"
:key="subItem.index"
>{{ subItem.title }}</el-menu-item>
>{{ subItem.label }}</el-menu-item>
</template>
</el-submenu>
</template>
<template v-else>
<el-menu-item :index="item.index" :key="item.index">
<i :class="item.icon"></i>
<span slot="title">{{ item.title }}</span>
<span slot="title">{{ item.label }}</span>
</el-menu-item>
</template>
</template>
......@@ -70,174 +70,8 @@ export default {
this.collapse = msg;
bus.$emit('collapse-content', msg);
});
bus.$on('usertype', msg => {
let type=msg;
if(type==1){
this.items= [
{
icon: 'el-icon-lx-home',
index: '/purchaser/Home',
title: '首页'
},
{
icon: 'el-icon-lx-home',
index:"2",
title: '招标管理',
subs:[
{
icon: 'el-icon-lx-home',
index: '/purchaser/bid/administrationList',
title: '招标项目管理',
}
]
},
{
icon: 'el-icon-lx-cascades',
title: '应收账款买断管理',
index:'3',
subs:[
{
icon: 'el-icon-lx-home',
index: '/purchaser/buyOut/buyoutList',
title: '应收账款买断列表',
}
]
},
{
icon: 'el-icon-lx-cascades',
title: '供应商管理',
index:'4',
subs:[
{
icon: 'el-icon-lx-home',
index: '/purchaser/supply/allSupplyList',
title: '供应商列表',
},
{
icon: 'el-icon-lx-home',
index: '/purchaser/supply/mySupplyList',
title: '我的供应商',
}
]
},
{
icon: 'el-icon-lx-copy',
title: '组织管理',
index:'5',
subs:[
{
icon: 'el-icon-lx-home',
index: '/purchaser/organization/informationSee',
title: '单位信息',
},
{
icon: 'el-icon-lx-home',
index: '/purchaser/organization/memberManagement',
title: '成员管理',
},
{
icon: 'el-icon-lx-home',
index: '/purchaser/organization/jurisdictionList',
title: '角色管理',
}
]
},
{
icon: 'el-icon-lx-redpacket_fill',
title: '系统管理',
index:'6',
subs:[
{
icon: 'el-icon-lx-home',
index: '/purchaser/organization/jurisdictionList',
title: 'CA绑定与解除',
},
{
icon: 'el-icon-lx-home',
index: '/purchaser/system/logList',
title: '日志列表',
},
]
}
]
}else{
this.items=[
{
icon: 'el-icon-lx-home',
index: '/supply/Home',
title: '首页'
},
{
icon: 'el-icon-lx-home',
index:"2",
title: '招标管理',
subs:[
{
icon: 'el-icon-lx-home',
index: '/supply/bid/signupOnline',
title: '在线报名',
},
{
icon: 'el-icon-lx-home',
index: '/supply/bid/joinProject/projectList',
title: '我参与的项目',
}
]
},
{
icon: 'el-icon-lx-cascades',
title: '应收账款买断管理',
index:'3',
subs:[
{
icon: 'el-icon-lx-home',
index: '/supply/buyOut/buyoutList',
title: '应收账款买断列表',
}
]
},
{
icon: 'el-icon-lx-copy',
title: '组织管理',
index:'5',
subs:[
{
icon: 'el-icon-lx-home',
index: '/supply/organization/informationSee',
title: '单位信息',
},
{
icon: 'el-icon-lx-home',
index: '/supply/organization/memberManagement',
title: '成员管理',
},
{
icon: 'el-icon-lx-home',
index: '/supply/organization/jurisdictionList',
title: '角色管理',
}
]
},
{
icon: 'el-icon-lx-redpacket_fill',
title: '系统管理',
index:'6',
subs:[
{
icon: 'el-icon-lx-home',
index: '/supply/organization/jurisdictionList',
title: 'CA绑定与解除',
},
{
icon: 'el-icon-lx-home',
index: '/supply/system/logList',
title: '日志列表',
},
]
},
]
}
bus.$on('menuList', msg => {
this.items = msg;
});
},
methods: {
......
......@@ -26,9 +26,6 @@
type : String
}
},
destroyed() {
clearInterval(time)
},
methods : {
timeDown () {
const endTime = new Date(this.endTime)
......
......@@ -43,7 +43,6 @@
<script>
import dataTable from '@components/dataTable.vue'
export default {
name: 'bidingList',
components: {
dataTable
},
......
......@@ -20,6 +20,7 @@
<div v-show="active==0">
<div class="describe">整本投标文件</div>
<div class="flex-center content">
<div class="upfile"><span>*</span>投标文件</div>
<Upload :limit="1" :max="200" tip="请不要上传超过200M的PDF文件" accept=".pdf" @input="getfile"></Upload>
</div>
</div>
......@@ -159,6 +160,13 @@
<style scoped>
.upfile{
margin-top: -25px;
margin-right: 15px;
}
.upfile>span{
color:#B21F2D;
}
.content {
padding: 50px 0
}
......
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