projectApplication2.vue 10 KB

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