projectSettlementDetail_Student.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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. <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==1" disabled style="background: #ccc !important;border: none;" >立即修改</el-button>
  180. <el-button type="primary" v-show="isUpload==2" disabled style="background: #ccc !important;border: none;">立即修改</el-button>
  181. </div>
  182. </div>
  183. <!-- 修改对话框开始 -->
  184. <el-dialog
  185. title="提示"
  186. :visible.sync="submitHint"
  187. width="600px"
  188. class="projectApplicationfundAddDialog"
  189. :before-close="init">
  190. <div class="addDialogLogo">LOGO</div>
  191. <div class="deleteContent">确定修改项目基本信息?</div>
  192. <span slot="footer" class="dialog-footer">
  193. <el-button type="primary" @click="submitAll" class="AllDialogBtn">确认提交</el-button>
  194. <el-button @click="init" class="AllDialogBtn" size="small">取消</el-button>
  195. </span>
  196. </el-dialog>
  197. <!-- 修改对话框结束 -->
  198. </div>
  199. </template>
  200. <script>
  201. import { VueEditor } from "vue2-editor";
  202. export default {
  203. components:{
  204. VueEditor
  205. },
  206. data() {
  207. return {
  208. isUpload:'',
  209. data:[["","","","",""],[]],
  210. submitHint:false,
  211. customToolbar: [
  212. ["bold", "italic", "underline"], [{ list: "ordered" }, { list: "bullet" }],
  213. [{ align: "" }, { align: "center" }, { align: "right"}, { align: "justify"}],
  214. [{header:[false,1,2,3,4]}]
  215. ],
  216. content:'',
  217. }
  218. },
  219. methods:{
  220. // content(){ //导航栏项目详情跳转
  221. // this.$router.push('/projectApplicationDetails')
  222. // },
  223. // backBtn(){
  224. // this.$router.push('/projectApplicationApply2')
  225. // },
  226. audit(){ //立即修改按钮
  227. this.submitHint=true
  228. },
  229. submitAll(){
  230. let param={
  231. uid:this.$store.state.userInfo.userid,
  232. pid:this.$route.query['pid'],
  233. message:JSON.stringify(this.content)
  234. }
  235. this.ajax
  236. .post(this.$store.state.api+'/updateProjectApplication2Student',param)
  237. .then(res=>{
  238. // console.log(res);
  239. this.$message.success('修改成功')
  240. this.init()
  241. },err=>{
  242. console.log(err);
  243. })
  244. },
  245. init(){
  246. this.submitHint=false
  247. },
  248. // getData(){ //初始化完成获取基本数据进行填充
  249. // let param={
  250. // uid:this.$store.state.userInfo.userid,
  251. // pid:this.$route.query['pid']
  252. // }
  253. // this.ajax
  254. // .get(this.$store.state.api+'/GetProjectDetailMessage',param)
  255. // .then(res=>{
  256. // this.isUpload=res.data[0][0].isupload;
  257. // let GetData=JSON.parse(res.data[0][0].chapters)
  258. // this.data=GetData;
  259. // },err=>{
  260. // console.log(err);
  261. // })
  262. // },
  263. getData(){
  264. let param={
  265. uid:this.$store.state.userInfo.userid,
  266. pid:this.$route.query['pid']
  267. }
  268. this.ajax
  269. .get(this.$store.state.api+'/SelectProjectApplyDetailStudent',param)
  270. .then(res=>{
  271. let data=res.data[0][0]
  272. // console.log(data.chapters);
  273. this.isUpload=data.isupload
  274. this.content=JSON.parse(data.chapters)
  275. // console.log(this.content);
  276. },err=>{
  277. console.log(err);
  278. })
  279. },
  280. },
  281. mounted(){
  282. this.getData();
  283. }
  284. }
  285. </script>
  286. <style lang="less">
  287. // .projectApplication2{
  288. .projectApplicationfundAddDialog{ //项目修改对话框开始
  289. .el-dialog{
  290. border-radius:5px ;
  291. overflow: hidden;
  292. }
  293. .deleteContent{
  294. width: 100%;
  295. text-align: center;
  296. font-size: 22px;
  297. color: #000;
  298. }
  299. .addDialogLogo{
  300. width: 60px;
  301. height: 30px;
  302. display: flex;
  303. justify-content: center;
  304. line-height: 30px;
  305. border-radius: 5px;
  306. background: #f2f2f2;
  307. position: absolute;
  308. left: 20px; top: 15px;
  309. }
  310. .el-dialog__header{
  311. background: #32455b;
  312. }
  313. .el-dialog__title{
  314. color:#fff;
  315. display: flex;
  316. justify-content: center;
  317. font-size: 18px;
  318. position: relative;
  319. top: -2px;
  320. }
  321. .addDialogMid{
  322. box-sizing: border-box;
  323. padding:0 60px 0 10px;
  324. .addDialogTit{
  325. display: flex;
  326. span{
  327. width: 80px;
  328. line-height: 40px;
  329. text-align: left;
  330. }
  331. }
  332. .addDialogTit1{
  333. display: flex;
  334. justify-content: space-between;
  335. margin-bottom: 15px;
  336. }
  337. .addDialogTit2{
  338. margin-top: 10px;
  339. font-size: 18px;
  340. color: #000;
  341. text-indent: 2em;
  342. }
  343. .addDialogCon{
  344. margin-top: 20px;
  345. }
  346. }
  347. .dialog-footer{
  348. display: flex;
  349. justify-content: center;
  350. // .btn5{
  351. // height: 40px;
  352. // font-size: 16px;
  353. // background: #0e72e6;
  354. // width: 200px;
  355. // }
  356. }
  357. }
  358. .PA2textArea{ //标题栏
  359. margin: 15px 0;
  360. .PA2textAreaTit{
  361. width: 80%;
  362. text-align: left;
  363. font-size: 18px;
  364. font-weight: 550;
  365. margin-bottom: 15px;
  366. color: #2387ff;
  367. }
  368. .ql-toolbar.ql-snow{
  369. display: flex;
  370. }
  371. .PA2textAreaTit2{
  372. font-size: 16px;
  373. }
  374. .el-textarea__inner{
  375. background: #f2f2f2;
  376. }
  377. }
  378. // }
  379. </style>