makerActvity.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. <template>
  2. <!--创客活动 -->
  3. <div class="makerActvity" v-loading="loading">
  4. <div class="pAHeader">
  5. <div class="pAHeader1">活动申请</div>
  6. <!-- <el-button @click="makerActvityApply">创客活动申请</el-button> -->
  7. </div>
  8. <hr>
  9. <!-- 搜索框开始 -->
  10. <div class="selectInp">
  11. <div class="manageSelects">
  12. <div class="selectsBlock">
  13. <div class="selectLabel">项目筛选</div>
  14. <el-select v-model="pavalues.value" @change="getData" placeholder="请选择">
  15. <el-option label="所有项目" value=""/>
  16. <el-option
  17. v-for="item in options"
  18. :key="item.courseId"
  19. :label="item.title"
  20. :value="item.courseId">
  21. </el-option>
  22. </el-select>
  23. </div>
  24. <div class="selectsBlock">
  25. <div class="selectLabel">分类</div>
  26. <el-select v-model="pavalues.value4" @change="getData" placeholder="请选择">
  27. <el-option label="所有分类" value=""/>
  28. <el-option label="创客活动" :value="0"/>
  29. <el-option label="个人创客" :value="1"/>
  30. <!-- <el-option label="所有部门" value=""/>
  31. <el-option
  32. v-for="item in options1"
  33. :key="item.id"
  34. :label="item.name"
  35. :value="item.id">
  36. </el-option> -->
  37. </el-select>
  38. </div>
  39. <div class="selectsBlock">
  40. <div class="selectLabel">所在部门</div>
  41. <el-select v-model="pavalues.value1" @change="getData" placeholder="请选择">
  42. <el-option label="所有部门" value=""/>
  43. <el-option
  44. v-for="item in options1"
  45. :key="item.id"
  46. :label="item.name"
  47. :value="item.id">
  48. </el-option>
  49. </el-select>
  50. </div>
  51. <div class="selectsBlock">
  52. <div class="selectLabel">负责人</div>
  53. <el-select v-model="pavalues.value2" @change="getData" placeholder="请选择">
  54. <el-option label="所有负责人" value=""></el-option>
  55. <el-option
  56. v-for="item in options2"
  57. :key="item.pro_leader"
  58. :label="item.pro_leader"
  59. :value="item.pro_leader">
  60. </el-option>
  61. </el-select>
  62. </div>
  63. <div class="selectsBlock">
  64. <div class="selectLabel">状态</div>
  65. <el-select v-model="pavalues.value3" @change="getData" placeholder="请选择">
  66. <el-option label="所有状态" value=""/>
  67. <el-option label="未审核" :value="0"/>
  68. <el-option label="未报销" :value="1"/>
  69. <el-option label="已报销" :value="2"/>
  70. </el-select>
  71. </div>
  72. </div>
  73. <div class="ProjectManagementQuery">
  74. <el-input v-model="input" placeholder="请输入项目名称/编号"></el-input>
  75. <el-button type="primary" class="btn" size="mini" @click="getData">查询</el-button>
  76. </div>
  77. </div>
  78. <!-- 搜索框结束 -->
  79. <!-- 表格开始 -->
  80. <el-table
  81. ref="multipleTable"
  82. :data="tableData"
  83. tooltip-effect="dark"
  84. stripe
  85. class="fontSize"
  86. :header-cell-style="{ background: '#f2f2f2',color:'#000' }"
  87. >
  88. <el-table-column
  89. prop="ActivityNo"
  90. label="活动编号"
  91. align="center"
  92. min-width="7%">
  93. </el-table-column>
  94. <el-table-column
  95. prop="title"
  96. label="活动名称"
  97. align="center"
  98. min-width="10%">
  99. </el-table-column>
  100. <el-table-column
  101. prop="pro_leader"
  102. label="负责人"
  103. align="center"
  104. min-width="7%">
  105. </el-table-column>
  106. <el-table-column
  107. prop="PName"
  108. align="center"
  109. label="关联项目"
  110. min-width="9%">
  111. <template #default="scope">
  112. <div>
  113. {{ scope.row.PName!=null||scope.row.PName==''?scope.row.PName:"-" }}
  114. </div>
  115. </template>
  116. </el-table-column>
  117. <el-table-column
  118. prop="money"
  119. align="center"
  120. label="预算经费(元)"
  121. min-width="8%">
  122. </el-table-column>
  123. <el-table-column
  124. prop="name"
  125. align="center"
  126. label="所在部门"
  127. min-width="8%">
  128. </el-table-column>
  129. <el-table-column
  130. prop="state"
  131. label="状态"
  132. align="center"
  133. min-width="7%">
  134. <template #default="scope">
  135. <span v-if="scope.row.state==0">未审核</span>
  136. <span v-if="scope.row.state==1">待审核</span>
  137. <span v-if="scope.row.state==2">已审核</span>
  138. <span v-if="scope.row.state==3">已报销</span>
  139. </template>
  140. </el-table-column>
  141. <el-table-column
  142. prop="begin_at"
  143. align="center"
  144. label="活动时间"
  145. min-width="12%">
  146. <template #default="scope">
  147. {{ GetTime(scope.row.begin_at)}}
  148. </template>
  149. </el-table-column>
  150. <el-table-column
  151. prop="operation"
  152. width="400"
  153. align="center"
  154. label="操作"
  155. >
  156. <template #default="scope">
  157. <div class="operations">
  158. <el-button type="primary" @click="MADetails(scope.row.acId)" size="mini">查看详情</el-button>
  159. <el-button type="primary" v-if="scope.row.state==0" @click="audi(scope.row,0)" size="mini">审核</el-button>
  160. <el-button type="primary" disabled v-show="scope.row.state>=1" class="disa" size="mini">审核</el-button>
  161. <!-- <el-button type="primary" @click="audi(scope.row,1)" size="mini">管理审核</el-button> -->
  162. <el-button type="primary" v-show="scope.row.state==1" @click="audi(scope.row,1)" size="mini">审核1</el-button>
  163. <el-button type="primary" disabled v-show="scope.row.state==2" class="disa" size="mini">审核1</el-button>
  164. <el-button type="primary" disabled v-show="scope.row.state!=2 && scope.row.state!=1" class="disa" size="mini">已审核1</el-button>
  165. <!-- <el-button type="primary" size="mini" @click="edit(scope.row.acId)">申请表</el-button> -->
  166. <el-button type="primary" v-show="scope.row.state!=2 && scope.row.state!=3" class="disa" size="mini" @click="end(scope.row)" >完结</el-button>
  167. <el-button type="primary" v-show="scope.row.state==2" size="mini" @click="end(scope.row)" >完结</el-button>
  168. <el-button type="primary" v-show="scope.row.state==3" size="mini" class="disa">已完结</el-button>
  169. </div>
  170. </template>
  171. </el-table-column>
  172. </el-table>
  173. <!-- 表格结束 -->
  174. <!-- 活动审核对话框开始 -->
  175. <el-dialog
  176. title="活动审核"
  177. :visible.sync="auditDialog"
  178. class="dialogWidth"
  179. :before-close="init">
  180. <div class="diaTit">
  181. <div class="spans">项目名称:</div>
  182. <div class="spanCon">{{ processTable.name }}</div>
  183. <div class="spans" style="margin-left: 30px;">项目负责人:</div>
  184. <div class="spanCon">{{ processTable.leader }}</div>
  185. </div>
  186. <div class="diaTit1">
  187. <div class="spans1">所在部门</div>
  188. <div>
  189. <el-input disabled v-model="processTable.className"></el-input>
  190. </div>
  191. </div>
  192. <div class="diaTit1">
  193. <div class="spans1">预算总经费</div>
  194. <div>
  195. <el-input disabled v-model="processTable.money"></el-input>
  196. </div>
  197. </div>
  198. <div class="diaTit1">
  199. <div class="spans1">联系电话</div>
  200. <div>
  201. <el-input disabled v-model="processTable.phone"></el-input>
  202. </div>
  203. </div>
  204. <div class="diaTit1" v-show="isManager==1">
  205. <div class="spans1" style="position: relative;top:-24px">驳回意见</div>
  206. <div class="inp">
  207. <el-input
  208. type="textarea"
  209. :rows="5"
  210. resize="none"
  211. placeholder="请输入修改建议等..."
  212. v-model="rejectApplyText">
  213. </el-input>
  214. </div>
  215. </div>
  216. <div slot="footer" class="dialog-footer">
  217. <el-button type="primary" @click="Commit(1)" v-show="isManager==0" class="AllDialogBtn">确认提交</el-button>
  218. <el-button type="primary" @click="Commit(2)" v-show="isManager==1" class="AllDialogBtn">通过</el-button>
  219. <el-button type="primary" @click="rejectApply" v-show="isManager==1" class="AllDialogBtn">驳回</el-button>
  220. <el-button @click="init" class="AllDialogBtn">取消</el-button>
  221. </div>
  222. </el-dialog>
  223. <!-- 活动审核对话框结束 -->
  224. <!-- 驳回提交对话框开始 -->
  225. <!-- <el-dialog
  226. title="驳回提交"
  227. :visible.sync="rejectDialog"
  228. class="dialogWidth"
  229. width="700px"
  230. :before-close="init">
  231. <div class="diaTit">
  232. <div class="spans">项目名称:</div>
  233. <div class="spanCon">{{ processTable.name }}</div>
  234. <div class="spans" style="margin-left: 30px;">项目负责人:</div>
  235. <div class="spanCon">{{ processTable.leader }}</div>
  236. </div>
  237. <div class="diaTit1">
  238. <div class="spans1">所在部门</div>
  239. <div>
  240. <el-input disabled v-model="processTable.className"></el-input>
  241. </div>
  242. </div>
  243. <div class="diaTit1">
  244. <div class="spans1">预算总经费</div>
  245. <div>
  246. <el-input disabled v-model="processTable.money"></el-input>
  247. </div>
  248. </div>
  249. <div class="diaTit1">
  250. <div class="spans1">联系电话</div>
  251. <div>
  252. <el-input disabled v-model="processTable.phone"></el-input>
  253. </div>
  254. </div>
  255. <div class="diaTit1">
  256. <div class="spans1" style="position: relative;top:-23px">撤回意见</div>
  257. <div>
  258. <el-input
  259. type="textarea"
  260. :rows="4"
  261. style="width:200px"
  262. resize="none"
  263. placeholder="请输入内容"
  264. v-model="textarea">
  265. </el-input>
  266. </div>
  267. </div>
  268. <div slot="footer" class="dialog-footer">
  269. <el-button type="primary" @click="commit2" class="AllDialogBtn">确认提交</el-button>
  270. <el-button @click="init" class="AllDialogBtn">取消</el-button>
  271. </div>
  272. </el-dialog> -->
  273. <!-- 驳回提交对话框结束 -->
  274. <!-- 完结对话框开始 -->
  275. <el-dialog
  276. title="提示"
  277. :visible.sync="endDialog"
  278. width="600px"
  279. class="endDialog"
  280. :before-close="init">
  281. <div class="deleteContent">"{{ endTable.title }}"项目活动,是否确定完结?</div>
  282. <div class="deleteContent1">活动完结报告</div>
  283. <div class="download" v-for="(item,index) in endTable.file" :key="index">
  284. <div>{{ item.fileName }}</div>
  285. <el-button type="primary" @click="delEndTableFile(item.url)" size="mini">删除文件</el-button>
  286. </div>
  287. <el-progress style="margin-top:20px" v-show="progress.show" :percentage="progress.value" :format="ProgressFormat"></el-progress>
  288. <div class="addMoneyBtn">
  289. <div class="jia">+</div>添加
  290. <div id="upFile">
  291. <beUpload @getFile="getFile" :navName="'上传文件'" :progress="progress" :accept="accept"> </beUpload>
  292. </div>
  293. </div>
  294. <!-- <div class="DelBtn" style="margin-left: 0;" v-if="endTable.file!=''&&endTable.file!=null">
  295. <el-button type="primary" @click="endTable.file=''">删除文件</el-button>
  296. </div> -->
  297. <div slot="footer" class="dialog-footer">
  298. <el-button type="primary" @click="ending" class="AllDialogBtn">确认提交</el-button>
  299. <el-button @click="endDialog=false" class="AllDialogBtn">取消</el-button>
  300. </div>
  301. </el-dialog>
  302. <!-- 未完结资金查看开始 -->
  303. <el-dialog
  304. title="提示"
  305. :visible.sync="endFundDialog"
  306. width="600px"
  307. class="endDialog"
  308. :before-close="init">
  309. <div class="deleteContent">"{{ endTable.title }}"项目活动还有资金未完结!</div>
  310. <div class="deleteContent1">未完结资金编号</div>
  311. <div class="download" v-for="(item,index) in endFundData" :key="item.fid">
  312. <div>{{ item.fundNo }}</div>
  313. </div>
  314. <div slot="footer" class="dialog-footer">
  315. <el-button type="primary" @click="endFundDialog = false" class="AllDialogBtn">确认</el-button>
  316. <el-button @click="endFundDialog=false" class="AllDialogBtn">取消</el-button>
  317. </div>
  318. </el-dialog>
  319. <!-- 未完结资金查看结束 -->
  320. <!-- 完结对话框结束 -->
  321. <!-- 活动管理word文档预览开始 -->
  322. <!-- <el-dialog
  323. title="提示"
  324. :visible.sync="activityWord"
  325. width="65%"
  326. top="50px"
  327. class="endDialog">
  328. <div class="core_dialogue">
  329. <makerActivityWord :data="wordData"/>
  330. </div>
  331. <div slot="footer" class="dialog-footer">
  332. <el-button type="primary" @click="getWord()" class="AllDialogBtn">下载</el-button>
  333. <el-button @click="activityWord = false" class="AllDialogBtn">取消</el-button>
  334. </div>
  335. </el-dialog> -->
  336. <!-- 活动管理word文档预览结束 -->
  337. <!-- 分页 -->
  338. <el-pagination
  339. @current-change="CurrentChange"
  340. :page-size="Page.lim"
  341. layout=" prev, pager, next"
  342. background
  343. class="paginations"
  344. :total="Page.total">
  345. </el-pagination>
  346. </div>
  347. </template>
  348. <script>
  349. import beUpload from '../../components/tool/beUpload';
  350. import makerActivityWord from '@/components/makerActivityWord.vue';
  351. import { ActivityWord } from '@/components/tool/getWord';
  352. // import downloadFile from '@/components/tool/downloadFile.js';
  353. export default {
  354. components:{beUpload,makerActivityWord},
  355. data() {
  356. return {
  357. loading:false,
  358. accept:"*",
  359. status:1,
  360. textarea:'',
  361. input:'',
  362. btnState:0,
  363. isManager:'', //审核框与驳回框的区别 0申请人 1管理员
  364. endDialog:false, //完结对话框
  365. auditDialog:false, //审核对话框
  366. rejectDialog:false, //驳回对话框
  367. endFundDialog:false,//未完结资金
  368. endFundData:[],
  369. // activityWord:false,
  370. rejectApplyText:'',//驳回数据
  371. options:[],
  372. options1:[],
  373. options2:[],
  374. // 表格数据
  375. tableData:[],
  376. // 四个下拉框数据
  377. pavalues:{
  378. value:'',//项目ID
  379. value1:'',//部门ID
  380. value2:'',//负责人
  381. value3:'',//状态
  382. value4:"",//分类
  383. },
  384. Page:{
  385. nowPage:1,
  386. total:10,
  387. lim:8
  388. },
  389. processTable:{
  390. Id:"",
  391. name:"",
  392. leader:"",
  393. className:"",
  394. money:"",
  395. phone:""
  396. },
  397. endTable:{
  398. Id:"",
  399. title:"",
  400. file:[],
  401. },
  402. progress:{
  403. value:0,
  404. show:false
  405. },
  406. wordData:{},
  407. }
  408. },
  409. methods:{
  410. getFile(val) {//上传文件
  411. this.endTable.file.push(val);
  412. this.progress.show = false;
  413. },
  414. delEndTableFile(url){
  415. this.endTable.file = this.endTable.file.filter(item=>item.url!=url);
  416. },
  417. // cancelEndTableFile(){
  418. // if(this.endTable.file.length>=1){
  419. // this.$confirm('文件还未上传,确定取消吗?', '提示', {
  420. // confirmButtonText: '确定',
  421. // cancelButtonText: '取消',
  422. // type: 'warning'
  423. // }).then(() => {
  424. // this.endDialog = false;
  425. // })
  426. // }else{
  427. // this.endDialog = false;
  428. // }
  429. // },
  430. init(){//重置
  431. this.auditDialog=false;
  432. this.endDialog=false;
  433. this.rejectDialog=false;
  434. },
  435. // 驳回对话框确定
  436. commit2(){
  437. this.rejectDialog=false;
  438. this.status++
  439. },
  440. controlActiveState(){ //控制活动状态
  441. },
  442. end(val){//完结按钮
  443. this.ajax.get(this.$store.state.api+'/getNoEndFundByActivity',{
  444. uid:this.$store.state.userInfo.userid,
  445. aid:val.acId
  446. }).then(result=>{
  447. console.log(result);
  448. if(result['data'][0].length>0){
  449. this.endTable.title = val.title;
  450. this.endFundData = result['data'][0];
  451. this.endFundDialog = true;
  452. }else{
  453. this.endTable.title = val.title;
  454. this.endTable.Id = val.acId;
  455. this.endTable.file = val.reportFile==''||val.reportFile==null?[]:val.reportFile;
  456. this.endDialog=true;
  457. }
  458. }).catch(err=>{
  459. console.log(err);
  460. })
  461. },
  462. ending(){ //完结提交
  463. if(this.endTable.file.length<=0)return this.$message.error("请上传完结报告");
  464. this.ajax.post(this.$store.state.api+"/UploadActivityFile",{
  465. uid:this.$store.state.userInfo.userid,
  466. aid:this.endTable.Id,
  467. file:JSON.stringify(this.endTable.file),
  468. }).then(res=>{
  469. if(res.data==1){
  470. this.ajax.post(this.$store.state.api+"/UpdateActivityState",{
  471. uid:this.$store.state.userInfo.userid,
  472. aid:this.endTable.Id,
  473. st:3,
  474. }).then(res2=>{
  475. if(res2.data==1){
  476. this.$message.success("结项成功");
  477. this.endDialog = false;
  478. this.getData()
  479. }else{
  480. this.$message.error("结项失败")
  481. }
  482. this.getData();
  483. }).catch(err2=>{
  484. console.log(err2)
  485. })
  486. }else{
  487. this.$message.error("结项失败")
  488. }
  489. })
  490. },
  491. // edit(Id){ // 申请表按钮
  492. // this.ajax.get(this.$store.state.api+"/SelectActivityWord",{
  493. // uid:this.$store.state.userInfo.userid,
  494. // aid:Id
  495. // }).then(res=>{
  496. // // ActivityWord(res.data[0][0])
  497. // this.wordData = res.data[0][0];
  498. // this.activityWord = true;
  499. // }).catch(err=>{
  500. // this.$message.error("错误"+err.message)
  501. // })
  502. // // downloadFile('/file/附件 2:创客专项资金项目申请表(创客活动).doc',"创客专项资金项目申请表(创客活动).doc",(_b)=>this.loading = _b);
  503. // },
  504. //下载申请表
  505. getWord(){
  506. ActivityWord(this.wordData)
  507. },
  508. audi(row,num){ // 管理员、申请人,审核按钮
  509. this.isManager=num
  510. this.processTable.Id = row.acId;
  511. this.processTable.name = row.title;
  512. this.processTable.leader = row.pro_leader;
  513. this.processTable.money = row.money,
  514. this.processTable.phone = row.phone,
  515. this.processTable.className = row.name;
  516. this.auditDialog = true;
  517. },
  518. Commit(val){
  519. this.ajax.post(this.$store.state.api+"/UpdateActivityState",{
  520. uid:this.$store.state.userInfo.userid,
  521. aid:this.processTable.Id,
  522. st:val,
  523. }).then(res=>{
  524. if(res.data==1){
  525. this.$message.success("审核成功");
  526. this.auditDialog = false;
  527. for(let i in this.processTable)this.processTable[i] = '';
  528. this.getData()
  529. }else{
  530. this.$message.error("审核失败")
  531. }
  532. this.getData();
  533. }).catch(err=>{
  534. this.$message.error(err.message)
  535. })
  536. },
  537. rejectApply(){
  538. this.ajax.post(this.$store.state.api+"/UpdateActivityState",{
  539. uid:this.$store.state.userInfo.userid,
  540. aid:this.processTable.Id,
  541. st:0,
  542. }).then(res=>{
  543. if(res.data==1){
  544. this.$message.success("已驳回");
  545. this.auditDialog = false;
  546. for(let i in this.processTable)this.processTable[i] = '';
  547. this.getData()
  548. }else{
  549. this.$message.error("驳回失败")
  550. }
  551. this.getData();
  552. }).catch(err=>{
  553. this.$message.error(err.message)
  554. })
  555. },
  556. makerActvityApply(){ // 创客活动申请按钮
  557. this.$router.push('/makerActvityApplyMain')
  558. },
  559. MADetails(Id){ // 查看详情
  560. this.$router.push(`/makerActvityWordDetail?Id=${Id}`)
  561. },
  562. CurrentChange(nowPage){
  563. this.Page.nowPage = nowPage;
  564. this.getData();
  565. },
  566. getData(){
  567. this.loading = true;
  568. this.ajax.get(this.$store.state.api+"/GetAllActivity",{
  569. uid:this.$store.state.userInfo.userid,
  570. pid:this.pavalues.value,
  571. cid:this.pavalues.value1,
  572. leader:this.pavalues.value2,
  573. state:this.pavalues.value3,
  574. type:this.pavalues.value4,
  575. inp:this.input,
  576. page:this.Page.nowPage,
  577. lim:this.Page.lim,
  578. }).then(res=>{
  579. let data = res.data;
  580. if(data[0].length==0&&data[4][0]['total']!=0){
  581. this.Page.nowPage = 1;
  582. this.getData();
  583. }
  584. data[0].forEach(item=>item.reportFile = item.reportFile==''||item.reportFile==null?[]:JSON.parse(item.reportFile));
  585. this.tableData = data[0];
  586. this.options = data[1];
  587. this.options1 = data[2];
  588. this.options2 = data[3];
  589. this.Page.total = data[4][0]['total'];
  590. this.loading = false;
  591. }).catch(err=>{
  592. this.$message.error(err.message)
  593. })
  594. },
  595. GetTime(data){
  596. let cdata = JSON.parse(data);
  597. if(cdata[0]==cdata[1])return cdata[0];
  598. let sp1 = cdata[0].split(' ')[0].split('-')
  599. let sp2 = cdata[1].split(' ')[0].split('-')
  600. if(sp1[0]==sp2[0]){
  601. if(sp1[1]==sp2[1]){
  602. return `${sp1[0]}-${sp1[1]}-${sp1[2]} 至 ${sp2[2]}`
  603. }else{
  604. return `${sp1[0]}-${sp1[1]}-${sp1[2]} 至 ${sp2[1]}-${sp2[2]}`
  605. }
  606. }else{
  607. return cdata[0]+" 至 "+cdata[1]
  608. }
  609. },
  610. //精度条样式
  611. ProgressFormat(value){
  612. return value ==100?'100%':`${value}%`
  613. }
  614. },
  615. mounted() {
  616. this.getData();
  617. },
  618. }
  619. </script>
  620. <style lang="less">
  621. .makerActvity{
  622. position: relative;
  623. width: 100%;
  624. height: 100%;
  625. .dialogWidth{
  626. .el-input__inner{
  627. width: 300px;
  628. }
  629. .el-textarea__inner{
  630. width: 380px;
  631. }
  632. .el-dialog{
  633. width: 600px;
  634. border-radius: 5px;
  635. overflow: hidden;
  636. }
  637. .el-dialog__body{
  638. padding:30px 0px 30px 90px ;
  639. }
  640. .addDialogLogo{
  641. width: 60px;
  642. height: 30px;
  643. display: flex;
  644. justify-content: center;
  645. line-height: 30px;
  646. border-radius: 5px;
  647. background: #f2f2f2;
  648. position: absolute;
  649. left: 20px; top: 15px;
  650. }
  651. .el-dialog__header{
  652. display: flex;
  653. justify-content: center;
  654. background: #32455b;
  655. }
  656. .el-dialog__title{
  657. color: #fff;
  658. position: relative;
  659. top: -2px;
  660. font-size: 18px;
  661. }
  662. .diaTit{ //dialog项目名称、负责人
  663. width: 100%;
  664. display: flex;
  665. .spans{
  666. width: 84px;
  667. font-size: 16px;
  668. margin-right: 10px;
  669. display: inline-block;
  670. text-align: justify;
  671. color: #000;
  672. font-size: 16px;
  673. text-justify:distribute-all-lines;
  674. text-align-last: justify;
  675. transform: translate(0,22%);
  676. margin-bottom: 10px;
  677. }
  678. }
  679. .spanCon{
  680. font-size: 16px;
  681. margin-top: 5px;
  682. color: #a0a0a0;
  683. }
  684. .spans1{ //label
  685. min-width: 84px;
  686. font-size: 16px;
  687. color: #000;
  688. margin-right: 10px;
  689. display: inline-block;
  690. text-align: justify;
  691. text-justify:distribute-all-lines;
  692. text-align-last: justify;
  693. transform: translate(0,22%);
  694. }
  695. .diaTit1{ //label和input框
  696. display: flex;
  697. width: 80%;
  698. margin-top: 20px;
  699. }
  700. }
  701. .dialog-footer{
  702. width: 100%;
  703. display: flex;
  704. justify-content: center;
  705. }
  706. .endDialog{ //完结对话框的
  707. .el-dialog__header{
  708. display: flex;
  709. justify-content: center;
  710. box-sizing: border-box;
  711. background: #32455b;
  712. }
  713. .el-dialog__title{
  714. color:rgb(246, 247, 246);
  715. display: flex;
  716. justify-content: center;
  717. position: relative;
  718. top: -2px;
  719. font-size: 18px;
  720. }
  721. .el-dialog{
  722. width: 600px;
  723. border-radius: 5px;
  724. overflow: hidden;
  725. }
  726. .deleteContent{
  727. width: 100%;
  728. font-size: 22px;
  729. color: #000;
  730. box-sizing: border-box;
  731. // padding: 0 20px;
  732. display: flex;
  733. justify-content: center;
  734. }
  735. .deleteContent1{
  736. width: 100%;
  737. text-align: left;
  738. font-size: 18px;
  739. font-weight: bold;
  740. color: #000;
  741. margin-top: 30px;
  742. }
  743. .download{
  744. margin: 10px 0 10px;
  745. width: 100%;
  746. text-align: left;
  747. font-size: 16px;
  748. font-weight: bold;
  749. color: #5391fd;
  750. display: flex;
  751. justify-content: space-between;
  752. }
  753. .addDialogLogo{
  754. width: 60px;
  755. height: 30px;
  756. display: flex;
  757. justify-content: center;
  758. line-height: 30px;
  759. border-radius: 5px;
  760. background: #f2f2f2;
  761. position: absolute;
  762. left: 20px; top: 15px;
  763. }
  764. }
  765. }
  766. .pagination{
  767. // position: absolute;
  768. float: right;
  769. margin: 20px 35px 10px;
  770. }
  771. .downloadList{
  772. width: 80%;
  773. }
  774. </style>