Commit 9fb731ad by xue_wengang

成果报告修改

parent 293232f5
...@@ -83,15 +83,26 @@ export default [ ...@@ -83,15 +83,26 @@ export default [
}, },
component: () => import("@/views/rzcx/addCggl.vue") component: () => import("@/views/rzcx/addCggl.vue")
}, },
{ {
path: "/jszcyyDetail", path: "/jszcyyDetail",
name: "jszcyyDetail", name: "jszcyyDetail",
meta: { meta: {
title: '任务详情', title: '建设众创任务详情',
auth: 5 auth: 5
}, },
component: () => import("@/views/rzcx/jszcyyDetail.vue") component: () => import("@/views/rzcx/jszcyyDetail.vue")
}, },
{
path: "/jszcyycgDetail",
name: "jszcyycgDetail",
meta: {
title: '任务详情',
auth: 5
},
component: () => import("@/views/rzcx/jszcyycgDetail.vue")
},
{ {
path: "/callQuery", path: "/callQuery",
name: "callQuery", name: "callQuery",
......
<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
ref="form"
:model="form" :model="form"
label-width="120px" label-width="120px"
style="margin-top: 20px"> 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() {
if (this.$route.query.xxzjbh) {
this.title = "修改成果";
this.getShuju(); this.getShuju();
this.loading = true;
}
}, },
}; };
</script> </script>
......
<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
<template> <template>
<div> <div>
<right-content :header="header" <right-content
:header="header"
:cxFormData="cxFormData" :cxFormData="cxFormData"
:cxQueryField="cxQueryField" :cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead" :cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl" :cxUrl="cxUrl"
:isPost='true' :isPost="true"
@add="add" @add="add"
@edit="edit" @edit="edit"
@godetail="godetail"
@del="del" @del="del"
:pageFlag="pageFlag" :pageFlag="pageFlag"
ref="rightContent"></right-content> 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,6 +62,7 @@ export default { ...@@ -59,6 +62,7 @@ export default {
{ {
label: "标题", label: "标题",
prop: "bt", prop: "bt",
toInfo: true,
}, },
{ {
/*table默认得表头*/ /*table默认得表头*/
...@@ -67,7 +71,7 @@ export default { ...@@ -67,7 +71,7 @@ export default {
}, },
{ {
label: "组织单位", label: "组织单位",
prop: "zzdw", prop: "zzdwmc",
}, },
{ {
label: "评估人员", label: "评估人员",
...@@ -76,32 +80,38 @@ export default { ...@@ -76,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"
).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$message.success("删除成功"); this.$message.success("删除成功");
this.$refs.rightContent.doQuery("yes"); this.$refs.rightContent.doQuery("yes");
} else { } else {
} }
}); });
});
})
// debugger; // debugger;
// let self = this; // let self = this;
// this.$confirm("此操作将删除信息, 是否继续?", "提示", { // this.$confirm("此操作将删除信息, 是否继续?", "提示", {
...@@ -129,17 +139,17 @@ export default { ...@@ -129,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,
...@@ -150,15 +160,14 @@ export default { ...@@ -150,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>
......
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