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

左侧接口和bug修改

parent 8e1c6e29
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
}else{ }else{
this.title="供应商" this.title="供应商"
} }
bus.$emit('usertype', type); bus.$emit('menuList', data.menuList);
} }
} catch (e) { } catch (e) {
console.log(e) console.log(e)
......
...@@ -11,37 +11,37 @@ ...@@ -11,37 +11,37 @@
router router
> >
<template v-for="item in items"> <template v-for="item in items">
<template v-if="item.subs"> <template v-if="item.children">
<el-submenu :index="item.index" :key="item.index"> <el-submenu :index="item.index" :key="item.index">
<template slot="title"> <template slot="title">
<i :class="item.icon"></i> <i :class="item.icon"></i>
<span slot="title">{{ item.title }}</span> <span slot="title">{{ item.label }}</span>
</template> </template>
<template v-for="subItem in item.subs"> <template v-for="subItem in item.children">
<el-submenu <el-submenu
v-if="subItem.subs" v-if="subItem.children"
:index="subItem.index" :index="subItem.index"
:key="subItem.index" :key="subItem.index"
> >
<template slot="title">{{ subItem.title }}</template> <template slot="title">{{ subItem.label }}</template>
<el-menu-item <el-menu-item
v-for="(threeItem,i) in subItem.subs" v-for="(threeItem,i) in subItem.children"
:key="i" :key="i"
:index="threeItem.index" :index="threeItem.index"
>{{ threeItem.title }}</el-menu-item> >{{ threeItem.label }}</el-menu-item>
</el-submenu> </el-submenu>
<el-menu-item <el-menu-item
v-else v-else
:index="subItem.index" :index="subItem.index"
:key="subItem.index" :key="subItem.index"
>{{ subItem.title }}</el-menu-item> >{{ subItem.label }}</el-menu-item>
</template> </template>
</el-submenu> </el-submenu>
</template> </template>
<template v-else> <template v-else>
<el-menu-item :index="item.index" :key="item.index"> <el-menu-item :index="item.index" :key="item.index">
<i :class="item.icon"></i> <i :class="item.icon"></i>
<span slot="title">{{ item.title }}</span> <span slot="title">{{ item.label }}</span>
</el-menu-item> </el-menu-item>
</template> </template>
</template> </template>
...@@ -70,174 +70,8 @@ export default { ...@@ -70,174 +70,8 @@ export default {
this.collapse = msg; this.collapse = msg;
bus.$emit('collapse-content', msg); bus.$emit('collapse-content', msg);
}); });
bus.$on('usertype', msg => { bus.$on('menuList', msg => {
let type=msg; this.items = 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: '日志列表',
},
]
},
]
}
}); });
}, },
methods: { methods: {
......
...@@ -26,9 +26,6 @@ ...@@ -26,9 +26,6 @@
type : String type : String
} }
}, },
destroyed() {
clearInterval(time)
},
methods : { methods : {
timeDown () { timeDown () {
const endTime = new Date(this.endTime) const endTime = new Date(this.endTime)
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
<script> <script>
import dataTable from '@components/dataTable.vue' import dataTable from '@components/dataTable.vue'
export default { export default {
name: 'bidingList',
components: { components: {
dataTable dataTable
}, },
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<div v-show="active==0"> <div v-show="active==0">
<div class="describe">整本投标文件</div> <div class="describe">整本投标文件</div>
<div class="flex-center content"> <div class="flex-center content">
<div class="upfile"><span>*</span>投标文件</div>
<Upload :limit="1" :max="200" tip="请不要上传超过200M的PDF文件" accept=".pdf" @input="getfile"></Upload> <Upload :limit="1" :max="200" tip="请不要上传超过200M的PDF文件" accept=".pdf" @input="getfile"></Upload>
</div> </div>
</div> </div>
...@@ -159,6 +160,13 @@ ...@@ -159,6 +160,13 @@
<style scoped> <style scoped>
.upfile{
margin-top: -25px;
margin-right: 15px;
}
.upfile>span{
color:#B21F2D;
}
.content { .content {
padding: 50px 0 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