projectApplication.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. <template>
  2. <div class="projectApplication">
  3. <div class="pAHeader">
  4. <div class="pAHeader1">项目立项申请</div>
  5. <el-button style="font-size: 16px;" @click="apply">项目立项申请</el-button>
  6. </div>
  7. <hr>
  8. <!-- 搜索框开始 -->
  9. <div class="selects">
  10. <div class="selectsBlock">
  11. <div class="selectLabel">项目筛选</div>
  12. <el-select v-model="pavalues.value" placeholder="我的项目">
  13. <el-option
  14. v-for="item in options"
  15. :key="item.value"
  16. :label="item.label"
  17. :value="item.value">
  18. </el-option>z
  19. </el-select>
  20. </div>
  21. <div class="selectsBlock">
  22. <div class="selectLabel">部门</div>
  23. <el-select v-model="pavalues.value1" placeholder="请选择">
  24. <el-option
  25. v-for="item in options1"
  26. :key="item.value"
  27. :label="item.label"
  28. :value="item.value">
  29. </el-option>
  30. </el-select>
  31. </div>
  32. <div class="selectsBlock">
  33. <div class="selectLabel">分类</div>
  34. <el-select v-model="pavalues.value2" placeholder="请选择">
  35. <el-option
  36. v-for="item in options2"
  37. :key="item.value"
  38. :label="item.label"
  39. :value="item.value">
  40. </el-option>
  41. </el-select>
  42. </div>
  43. <div class="selectsBlock">
  44. <div class="selectLabel">负责人</div>
  45. <el-select v-model="pavalues.value3" placeholder="请选择">
  46. <el-option
  47. v-for="item in options3"
  48. :key="item.value"
  49. :label="item.label"
  50. :value="item.value">
  51. </el-option>
  52. </el-select>
  53. </div>
  54. <div class="selectsBlock">
  55. <div class="selectLabel">状态</div>
  56. <el-select v-model="pavalues.value4" placeholder="请选择">
  57. <el-option
  58. v-for="item in options4"
  59. :key="item.value"
  60. :label="item.label"
  61. :value="item.value">
  62. </el-option>
  63. </el-select>
  64. </div>
  65. </div>
  66. <!-- 搜索框结束 -->
  67. <!-- 表格开始 -->
  68. <div>
  69. <el-table
  70. ref="multipleTable"
  71. :data="tableData"
  72. tooltip-effect="dark"
  73. stripe
  74. class="fontSize"
  75. :header-cell-style="{ background: '#f2f2f2',color:'#000' }"
  76. @selection-change="handleSelectionChange">
  77. <el-table-column
  78. type="selection"
  79. >
  80. </el-table-column>
  81. <el-table-column
  82. prop="projectName"
  83. label="项目名称"
  84. min-width="8%">
  85. </el-table-column>
  86. <el-table-column
  87. prop="projectPerson"
  88. label="项目负责人"
  89. min-width="9%">
  90. </el-table-column>
  91. <el-table-column
  92. prop="dept"
  93. label="所在部门"
  94. min-width="6%">
  95. </el-table-column>
  96. <el-table-column
  97. prop="budget"
  98. label="预算"
  99. min-width="6%">
  100. </el-table-column>
  101. <el-table-column
  102. prop="date"
  103. label="开始时间"
  104. min-width="10%">
  105. </el-table-column>
  106. <el-table-column
  107. prop="tel"
  108. label="联系电话"
  109. min-width="10%">
  110. </el-table-column>
  111. <el-table-column
  112. prop="state"
  113. label="状态"
  114. min-width="6%">
  115. <!-- <template #default="scope"> -->
  116. <div>
  117. <!-- {{scope.row.name + (scope.row.status==0?"":"(已屏蔽)")}} -->
  118. {{ status==-1?"未审核" :status ? "已审核" : "撤回中" }}
  119. </div>
  120. <!-- </template> -->
  121. </el-table-column>
  122. <el-table-column
  123. prop="operation"
  124. width="350"
  125. align="center"
  126. label="操作"
  127. >
  128. <template #default="scope">
  129. <div class="operations">
  130. <!-- <el-button type="primary" > -->
  131. <!-- <el-link class="btt" type="primary" :underline="false"> -->
  132. <el-button type="primary" size="mini" @click="paApply">查看详情</el-button>
  133. <el-button type="primary" size="mini" @click="audit">{{(status==-1?"审核": status?"撤回":"审核")}}</el-button>
  134. <el-button type="primary" size="mini" @click="edit(scope)" >申请表</el-button>
  135. <el-button type="primary" size="mini">删除</el-button>
  136. <!-- </el-link> -->
  137. <!-- </el-button> -->
  138. </div>
  139. </template>
  140. </el-table-column>
  141. </el-table>
  142. </div>
  143. <!-- 表格结束 -->
  144. <!-- 立项撤回对话框开始 -->
  145. <el-dialog
  146. title="立项撤回提交"
  147. :visible.sync="dialogVisible1"
  148. :modal="false"
  149. width="700px"
  150. :close-on-click-modal="true"
  151. class="dialogWidth"
  152. :before-close="init">
  153. <div class="diaTit">
  154. <div class="spans">项目名称:</div>
  155. <div class="spanCon">人工智能分链机器</div>
  156. <div class="spans" style="margin-left: 50px;">项目负责人:</div>
  157. <div class="spanCon">徐晓霞</div>
  158. </div>
  159. <div class="diaTit1">
  160. <div class="spans1">所在部门</div>
  161. <div>
  162. <el-input v-model="input" placeholder="信通学院"></el-input>
  163. </div>
  164. </div>
  165. <div class="diaTit1">
  166. <div class="spans1">预算总经费</div>
  167. <div>
  168. <el-input v-model="input" placeholder="6000"></el-input>
  169. </div>
  170. </div>
  171. <div class="diaTit1">
  172. <div class="spans1">联系电话</div>
  173. <div>
  174. <el-input v-model="input" placeholder="13854449525"></el-input>
  175. </div>
  176. </div>
  177. <div class="diaTit1">
  178. <div class="spans1">撤回意见</div>
  179. <div>
  180. <el-input
  181. type="textarea"
  182. :rows="4"
  183. resize="none"
  184. placeholder="请输入内容"
  185. v-model="textarea">
  186. </el-input>
  187. </div>
  188. </div>
  189. <div slot="footer" class="dialog-footer">
  190. <el-button @click="commit2" class="diaBtn" style="background: #0e72e6;color: #fff;" size="small">确认提交</el-button>
  191. <el-button @click="cancel2" class="diaBtn" style="background: #cccccc;color: #000;" size="small">取消</el-button>
  192. </div>
  193. </el-dialog>
  194. <!-- 立项撤回对话框开始 -->
  195. <!-- 立项审核对话框开始 -->
  196. <el-dialog
  197. title="立项审核"
  198. :visible.sync="dialogVisible"
  199. :modal="false"
  200. class="dialogWidth"
  201. :close-on-click-modal="true"
  202. :before-close="init">
  203. <div class="diaTit">
  204. <div class="spans">项目名称</div>
  205. <div class="spanCon">:人工智能分链机器</div>
  206. <div class="spans" style="margin-left: 30px;">项目负责人</div>
  207. <div class="spanCon">:徐晓霞</div>
  208. </div>
  209. <div class="diaTit1">
  210. <div class="spans1">所在部门</div>
  211. <div>
  212. <el-input v-model="input" placeholder="信通学院"></el-input>
  213. </div>
  214. </div>
  215. <div class="diaTit1">
  216. <div class="spans1">预算总经费</div>
  217. <div>
  218. <el-input v-model="input" placeholder="6000"></el-input>
  219. </div>
  220. </div>
  221. <div class="diaTit1">
  222. <div class="spans1">联系电话</div>
  223. <div>
  224. <el-input v-model="input" placeholder="13854449525"></el-input>
  225. </div>
  226. </div>
  227. <div slot="footer" class="dialog-footer">
  228. <el-button @click="commit" class="diaBtn" style="background: #0e72e6;color: #fff;" size="small">确认提交</el-button>
  229. <el-button @click="cancel" class="diaBtn" style="background: #cccccc;color: #000;" size="small">取消</el-button>
  230. </div>
  231. </el-dialog>
  232. <!-- 立项审核对话框结束 -->
  233. </div>
  234. </template>
  235. <script>
  236. export default {
  237. data() {
  238. return {
  239. textarea:'',
  240. input:'',
  241. status:-1,
  242. dialogVisible:false,//立项审核
  243. dialogVisible1:false,//立项撤回提交
  244. options:[],//项目筛选
  245. options1:[],//部门
  246. options2:[],//分类
  247. options3:[],//负责人
  248. options4:[],//状态
  249. tableData:[{
  250. projectName:'陆地游泳辅助器',
  251. projectPerson:'王多鱼',
  252. dept:'西虹市',
  253. budget:'200万',
  254. date:'2022年11月12日',
  255. tel:'16625153432',
  256. state:'已审核',
  257. },
  258. ],
  259. // 头部搜索框的内容
  260. pavalues:{
  261. value:'',
  262. value1:'',
  263. value2:'',
  264. value3:'',
  265. value4:'',
  266. }
  267. }
  268. },
  269. methods:{
  270. getAccountListByPage(){
  271. // this.loading=true;
  272. // let value = this.value;
  273. // this.ajax
  274. // .get('/page')
  275. // .then(res=>{
  276. // this.loading=false
  277. // let data=res.data;
  278. // this.getAccountListByPage();
  279. // this.tableData = data;
  280. // })
  281. // .catch(err => {
  282. // console.log(err);
  283. // });
  284. },
  285. init(){
  286. this.dialogVisible=false;
  287. this.dialogVisible1=false;
  288. },
  289. audit(){
  290. if(this.status==-1){
  291. this.dialogVisible=true;
  292. return
  293. }else if(this.status){
  294. this.dialogVisible1=true;
  295. return
  296. }else{
  297. this.dialogVisible=true;
  298. }
  299. },
  300. edit(){
  301. },
  302. commit(){
  303. this.dialogVisible=false;
  304. this.status=1
  305. console.log(this.status);
  306. },
  307. cancel(){
  308. this.dialogVisible=false;
  309. },
  310. commit2(){
  311. this.dialogVisible1=false;
  312. this.status--
  313. console.log(this.status);
  314. },
  315. cancel2(){
  316. this.dialogVisible1=false;
  317. },
  318. handleSelectionChange(val) {
  319. this.multipleSelection = val;
  320. },
  321. paApply(){
  322. this.$router.push('/projectApplicationDetails')
  323. },
  324. apply(){
  325. this.$router.push('/projectApplicationApplyMain')
  326. },
  327. // 获取下拉框数据
  328. getDate(){
  329. // this.ajax
  330. // .get('/getCreationSelect')
  331. // .then(res=>{
  332. // const p=res.data
  333. // console.log(p);
  334. // this.options=p[0]
  335. // this.options1=p[0]
  336. // this.options2=p[0]
  337. // this.options3=p[0]
  338. // this.options4=p[0]
  339. // },err=>{
  340. // console.log(err);
  341. // })
  342. },
  343. },
  344. watch:{
  345. value:{
  346. handler(){
  347. immediate:true
  348. deep:true
  349. this.getAccountListByPage()
  350. }
  351. }
  352. },
  353. mounted(){
  354. this.getDate()
  355. }
  356. }
  357. </script>
  358. <style lang="less">
  359. .projectApplication{
  360. .dialogWidth{
  361. .el-input__inner{
  362. width: 300px;
  363. }
  364. .el-textarea__inner{
  365. width: 400px;
  366. }
  367. .el-dialog{
  368. width: 600px;
  369. border-radius: 5px;
  370. overflow: hidden;
  371. }
  372. .el-dialog__body{
  373. padding:30px 35px ;
  374. }
  375. .el-dialog__header{
  376. background: #32455b;
  377. }
  378. .el-dialog__title{
  379. color: #fff;
  380. position: relative;
  381. top: -5px;
  382. font-size: 18px;
  383. }
  384. .diaTit{ //项目名称、负责人
  385. width: 100%;
  386. display: flex;
  387. .spans{
  388. width: 84px;
  389. font-size: 16px;
  390. margin-right: 10px;
  391. display: inline-block;
  392. text-align: justify;
  393. color: #000;
  394. font-size: 16px;
  395. text-justify:distribute-all-lines;
  396. text-align-last: justify;
  397. transform: translate(0,22%);
  398. margin-bottom: 10px;
  399. }
  400. }
  401. .spanCon{
  402. font-size: 16px;
  403. margin-top: 5px;
  404. color: #a0a0a0;
  405. }
  406. .spans1{ //label
  407. min-width: 84px;
  408. font-size: 16px;
  409. color: #000;
  410. margin-right: 10px;
  411. display: inline-block;
  412. text-align: justify;
  413. text-justify:distribute-all-lines;
  414. text-align-last: justify;
  415. transform: translate(0,22%);
  416. }
  417. .diaTit1{ //label和input框
  418. display: flex;
  419. width: 80%;
  420. margin-top: 20px;
  421. }
  422. .dialog-footer{
  423. width: 100%;
  424. display: flex;
  425. justify-content: center;
  426. .diaBtn{
  427. width: 180px;
  428. height: 35px;
  429. line-height: 5px;
  430. font-size: 16px;
  431. }
  432. }
  433. }
  434. }
  435. </style>