Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-purchase
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张冬
web-purchase
Commits
cdc5255f
Commit
cdc5255f
authored
Sep 27, 2020
by
张冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
d499e43a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
130 additions
and
136 deletions
+130
-136
Upload.vue
src/components/Upload/Upload.vue
+2
-0
specialUpload.vue
src/components/Upload/specialUpload.vue
+5
-13
Sidebar.vue
src/components/common/Sidebar.vue
+118
-118
releaseProject.vue
src/pages/purchaser/bid/releaseProject/releaseProject.vue
+1
-1
request.js
src/utils/request.js
+4
-4
No files found.
src/components/Upload/Upload.vue
View file @
cdc5255f
...
@@ -135,3 +135,5 @@ export default {
...
@@ -135,3 +135,5 @@ export default {
<!-- Add "scoped" attribute to limit CSS to this component only -->
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
scoped
></
style
>
<
style
scoped
></
style
>
src/components/Upload/specialUpload.vue
View file @
cdc5255f
...
@@ -3,12 +3,11 @@
...
@@ -3,12 +3,11 @@
<div
style=
"width: 100%;"
>
<div
style=
"width: 100%;"
>
<el-upload
<el-upload
:http-request=
"handleUpload"
:http-request=
"handleUpload"
:on-success=
"handleSuccess"
:before-remove=
"beforeRemove"
:before-remove=
"beforeRemove"
:limit=
"limit"
:limit=
"limit"
:on-exceed=
"handleExceed"
:accept=
"accept"
:accept=
"accept"
:show-file-list=
"false"
:show-file-list=
"false"
:on-remove=
"handleRemove"
class=
"upload-demo"
class=
"upload-demo"
action
action
multiple
>
multiple
>
...
@@ -135,24 +134,17 @@ export default {
...
@@ -135,24 +134,17 @@ export default {
return
isLt2M
return
isLt2M
},
},
handleRemove
(
file
,
fileList
,
index
)
{
handleRemove
(
file
,
fileList
,
index
)
{
console
.
log
(
fileList
)
this
.
$emit
(
'on-remove'
,
file
,
fileList
)
this
.
$emit
(
'on-remove'
,
file
,
fileList
)
this
.
fileList
=
fileList
this
.
fileList
=
fileList
this
.
emitInput
(
fileList
)
this
.
emitInput
(
fileList
)
},
},
handlePreview
(
file
)
{
// handleExceed(files, fileList) {
this
.
$emit
(
'on-preview'
,
file
)
// this.$message.warning(`每次只能上传 ${this.limit} 个文件`)
},
// },
handleExceed
(
files
,
fileList
)
{
this
.
$message
.
warning
(
`每次只能上传
${
this
.
limit
}
个文件`
)
},
beforeRemove
(
file
,
fileList
)
{
beforeRemove
(
file
,
fileList
)
{
return
this
.
$confirm
(
`确定移除
${
file
.
name
}
?`
)
return
this
.
$confirm
(
`确定移除
${
file
.
name
}
?`
)
},
},
handleSuccess
(
response
,
file
,
fileList
)
{
console
.
log
(
'成功'
)
this
.
fileList
=
fileList
this
.
$emit
(
'on-success'
,
file
,
fileList
)
},
/**
/**
* 自定义上传方法
* 自定义上传方法
*/
*/
...
...
src/components/common/Sidebar.vue
View file @
cdc5255f
...
@@ -55,101 +55,10 @@ export default {
...
@@ -55,101 +55,10 @@ export default {
data
()
{
data
()
{
return
{
return
{
collapse
:
false
,
collapse
:
false
,
// 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: '日志列表',
// },
// ]
// }
// ],
//供应商
items
:
[
items
:
[
{
{
icon
:
'el-icon-lx-home'
,
icon
:
'el-icon-lx-home'
,
index
:
'/supply
/Home'
,
index
:
'/purchaser
/Home'
,
title
:
'首页'
title
:
'首页'
},
},
{
{
...
@@ -159,13 +68,8 @@ export default {
...
@@ -159,13 +68,8 @@ export default {
subs
:[
subs
:[
{
{
icon
:
'el-icon-lx-home'
,
icon
:
'el-icon-lx-home'
,
index
:
'/supply/bid/signupOnline'
,
index
:
'/purchaser/bid/administrationList'
,
title
:
'在线报名'
,
title
:
'招标项目管理'
,
},
{
icon
:
'el-icon-lx-home'
,
index
:
'/supply/bid/joinProject/projectList'
,
title
:
'我参与的项目'
,
}
}
]
]
},
},
...
@@ -176,11 +80,29 @@ export default {
...
@@ -176,11 +80,29 @@ export default {
subs
:[
subs
:[
{
{
icon
:
'el-icon-lx-home'
,
icon
:
'el-icon-lx-home'
,
index
:
'/supply
/buyOut/buyoutList'
,
index
:
'/purchaser
/buyOut/buyoutList'
,
title
:
'应收账款买断列表'
,
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'
,
icon
:
'el-icon-lx-copy'
,
title
:
'组织管理'
,
title
:
'组织管理'
,
...
@@ -188,17 +110,17 @@ export default {
...
@@ -188,17 +110,17 @@ export default {
subs
:[
subs
:[
{
{
icon
:
'el-icon-lx-home'
,
icon
:
'el-icon-lx-home'
,
index
:
'/supply
/organization/informationSee'
,
index
:
'/purchaser
/organization/informationSee'
,
title
:
'单位信息'
,
title
:
'单位信息'
,
},
},
{
{
icon
:
'el-icon-lx-home'
,
icon
:
'el-icon-lx-home'
,
index
:
'/supply
/organization/memberManagement'
,
index
:
'/purchaser
/organization/memberManagement'
,
title
:
'成员管理'
,
title
:
'成员管理'
,
},
},
{
{
icon
:
'el-icon-lx-home'
,
icon
:
'el-icon-lx-home'
,
index
:
'/supply
/organization/jurisdictionList'
,
index
:
'/purchaser
/organization/jurisdictionList'
,
title
:
'角色管理'
,
title
:
'角色管理'
,
}
}
]
]
...
@@ -210,29 +132,107 @@ export default {
...
@@ -210,29 +132,107 @@ export default {
subs
:[
subs
:[
{
{
icon
:
'el-icon-lx-home'
,
icon
:
'el-icon-lx-home'
,
index
:
'/supply
/organization/jurisdictionList'
,
index
:
'/purchaser
/organization/jurisdictionList'
,
title
:
'CA绑定与解除'
,
title
:
'CA绑定与解除'
,
},
},
{
{
icon
:
'el-icon-lx-home'
,
icon
:
'el-icon-lx-home'
,
index
:
'/supply
/system/logList'
,
index
:
'/purchaser
/system/logList'
,
title
:
'日志列表'
,
title
:
'日志列表'
,
},
},
]
]
},
{
icon
:
'el-icon-lx-cascades'
,
title
:
'制作投标文件'
,
index
:
'4'
,
subs
:[
{
icon
:
'el-icon-lx-home'
,
index
:
'/supply/markBid/markBid'
,
title
:
'制作投标文件'
,
}
}
]
],
},
]
//供应商
// 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: '日志列表',
// },
// ]
// },
// {
// icon: 'el-icon-lx-cascades',
// title: '制作投标文件',
// index:'4',
// subs:[
// {
// icon: 'el-icon-lx-home',
// index: '/supply/markBid/markBid',
// title: '制作投标文件',
// }
// ]
// },
// ]
};
};
},
},
computed
:
{
computed
:
{
...
...
src/pages/purchaser/bid/releaseProject/releaseProject.vue
View file @
cdc5255f
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
activeIdx
:
3
,
activeIdx
:
0
,
allForm
:
{}
allForm
:
{}
}
}
},
},
...
...
src/utils/request.js
View file @
cdc5255f
...
@@ -5,8 +5,8 @@ import { Message, MessageBox } from 'element-ui'
...
@@ -5,8 +5,8 @@ import { Message, MessageBox } from 'element-ui'
// 创建axios实例
// 创建axios实例
const
service
=
axios
.
create
({
const
service
=
axios
.
create
({
//
baseURL: 'http://192.168.200.201:8082/apis',
baseURL
:
'http://192.168.200.201:8082/apis'
,
baseURL
:
'http://192.168.3.35:8085/apis'
,
//
baseURL: 'http://192.168.3.35:8085/apis',
timeout
:
35000
// 请求超时时间
timeout
:
35000
// 请求超时时间
})
})
...
@@ -41,8 +41,8 @@ service.interceptors.response.use(
...
@@ -41,8 +41,8 @@ service.interceptors.response.use(
Message
.
error
(
"登陆失效,请重新登录!"
)
Message
.
error
(
"登陆失效,请重新登录!"
)
localStorage
.
removeItem
(
'token'
);
localStorage
.
removeItem
(
'token'
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
//
location.href = 'http://192.168.200.201:8081/login/user/';
location
.
href
=
'http://192.168.200.201:8081/login/user/'
;
location
.
href
=
'http://localhost:3000/login/user/'
;
//
location.href = 'http://localhost:3000/login/user/';
},
2000
);
},
2000
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment