Approvalfinish.vue 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211
  1. <!-- 委员会申请列表 -->
  2. <template>
  3. <div class="autoBox box1" style="position: relative; background: #f5f5f5">
  4. <div class="center" style="margin-top: 20px;height:1362px">
  5. <div class="left">
  6. <div class="centerLeft1">
  7. <div class="top">
  8. <div class="top1"></div>
  9. <div class="top2"></div>
  10. <div class="allApplication">
  11. <span >{{
  12. $t("common.ApplicationDetails")
  13. }}</span>
  14. </div>
  15. <div @click="back" class="more">
  16. <span>{{ "<" }}{{ $t("common.return") }}</span>
  17. </div>
  18. </div>
  19. <div class="content" >
  20. <div class="content2" style="overflow-y:auto;overflow-x:hidden">
  21. <div style="margin-top: 39px;width: 93%;height:auto;display: flex;flex-wrap: wrap;align-items: center;background-clip: content-box;">
  22. <div class="tableTr">
  23. <div class="tableTd20">{{ $i18n.locale == 'en' ? 'Apply Name ' : '申请人' }}</div>
  24. <div class="tableTd30" >
  25. <span style="margin-left:20px">{{applyname}}</span>
  26. </div>
  27. <div class="tableTd20">{{ $i18n.locale == 'en' ? 'Apply Num ' : '申请编号' }}</div>
  28. <div class="tableTd30">
  29. <span style="margin-left:20px">{{applynumber}}</span>
  30. </div>
  31. </div>
  32. <div class="tableTr">
  33. <div class="tableTd20">{{ $i18n.locale == 'en' ? 'Apply Time ' : '申请时间' }}</div>
  34. <div class="tableTd30" >
  35. <span style="margin-left:20px">{{applytime}}</span>
  36. </div>
  37. <div class="tableTd20">
  38. {{ $i18n.locale == 'en' ? 'Belong Committe ' : '所属委员会' }}
  39. </div>
  40. <div class="tableTd30">
  41. <span style="margin-left:20px">{{ $i18n.locale == 'en' ? commact_committee_en : commact_committee }}</span>
  42. </div>
  43. </div>
  44. <div class="tableTr">
  45. <div class="tableTd20">{{ $i18n.locale == 'en' ? 'Application Type ' : '申请类型' }}</div>
  46. <div class="tableTd30" >
  47. <span style="margin-left:20px">{{applytype1}}</span>
  48. </div>
  49. <div class="tableTd20">{{ $i18n.locale == 'en' ? 'Title ' : '标题' }}</div>
  50. <div class="tableTd30">
  51. <span style="margin-left:20px">{{commact_title}}</span>
  52. </div>
  53. </div>
  54. <div class="tableTr" v-if="applytype=='4'">
  55. <div class="tableTd20" >{{ $i18n.locale == 'en' ? 'Work Plans ' : '工作计划' }}</div>
  56. <div class="tableTd120">
  57. <span style="margin-left:20px">{{workPlanSummaryYear}}</span>
  58. </div>
  59. </div>
  60. <div class="tableTr" v-if="applytype=='6'">
  61. <div class="tableTd20" >{{ $i18n.locale == 'en' ? 'Release Range ' : '发布范围' }}</div>
  62. <div class="tableTd120">
  63. <span style="margin-left:20px;">{{releaseScope}}</span>
  64. </div>
  65. </div>
  66. <div class="tableTr" v-if="applytype=='2'">
  67. <div class="tableTd20" >{{ $i18n.locale == 'en' ? 'Receive Committe ' : '接收委员会' }}</div>
  68. <div class="tableTd30">
  69. <span style="margin-left:20px">{{acceptCommittee}}</span>
  70. </div>
  71. <div class="tableTd20" >{{ $i18n.locale == 'en' ? 'Receiver ' : ' 接收人' }}</div>
  72. <div class="tableTd30">
  73. <span style="margin-left:20px">{{accepter}}</span>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="neirong">
  78. <span>{{ $i18n.locale == 'en' ? 'Content ' : ' 摘要' }}:</span>
  79. </div>
  80. <div style="height:auto;width:100%">
  81. <!-- <div class="content_title">{{content_title}}</div>-->
  82. <div class="content_content">{{content}}</div>
  83. </div>
  84. <div style="display:flex;margin-top:31px;margin-left:-20px" >
  85. <div :style="this.$i18n.locale == 'en' ?'width:11%;':''">{{ $i18n.locale == 'en' ? 'Body ' : ' 正文' }}:</div>
  86. <div style="width:93%">
  87. <el-upload
  88. class="upload-demo"
  89. disabled
  90. action="/api/nationregioncomittee-service/nrc/nrcCommitteeDocumentAnnouncements/uploadFile"
  91. :on-preview="handlePreview"
  92. :on-remove="handleRemove"
  93. :before-remove="beforeRemove"
  94. :before-upload="beforeUpload"
  95. :on-success="handleAvatarSuccessAnnex"
  96. multiple
  97. :on-exceed="handleExceed"
  98. :file-list="fileList">
  99. <!-- <el-button size="small"><i class="el-icon-upload2"></i>{{ $i18n.locale == 'en' ? 'Uploadfile ' : ' 上传文件' }}</el-button>
  100. <div slot="tip" class="el-upload__tip">{{ $i18n.locale == 'en' ? 'Supported file name extension :doc :docx: PDF. The size of a single file cannot exceed 4MB ' : ' 支持扩展名:doc :docx :pdf,单个文件大小不超过4MB' }}</div> -->
  101. </el-upload>
  102. </div>
  103. </div>
  104. <div style="display:flex;margin-top:98px;margin-left:-20px">
  105. <div :style="this.$i18n.locale == 'en' ?'width:11%;':''">{{ $i18n.locale == 'en' ? 'Attachment ' : '附件' }}:</div>
  106. <div style="width:89%">
  107. <el-upload
  108. class="upload-demo"
  109. action="/api/nationregioncomittee-service/nrc/nrcCommitteeDocumentAnnouncements/uploadFile"
  110. :on-preview="handlePreview1"
  111. disabled
  112. :on-remove="handleRemove1"
  113. :before-remove="beforeRemove1"
  114. :before-upload="beforeUpload1"
  115. :on-success="handleAvatarSuccessAnnex1"
  116. multiple
  117. :on-exceed="handleExceed1"
  118. :file-list="fileList1">
  119. <!-- <el-button size="small"><i class="el-icon-upload2"></i>{{ $i18n.locale == 'en' ? 'Uploadfile ' : ' 上传文件' }}</el-button>
  120. <div slot="tip" class="el-upload__tip">{{ $i18n.locale == 'en' ? 'Supported file name extension :doc :docx: PDF. The size of a single file cannot exceed 4MB ' : ' 支持扩展名:doc :docx :pdf,单个文件大小不超过4MB' }}</div> -->
  121. </el-upload>
  122. </div>
  123. </div>
  124. <div class="top3">
  125. <div class="top4"></div>
  126. <div class="top5"></div>
  127. <div class="allApplication1">
  128. <span v-if="!isDistinguish">{{
  129. $t("common.approval")
  130. }}</span>
  131. </div>
  132. </div>
  133. <div style="margin-top:129px;margin-left:-90px;margin-right:42px;">
  134. <el-table
  135. :data="tableData"
  136. :header-cell-style="{background:'#FAFAFA',fontSize: '14px',fontWeight:'600',color:'#000000'}"
  137. stripe
  138. border
  139. style="width: 100%;border: 1px solid rgba(0, 0, 0, 0.1); ">
  140. <el-table-column
  141. align="center"
  142. prop="handleNode"
  143. :label="$i18n.locale === 'zh' ? '环节' : 'Link'">
  144. </el-table-column>
  145. <el-table-column
  146. align="center"
  147. prop="handlerName"
  148. :label="$i18n.locale === 'zh' ? '人员' : 'Personnel'"
  149. width="180">
  150. </el-table-column>
  151. <el-table-column
  152. align="center"
  153. prop="handleTime"
  154. :label="$i18n.locale === 'zh' ? '处理时间' : 'Process Time'"
  155. width="180">
  156. </el-table-column>
  157. <el-table-column
  158. align="center"
  159. prop="handleResult"
  160. :label="$i18n.locale === 'zh' ? '处理结果' : 'Process Result'">
  161. </el-table-column>
  162. <el-table-column
  163. align="center"
  164. prop="handleCondition"
  165. :label="$i18n.locale === 'zh' ? '处理情况' : 'Process State'">
  166. </el-table-column>
  167. <el-table-column
  168. align="center"
  169. prop="handleOpinion"
  170. :label="$i18n.locale === 'zh' ? '处理意见' : 'Process Opinion'">
  171. </el-table-column>
  172. </el-table>
  173. </div>
  174. <div style="margin-top:114px;margin-bottom:30px;display:flex">
  175. <div class="submit" @click="close">{{ $i18n.locale == 'en' ? 'Close ' : ' 关闭' }}</div>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </template>
  184. <script>
  185. import Screen from "@/components/screen";
  186. import {getwaitdetail,getcommittee1,getwaitacceser,editwaitapply,editwaittijiao,uploadfile} from '@/api/committee/nrc';
  187. export default {
  188. name: "Approvalfinish",
  189. props: ["detailids","flag","logo"],
  190. components: {
  191. Screen,
  192. },
  193. data() {
  194. return {
  195. tableData:[
  196. // {handleNode:'总部审批',createDate:'2021-09-11',handlerName:'超级管理员',handleTime:'2022-09-11',handleResult:'你好呀',handleCondition:'嗯嗯',handleOpinion:'hahaR'}
  197. ],
  198. content_title:'研讨会',
  199. content_content:'贝克莱主席指出,为了实现预期的目标,非洲国家需要动员能源,扩大合作,促进电力连接和整合,提升能源领域的全球竞争力,并遵守2030年联合国和非盟的2063年议程。作为一个成员国,埃塞俄比亚正在推动跨境基础设施的发展,建立电力互联设施,并开发可再生能源,推动区域合作与一体化。',
  200. options: [ {
  201. label: "活动方案",
  202. value: "1"},
  203. {
  204. label: "公文",
  205. value: "5"},
  206. {
  207. label: "工作计划/总结",
  208. value: "4"},
  209. {
  210. label: "资料发布",
  211. value: "6"},
  212. {
  213. label: "意见建议",
  214. value: "2"},],
  215. finished:false,
  216. areadeal1:false,
  217. areadeal2:false,
  218. activeName:'first',
  219. accepter:undefined,//接收人
  220. acceptCommittee:undefined,//接收委员会
  221. applytype:undefined,//4.工作计划
  222. applytype1:undefined,
  223. releaseScope:undefined,//发布范围
  224. workPlanSummaryYear:undefined,//工作计划
  225. handleNode:undefined,
  226. files:[],
  227. id:undefined,
  228. applyStatus:undefined,
  229. frontOrBack:undefined,//前台还是后台
  230. filename:undefined,
  231. filename1:undefined,
  232. filename2:undefined,
  233. status:undefined,//状态
  234. fileList:[],
  235. fileList1:[],
  236. filepath:undefined,
  237. filepath1:undefined,
  238. globalReadonly:true,
  239. applyname:undefined,
  240. applynumber:undefined,//申请编号
  241. applytime:undefined,//申请时间
  242. commact_committee:undefined,//委员会
  243. commact_committee_en:undefined,//委员会
  244. content:undefined,//内容
  245. commact_title:undefined,//标题
  246. defaultProps: {
  247. children: "param",
  248. label: "name",
  249. },
  250. defaultShowNodes:[],
  251. refresh:1,
  252. search: "",
  253. screen1s: {
  254. value: "common.type",
  255. item: [],
  256. },
  257. screen1def: null,
  258. screen2Item: null,
  259. };
  260. },
  261. watch: {
  262. "$i18n.locale"() {
  263. this.tableData.forEach(item=>{
  264. if(this.$i18n.locale=='en'){
  265. if(item.handleNode=="申请人修改"){
  266. item.handleNode="Applicant Modification";
  267. }
  268. if(item.handleNode=="区域秘书处审核"){
  269. item.handleNode="Regional Secretariat Review";
  270. }
  271. if(item.handleNode=="总部流转"){
  272. item.handleNode="Headquarters Processing";
  273. }
  274. if(item.handleNode=="秘书处修改"){
  275. item.handleNode="Secretariat Modification";
  276. }
  277. if(item.handleCondition=="发起申请"){
  278. item.handleCondition="Create Apply";
  279. }
  280. if(item.handleCondition=="对内容进行了修改"){
  281. item.handleCondition="Modified content";
  282. }
  283. if(item.handleResult=="驳回"){
  284. item.handleResult="Reject";
  285. }
  286. if(item.handleResult=="通过"){
  287. item.handleResult="Pass";
  288. }
  289. }else {
  290. if(item.handleNode=="Applicant Modification"){
  291. item.handleNode="申请人修改";
  292. }
  293. if(item.handleNode=="Regional Secretariat Review"){
  294. item.handleNode="区域秘书处审核";
  295. }
  296. if(item.handleNode=="Headquarters Processing"){
  297. item.handleNode="总部流转";
  298. }
  299. if(item.handleNode=="Secretariat Modification"){
  300. item.handleNode="秘书处修改";
  301. }
  302. if(item.handleCondition=="Create Apply"){
  303. item.handleCondition="发起申请";
  304. }
  305. if(item.handleCondition=="Modified content"){
  306. item.handleCondition="对内容进行了修改";
  307. }
  308. if(item.handleResult=="Reject"){
  309. item.handleResult="驳回";
  310. }
  311. if(item.handleResult=="Pass"){
  312. item.handleResult="通过";
  313. }
  314. }
  315. })
  316. if(this.$i18n.locale == 'en'){
  317. if(this.applytype1=='活动方案'){
  318. this.applytype1='Activity Plan'
  319. }
  320. if(this.applytype1=='意见与建议'){
  321. this.applytype1='Comments And Suggestions'
  322. }
  323. if(this.applytype1=='工作计划/总结'){
  324. this.applytype1='Work Plan/ Conclusion'
  325. }
  326. if(this.applytype1=='公文'){
  327. this.applytype1='Document'
  328. }
  329. if(this.applytype1=='资料发布'){
  330. this.applytype1='Data release'
  331. }
  332. }else{
  333. if(this.applytype1=='Activity Plan'){
  334. this.applytype1='活动方案'
  335. }
  336. if(this.applytype1=='Comments And Suggestions'){
  337. this.applytype1='意见与建议'
  338. }
  339. if(this.applytype1=='Work Plan/ Conclusion'){
  340. this.applytype1='工作计划/总结'
  341. }
  342. if(this.applytype1=='Document'){
  343. this.applytype1='公文'
  344. }
  345. if(this.applytype1=='Data release'){
  346. this.applytype1='资料发布'
  347. }
  348. }
  349. },
  350. CountryId() {},
  351. },
  352. updated(){
  353. },
  354. mounted() {
  355. console.log(this.detailids)
  356. getwaitdetail(this.detailids).then(res => {
  357. this.releaseScope = res.data.nrcApply.releaseScope;
  358. this.applyname = res.data.nrcApply.applyPeopleName;
  359. this.applynumber = res.data.nrcApply.applyNumber
  360. this.applytime = res.data.nrcApply.createDate
  361. this.content = res.data.nrcApply.abstractInfo
  362. this.applytype = res.data.nrcApply.applyType
  363. this.applyStatus=res.data.nrcApply.applyStatus
  364. this.reserveOne=res.data.nrcApply.reserveOne
  365. this.commact_title=res.data.nrcApply.title
  366. if(res.data.nrcApply.workPlanSummaryYear){
  367. this.workPlanSummaryYear=res.data.nrcApply.workPlanSummaryYear
  368. }
  369. if(res.data.nrcApply.acceptCommittee){
  370. if(this.$i18n.locale == 'en'){
  371. this.acceptCommittee=res.data.nrcApply.acceptCommitteeEn
  372. }else{
  373. this.acceptCommittee=res.data.nrcApply.acceptCommittee
  374. }
  375. }
  376. if(res.data.nrcApply.accepter){
  377. this.accepter=res.data.nrcApply.accepter
  378. }
  379. this.tableData=res.data.nrcApprovalHistorys
  380. this.tableData.forEach(item=>{
  381. if(item.handleCondition==''||item.handleCondition==undefined){
  382. item.handleCondition='--'
  383. }
  384. if(this.$i18n.locale=='en'){
  385. if(item.handleNode=="申请人修改"){
  386. item.handleNode="Applicant Modification";
  387. }
  388. if(item.handleNode=="区域秘书处审核"){
  389. item.handleNode="Regional Secretariat Review";
  390. }
  391. if(item.handleNode=="总部流转"){
  392. item.handleNode="Headquarters Processing";
  393. }
  394. if(item.handleNode=="秘书处修改"){
  395. item.handleNode="Secretariat Modification";
  396. }
  397. if(item.handleCondition=="发起申请"){
  398. item.handleCondition="Create Apply";
  399. }
  400. if(item.handleCondition=="对内容进行了修改"){
  401. item.handleCondition="Modified content";
  402. }
  403. if(item.handleResult=="驳回"){
  404. item.handleResult="Reject";
  405. }
  406. if(item.handleResult=="通过"){
  407. item.handleResult="Pass";
  408. }
  409. }
  410. })
  411. // this.commact_committee=res.data.nrcApply.belongCommitteeName
  412. this.commact_committee=res.data.nrcApply.belongCommitteeName
  413. this.commact_committee_en=res.data.nrcApply.belongCommitteeNameEn
  414. if(res.data.nrcApply.applyType=='1'){
  415. if(this.$i18n.locale == 'en'){
  416. this.applytype1='Activity Plan'
  417. }else{
  418. this.applytype1='活动方案'
  419. }
  420. }
  421. if(res.data.nrcApply.applyType=='2'){
  422. if(this.$i18n.locale == 'en'){
  423. this.applytype1='Comments And Suggestions'
  424. }else{
  425. this.applytype1='意见与建议'
  426. }
  427. }
  428. if(res.data.nrcApply.applyType=='4'){
  429. if(this.$i18n.locale == 'en'){
  430. this.applytype1='Work Plan/ Conclusion'
  431. }else{
  432. this.applytype1='工作计划/总结'
  433. }
  434. }
  435. if(res.data.nrcApply.applyType=='5'){
  436. if(this.$i18n.locale == 'en'){
  437. this.applytype1='Document'
  438. }else{
  439. this.applytype1='公文'
  440. }
  441. }
  442. if(res.data.nrcApply.applyType=='6'){
  443. if(this.$i18n.locale == 'en'){
  444. this.applytype1='Data release'
  445. }else{
  446. this.applytype1='资料发布'
  447. }
  448. }
  449. if (res.data.files) {
  450. (res.data.files).forEach(item => {
  451. if (item.type == '2') {
  452. let obj = {}
  453. obj.name = item.fileNameDisplay
  454. obj.url = item.filePath
  455. obj.type = item.type
  456. this.fileList.push(obj)
  457. }
  458. if (item.type == '3' || item.type == '5') {
  459. let obj = {}
  460. obj.name = item.fileNameDisplay
  461. obj.url = item.filePath
  462. obj.type = item.type
  463. this.fileList1.push(obj)
  464. }
  465. })
  466. }
  467. })
  468. },
  469. destroyed() {},
  470. methods: {
  471. handleCurrentChange() {},
  472. back() {
  473. if(this.flag==1){
  474. var params = {
  475. name: "workspace",
  476. type: false,
  477. };
  478. this.$emit("applicationType", params);
  479. }
  480. if(this.flag==2){
  481. if(this.logo == "my"){
  482. var params = {
  483. name: "application",
  484. type: true,
  485. };
  486. this.$emit("applicationType", params);
  487. }else {
  488. var params = {
  489. name: "application",
  490. type: false,
  491. };
  492. this.$emit("applicationType", params);
  493. }
  494. }
  495. },
  496. close(){
  497. if(this.flag==1){
  498. var params = {
  499. name: "workspace",
  500. type: false,
  501. };
  502. this.$emit("applicationType", params);
  503. }
  504. if(this.flag==2){
  505. if(this.logo == "my"){
  506. var params = {
  507. name: "application",
  508. type: true,
  509. };
  510. this.$emit("applicationType", params);
  511. }else {
  512. var params = {
  513. name: "application",
  514. type: false,
  515. };
  516. this.$emit("applicationType", params);
  517. }
  518. }
  519. },
  520. screenBack() {},
  521. handlePreview(file, fileList) {
  522. console.log(file, fileList);
  523. let param={
  524. fileName:file.name,
  525. filePath:file.url
  526. }
  527. uploadfile(param).then(res=>{
  528. const content = res
  529. if(content){
  530. const blob = new Blob([content])//构造一个blob对象来处理数据
  531. const fileName = decodeURIComponent(res.fileName)
  532. //对于<a>标签,只有 Firefox 和 Chrome(内核) 支持 download 属性
  533. //IE10以上支持blob但是依然不支持download
  534. if ('download' in document.createElement('a')) { //支持a标签download的浏览器
  535. const link = document.createElement('a')//创建a标签
  536. link.download = file.name//a标签添加属性
  537. link.style.display = 'none'
  538. link.href = URL.createObjectURL(blob)
  539. document.body.appendChild(link)
  540. link.click()//执行下载
  541. URL.revokeObjectURL(link.href) //释放url
  542. document.body.removeChild(link)//释放标签
  543. } else { //其他浏览器
  544. navigator.msSaveBlob(blob, fileName)
  545. }
  546. }else{
  547. this.$message.error('服务器繁忙');
  548. }
  549. })
  550. },
  551. handlePreview1(file, fileList) {
  552. console.log(file, fileList);
  553. let param={
  554. fileName:file.name,
  555. filePath:file.url
  556. }
  557. uploadfile(param).then(res=>{
  558. const content = res
  559. if(content){
  560. const blob = new Blob([content])//构造一个blob对象来处理数据
  561. const fileName = decodeURIComponent(res.fileName)
  562. //对于<a>标签,只有 Firefox 和 Chrome(内核) 支持 download 属性
  563. //IE10以上支持blob但是依然不支持download
  564. if ('download' in document.createElement('a')) { //支持a标签download的浏览器
  565. const link = document.createElement('a')//创建a标签
  566. link.download = file.name//a标签添加属性
  567. link.style.display = 'none'
  568. link.href = URL.createObjectURL(blob)
  569. document.body.appendChild(link)
  570. link.click()//执行下载
  571. URL.revokeObjectURL(link.href) //释放url
  572. document.body.removeChild(link)//释放标签
  573. } else { //其他浏览器
  574. navigator.msSaveBlob(blob, fileName)
  575. }
  576. }else{
  577. this.$message.error('服务器繁忙');
  578. }
  579. })
  580. },
  581. handleAvatarSuccessAnnex(res, file) {
  582. let obj={}
  583. obj.fileNameDisplay=file.name
  584. obj.filePath=res.data.filePath
  585. obj.type=2
  586. this.filename.push(obj)
  587. console.log(this.filename)
  588. },
  589. handleAvatarSuccessAnnex1(res, file) {
  590. let obj={}
  591. obj.fileNameDisplay=file.name
  592. obj.filePath=res.data.filePath
  593. obj.type=3
  594. this.filename1.push(obj)
  595. },
  596. beforeUpload(file) {
  597. var FileExt = file.name.replace(/.+\./, "");
  598. if (['zip', 'pdf', 'doc', 'docx', 'excel', 'xls', 'xlsx'].indexOf(FileExt.toLowerCase()) === -1) {
  599. this.$message({
  600. type: 'warning',
  601. message: '请上传zip,pdf,word,excel的附件!'
  602. });
  603. this.fileList.splice(this.fileList.indexOf(file), 1)
  604. return false;
  605. }
  606. this.isLt2k = file.size / 1024 / 1024 < 10 ? '1' : '0';
  607. if (this.isLt2k === '0') {
  608. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  609. this.$message({
  610. message: '上传文件大小不能超过10M!',
  611. type: 'error'
  612. });
  613. } else {
  614. this.$message({
  615. message: 'Upload file size cannot exceed 10m!',
  616. type: 'error'
  617. });
  618. }
  619. return false;
  620. }
  621. },
  622. beforeUpload1(file) {
  623. var FileExt = file.name.replace(/.+\./, "");
  624. if (['zip', 'pdf', 'doc', 'docx', 'excel', 'xls', 'xlsx'].indexOf(FileExt.toLowerCase()) === -1) {
  625. this.$message({
  626. type: 'warning',
  627. message: '请上传zip,pdf,word,excel的附件!'
  628. });
  629. this.fileList.splice(this.fileList.indexOf(file), 1)
  630. return false;
  631. }
  632. this.isLt2k = file.size / 1024 / 1024 < 10 ? '1' : '0';
  633. if (this.isLt2k === '0') {
  634. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  635. this.$message({
  636. message: '上传文件大小不能超过10M!',
  637. type: 'error'
  638. });
  639. } else {
  640. this.$message({
  641. message: 'Upload file size cannot exceed 10m!',
  642. type: 'error'
  643. });
  644. }
  645. return false;
  646. }
  647. },
  648. handleRemove(file, fileList) {
  649. console.log(file, fileList);
  650. this.filename.forEach((item,index)=>{
  651. if(file.name==item.fileNameDisplay){
  652. this.filename.splice(index,1)
  653. }
  654. })
  655. this.fileList.forEach((item,index)=>{
  656. if(file.name==item.name){
  657. this.fileList.splice(index,1)
  658. }
  659. });
  660. console.log(this.filename)
  661. },
  662. handleRemove1(file, fileList) {
  663. console.log(file, fileList);
  664. this.filename1.forEach((item,index)=>{
  665. if(file.name==item.fileNameDisplay){
  666. this.filename1.splice(index,1)
  667. }
  668. })
  669. this.fileList1.forEach((item,index)=>{
  670. if(file.name==item.name){
  671. this.fileList1.splice(index,1)
  672. }
  673. });
  674. console.log(this.filename1)
  675. },
  676. handleExceed(files, fileList) {
  677. this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
  678. },
  679. handleExceed1(files, fileList) {
  680. this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
  681. },
  682. beforeRemove(file, fileList) {
  683. return this.$confirm(`确定移除 ${ file.name }?`);
  684. },
  685. beforeRemove1(file, fileList) {
  686. return this.$confirm(`确定移除 ${ file.name }?`);
  687. },
  688. getNowFormatDate () {
  689. let now = new Date();
  690. let year = now.getFullYear(); //获取完整的年份(4位,1970-????)
  691. let month = now.getMonth() + 1; //获取当前月份(0-11,0代表1月)
  692. let today = now.getDate(); //获取当前日(1-31)
  693. let hour = now.getHours(); //获取当前小时数(0-23)
  694. let minute = now.getMinutes(); //获取当前分钟数(0-59)
  695. let second = now.getSeconds(); //获取当前秒数(0-59)
  696. let nowTime = ''
  697. nowTime = year + '-' + this.fillZero(month) + '-' + this.fillZero(today) + ' ' + this.fillZero(hour) + ':' +
  698. this.fillZero(minute) + ':' + this.fillZero(second)
  699. return nowTime
  700. },
  701. getNowFormatDate1 (value) {
  702. let now = new Date(value);
  703. let year = now.getFullYear(); //获取完整的年份(4位,1970-????)
  704. let month = now.getMonth() + 1; //获取当前月份(0-11,0代表1月)
  705. let today = now.getDate(); //获取当前日(1-31)
  706. let hour = now.getHours(); //获取当前小时数(0-23)
  707. let minute = now.getMinutes(); //获取当前分钟数(0-59)
  708. let second = now.getSeconds(); //获取当前秒数(0-59)
  709. let nowTime = ''
  710. nowTime = year + '-' + this.fillZero(month) + '-' + this.fillZero(today)
  711. return nowTime
  712. },
  713. fillZero (str) {
  714. var realNum;
  715. if (str < 10) {
  716. realNum = '0' + str;
  717. } else {
  718. realNum = str;
  719. }
  720. return realNum;
  721. },
  722. },
  723. };
  724. </script>
  725. <style scoped>
  726. ::v-deep .el-upload-list__item-name {
  727. color: #4790f7;
  728. text-decoration: underline;
  729. }
  730. /deep/ .el-table .el-table__cell.is-center{
  731. font-family: 'Roboto';
  732. font-style: normal;
  733. font-weight: 400;
  734. font-size: 14px;
  735. line-height: 22px;
  736. color: rgba(0, 0, 0, 0.85);
  737. }
  738. /deep/ .el-upload-list__item {
  739. width: 299px;
  740. }
  741. .content_title{
  742. padding-left:316px;
  743. width: 1087px;
  744. height: 26px;
  745. font-family: 'PingFang SC';
  746. font-style: normal;
  747. font-weight: 500;
  748. font-size: 20px;
  749. line-height: 22px;
  750. /* or 110% */
  751. display: flex;
  752. align-items: center;
  753. text-align: center;
  754. text-indent: 30px;
  755. font-feature-settings: 'tnum' on, 'lnum' on;
  756. color: rgba(0, 0, 0, 0.85);
  757. }
  758. .content_content{
  759. width: 1018px;
  760. height: auto;
  761. font-family: 'PingFang SC';
  762. font-style: normal;
  763. font-weight: 400;
  764. font-size: 14px;
  765. line-height: 25px;
  766. /* or 179% */
  767. display: flex;
  768. align-items: center;
  769. text-indent: 30px;
  770. font-feature-settings: 'tnum' on, 'lnum' on;
  771. color: rgba(0, 0, 0, 0.65);
  772. }
  773. .neirong{
  774. margin-top:64px;
  775. height:26px;
  776. margin-left:-50px;
  777. font-family: 'PingFang SC';
  778. font-style: normal;
  779. font-weight: 400;
  780. font-size: 16px;
  781. line-height: 0px;
  782. /* or 0% */
  783. display: flex;
  784. align-items: center;
  785. text-indent: 30px;
  786. font-feature-settings: 'tnum' on, 'lnum' on;
  787. color: rgba(0, 0, 0, 0.95);
  788. }
  789. .submit{
  790. box-sizing: border-box;
  791. width: 120px;
  792. height: 40px;
  793. margin-left: 375px;
  794. background: #3A8EE6;
  795. border: 1px solid #3A8EE6;
  796. border-radius: 4px;
  797. /* Bold/Body */
  798. padding-left:44px;
  799. font-family: 'Noto Sans SC';
  800. font-style: normal;
  801. font-weight: 500;
  802. font-size: 14px;
  803. line-height: 22px;
  804. /* identical to box height, or 157% */
  805. display: flex;
  806. align-items: center;
  807. text-align: center;
  808. font-feature-settings: 'tnum' on, 'lnum' on;
  809. cursor:pointer;
  810. /* Neutral Color/White */
  811. color: #FFFFFF;
  812. }
  813. .cancel{
  814. box-sizing: border-box;
  815. width: 120px;
  816. height: 40px;
  817. margin-left: 30px;
  818. padding-left:44px;
  819. background: white;
  820. border: 1px solid #e9ebef;
  821. border-radius: 4px;
  822. cursor:pointer;
  823. font-family: 'Noto Sans SC';
  824. font-style: normal;
  825. font-weight: 500;
  826. font-size: 14px;
  827. line-height: 22px;
  828. /* identical to box height, or 157% */
  829. display: flex;
  830. align-items: center;
  831. text-align: center;
  832. font-feature-settings: 'tnum' on, 'lnum' on;
  833. color: rgba(17, 17, 17, 0.65);
  834. }
  835. /deep/ .applytype .el-select {
  836. width: 415px!important;
  837. }
  838. /* 利用穿透,设置input边框隐藏 */
  839. .inputDeep>>>.el-input__inner {
  840. border: 0;
  841. }
  842. /* 如果你的 el-input type 设置成textarea ,就要用这个了 */
  843. .inputDeep>>>.el-textarea__inner {
  844. border: 0;
  845. resize: none;/* 这个是去掉 textarea 下面拉伸的那个标志,如下图 */
  846. }
  847. .english{
  848. box-sizing: border-box;
  849. position: absolute;
  850. width: 80px;
  851. height: 40px;
  852. left: 69px;
  853. border: 1px solid rgba(0, 0, 0, 0.15);
  854. border-radius: 2px;
  855. font-family: 'Noto Sans SC';
  856. font-style: normal;
  857. font-weight: 400;
  858. font-size: 14px;
  859. line-height: 22px;
  860. /* identical to box height, or 157% */
  861. display: flex;
  862. align-items: center;
  863. font-feature-settings: 'tnum' on, 'lnum' on;
  864. color: rgba(0, 0, 0, 0.85);
  865. padding-left:13px;
  866. }
  867. .box1 {
  868. padding: 0 0 20px 0;
  869. position: absolute;
  870. }
  871. .center {
  872. display: flex;
  873. }
  874. .topImg img {
  875. display: inline-block;
  876. width: 1200px;
  877. height: 324px;
  878. }
  879. .centerLeft1 {
  880. border-radius: 0px;
  881. width: 1198px;
  882. height: 877px;
  883. left: 360px;
  884. top: 317px;
  885. background: #FFFFFF;
  886. }
  887. .left {
  888. position: relative;
  889. }
  890. .top .top1 {
  891. position: absolute;
  892. width: 5.5px;
  893. height: 10.5px;
  894. left: 20px;
  895. top: 35px;
  896. background: #376ac7;
  897. z-index: 1;
  898. }
  899. .top .top2 {
  900. position: absolute;
  901. width: 5.5px;
  902. height: 15px;
  903. left: 20px;
  904. top: 35px;
  905. background: #83bd50;
  906. }
  907. .top3 .top4 {
  908. margin-top:84px;
  909. position: absolute;
  910. width: 5.5px;
  911. height: 10.5px;
  912. left: 20px;
  913. background: #376ac7;
  914. z-index: 1;
  915. }
  916. .top3 .top5 {
  917. margin-top:84px;
  918. position: absolute;
  919. width: 5.5px;
  920. height: 15px;
  921. left: 20px;
  922. background: #83bd50;
  923. }
  924. .top3 .allApplication1 {
  925. position: absolute;
  926. height: 22px;
  927. left: 34px;
  928. margin-top:80px;
  929. }
  930. .top3 .allApplication1 span {
  931. font-family: "PingFang SC";
  932. font-style: normal;
  933. font-weight: 600;
  934. font-size: 16px;
  935. line-height: 22px;
  936. color: #375586;
  937. }
  938. .top .allApplication {
  939. position: absolute;
  940. height: 22px;
  941. left: 34px;
  942. top: 31px;
  943. }
  944. .top .allApplication span {
  945. font-family: "PingFang SC";
  946. font-style: normal;
  947. font-weight: 600;
  948. font-size: 16px;
  949. line-height: 22px;
  950. color: #375586;
  951. }
  952. .top .notice {
  953. position: absolute;
  954. height: 22px;
  955. left: 160px;
  956. top: 32px;
  957. }
  958. .top .notice span {
  959. font-family: "PingFang SC";
  960. font-style: normal;
  961. font-weight: 600;
  962. font-size: 16px;
  963. line-height: 22px;
  964. color: rgba(10, 10, 10, 0.85);
  965. }
  966. .top .more {
  967. position: absolute;
  968. height: 16px;
  969. right: 21px;
  970. top: 31px;
  971. }
  972. .top .more span {
  973. font-family: "Roboto";
  974. font-style: normal;
  975. font-weight: 500;
  976. font-size: 14px;
  977. line-height: 16px;
  978. color: #4790f7;
  979. }
  980. .content .content1 {
  981. box-sizing: border-box;
  982. position: absolute;
  983. width: 100%;
  984. height: 70px;
  985. left: 0px;
  986. top: 78px;
  987. }
  988. .content .content2 {
  989. box-sizing: border-box;
  990. position: absolute;
  991. width: 100%;
  992. height: 1262px;
  993. left: 0px;
  994. top: 50px;
  995. background: #FFFFFF;
  996. padding-left:125px;
  997. }
  998. .content .title {
  999. font-family: "PingFang SC";
  1000. font-style: normal;
  1001. font-weight: 600;
  1002. font-size: 14px;
  1003. line-height: 20px;
  1004. color: rgba(0, 0, 0, 0.85);
  1005. position: absolute;
  1006. left: 16px;
  1007. top: 16px;
  1008. right: 14px;
  1009. bottom: 113px;
  1010. }
  1011. .content .time {
  1012. font-family: "Roboto";
  1013. font-style: normal;
  1014. font-weight: 400;
  1015. font-size: 12px;
  1016. line-height: 14px;
  1017. color: rgba(0, 0, 0, 0.65);
  1018. position: absolute;
  1019. left: 16px;
  1020. top: 61px;
  1021. }
  1022. .content .type {
  1023. font-family: "PingFang SC";
  1024. font-style: normal;
  1025. font-weight: 400;
  1026. font-size: 14px;
  1027. line-height: 20px;
  1028. color: rgba(0, 0, 0, 0.85);
  1029. position: absolute;
  1030. left: 16px;
  1031. top: 89px;
  1032. }
  1033. .content .toView {
  1034. margin-left: 100px;
  1035. font-family: "Roboto";
  1036. font-style: normal;
  1037. font-weight: 400;
  1038. font-size: 14px;
  1039. line-height: 16px;
  1040. color: #274e92;
  1041. }
  1042. .content .toProgress {
  1043. font-family: "Roboto";
  1044. font-style: normal;
  1045. font-weight: 400;
  1046. font-size: 14px;
  1047. line-height: 16px;
  1048. color: #274e92;
  1049. }
  1050. .centerLeft2 {
  1051. position: relative;
  1052. margin-top: 20px;
  1053. height: 177px;
  1054. width: 850px;
  1055. border-radius: 0px;
  1056. background: #fff;
  1057. }
  1058. .content .audit {
  1059. position: absolute;
  1060. right: 5%;
  1061. }
  1062. .area {
  1063. position: absolute;
  1064. top: 100px;
  1065. }
  1066. .pag {
  1067. position: absolute;
  1068. bottom: 0;
  1069. right: 0;
  1070. }
  1071. .tableTr{
  1072. height:40px;
  1073. width: 98%;
  1074. display: flex;
  1075. align-items: center;
  1076. color: #A0A4AA;
  1077. }
  1078. .tableTd20{
  1079. box-sizing: border-box;
  1080. display: flex;
  1081. flex-direction: row;
  1082. justify-content: center;
  1083. align-items: center;
  1084. padding: 9px 20px;
  1085. gap: 4px;
  1086. width: 13%;
  1087. height: 40px;
  1088. background: #F5F7FA;
  1089. border: 1px solid #DCDFE6;
  1090. border-radius: 0px;
  1091. font-family: 'PingFang SC';
  1092. font-style: normal;
  1093. font-weight: 600;
  1094. font-size: 14px;
  1095. line-height: 22px;
  1096. /* identical to box height, or 157% */
  1097. display: flex;
  1098. align-items: center;
  1099. text-align: center;
  1100. font-feature-settings: 'tnum' on, 'lnum' on;
  1101. color: rgba(0, 0, 0, 0.85);
  1102. }
  1103. .tableTd30{
  1104. background: #FFFFFF;
  1105. border: 1px solid #DCDFE6;
  1106. mix-blend-mode: normal;
  1107. width:37%;
  1108. text-align: left;
  1109. height:40px;
  1110. font-family: 'Noto Sans SC';
  1111. font-style: normal;
  1112. font-weight: 400;
  1113. font-size: 14px;
  1114. line-height: 22px;
  1115. display: flex;
  1116. align-items: center;
  1117. font-feature-settings: 'tnum' on, 'lnum' on;
  1118. color: rgba(0, 0, 0, 0.45);
  1119. }
  1120. .tableTd120{
  1121. border: 1px solid #DCDFE6;
  1122. width:87%;
  1123. text-align: left;
  1124. height:40px;
  1125. font-size:15px;
  1126. mix-blend-mode: normal;
  1127. font-family: 'Noto Sans SC';
  1128. font-style: normal;
  1129. font-weight: 400;
  1130. line-height: 22px;
  1131. display: flex;
  1132. align-items: center;
  1133. font-feature-settings: 'tnum' on, 'lnum' on;
  1134. color: rgba(0, 0, 0, 0.45);
  1135. }
  1136. .tableTd50{
  1137. width:50%; height:40px;
  1138. text-align: center;
  1139. display: flex;
  1140. flex-wrap: nowrap;
  1141. justify-content: space-around;
  1142. }
  1143. </style>