Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
Administrator
dsk-cr20g
Commits
7e8e848d
Commit
7e8e848d
authored
Jun 06, 2023
by
MyName
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目管理
parent
625569df
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
247 additions
and
138 deletions
+247
-138
project.js
dsk-operate-ui/src/api/project/project.js
+34
-0
jsnr.vue
...erate-ui/src/views/project/projectList/component/jsnr.vue
+2
-1
lxr.vue
...perate-ui/src/views/project/projectList/component/lxr.vue
+1
-1
xgqy.vue
...erate-ui/src/views/project/projectList/component/xgqy.vue
+30
-26
xmsl.vue
...erate-ui/src/views/project/projectList/component/xmsl.vue
+91
-41
detail.vue
dsk-operate-ui/src/views/project/projectList/detail.vue
+88
-68
index.vue
dsk-operate-ui/src/views/project/projectList/index.vue
+1
-1
No files found.
dsk-operate-ui/src/api/project/project.js
View file @
7e8e848d
...
...
@@ -44,6 +44,23 @@ export function editXMNR(param) {
data
:
param
})
}
//项目标签新增
export
function
addLabel
(
param
)
{
return
request
({
url
:
'/business/label/add'
,
method
:
'POST'
,
data
:
param
})
}
//项目标签删除
export
function
removeLabel
(
param
)
{
return
request
({
url
:
'/business/label/remove'
,
method
:
'POST'
,
data
:
param
})
}
//查询项目联系人
export
function
getLXR
(
param
)
{
...
...
@@ -124,3 +141,20 @@ export function editGZDB(param) {
data
:
param
})
}
//查询相关企业
export
function
getXGQY
(
param
)
{
return
request
({
url
:
'/business/company/list'
,
method
:
'GET'
,
params
:
param
})
}
//新增相关企业
export
function
addXGQY
(
param
)
{
return
request
({
url
:
'/business/company/add'
,
method
:
'POST'
,
data
:
param
})
}
dsk-operate-ui/src/views/project/projectList/component/jsnr.vue
View file @
7e8e848d
...
...
@@ -251,8 +251,9 @@
param
.
id
=
this
.
id
editXMNR
(
param
).
then
(
result
=>
{
if
(
result
.
code
==
200
)
this
.
$message
.
success
(
'修改成功'
)
this
.
$message
.
success
(
'修改成功
!
'
)
else
{
this
.
$message
.
error
(
res
.
msg
)
this
.
getJSNR
()
}
})
...
...
dsk-operate-ui/src/views/project/projectList/component/lxr.vue
View file @
7e8e848d
...
...
@@ -61,7 +61,7 @@
</el-table>
<div
class=
"bottems"
>
<div
class=
"btn btn_primary h28"
@
click=
"opennew"
><div
class=
"img img1"
></div>
新增联系人
</div>
<el-pagination
<el-pagination
v-if=
"total>searchParam.pageSize"
background
:page-size=
"searchParam.pageSize"
:current-page=
"searchParam.pageNum"
...
...
dsk-operate-ui/src/views/project/projectList/component/xgqy.vue
View file @
7e8e848d
...
...
@@ -4,8 +4,10 @@
<el-card
class=
"box-card noborder"
>
<div
class=
"cardtitles"
>
相关企业
</div>
<div
class=
"searchbtns"
>
<el-select
class=
"select"
placeholder=
"企业角色"
>
<option
label=
"111"
value=
"222"
></option>
<el-select
class=
"select"
placeholder=
"企业类型"
>
<el-select
placeholder=
"请选择"
>
<el-option
v-for=
"(item,index) in companytype"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-select>
<div
class=
"searchInput"
>
<el-input
type=
"text"
placeholder=
"输入关键词查询"
></el-input>
...
...
@@ -85,9 +87,7 @@
<span>
新建相关企业
</span>
</div>
<div
class=
"types"
>
<div
:class=
"{'on':types==1}"
@
click=
"types=1"
><i></i>
业主单位
</div>
<div
:class=
"{'on':types==2}"
@
click=
"types=2"
><i></i>
合作伙伴
</div>
<div
:class=
"{'on':types==3}"
@
click=
"types=3"
><i></i>
竞争对手
</div>
<div
v-for=
"(item,index) in companytype"
:class=
"{'on':types==item.dictValue}"
@
click=
"types=item.dictLabel"
><i></i>
{{item.dictLabel}}
</div>
</div>
<div
class=
"popform"
>
<div
class=
"popbot"
style=
"padding-right: 0"
>
...
...
@@ -102,34 +102,24 @@
width=
"464px"
>
<div
class=
"poptitle"
>
<img
src=
"@/assets/images/economies/icon.png"
>
<span>
新建相关企业-{{types
==1?"业主单位":""}}{{types==2?"合作伙伴":""}}{{types==3?"竞争对手":""
}}
</span>
<span>
新建相关企业-{{types}}
</span>
</div>
<el-form
class=
"popform i"
label-width=
"85px"
:rules=
"rules"
ref=
"ruleForm"
>
<el-form-item
label=
"企业名称:"
prop=
"projectName"
class=
"row"
>
<el-input
type=
"text"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
v-if=
"types == 1"
label=
"对接深度:"
class=
"row"
>
<el-select
placeholder=
"请选择"
>
<el-option
label=
"cccc"
value=
"11"
></el-option>
<el-option
label=
"cccc"
value=
"121"
></el-option>
</el-select>
<el-form-item
v-if=
"types == companytype[0].dictValue"
label=
"对接深度:"
class=
"row"
>
<el-input
type=
"text"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
v-if=
"types == 2"
label=
"合作阶段:"
class=
"row"
>
<el-select
placeholder=
"请选择"
>
<el-option
label=
"cccc"
value=
"11"
></el-option>
<el-option
label=
"cccc"
value=
"121"
></el-option>
</el-select>
<el-form-item
v-if=
"types == companytype[1].dictValue"
label=
"合作阶段:"
class=
"row"
>
<el-input
type=
"text"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
v-if=
"types == 3"
label=
"竞争力度:"
prop=
"projectName"
class=
"row"
>
<el-select
placeholder=
"请选择"
>
<el-option
label=
"cccc"
value=
"11"
></el-option>
<el-option
label=
"cccc"
value=
"121"
></el-option>
</el-select>
<el-form-item
v-if=
"types == companytype[2].dictValue"
label=
"竞争力度:"
class=
"row"
>
<el-input
type=
"text"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
"企业角色:"
prop=
"projectName"
class=
"row"
>
<el-form-item
label=
"企业角色:"
class=
"row"
>
<el-select
placeholder=
"请选择"
>
<el-option
label=
"cccc"
value=
"11"
></el-option>
<el-option
label=
"cccc"
value=
"121"
></el-option>
<el-option
v-for=
"(item,index) in companyrole"
:key=
"index"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"负责人:"
class=
"row"
>
...
...
@@ -147,8 +137,10 @@
<
script
>
import
"@/assets/styles/project.scss"
import
{
getXGQY
,
addXGQY
}
from
'@/api/project/project'
import
{
getDictType
}
from
'@/api/main'
export
default
{
name
:
'
zlwd
'
,
name
:
'
xgqy
'
,
data
(){
return
{
types
:
1
,
...
...
@@ -180,10 +172,22 @@
rules
:{
projectName
:[{
required
:
true
,
message
:
'请输入非空格字符!'
,
trigger
:
'blur'
},],
ownerCompany
:[{
required
:
true
,
message
:
'请输入非空格字符!'
,
trigger
:
'blur'
},],
},
companytype
:[],
companyrole
:[],
}
},
created
(){
//企业类型
getDictType
(
'company_type'
).
then
(
result
=>
{
this
.
companytype
=
result
.
code
==
200
?
result
.
data
:[]
this
.
types
=
this
.
companytype
[
0
].
dictValue
})
//企业角色
getDictType
(
'company_role'
).
then
(
result
=>
{
this
.
companyrole
=
result
.
code
==
200
?
result
.
data
:[]
})
},
methods
:{
//翻页
handleCurrentChange
(
val
)
{
...
...
dsk-operate-ui/src/views/project/projectList/component/xmsl.vue
View file @
7e8e848d
...
...
@@ -9,13 +9,13 @@
<span>
项目级别 :
</span>
<div
class=
"inputxt"
>
<div
class=
"flex"
v-if=
"nowedit == 1"
>
<el-input
placeholder=
"待添加"
></el-input>
<el-input
placeholder=
"待添加"
v-model=
"xmsldata.projectLevel"
></el-input>
<div
class=
"flex"
>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
>
确定
</div>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
@
click=
"editXMSL(
{projectLevel:xmsldata.projectLevel})"
>确定
</div>
<div
class=
"cancels h28"
@
click=
"nowedit = -1"
style=
""
>
取消
</div>
</div>
</div>
<span
class=
"txt"
v-else
@
click=
"nowedit = 1"
>
{{
datas
.
projectLevel
||
'待添加'
}}
</span>
<span
:class=
"
{txt:!xmsldata.projectLevel}" v-else @click="nowedit = 1">
{{
xmsldata
.
projectLevel
||
'待添加'
}}
</span>
</div>
</div>
<div
class=
"con i"
>
...
...
@@ -26,7 +26,7 @@
{{
xmjd
}}
<i
class=
"el-icon-caret-bottom"
></i>
</span>
<el-select
v-model=
"xmjd"
class=
"select-multiple"
placeholder=
"请选择"
>
<el-select
v-model=
"xmjd"
class=
"select-multiple"
placeholder=
"请选择"
@
click=
"editXMSL(
{projectStage:xmjd})"
>
<el-option
v-for=
"(item,index) in projectStage"
:key=
"index"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</div>
...
...
@@ -36,7 +36,7 @@
<div
class=
"con i"
style=
"width: 100%;"
>
<span
style=
"float: left;margin-top: 2px"
>
项目标签 :
</span>
<div
class=
"flex tipinput"
>
<div
class=
"tips"
v-for=
"(item,index) in tipslit"
>
{{
item
}}
<img
@
click=
"deltip(i
ndex
)"
src=
"@/assets/images/project/del.png"
></div>
<div
class=
"tips"
v-for=
"(item,index) in tipslit"
>
{{
item
}}
<img
@
click=
"deltip(i
tem
)"
src=
"@/assets/images/project/del.png"
></div>
<el-input
placeholder=
"待添加"
v-model=
"tipsvalue"
></el-input>
<div
class=
"addbtn"
@
click=
"addtips"
></div>
</div>
...
...
@@ -52,26 +52,26 @@
<span>
主管单位 :
</span>
<div
class=
"inputxt"
>
<div
class=
"flex"
v-if=
"nowedit == 2"
>
<el-input
placeholder=
"待添加"
></el-input>
<el-input
placeholder=
"待添加"
v-model=
"xmsldata.supervisorUnit"
></el-input>
<div
class=
"flex"
>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
>
确定
</div>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
@
click=
"editXMSL(
{supervisorUnit:xmsldata.supervisorUnit})"
>确定
</div>
<div
class=
"cancels h28"
@
click=
"nowedit = -1"
style=
""
>
取消
</div>
</div>
</div>
<span
class=
"txt"
v-else
@
click=
"nowedit = 2"
>
待添加
</span>
<span
:class=
"
{txt:!xmsldata.supervisorUnit}" v-else @click="nowedit = 2">
{{
xmsldata
.
supervisorUnit
||
'待添加'
}}
</span>
</div>
</div>
<div
class=
"con i"
>
<span>
建设单位 :
</span>
<div
class=
"inputxt"
>
<div
class=
"flex"
v-if=
"nowedit == 3"
>
<el-input
placeholder=
"待添加"
></el-input>
<el-input
placeholder=
"待添加"
v-model=
"xmsldata.constructionUnit"
></el-input>
<div
class=
"flex"
>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
>
确定
</div>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
@
click=
"editXMSL(
{constructionUnit:xmsldata.constructionUnit})"
>确定
</div>
<div
class=
"cancels h28"
@
click=
"nowedit = -1"
style=
""
>
取消
</div>
</div>
</div>
<span
class=
"txt"
v-else
@
click=
"nowedit = 3"
>
待添加
</span>
<span
:class=
"
{txt:!xmsldata.constructionUnit}" v-else @click="nowedit = 3">
{{
xmsldata
.
constructionUnit
||
'待添加'
}}
</span>
</div>
</div>
</div>
...
...
@@ -80,26 +80,26 @@
<span>
主管单位负责人 :
</span>
<div
class=
"inputxt"
>
<div
class=
"flex"
v-if=
"nowedit == 4"
>
<el-input
placeholder=
"待添加"
></el-input>
<el-input
placeholder=
"待添加"
v-model=
"xmsldata.supervisorPrincipal"
></el-input>
<div
class=
"flex"
>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
>
确定
</div>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
@
click=
"editXMSL(
{supervisorPrincipal:xmsldata.supervisorPrincipal})"
>确定
</div>
<div
class=
"cancels h28"
@
click=
"nowedit = -1"
style=
""
>
取消
</div>
</div>
</div>
<span
class=
"txt"
v-else
@
click=
"nowedit = 4"
>
待添加
</span>
<span
:class=
"
{txt:!xmsldata.supervisorPrincipal}" v-else @click="nowedit = 4">
{{
xmsldata
.
supervisorPrincipal
||
'待添加'
}}
</span>
</div>
</div>
<div
class=
"con i"
>
<span>
建设单位负责人 :
</span>
<div
class=
"inputxt"
>
<div
class=
"flex"
v-if=
"nowedit == 5"
>
<el-input
placeholder=
"待添加"
></el-input>
<el-input
placeholder=
"待添加"
v-model=
"xmsldata.constructionPrincipal"
></el-input>
<div
class=
"flex"
>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
>
确定
</div>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
@
click=
"editXMSL(
{constructionPrincipal:xmsldata.constructionPrincipal})"
>确定
</div>
<div
class=
"cancels h28"
@
click=
"nowedit = -1"
style=
""
>
取消
</div>
</div>
</div>
<span
class=
"txt"
v-else
@
click=
"nowedit = 5"
>
待添加
</span>
<span
:class=
"
{txt:!xmsldata.constructionPrincipal}" v-else @click="nowedit = 5">
{{
xmsldata
.
constructionPrincipal
||
'待添加'
}}
</span>
</div>
</div>
</div>
...
...
@@ -108,26 +108,26 @@
<span>
主管单位联系电话 :
</span>
<div
class=
"inputxt"
>
<div
class=
"flex"
v-if=
"nowedit == 6"
>
<el-input
placeholder=
"待添加"
></el-input>
<el-input
placeholder=
"待添加"
v-model=
"xmsldata.supervisorPhone"
></el-input>
<div
class=
"flex"
>
<div
class=
"btnsmall btn_primary h28"
@
click=
"isphone"
style=
"width: 56px"
>
确定
</div>
<div
class=
"btnsmall btn_primary h28"
@
click=
"isphone
(1,$event)
"
style=
"width: 56px"
>
确定
</div>
<div
class=
"cancels h28"
@
click=
"nowedit = -1"
style=
""
>
取消
</div>
</div>
</div>
<span
class=
"txt"
v-else
@
click=
"nowedit = 6"
>
待添加
</span>
<span
:class=
"
{txt:!xmsldata.supervisorPhone}" v-else @click="nowedit = 6">
{{
xmsldata
.
supervisorPhone
||
'待添加'
}}
</span>
</div>
</div>
<div
class=
"con i"
>
<span>
建设单位联系电话 :
</span>
<div
class=
"inputxt"
>
<div
class=
"flex"
v-if=
"nowedit == 7"
>
<el-input
placeholder=
"待添加"
></el-input>
<el-input
placeholder=
"待添加"
v-model=
"xmsldata.constructionPhone"
></el-input>
<div
class=
"flex"
>
<div
class=
"btnsmall btn_primary h28"
@
click=
"isphone"
style=
"width: 56px"
>
确定
</div>
<div
class=
"btnsmall btn_primary h28"
@
click=
"isphone
(2,$event)
"
style=
"width: 56px"
>
确定
</div>
<div
class=
"cancels h28"
@
click=
"nowedit = -1"
style=
""
>
取消
</div>
</div>
</div>
<span
class=
"txt"
v-else
@
click=
"nowedit = 7"
>
待添加
</span>
<span
:class=
"
{txt:!xmsldata.constructionPhone}" v-else @click="nowedit = 7">
{{
xmsldata
.
constructionPhone
||
'待添加'
}}
</span>
</div>
</div>
</div>
...
...
@@ -138,27 +138,27 @@
<div
class=
"otherdata"
>
<div
class=
"det"
>
<img
src=
"@/assets/images/project/xgsj_1.png"
>
<div
class=
"i"
>
{{
datas
.
contactsCount
}}
个
</div>
<div
class=
"i"
>
{{
xmsldata
.
contactsCount
}}
个
</div>
<div
class=
"j"
>
联系人
</div>
</div>
<div
class=
"det"
>
<img
src=
"@/assets/images/project/xgsj_2.png"
>
<div
class=
"i"
>
{{
datas
.
followRecordCount
}}
条
</div>
<div
class=
"i"
>
{{
xmsldata
.
followRecordCount
}}
条
</div>
<div
class=
"j"
>
跟进记录
</div>
</div>
<div
class=
"det"
>
<img
src=
"@/assets/images/project/xgsj_3.png"
>
<div
class=
"i"
>
{{
datas
.
backlogCount
}}
条
</div>
<div
class=
"i"
>
{{
xmsldata
.
backlogCount
}}
条
</div>
<div
class=
"j"
>
工作待办
</div>
</div>
<div
class=
"det"
>
<img
src=
"@/assets/images/project/xgsj_4.png"
>
<div
class=
"i"
>
{{
datas
.
fileCount
}}
个
</div>
<div
class=
"i"
>
{{
xmsldata
.
fileCount
}}
个
</div>
<div
class=
"j"
>
资料文档
</div>
</div>
<div
class=
"det"
>
<img
src=
"@/assets/images/project/xgsj_5.png"
>
<div
class=
"i"
>
{{
datas
.
relateCompanyCount
}}
家
</div>
<div
class=
"i"
>
{{
xmsldata
.
relateCompanyCount
}}
家
</div>
<div
class=
"j"
>
相关企业
</div>
</div>
</div>
...
...
@@ -167,9 +167,10 @@
</
template
>
<
script
>
import
"@/assets/styles/project.scss"
import
{
getDictType
,}
from
'@/api/main'
import
{}
from
'@/api/project/project'
import
'@/assets/styles/project.scss'
import
{
getDictType
}
from
'@/api/main'
import
{
getXMSL
,
editXMNR
,
addLabel
,
removeLabel
}
from
'@/api/project/project'
export
default
{
name
:
'xmsl'
,
props
:{
...
...
@@ -182,7 +183,8 @@
tipsvalue
:
""
,
//标签填写内容
xmjd
:
'待添加'
,
projectStage
:[],
//项目阶段
sldata
:
this
.
datas
,
id
:
this
.
$route
.
query
.
id
,
xmsldata
:
this
.
datas
,
}
},
created
(){
...
...
@@ -190,33 +192,81 @@
getDictType
(
'project_stage_type'
).
then
(
result
=>
{
this
.
projectStage
=
result
.
code
==
200
?
result
.
data
:[]
})
this
.
xmjd
=
this
.
datas
.
projectStage
this
.
tipslit
=
this
.
datas
.
labelList
this
.
getXMSL
()
},
methods
:{
editXMSL
(
param
){
let
params
=
param
params
.
id
=
this
.
id
editXMNR
(
JSON
.
stringify
(
params
)).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
'修改成功!'
)
}
else
{
this
.
$message
.
error
(
res
.
msg
)
this
.
getXMSL
()
}
})
this
.
nowedit
=
-
1
},
//验证电话号码
isphone
(
value
){
isphone
(
type
,
value
){
var
regPartton
=
/1
[
3-8
]
+
\d{9}
/
;
var
regPartton1
=
/^
(
0
[
0-9
]{2,3}[\-]?[
2-9
][
0-9
]{6,7}[\-]?[
0-9
]?)
$/
;
if
(
!
regPartton
.
test
(
value
)
&&
!
regPartton1
.
test
(
value
))
{
this
.
$message
.
error
(
"请输入正确的电话"
);
}
else
{
if
(
type
==
1
)
{
this
.
editXMSL
({
supervisorPhone
:
this
.
xmsldata
.
supervisorPhone
})
}
if
(
type
==
2
)
{
this
.
editXMSL
({
constructionPhone
:
this
.
xmsldata
.
constructionPhone
})
}
}
},
//标签添加、删除
addtips
(){
if
(
this
.
tipsvalue
==
""
)
return
false
if
(
this
.
tipslit
.
length
>=
30
){
if
(
this
.
tipslit
!=
null
&&
this
.
tipslit
.
length
>=
30
){
this
.
$message
.
error
(
"最多能只能添加30个标签"
)
return
false
}
this
.
tipslit
.
push
(
this
.
tipsvalue
)
let
param
=
{
businessId
:
this
.
id
,
label
:
this
.
tipsvalue
}
addLabel
(
JSON
.
stringify
(
param
)).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
'修改成功!'
)
this
.
tipsvalue
=
""
this
.
getXMSL
()
}
else
{
this
.
$message
.
error
(
res
.
msg
)
}
})
// this.tipslit.push(this.tipsvalue)
},
deltip
(
value
){
let
param
=
{
businessId
:
this
.
id
,
label
:
value
}
removeLabel
(
JSON
.
stringify
(
param
)).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
'修改成功!'
)
this
.
getXMSL
()
}
else
{
this
.
$message
.
error
(
res
.
msg
)
}
})
},
deltip
(
index
){
this
.
tipslit
.
splice
(
index
,
1
)
getXMSL
(){
getXMSL
(
this
.
id
).
then
(
result
=>
{
this
.
xmjd
=
result
.
data
.
projectStage
this
.
tipslit
=
result
.
data
.
labelList
this
.
xmsldata
=
result
.
data
})
},
}
}
...
...
dsk-operate-ui/src/views/project/projectList/detail.vue
View file @
7e8e848d
...
...
@@ -12,17 +12,18 @@
<img
src=
"@/assets/images/project/headimg.png"
class=
"headimg"
>
<strong
class=
"text"
>
{{
ProjectData
.
projectName
}}
</strong>
<div
class=
"locks"
>
<div
@
click=
"islock=true"
>
<img
v-if=
"ProjectData.isPrivate == 0"
src=
"@/assets/images/project/lock.png"
>
<img
v-else
src=
"@/assets/images/project/lockopen.png"
>
{{
ProjectData
.
isPrivate
==
0
?
"仅自己可见"
:
"他人可见"
}}
<
!--
<div
class=
"delform"
>
--
>
<
!--
<div
class=
"words"
>
{{
ProjectData
.
isPrivate
==
0
?
"是否将项目权限修改为他人可见?"
:
"是否将项目权限修改为仅自己可见?"
}}
</div>
--
>
<
!--
<div>
--
>
<
!--
<div
class=
"btnsmall btn_primary h28"
>
确定
</div>
--
>
<
!--
<div
class=
"btnsmall btn_cancel h28"
>
取消
</div>
--
>
<
!--
</div>
--
>
<
!--
</div>
--
>
</div>
<
div
class=
"delform"
v-if=
"islock"
>
<
div
class=
"words"
>
{{
ProjectData
.
isPrivate
==
0
?
"是否将项目权限修改为他人可见?"
:
"是否将项目权限修改为仅自己可见?"
}}
</div
>
<
div
>
<
div
class=
"btnsmall btn_primary h28"
@
click=
"locks(ProjectData.isPrivate)"
>
确定
</div
>
<
div
class=
"btnsmall btn_cancel h28"
@
click=
"islock=false"
>
取消
</div
>
<
/div
>
<
/div
>
</div>
</div>
<div
class=
"contets row"
>
...
...
@@ -33,7 +34,7 @@
{{
xmlx
}}
<i
class=
"el-icon-caret-bottom"
></i>
</span>
<el-select
v-model=
"xmlx"
class=
"select-multiple"
placeholder=
"请选择"
@
change=
"
{}
">
<el-select
v-model=
"xmlx"
class=
"select-multiple"
placeholder=
"请选择"
@
change=
"
editXMSL(
{projectType:xmlx})
">
<el-option
v-for=
"(item,index) in projectType"
:key=
"index"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</div>
...
...
@@ -46,7 +47,7 @@
{{
xmlb
}}
<i
class=
"el-icon-caret-bottom"
></i>
</span>
<el-select
v-model=
"xmlb"
class=
"select-multiple"
placeholder=
"请选择"
>
<el-select
v-model=
"xmlb"
class=
"select-multiple"
placeholder=
"请选择"
@
change=
"editXMSL(
{projectCategory:xmlb})"
>
<el-option
v-for=
"(item,index) in projectCategory"
:key=
"index"
:label=
"item.dictLabel"
:value=
"item.dictValue"
></el-option>
</el-select>
</div>
...
...
@@ -58,7 +59,7 @@
<div
class=
"flex"
v-if=
"nowedit == 3"
>
<el-input
v-model=
"ProjectData.investmentAmount"
placeholder=
"待添加"
@
input=
"number"
></el-input>
<div
class=
"flex"
>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
>
确定
</div>
<div
class=
"btnsmall btn_primary h28"
style=
"width: 56px"
@
click=
"editXMSL(
{investmentAmount:ProjectData.investmentAmount})"
>确定
</div>
<div
class=
"cancels h28"
@
click=
"nowedit = -1"
style=
""
>
取消
</div>
</div>
</div>
...
...
@@ -69,11 +70,11 @@
<span>
建设地点:
</span>
<div
class=
"select-popper"
>
<span
:class=
"
{ color_text:address != '待添加'}">
{{
address
}}
<span
:class=
"
{ color_text:address
txt
!= '待添加'}">
{{
address
txt
}}
<i
class=
"el-icon-caret-bottom"
></i>
</span>
<el-cascader
class=
"cascader-region select-location"
<el-cascader
class=
"cascader-region select-location"
v-model=
"ProjectData.address"
ref=
"myCascader"
:props=
"props"
:options=
"addressList"
@
change=
"handleChange"
></el-cascader>
...
...
@@ -133,7 +134,7 @@
import
zlwd
from
'./component/zlwd.vue'
import
xgqy
from
'./component/xgqy.vue'
import
prvinceTree
from
'@/assets/json/provinceTree'
import
{
getXMSL
}
from
'@/api/project/project'
import
{
getXMSL
,
editXMNR
}
from
'@/api/project/project'
export
default
{
name
:
'detail'
,
components
:
{
xmsl
,
jsnr
,
lxr
,
gjjl
,
gzdb
,
zlwd
,
xgqy
},
...
...
@@ -153,12 +154,13 @@
thistag
:
'xmsl'
,
xmlx
:
'请选择'
,
//项目类型
xmlb
:
'请选择'
,
//项目类别
islock
:
true
,
//仅自己可见
islock
:
false
,
projectStage
:[],
//项目阶段
projectType
:[],
//项目类型
projectCategory
:[],
//项目类别
nowedit
:
-
1
,
address
:
'待添加'
,
address
:[],
addresstxt
:
'待添加'
,
//项目地区
addressList
:[],
domicile
:[],
...
...
@@ -183,6 +185,10 @@
this
.
projectCategory
=
result
.
code
==
200
?
result
.
data
:[]
})
//获取基本信息
this
.
getXMSL
()
},
methods
:
{
getXMSL
(){
getXMSL
(
this
.
id
).
then
(
result
=>
{
this
.
ProjectData
=
result
.
code
==
200
?
result
.
data
:{}
this
.
$route
.
query
.
projectname
=
result
.
data
.
projectName
...
...
@@ -190,20 +196,42 @@
this
.
xmlb
=
result
.
data
.
projectCategory
==
""
||
result
.
data
.
projectCategory
==
null
?
"请选择"
:
result
.
data
.
projectCategory
this
.
thisindex
=
result
.
data
.
projectStage
let
list
=
[]
if
(
result
.
data
.
provinceName
){
list
.
push
(
result
.
data
.
provinceName
)
let
txt
=
''
if
(
result
.
data
.
provinceId
){
list
.
push
(
result
.
data
.
provinceId
)
txt
+=
result
.
data
.
provinceName
}
if
(
result
.
data
.
cityName
){
list
.
push
(
result
.
data
.
cityName
)
if
(
result
.
data
.
cityId
){
list
.
push
(
result
.
data
.
cityId
)
txt
+=
'/'
+
result
.
data
.
cityName
}
if
(
result
.
data
.
districtName
){
list
.
push
(
result
.
data
.
districtName
)
if
(
result
.
data
.
districtId
){
list
.
push
(
result
.
data
.
districtId
)
txt
+=
'/'
+
result
.
data
.
districtName
}
this
.
address
=
list
console
.
log
(
this
.
ProjectData
.
team
)
this
.
address
=
list
.
length
>
0
?
list
:
"待添加"
this
.
addresstxt
=
txt
==
""
?
"待添加"
:
txt
})
},
locks
(
isPrivate
){
isPrivate
=
isPrivate
==
0
?
1
:
0
this
.
editXMSL
({
isPrivate
:
isPrivate
})
this
.
lock
=
false
},
editXMSL
(
param
){
let
params
=
param
params
.
id
=
this
.
id
editXMNR
(
JSON
.
stringify
(
params
)).
then
(
res
=>
{
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
'修改成功!'
)
}
else
{
this
.
$message
.
error
(
res
.
msg
)
this
.
getXMSL
()
}
})
this
.
nowedit
=
-
1
},
methods
:
{
//地区
async
prvinceTree
()
{
// await axios.post("https://files.jiansheku.com/file/json/common/provinceTree.json", {}, {
...
...
@@ -238,11 +266,10 @@
},
choose
(
value
){
this
.
thisindex
=
value
console
.
log
(
value
)
this
.
editXMSL
({
projectStage
:
value
}
)
},
//内容组件切换
getCom
(
tag
){
console
.
log
(
tag
)
this
.
thistag
=
tag
},
//输入数字
...
...
@@ -251,40 +278,33 @@
},
handleChange
(
value
)
{
console
.
log
(
value
);
let
str
=
''
var
labelString
=
this
.
$refs
.
myCascader
.
getCheckedNodes
()[
0
].
pathLabels
;
let
txt
=
''
labelString
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
0
)
str
+=
item
else
str
+=
'-'
+
item
let
str
=
''
if
(
index
>
0
){
str
=
'/'
}
txt
+=
str
+
item
})
this
.
addresstxt
=
txt
let
param
=
{
provinceId
:
null
,
cityId
:
null
,
districtId
:
null
}
value
.
forEach
((
item
,
index
)
=>
{
if
(
index
==
0
){
param
.
provinceId
=
parseInt
(
item
)
}
if
(
index
==
1
){
param
.
cityId
=
parseInt
(
item
)
}
if
(
index
==
2
){
param
.
districtId
=
parseInt
(
item
)
}
})
this
.
address
=
str
let
arr
=
this
.
$refs
.
myCascader
.
getCheckedNodes
();
// console.log(arr)
let
province
=
[],
city
=
[],
area
=
[];
this
.
domicile
=
[];
for
(
var
i
in
arr
)
{
if
(
arr
[
i
].
parent
)
{
if
(
!
arr
[
i
].
parent
.
checked
)
{
arr
[
i
].
hasChildren
&&
city
.
push
(
arr
[
i
].
value
);
arr
[
i
].
hasChildren
&&
this
.
domicile
.
push
(
arr
[
i
].
label
);
!
arr
[
i
].
hasChildren
&&
area
.
push
(
arr
[
i
].
value
);
!
arr
[
i
].
hasChildren
&&
this
.
domicile
.
push
(
arr
[
i
].
label
);
}
}
else
{
province
.
push
(
arr
[
i
].
value
);
this
.
domicile
.
push
(
arr
[
i
].
label
);
}
}
// var obj = JSON.parse(JSON.stringify(this.searchParam));
// obj.province = province;
// obj.city = city;
// obj.area = area;
// this.searchParam = obj;
this
.
editXMSL
(
param
)
},
}
}
...
...
dsk-operate-ui/src/views/project/projectList/index.vue
View file @
7e8e848d
...
...
@@ -149,7 +149,7 @@
</div>
</div>
<div
class=
"tables"
>
<div
class=
"bottems"
v-if=
"total>
0
"
>
<div
class=
"bottems"
v-if=
"total>
searchParam.pageSize
"
>
<el-pagination
background
:page-size=
"searchParam.pageSize"
...
...
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