Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
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
常超
founder_vue
Commits
ce62e401
Commit
ce62e401
authored
Sep 22, 2023
by
xue_wengang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成果报告修改
parent
43452501
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
241 additions
and
67 deletions
+241
-67
src/router/modules/index.js
+4
-3
src/views/rzcx/addCggl.vue
+31
-24
src/views/rzcx/jszcyycgDetail.vue
+158
-0
src/views/rzcx/jszcyyglCgpg.vue
+48
-40
No files found.
src/router/modules/index.js
View file @
ce62e401
...
@@ -83,6 +83,7 @@ export default [
...
@@ -83,6 +83,7 @@ export default [
},
},
component
:
()
=>
import
(
"@/views/rzcx/addCggl.vue"
)
component
:
()
=>
import
(
"@/views/rzcx/addCggl.vue"
)
},
},
{
{
path
:
"/jszcyyDetail"
,
path
:
"/jszcyyDetail"
,
name
:
"jszcyyDetail"
,
name
:
"jszcyyDetail"
,
...
@@ -94,13 +95,13 @@ export default [
...
@@ -94,13 +95,13 @@ export default [
},
},
{
{
path
:
"/jszcyyDetail"
,
path
:
"/jszcyy
cg
Detail"
,
name
:
"jszcyyDetail"
,
name
:
"jszcyy
cg
Detail"
,
meta
:
{
meta
:
{
title
:
'任务详情'
,
title
:
'任务详情'
,
auth
:
5
auth
:
5
},
},
component
:
()
=>
import
(
"@/views/rzcx/jszcyyDetail.vue"
)
component
:
()
=>
import
(
"@/views/rzcx/jszcyy
cg
Detail.vue"
)
},
},
{
{
path
:
"/callQuery"
,
path
:
"/callQuery"
,
...
...
src/views/rzcx/addCggl.vue
View file @
ce62e401
<
template
>
<
template
>
<div
class=
"formContent"
>
<div
class=
"formContent"
v-loading=
"loading"
>
<div
class=
"subTitle"
>
<div
class=
"subTitle"
>
<span
class=
"subTitle_shuxian"
></span>
<span
class=
"subTitle_shuxian"
></span>
<div
class=
"subTitle_title"
>
新增
众创任务
</div>
<div
class=
"subTitle_title"
>
新增
成果
</div>
</div>
</div>
<el-form
ref=
"form"
<el-form
:model=
"form"
ref=
"form"
label-width=
"120px"
:model=
"form"
style=
"margin-top: 20px"
>
label-width=
"120px"
style=
"margin-top: 20px"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<div
class=
"grid-content bg-purple"
>
...
@@ -23,15 +25,13 @@
...
@@ -23,15 +25,13 @@
</el-form-item>
</el-form-item>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"8"
>
<
!--
<
el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<div
class=
"grid-content bg-purple"
>
<el-form-item
label=
"组织单位"
>
<el-form-item
label=
"组织单位"
>
<el-input
v-model=
"form.zzdw"
></el-input>
<el-input
v-model=
"form.zzdw"
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</el-col>
</el-col>
-->
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"评估人员"
>
<el-form-item
label=
"评估人员"
>
<el-input
v-model=
"form.pgry"
></el-input>
<el-input
v-model=
"form.pgry"
></el-input>
...
@@ -41,17 +41,13 @@
...
@@ -41,17 +41,13 @@
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"15"
>
<el-col
:span=
"15"
>
<el-form-item
label=
"评估结果"
>
<el-form-item
label=
"评估结果"
>
<el-input
v-model=
"form.pgjg"
<el-input
v-model=
"form.pgjg"
type=
"textarea"
:rows=
"4"
></el-input>
type=
"textarea"
:rows=
"4"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<div
class=
"btnWrap"
>
<div
class=
"btnWrap"
>
<el-button
type=
"primary"
<el-button
type=
"primary"
size=
"small"
@
click=
"save"
>
保存
</el-button>
size=
"small"
@
click=
"save"
>
保存
</el-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -61,7 +57,7 @@ import url from "@/api/base";
...
@@ -61,7 +57,7 @@ import url from "@/api/base";
import
request
from
"@/utils/axiosHttp.js"
;
import
request
from
"@/utils/axiosHttp.js"
;
import
qs
from
"qs"
;
import
qs
from
"qs"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
bt
:
""
,
bt
:
""
,
...
@@ -73,7 +69,7 @@ export default {
...
@@ -73,7 +69,7 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
save
()
{
save
()
{
this
.
form
.
zzdw
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
)).
unitcode
;
this
.
form
.
zzdw
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"userInfo"
)).
unitcode
;
this
.
form
.
glxxzjbh
=
this
.
$route
.
query
.
glxxzjbh
;
this
.
form
.
glxxzjbh
=
this
.
$route
.
query
.
glxxzjbh
;
if
(
this
.
$route
.
query
.
xxzjbh
)
{
if
(
this
.
$route
.
query
.
xxzjbh
)
{
...
@@ -82,7 +78,10 @@ export default {
...
@@ -82,7 +78,10 @@ export default {
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/rzcxIndex/jszcyygl"
,
path
:
"/rzcxIndex/jszcyyglCgpg"
,
query
:
{
xxzjbh
:
this
.
$route
.
query
.
glxxzjbh
,
},
});
});
}
}
});
});
...
@@ -91,13 +90,16 @@ export default {
...
@@ -91,13 +90,16 @@ export default {
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
"保存成功"
);
this
.
$message
.
success
(
"保存成功"
);
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/rzcxIndex/jszcyygl"
,
path
:
"/rzcxIndex/jszcyyglCgpg"
,
query
:
{
xxzjbh
:
this
.
$route
.
query
.
glxxzjbh
,
},
});
});
}
}
});
});
}
}
},
},
getShuju
()
{
getShuju
()
{
this
.
doQueryRequest
(
this
.
doQueryRequest
(
{
xxzjbh
:
this
.
$route
.
query
.
xxzjbh
},
{
xxzjbh
:
this
.
$route
.
query
.
xxzjbh
},
"/ypzc/getYpcgpgxq"
"/ypzc/getYpcgpgxq"
...
@@ -109,11 +111,12 @@ export default {
...
@@ -109,11 +111,12 @@ export default {
}
else
{
}
else
{
this
.
$set
(
this
.
form
,
key
,
res
.
data
.
cgpg
[
key
]);
this
.
$set
(
this
.
form
,
key
,
res
.
data
.
cgpg
[
key
]);
}
}
this
.
loading
=
false
;
}
}
}
}
});
});
},
},
doQueryRequest
(
form
,
cxUrl
)
{
doQueryRequest
(
form
,
cxUrl
)
{
/*post方法*/
/*post方法*/
return
request
({
return
request
({
url
:
url
.
rzURL
+
cxUrl
,
url
:
url
.
rzURL
+
cxUrl
,
...
@@ -125,8 +128,12 @@ export default {
...
@@ -125,8 +128,12 @@ export default {
});
});
},
},
},
},
created
()
{
created
()
{
this
.
getShuju
();
if
(
this
.
$route
.
query
.
xxzjbh
)
{
this
.
title
=
"修改成果"
;
this
.
getShuju
();
this
.
loading
=
true
;
}
},
},
};
};
</
script
>
</
script
>
...
...
src/views/rzcx/jszcyycgDetail.vue
0 → 100644
View file @
ce62e401
<
template
>
<div
class=
"formContent"
v-loading=
"loading"
>
<div
class=
"subTitle"
>
<span
class=
"subTitle_shuxian"
></span>
<div
class=
"subTitle_title"
>
众创任务成果详情
</div>
</div>
<div
class=
"infos"
>
<div
:class=
"'infoWrap'+item.index"
v-for=
"item in infoList"
:key=
"item.id"
>
<span
class=
"name"
>
{{
item
.
name
}}
:
</span>
<span
class=
"infoContent"
>
{{
item
.
content
}}
</span>
</div>
</div>
</div>
</
template
>
<
script
>
import
url
from
"@/api/base"
;
import
request
from
"@/utils/axiosHttp.js"
;
import
qs
from
"qs"
;
import
formItem_componentsVue
from
"../../components/formItem_components.vue"
;
export
default
{
data
()
{
return
{
infoList
:
[
{
name
:
"标题"
,
id
:
"bt"
,
content
:
""
,
index
:
1
},
{
name
:
"评估人员"
,
id
:
"pgry"
,
content
:
""
,
index
:
1
},
{
name
:
"组织单位"
,
id
:
"zzdwmc"
,
content
:
""
,
index
:
1
},
{
name
:
"评估结果"
,
id
:
"pgjg"
,
content
:
""
,
index
:
1
},
{
name
:
"研究内容"
,
id
:
"nr"
,
content
:
""
,
index
:
2
},
],
};
},
methods
:
{
getShuju
()
{
this
.
doQueryRequest
(
{
xxzjbh
:
this
.
$route
.
query
.
xxzjbh
},
"/ypzc/getYpcgpgxq"
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
infoList
.
forEach
((
item
)
=>
{
if
(
item
.
id
==
"yjsjStr"
)
{
this
.
$set
(
item
,
"content"
,
res
.
data
.
cgpg
[
"yjsj"
]);
}
else
{
this
.
$set
(
item
,
"content"
,
res
.
data
.
cgpg
[
item
.
id
]);
}
});
console
.
log
(
this
.
infoList
);
this
.
loading
=
false
;
}
});
},
doQueryRequest
(
form
,
cxUrl
)
{
/*post方法*/
return
request
({
url
:
url
.
rzURL
+
cxUrl
,
data
:
qs
.
stringify
(
form
),
method
:
"post"
,
headers
:
{
"content-type"
:
"application/x-www-form-urlencoded"
,
},
});
},
},
created
()
{
if
(
this
.
$route
.
query
.
xxzjbh
)
{
this
.
getShuju
();
this
.
loading
=
true
;
}
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
.formContent
{
width
:
1180px
;
background
:
#ffffff
;
border
:
1px
solid
#e4e4e4
;
opacity
:
1
;
border-radius
:
8px
;
margin
:
20px
auto
;
.subTitle
{
display
:
flex
;
align-items
:
center
;
margin
:
15px
20px
;
.subTitle_shuxian
{
width
:
4px
;
height
:
16px
;
background
:
#ff8d1e
;
opacity
:
1
;
margin-right
:
12px
;
}
.subTitle_title
{
font-size
:
16px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
line-height
:
22px
;
color
:
#1a1a1a
;
opacity
:
1
;
}
}
.btnWrap
{
text-align
:
right
;
margin
:
10px
20px
;
}
.infos
{
display
:
flex
;
flex-wrap
:
wrap
;
margin
:
20px
;
}
.infoWrap1
{
width
:
50%
;
}
.infoWrap2
{
width
:
100%
;
}
.name
{
font-size
:
16px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
line-height
:
22px
;
color
:
#272626
;
}
.infoContent
{
font-size
:
16px
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
line-height
:
22px
;
color
:
#000000
;
margin-left
:
10px
;
}
}
</
style
>
\ No newline at end of file
src/views/rzcx/jszcyyglCgpg.vue
View file @
ce62e401
<
template
>
<
template
>
<div>
<div>
<right-content
:header=
"header"
<right-content
:cxFormData=
"cxFormData"
:header=
"header"
:cxQueryField=
"cxQueryField"
:cxFormData=
"cxFormData"
:cxDefaultFormThead=
"cxDefaultFormThead"
:cxQueryField=
"cxQueryField"
:cxUrl=
"cxUrl"
:cxDefaultFormThead=
"cxDefaultFormThead"
:isPost=
'true'
:cxUrl=
"cxUrl"
@
add=
"add"
:isPost=
"true"
@
edit=
"edit"
@
add=
"add"
@
del=
"del"
@
edit=
"edit"
:pageFlag=
"pageFlag"
@
godetail=
"godetail"
ref=
"rightContent"
></right-content>
@
del=
"del"
:pageFlag=
"pageFlag"
ref=
"rightContent"
></right-content>
</div>
</div>
</
template
>
</
template
>
<!--建设众创应用管理-->
<!--建设众创应用管理-->
...
@@ -24,7 +27,7 @@ export default {
...
@@ -24,7 +27,7 @@ export default {
components
:
{
components
:
{
rightContent
,
rightContent
,
},
},
data
()
{
data
()
{
return
{
return
{
pageFlag
:
"jszcyygl"
,
pageFlag
:
"jszcyygl"
,
header
:
"建设众创应用管理"
,
header
:
"建设众创应用管理"
,
...
@@ -59,7 +62,7 @@ export default {
...
@@ -59,7 +62,7 @@ export default {
{
{
label
:
"标题"
,
label
:
"标题"
,
prop
:
"bt"
,
prop
:
"bt"
,
toInfo
:
true
toInfo
:
true
,
},
},
{
{
/*table默认得表头*/
/*table默认得表头*/
...
@@ -68,7 +71,7 @@ export default {
...
@@ -68,7 +71,7 @@ export default {
},
},
{
{
label
:
"组织单位"
,
label
:
"组织单位"
,
prop
:
"zzdw"
,
prop
:
"zzdw
mc
"
,
},
},
{
{
label
:
"评估人员"
,
label
:
"评估人员"
,
...
@@ -77,32 +80,38 @@ export default {
...
@@ -77,32 +80,38 @@ export default {
{
{
label
:
"评估结果"
,
label
:
"评估结果"
,
prop
:
"pgjg"
,
prop
:
"pgjg"
,
}
}
,
],
],
cxUrl
:
"/ypzc/getYpcgpglb"
,
cxUrl
:
"/ypzc/getYpcgpglb"
,
};
};
},
},
created
()
{
created
()
{
this
.
cxFormData
.
glxxzjbh
=
this
.
$route
.
query
.
xxzjbh
this
.
cxFormData
.
glxxzjbh
=
this
.
$route
.
query
.
xxzjbh
;
},
},
methods
:
{
methods
:
{
del
(
item
)
{
godetail
(
item
)
{
this
.
$confirm
(
`确定要删除吗?`
,
'提示'
,
{
this
.
$router
.
push
({
confirmButtonText
:
'确定'
,
path
:
"/jszcyycgDetail"
,
cancelButtonText
:
'取消'
,
query
:
{
xxzjbh
:
item
.
xxzjbh
},
type
:
'warning'
});
},
del
(
item
)
{
this
.
$confirm
(
`确定要删除吗?`
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
(()
=>
{
}).
then
(()
=>
{
this
this
.
doQueryRequest
(
.
doQueryRequest
({
xxzjbh
:
item
.
xxzjbh
},
"/ypzc/deleteYpzccgpg"
)
{
xxzjbh
:
item
.
xxzjbh
},
.
then
((
res
)
=>
{
"/ypzc/deleteYpzccgpg"
if
(
res
.
code
==
200
)
{
).
then
((
res
)
=>
{
this
.
$message
.
success
(
"删除成功"
);
if
(
res
.
code
==
200
)
{
this
.
$refs
.
rightContent
.
doQuery
(
"yes
"
);
this
.
$message
.
success
(
"删除成功
"
);
}
else
{
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
}
}
else
{
}
);
}
});
})
})
;
// debugger;
// debugger;
// let self = this;
// let self = this;
// this.$confirm("此操作将删除信息, 是否继续?", "提示", {
// this.$confirm("此操作将删除信息, 是否继续?", "提示", {
...
@@ -130,17 +139,17 @@ export default {
...
@@ -130,17 +139,17 @@ export default {
// });
// });
// });
// });
},
},
edit
(
item
)
{
edit
(
item
)
{
debugger
;
debugger
;
this
.
$router
.
pushToTab
({
this
.
$router
.
pushToTab
({
path
:
"/addCggl"
,
path
:
"/addCggl"
,
query
:
{
query
:
{
xxzjbh
:
item
.
xxzjbh
,
xxzjbh
:
item
.
xxzjbh
,
glxxzjbh
:
this
.
$route
.
query
.
xxzjbh
glxxzjbh
:
this
.
$route
.
query
.
xxzjbh
,
},
},
});
});
},
},
doQueryRequest
(
form
,
cxUrl
)
{
doQueryRequest
(
form
,
cxUrl
)
{
/*post方法*/
/*post方法*/
return
request
({
return
request
({
url
:
url
.
rzURL
+
cxUrl
,
url
:
url
.
rzURL
+
cxUrl
,
...
@@ -151,15 +160,14 @@ export default {
...
@@ -151,15 +160,14 @@ export default {
},
},
});
});
},
},
add
()
{
add
()
{
this
.
$router
.
pushToTab
({
this
.
$router
.
pushToTab
({
path
:
"/addCggl"
,
path
:
"/addCggl"
,
query
:
{
query
:
{
glxxzjbh
:
this
.
$route
.
query
.
xxzjbh
glxxzjbh
:
this
.
$route
.
query
.
xxzjbh
,
}
}
,
});
});
},
},
},
},
};
};
</
script
>
</
script
>
...
...
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