|
@@ -19,15 +19,14 @@
|
|
|
</div>
|
|
|
<!-- 跳转导航结束 -->
|
|
|
|
|
|
- <div class="PA2textArea">
|
|
|
+ <div class="PA2textArea">
|
|
|
<div class="PA2textAreaTit">项目创新点</div>
|
|
|
<vue-editor :editorToolbar="customToolbar" v-model="data[0][0]"></vue-editor>
|
|
|
-
|
|
|
</div>
|
|
|
+
|
|
|
<div class="PA2mid">
|
|
|
预期取得成果
|
|
|
</div>
|
|
|
-
|
|
|
<div class="PA2textArea">
|
|
|
<div class="PA2textAreaTit PA2textAreaTit2">一、项目预期成果、数量及形式</div>
|
|
|
<vue-editor :editorToolbar="customToolbar" v-model="data[0][1]"></vue-editor>
|
|
@@ -41,19 +40,36 @@
|
|
|
<div class="PA2textArea">
|
|
|
<div class="PA2textAreaTit PA2textAreaTit2">三、项目预期孵化、转化创业项目情况</div>
|
|
|
<vue-editor :editorToolbar="customToolbar" v-model="data[0][3]"></vue-editor>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
<div class="PA2textArea">
|
|
|
<div class="PA2textAreaTit">项目实施计划</div>
|
|
|
<vue-editor :editorToolbar="customToolbar" v-model="data[0][4]"></vue-editor>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
- <!-- <div class="baseBtn">
|
|
|
+ <div class="baseBtn">
|
|
|
<div class="blockWidth">
|
|
|
- <el-button type="primary" class="backBtn" @click="backBtn2">返回</el-button>
|
|
|
+ <el-button type="primary" @click="audit">立即修改</el-button>
|
|
|
+ <!-- <el-button type="primary" v-show="isUpload==1" @click="audit">立即修改</el-button> -->
|
|
|
+ <!-- <el-button type="primary" disabled style="background: #ccc !important;border: none;" v-show="isUpload==2" @click="$message.error('项目已结项,不可再修改')">立即修改</el-button> -->
|
|
|
+
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
-
|
|
|
+ </div>
|
|
|
+ <!-- 修改对话框开始 -->
|
|
|
+ <el-dialog
|
|
|
+ title="提示"
|
|
|
+ :visible.sync="submitHint"
|
|
|
+ width="600px"
|
|
|
+ class="projectApplicationfundAddDialog"
|
|
|
+ :before-close="init">
|
|
|
+ <div class="addDialogLogo">LOGO</div>
|
|
|
+ <div class="deleteContent">确定修改项目基本信息?</div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitAll" class="AllDialogBtn">确认提交</el-button>
|
|
|
+ <el-button @click="init" class="AllDialogBtn" size="small">取消</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 修改对话框结束 -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -66,8 +82,9 @@ import { VueEditor } from "vue2-editor";
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- data:[["","","","",""],[]],
|
|
|
+ isUpload:'',
|
|
|
loading:false,
|
|
|
+ data:[["","","","",""],[]],
|
|
|
submitHint:false,
|
|
|
customToolbar: [
|
|
|
["bold", "italic", "underline"], [{ list: "ordered" }, { list: "bullet" }],
|
|
@@ -77,25 +94,6 @@ import { VueEditor } from "vue2-editor";
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
- getData(){ //初始化完成获取基本数据进行填充
|
|
|
- this.loading = true;
|
|
|
- let param={
|
|
|
- uid:this.$store.state.userInfo.userid,
|
|
|
- pid:JSON.parse(localStorage.getItem('pid'))
|
|
|
- }
|
|
|
- this.ajax
|
|
|
- .get(this.$store.state.api+'/GetProjectDetailMessage',param)
|
|
|
- .then(res=>{
|
|
|
- // console.log(res)
|
|
|
- let GetData=JSON.parse(res.data[0][0].chapters)
|
|
|
- // console.log(GetData)
|
|
|
- this.data=GetData
|
|
|
- this.loading = false;
|
|
|
- // console.log(this.data);
|
|
|
- },err=>{
|
|
|
- console.log(err);
|
|
|
- })
|
|
|
- },
|
|
|
content(){
|
|
|
this.$router.push('/projectSettlement1')
|
|
|
},
|
|
@@ -115,46 +113,152 @@ import { VueEditor } from "vue2-editor";
|
|
|
back(){
|
|
|
this.$router.push('/projectSettlement')
|
|
|
},
|
|
|
- edit(){
|
|
|
-
|
|
|
+ audit(){ //立即修改按钮
|
|
|
+ this.submitHint=true
|
|
|
},
|
|
|
- // backBtn2(){
|
|
|
- // this.$router.push('/ProjectManagement1')
|
|
|
- // },
|
|
|
- handleSelectionChange(val) {
|
|
|
- this.multipleSelection = val;
|
|
|
+ submitAll(){
|
|
|
+ let param={
|
|
|
+ uid:this.$store.state.userInfo.userid,
|
|
|
+ pid:JSON.parse(localStorage.getItem('pid')),
|
|
|
+ message:JSON.stringify(this.data)
|
|
|
+ }
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api+'/UpdateProjectDetail',param)
|
|
|
+ .then(res=>{
|
|
|
+ // console.log(res);
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ this.init()
|
|
|
+ },err=>{
|
|
|
+ console.log(err);
|
|
|
+ })
|
|
|
},
|
|
|
- back(){
|
|
|
- this.$router.push('/projectSettlement')
|
|
|
+ init(){
|
|
|
+ this.submitHint=false
|
|
|
+ },
|
|
|
+ getData(){ //初始化完成获取基本数据进行填充
|
|
|
+ this.loading = true;
|
|
|
+ let param={
|
|
|
+ uid:this.$store.state.userInfo.userid,
|
|
|
+ pid:JSON.parse(localStorage.getItem('pid'))
|
|
|
+ }
|
|
|
+ this.ajax
|
|
|
+ .get(this.$store.state.api+'/GetProjectDetailMessage',param)
|
|
|
+ .then(res=>{
|
|
|
+ // console.log(res.data[0][0].isupload);
|
|
|
+ this.isUpload=res.data[0][0].isupload;
|
|
|
+ let GetData=JSON.parse(res.data[0][0].chapters)
|
|
|
+ // console.log(GetData);
|
|
|
+ this.data=GetData;
|
|
|
+ this.loading = false;
|
|
|
+ },err=>{
|
|
|
+ console.log(err);
|
|
|
+ })
|
|
|
},
|
|
|
},
|
|
|
- created(){
|
|
|
+ mounted(){
|
|
|
this.getData();
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|
|
|
- .ProjectManagement2{
|
|
|
|
|
|
+ .projectApplicationfundAddDialog{ //项目修改对话框开始
|
|
|
+
|
|
|
|
|
|
- .PA2textArea{
|
|
|
- margin: 15px 0px;
|
|
|
+ .el-dialog{
|
|
|
+ border-radius:5px ;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+
|
|
|
+ .deleteContent{
|
|
|
+ width: 100%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 22px;
|
|
|
+ color: #000;
|
|
|
+ }
|
|
|
+ .addDialogLogo{
|
|
|
+ width: 60px;
|
|
|
+ height: 30px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ line-height: 30px;
|
|
|
+ border-radius: 5px;
|
|
|
+ background: #f2f2f2;
|
|
|
+ position: absolute;
|
|
|
+ left: 20px; top: 15px;
|
|
|
+ }
|
|
|
+ .el-dialog__header{
|
|
|
+ background: #32455b;
|
|
|
+ }
|
|
|
+ .el-dialog__title{
|
|
|
+ color:#fff;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 18px;
|
|
|
+ position: relative;
|
|
|
+ top: -2px;
|
|
|
+ }
|
|
|
+ .addDialogMid{
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding:0 60px 0 10px;
|
|
|
+ .addDialogTit{
|
|
|
+ display: flex;
|
|
|
+ span{
|
|
|
+ width: 80px;
|
|
|
+ line-height: 40px;
|
|
|
+ text-align: left;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .addDialogTit1{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 15px;
|
|
|
+ }
|
|
|
+ .addDialogTit2{
|
|
|
+ margin-top: 10px;
|
|
|
+ font-size: 18px;
|
|
|
+ color: #000;
|
|
|
+ text-indent: 2em;
|
|
|
+ }
|
|
|
+ .addDialogCon{
|
|
|
+ margin-top: 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.dialog-footer{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+// .btn5{
|
|
|
+// height: 40px;
|
|
|
+// font-size: 16px;
|
|
|
+// background: #0e72e6;
|
|
|
+// width: 200px;
|
|
|
+// }
|
|
|
+}
|
|
|
+}
|
|
|
+//项目修改对话框结束
|
|
|
+ .PA2textArea{ //标题栏
|
|
|
+ margin: 15px 0;
|
|
|
.PA2textAreaTit{
|
|
|
- width: 100%;
|
|
|
+ width: 80%;
|
|
|
text-align: left;
|
|
|
font-size: 18px;
|
|
|
font-weight: 550;
|
|
|
margin-bottom: 15px;
|
|
|
color: #2387ff;
|
|
|
}
|
|
|
+ .ql-toolbar.ql-snow{
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
.PA2textAreaTit2{
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
+ .el-textarea__inner{
|
|
|
+ background: #f2f2f2;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- .PA2mid{
|
|
|
- margin: 15px 0px;
|
|
|
+ .PA2mid{ //预期取得成果单独一栏
|
|
|
width: 100%;
|
|
|
text-align: left;
|
|
|
font-size: 18px;
|
|
@@ -162,8 +266,4 @@ import { VueEditor } from "vue2-editor";
|
|
|
margin-bottom: 10px;
|
|
|
color: #2387ff;
|
|
|
}
|
|
|
- .homePage .homeBody .main[data-v-7eb2bc79]{
|
|
|
- text-align: left !important;
|
|
|
- }
|
|
|
- }
|
|
|
</style>
|