projectSettlementDetail_Student.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <template>
  2. <!-- 项目管理 项目详细 -->
  3. <div class="ProjectManagement2">
  4. <div id="w">
  5. <p class="pTit">研发内容</p>
  6. <div>
  7. <p class="pTit2">一、项目研发背景</p>
  8. <div class="editor">
  9. <vue-editor :editorToolbar="customToolbar" v-model="content.back"></vue-editor>
  10. </div>
  11. </div>
  12. <div>
  13. <p class="pTit2">二、项目创新点</p>
  14. <div class="editor">
  15. <vue-editor :editorToolbar="customToolbar" v-model="content.innovate"></vue-editor>
  16. </div>
  17. </div>
  18. <div>
  19. <p class="pTit2">三、技术研发路线</p>
  20. <div class="editor">
  21. <vue-editor :editorToolbar="customToolbar" v-model="content.path"></vue-editor>
  22. </div>
  23. </div>
  24. <div>
  25. <p class="pTit2">四、项目应用场景</p>
  26. <div class="editor">
  27. <vue-editor :editorToolbar="customToolbar" v-model="content.scene"></vue-editor>
  28. </div>
  29. </div>
  30. <!-- <div class="editor">
  31. <vue-editor :editorToolbar="customToolbar" v-model="content.contentOne"></vue-editor>
  32. </div> -->
  33. </div>
  34. <div>
  35. <p class="pTit">商业模式及社会价值</p>
  36. <div>
  37. <p class="pTit2">一、项目商业模式/社会价值</p>
  38. <div class="editor">
  39. <vue-editor :editorToolbar="customToolbar" v-model="content.worth"></vue-editor>
  40. </div>
  41. </div>
  42. </div>
  43. <div>
  44. <p class="pTit">团队优势</p>
  45. <div>
  46. <p class="pTit2">一、团队构成及优势</p>
  47. <div class="editor">
  48. <vue-editor :editorToolbar="customToolbar" v-model="content.team"></vue-editor>
  49. </div>
  50. </div>
  51. </div>
  52. <div>
  53. <p class="pTit">研发成本</p>
  54. <div>
  55. <p class="pTit2">一、研发成本来源及构成</p>
  56. <div class="editor">
  57. <vue-editor :editorToolbar="customToolbar" v-model="content.cost"></vue-editor>
  58. </div>
  59. </div>
  60. </div>
  61. <div id="e">
  62. <p class="pTit">预期成果</p>
  63. <div>
  64. <p class="pTit2">一、项目预期成果、数量及形式(产品原型/发明专利/双创竞赛/成果转化/社会效益)</p>
  65. <div class="editor">
  66. <vue-editor :editorToolbar="customToolbar" v-model="content.expectResults"></vue-editor>
  67. </div>
  68. </div>
  69. <div>
  70. <p class="pTit2">二、学生创客人才培养预期成果、数量(教师填写)</p>
  71. <div class="editor">
  72. <vue-editor :editorToolbar="customToolbar" v-model="content.expectResultsTeacher"></vue-editor>
  73. </div>
  74. </div>
  75. <div>
  76. <p class="pTit2">三、项目预期孵化、转化创业项目情况</p>
  77. <div class="editor">
  78. <vue-editor :editorToolbar="customToolbar" v-model="content.expectConversion"></vue-editor>
  79. </div>
  80. </div>
  81. </div>
  82. <div>
  83. <p class="pTit" style="margin-bottom: 0;">实施计划</p>
  84. <div class="editor">
  85. <vue-editor :editorToolbar="customToolbar" v-model="content.plan"></vue-editor>
  86. </div>
  87. </div>
  88. <div class="baseBtn">
  89. <div class="blockWidth">
  90. <el-button type="primary" v-show="isUpload==0" @click="audit">立即修改</el-button>
  91. <el-button type="primary" v-show="isUpload==1" disabled style="background: #ccc !important;border: none;" >立即修改</el-button>
  92. <el-button type="primary" v-show="isUpload==2" disabled style="background: #ccc !important;border: none;">立即修改</el-button>
  93. </div>
  94. </div>
  95. <!-- 修改对话框开始 -->
  96. <el-dialog
  97. title="提示"
  98. :visible.sync="submitHint"
  99. width="600px"
  100. class="projectApplicationfundAddDialog"
  101. :before-close="init">
  102. <div class="addDialogLogo">LOGO</div>
  103. <div class="deleteContent">确定修改项目基本信息?</div>
  104. <span slot="footer" class="dialog-footer">
  105. <el-button type="primary" @click="submitAll" class="AllDialogBtn">确认提交</el-button>
  106. <el-button @click="init" class="AllDialogBtn" size="small">取消</el-button>
  107. </span>
  108. </el-dialog>
  109. <!-- 修改对话框结束 -->
  110. </div>
  111. </template>
  112. <script>
  113. import { VueEditor } from "vue2-editor";
  114. export default {
  115. components:{
  116. VueEditor
  117. },
  118. data() {
  119. return {
  120. isUpload:'',
  121. data:[["","","","",""],[]],
  122. submitHint:false,
  123. customToolbar: [
  124. ["bold", "italic", "underline"], [{ list: "ordered" }, { list: "bullet" }],
  125. [{ align: "" }, { align: "center" }, { align: "right"}, { align: "justify"}],
  126. [{header:[false,1,2,3,4]}]
  127. ],
  128. content:'',
  129. }
  130. },
  131. methods:{
  132. // content(){ //导航栏项目详情跳转
  133. // this.$router.push('/projectApplicationDetails')
  134. // },
  135. // backBtn(){
  136. // this.$router.push('/projectApplicationApply2')
  137. // },
  138. audit(){ //立即修改按钮
  139. this.submitHint=true
  140. },
  141. submitAll(){
  142. let param={
  143. uid:this.$store.state.userInfo.userid,
  144. pid:this.$route.query['pid'],
  145. message:JSON.stringify(this.content)
  146. }
  147. this.ajax
  148. .post(this.$store.state.api+'/updateProjectApplication2Student',param)
  149. .then(res=>{
  150. // console.log(res);
  151. this.$message.success('修改成功')
  152. this.init()
  153. },err=>{
  154. console.log(err);
  155. })
  156. },
  157. init(){
  158. this.submitHint=false
  159. },
  160. // getData(){ //初始化完成获取基本数据进行填充
  161. // let param={
  162. // uid:this.$store.state.userInfo.userid,
  163. // pid:this.$route.query['pid']
  164. // }
  165. // this.ajax
  166. // .get(this.$store.state.api+'/GetProjectDetailMessage',param)
  167. // .then(res=>{
  168. // this.isUpload=res.data[0][0].isupload;
  169. // let GetData=JSON.parse(res.data[0][0].chapters)
  170. // this.data=GetData;
  171. // },err=>{
  172. // console.log(err);
  173. // })
  174. // },
  175. getData(){
  176. let param={
  177. uid:this.$store.state.userInfo.userid,
  178. pid:this.$route.query['pid']
  179. }
  180. this.ajax
  181. .get(this.$store.state.api+'/SelectProjectApplyDetailStudent',param)
  182. .then(res=>{
  183. let data=res.data[0][0]
  184. // console.log(data.chapters);
  185. this.isUpload=data.isupload
  186. this.content=JSON.parse(data.chapters)
  187. // console.log(this.content);
  188. },err=>{
  189. console.log(err);
  190. })
  191. },
  192. },
  193. mounted(){
  194. this.getData();
  195. }
  196. }
  197. </script>
  198. <style lang="less">
  199. // .projectApplication2{
  200. .projectApplicationfundAddDialog{ //项目修改对话框开始
  201. .el-dialog{
  202. border-radius:5px ;
  203. overflow: hidden;
  204. }
  205. .deleteContent{
  206. width: 100%;
  207. text-align: center;
  208. font-size: 22px;
  209. color: #000;
  210. }
  211. .addDialogLogo{
  212. width: 60px;
  213. height: 30px;
  214. display: flex;
  215. justify-content: center;
  216. line-height: 30px;
  217. border-radius: 5px;
  218. background: #f2f2f2;
  219. position: absolute;
  220. left: 20px; top: 15px;
  221. }
  222. .el-dialog__header{
  223. background: #32455b;
  224. }
  225. .el-dialog__title{
  226. color:#fff;
  227. display: flex;
  228. justify-content: center;
  229. font-size: 18px;
  230. position: relative;
  231. top: -2px;
  232. }
  233. .addDialogMid{
  234. box-sizing: border-box;
  235. padding:0 60px 0 10px;
  236. .addDialogTit{
  237. display: flex;
  238. span{
  239. width: 80px;
  240. line-height: 40px;
  241. text-align: left;
  242. }
  243. }
  244. .addDialogTit1{
  245. display: flex;
  246. justify-content: space-between;
  247. margin-bottom: 15px;
  248. }
  249. .addDialogTit2{
  250. margin-top: 10px;
  251. font-size: 18px;
  252. color: #000;
  253. text-indent: 2em;
  254. }
  255. .addDialogCon{
  256. margin-top: 20px;
  257. }
  258. }
  259. .dialog-footer{
  260. display: flex;
  261. justify-content: center;
  262. // .btn5{
  263. // height: 40px;
  264. // font-size: 16px;
  265. // background: #0e72e6;
  266. // width: 200px;
  267. // }
  268. }
  269. }
  270. .PA2textArea{ //标题栏
  271. margin: 15px 0;
  272. .PA2textAreaTit{
  273. width: 80%;
  274. text-align: left;
  275. font-size: 18px;
  276. font-weight: 550;
  277. margin-bottom: 15px;
  278. color: #2387ff;
  279. }
  280. .ql-toolbar.ql-snow{
  281. display: flex;
  282. }
  283. .PA2textAreaTit2{
  284. font-size: 16px;
  285. }
  286. .el-textarea__inner{
  287. background: #f2f2f2;
  288. }
  289. }
  290. // }
  291. </style>