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