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
6e93dc1f
Commit
6e93dc1f
authored
Sep 24, 2020
by
张冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转
parent
36aa3a61
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
17 deletions
+32
-17
message.vue
src/pages/purchaser/bid/releaseProject/message.vue
+28
-14
releaseProject.vue
src/pages/purchaser/bid/releaseProject/releaseProject.vue
+2
-2
common.js
src/utils/common.js
+2
-1
No files found.
src/pages/purchaser/bid/releaseProject/message.vue
View file @
6e93dc1f
<
template
>
<div
class=
"othercontent"
>
<div
class=
"message"
>
<div
class=
"message
1
"
>
<div>
<div
class=
"describe"
>
基本信息
</div>
<div
class=
"message-form"
>
...
...
@@ -134,7 +134,7 @@
<el-button
type=
"primary"
@
click=
"dialogFormVisible=true"
>
添加
</el-button>
<el-button>
删除
</el-button>
</div>
<dataTable
:table-data=
"
tableData
"
:columns=
"columns"
:page-obj=
"pageObj"
:margin-top=
"10"
:margin-bottom=
"0"
>
<dataTable
:table-data=
"
ruleForm.companyVOList
"
:columns=
"columns"
:page-obj=
"pageObj"
:margin-top=
"10"
:margin-bottom=
"0"
>
<el-table-column
slot=
"operate"
label=
"操作"
align=
"center"
fixed=
"right"
width=
"100"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
...
...
@@ -235,7 +235,6 @@ export default {
dataTableList
},
data
()
{
let
isMin
=
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
{
callback
(
new
Error
(
'请输入'
))
...
...
@@ -441,7 +440,8 @@ export default {
isNeedEarnest
:
false
,
provinceId
:
''
,
cityId
:
''
,
districtId
:
''
districtId
:
''
,
multipleSelection
:[]
}
}
},
...
...
@@ -472,6 +472,21 @@ export default {
getfile
(
val
)
{
console
.
log
(
val
)
},
// 获取邀请的供应商列表
getSelection
(
val
)
{
this
.
multipleSelection
=
val
},
// 删除操作
delAllSelection
()
{
const
length
=
this
.
multipleSelection
.
length
;
let
str
=
''
;
this
.
delList
=
this
.
ruleForm
.
companyVOList
.
concat
(
this
.
multipleSelection
);
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
str
+=
this
.
multipleSelection
[
i
].
name
+
' '
;
}
this
.
$message
.
error
(
`删除了
${
str
}
`
);
this
.
multipleSelection
=
[];
},
// 到下一步
async
next
()
{
const
valid
=
await
this
.
$refs
[
'ruleForm'
].
validate
()
...
...
@@ -504,17 +519,19 @@ export default {
// 邀请状态下选择供应商
choice
(
row
)
{
let
indexof
=
false
if
(
this
.
tableData
.
length
>
0
)
{
for
(
let
item
of
this
.
tableData
)
{
if
(
this
.
ruleForm
.
companyVOList
.
length
>
0
)
{
for
(
let
item
of
this
.
ruleForm
.
companyVOList
)
{
if
(
row
.
id
===
item
.
id
)
{
indexof
=
true
}
}
if
(
!
indexof
)
{
this
.
tableData
.
push
(
row
)
this
.
ruleForm
.
companyVOList
.
push
(
row
)
// this.tableData..push(row)
}
}
else
{
this
.
tableData
.
push
(
row
)
this
.
ruleForm
.
companyVOList
.
push
(
row
)
// this.tableData.push(row)
}
},
// NeedEarnest(val) {
...
...
@@ -536,10 +553,7 @@ export default {
getdistrictId
(
val
)
{
this
.
ruleForm
.
districtId
=
val
},
// 获取邀请的供应商列表
getSelection
(
val
)
{
this
.
ruleForm
.
companyVOList
=
val
},
// 获取项目经理
async
userList
()
{
const
{
...
...
@@ -580,7 +594,7 @@ export default {
</
script
>
<
style
scoped
>
.message
>
div
{
.message
1
>
div
{
background
:
#fff
;
margin-bottom
:
30px
;
}
...
...
@@ -590,7 +604,7 @@ export default {
margin
:
0
auto
}
.message
{
.message
1
{
background
:
#F0F2F5
;
}
...
...
src/pages/purchaser/bid/releaseProject/releaseProject.vue
View file @
6e93dc1f
...
...
@@ -22,7 +22,7 @@
</div>
</div>
<!-- 项目信息 -->
<div
v-show=
"activeIdx==0"
class=
"message"
>
<div
v-show=
"activeIdx==0"
class=
"message
1
"
>
<messaage
@
getruleForm=
"getruleForm"
></messaage>
</div>
<!-- 标的需求 -->
...
...
@@ -56,7 +56,7 @@ export default {
},
data
()
{
return
{
activeIdx
:
3
,
activeIdx
:
0
,
allForm
:
{}
}
},
...
...
src/utils/common.js
View file @
6e93dc1f
export
function
getSearchString
(
key
)
{
// 获取URL中?之后的字符
var
str
=
location
.
search
;
console
.
log
(
str
)
str
=
str
.
substring
(
1
,
str
.
length
);
console
.
log
(
str
)
// 以&分隔字符串,获得类似name=xiaoli这样的元素数组
var
arr
=
str
.
split
(
"&"
);
var
obj
=
new
Object
();
...
...
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