makerActvity.vue 13 KB

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