NationalregionalCommissionsEventEN.vue 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. <template>
  2. <div>
  3. <div>
  4. <div class="autoBox2 ">
  5. <div >
  6. <div style="width: 100%;margin: auto;margin-top: 20px;">
  7. <el-collapse v-model="activeNames" >
  8. <!-- 基本信息 -->
  9. <el-collapse-item name="3" v-if="active==1">
  10. <template slot="title">
  11. <span style="color: red;margin-right: 3px;">* </span> {{$t('common.BasicInformation')}}
  12. </template>
  13. <el-form ref="externalFormData" :model="externalFormData" :rules="form1Rules" label-width="260px"
  14. class="demo-ruleForm"
  15. style="margin-top: 20px;width: 1000px;margin-left: 100px;">
  16. <!-- 类型 -->
  17. <el-form-item :label="$t('common.Type')" prop='activityTypeDict'>
  18. <el-select
  19. filterable
  20. :no-match-text="$i18n.locale=='zh'?'无匹配数据':'No Data'"
  21. v-model="externalFormData.activityTypeDict"
  22. :placeholder="$t('common.PleaseSelect2') + $t('common.Type')"
  23. style="width: 70%;">
  24. <el-option :label="item.label" :value="item.value"
  25. v-for="(item,index) in type">
  26. </el-option>
  27. </el-select>
  28. </el-form-item>
  29. <!-- 委员会 -->
  30. <el-form-item :label="$t('common.Committee')" prop='orderNumber'>
  31. <el-select v-model="externalFormData.cascader" :placeholder="$t('common.PleaseSelect2')" multiple :disabled="false" style="width: 70%;" @change="handleChange1">
  32. <el-option
  33. v-for="item in ActivityOptions"
  34. :key="item.value"
  35. :label="item.label"
  36. :value="item.value"
  37. :disabled="false">
  38. </el-option>
  39. </el-select>
  40. </el-form-item>
  41. <!-- <el-form-item :label="$t('common.Committee')" prop='orderNumber' >-->
  42. <!-- <el-cascader-->
  43. <!-- style="width: 70%;"-->
  44. <!-- value="value"-->
  45. <!-- v-model="externalFormData.cascader"-->
  46. <!-- :placeholder="$t('common.PleaseSelect2') + $t('common.Committee')"-->
  47. <!-- :options="ActivityOptions"-->
  48. <!-- @change="handleChange1"-->
  49. <!-- >-->
  50. <!-- </el-cascader>-->
  51. <!-- </el-form-item>-->
  52. <!-- v-model="" -->
  53. <!-- 活动时间 -->
  54. <el-form-item :label="$t('common.ActivityTime')" prop='activityTime' style="display: block;">
  55. <el-date-picker
  56. style="width: 70%;"
  57. v-model="externalFormData.activityTime"
  58. type="daterange"
  59. align="right"
  60. unlink-panels
  61. :range-separator="$i18n.locale=='zh'?'至':'to'"
  62. :start-placeholder="$i18n.locale=='zh'?'开始日期':'Start date'"
  63. :end-placeholder="$i18n.locale=='zh'?'结束日期':'End date'"
  64. value-format="yyyy-MM-dd"
  65. >
  66. </el-date-picker>
  67. </el-form-item>
  68. <!-- 活动地点 -->
  69. <el-form-item :label="$t('common.Venue')" prop="activityPlace">
  70. <el-input v-model="externalFormData.activityPlace"
  71. maxlength="100"
  72. show-word-limit
  73. style="width: 70%;"
  74. :placeholder="$i18n.locale=='zh'?'请参照格式:北京市-海淀区-交通大道123号':'Please refer to the format: 123 Jiaotong Avenue, Haidian District, Beijing'"></el-input>
  75. </el-form-item>
  76. <!-- 报名时间 -->
  77. <el-form-item :label="$t('common.RegistrationTime')">
  78. <el-date-picker
  79. style="width: 70%;"
  80. v-model="externalFormData.RegistrationTime"
  81. type="daterange"
  82. align="right"
  83. unlink-panels
  84. :range-separator="$i18n.locale=='zh'?'至':'to'"
  85. :start-placeholder="$i18n.locale=='zh'?'开始日期':'Start date'"
  86. :end-placeholder="$i18n.locale=='zh'?'结束日期':'End date'"
  87. value-format="yyyy-MM-dd"
  88. >
  89. </el-date-picker>
  90. </el-form-item>
  91. <!-- 报名链接 -->
  92. <el-form-item :label="$t('common.RegistrationLink')">
  93. <el-input v-model="externalFormData.registrationUrl" maxlength="255"
  94. show-word-limit style="width: 70%;" ></el-input>
  95. </el-form-item>
  96. <!-- 相关附件 -->
  97. <el-form-item :label="$t('common.RelatedAttachments')" prop='LegalRepresentative' v-if="externalFormData.activityTypeDict=='2'">
  98. <el-upload
  99. class="upload-demo"
  100. action="./api/file/upload/attachment?module=committeeActivityInfo"
  101. :on-success="docSuccess"
  102. :on-remove="docRemove"
  103. :headers="myHeaders"
  104. :before-upload="beforeUpload"
  105. :file-list="externalFormData.fileList">
  106. <el-button size="small" type="primary">{{$t('common.SelectUploadCUnit')}}</el-button>
  107. <div slot="tip" class="el-upload__tip">{{$t('common.OnlyUpload')}}</div>
  108. </el-upload>
  109. </el-form-item>
  110. </el-form>
  111. </el-collapse-item>
  112. <!-- 活动信息 -->
  113. <el-collapse-item name="1" v-if="active==1">
  114. <template slot="title">
  115. <span style="color: red;margin-right: 3px;">* </span> {{$t('common.ActivityInformation')}}
  116. </template>
  117. <el-form ref="externalFormData2" :model="externalFormData" :rules="form1Rules" label-width="260px" class="demo-ruleForm"
  118. style="margin-top: 20px;width: 1000px;margin-left: 100px;">
  119. <!-- 名称 -->
  120. <el-form-item :label="$t('common.Name')" prop='activityName'>
  121. <el-input v-model="externalFormData.activityName" maxlength="1000"
  122. show-word-limit style="width: 70%;" :placeholder="$t('common.PleaseEnter')+$t('common.NameoftheEntity')"></el-input>
  123. </el-form-item>
  124. <!-- 封面 -->
  125. <el-form-item :label="$t('common.Cover')" style="position: relative;">
  126. <el-upload
  127. class="avatar-uploader"
  128. action="/api/file/upload/img?module=reviewCommitteeActivityInfo"
  129. :show-file-list="false"
  130. :on-success="photoSuccess"
  131. :headers="myHeaders"
  132. :before-upload="beforeAvatarUpload">
  133. <img v-if="externalFormData.activityLogo" :src="'/api/file/pub/' + externalFormData.activityLogo" class="avatar">
  134. <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  135. </el-upload>
  136. <span style="position: absolute;left: 200px;top: 80px;">{{$i18n.locale=='zh'?'图片大小不超过10M,建议尺寸320*240':'The picture size is not more than 10m, recommended size is 320 * 240'}}</span>
  137. </el-form-item>
  138. <!-- 简介 -->
  139. <el-form-item :label="$t('common.Introduction')" style="display: block;">
  140. <layui-inline-ue
  141. label=""
  142. :cssStyle="{'width':'100%','height':'100%'}"
  143. :value="externalFormData.activityIntroductionUe"
  144. @input="activityIntroductionUe"
  145. :readonly="readOnly"
  146. ref="contentUe">
  147. </layui-inline-ue>
  148. </el-form-item>
  149. </el-form>
  150. </el-collapse-item>
  151. <!-- 详情 -->
  152. <el-collapse-item name="2" v-if="active==1">
  153. <template slot="title">
  154. <span style="color: red;margin-right: 3px;">* </span> {{$t('common.ActivitiesInfo')}}
  155. </template>
  156. <div style="margin: 30px 20px;">
  157. <span :class="textIndex==1?'textInfo cursor':'textInfo2 cursor'" @click="textIndex=1">{{$t('common.ActivityPreview')}}</span>
  158. <span :class="textIndex==2?'textInfo cursor':'textInfo2 cursor'" @click="textIndex=2">{{$t('common.ActivityReview')}}</span>
  159. </div>
  160. <div style="margin: 0px 20px;">
  161. {{$t('common.CustomTemplate')}}:
  162. <el-select
  163. filterable
  164. :no-match-text="$i18n.locale=='zh'?'无匹配数据':'No Data'"
  165. v-model="externalFormData.activityPreviewTemplate"
  166. :placeholder="$i18n.locale=='zh'?'请选择类型':'Please select Type'"
  167. >
  168. <el-option :label="item.label" :value="item.value"
  169. v-for="(item,index) in type">
  170. </el-option>
  171. </el-select>
  172. </div>
  173. <div style="margin: 30px 20px;" >
  174. <div style="display: inline-block;width: 100px;height: 760px;line-height: 760px;text-align: center;
  175. border: 1px solid rgba(210, 210, 210, 1);background: #fbfbfb;">
  176. {{textIndex==1?$i18n.locale=='zh'?'活动预告':'Activity Preview':
  177. $i18n.locale=='zh'?'活动回顾':'Activity review'}}
  178. </div>
  179. <div style="display: inline-block;width: 1000px;height: 760px;vertical-align: top;" class="edui" v-show="textIndex == 1" >
  180. <layui-inline-ue
  181. label=""
  182. :cssStyle="{'width':'100%','height':'100%'}"
  183. @input="activityPreviewUe"
  184. v-model="externalFormData.activityPreviewUe"
  185. :readonly="readOnly"
  186. ref="contentUe">
  187. </layui-inline-ue>
  188. </div>
  189. <div style="display: inline-block;width: 1000px;height: 760px;vertical-align: top;" class="edui" v-show="textIndex == 2" >
  190. <layui-inline-ue
  191. label=""
  192. :cssStyle="{'width':'100%','height':'100%'}"
  193. @input="activityReviewUe"
  194. v-model="externalFormData.activityReviewUe"
  195. :readonly="readOnly"
  196. ref="contentUe">
  197. </layui-inline-ue>
  198. </div>
  199. </div>
  200. <div style="margin: 30px 20px;height: 150px;" v-show="textIndex == 2">
  201. <el-upload
  202. action="./api/file/upload/attachment?module=reviewCommitteeActivityInfo"
  203. list-type="picture-card"
  204. :headers="myHeaders"
  205. :on-success="handlePictureCardSucess"
  206. :on-preview="handlePictureCardPreview"
  207. :on-remove="handleRemove"
  208. :file-list="externalFormData.fileList2">
  209. <i class="el-icon-plus"></i>
  210. </el-upload>
  211. <el-dialog :visible.sync="dialogVisible2">
  212. <img width="100%" :src="dialogImageUrl" alt="">
  213. </el-dialog>
  214. </div>
  215. </el-collapse-item>
  216. </el-collapse>
  217. </div>
  218. <div style="margin: 20px 100px;">
  219. <!-- <el-button @click="submit" >取消</el-button>
  220. <el-button type="primary" @click="submit">预览</el-button> -->
  221. <el-button style="margin-left: 950px;" type="primary" :loading="loading" @click="submit">{{$t('common.Submit')}}</el-button>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. </template>
  228. <script>
  229. import {getDicts} from '@/api/dict'
  230. import {submitApplyPortal,getBaseLeagueApplys,} from '@/api/cooperation/baseLeagueApply'
  231. import {getBaseLeagues,getRegionsAndCountries,saveEntityAndInfo} from '@/api/cooperation/baseLeagueEntity'
  232. import {country} from '@/api/country'
  233. import Base from '@/views/base/Base'
  234. import userCenterTaberListUnionPrint from '@/views/userCenter/userCenterItem/userCenterTaberListUnionPrint'
  235. import LayuiInlineUe from '@/components/LayuiInlineUe'
  236. import {getToken} from '@/utils/auth';
  237. export default {
  238. name: 'NationalregionalCommissionsEventEn',
  239. extends: Base,
  240. props:{
  241. activeLanguage:{
  242. type: String,
  243. default: null
  244. },
  245. editableTabsValue:{
  246. type: String,
  247. default: null
  248. },
  249. activity:{
  250. type: Array,
  251. default: null
  252. },
  253. loading: {
  254. type: Boolean,
  255. default: false
  256. },
  257. },
  258. components:{userCenterTaberListUnionPrint,LayuiInlineUe},
  259. data () {
  260. return {
  261. active:1,
  262. wei:'',
  263. readOnly: this.$route.params.readOnly || false,
  264. activeNames: ['1','2','3'],
  265. countryList:[],
  266. imgList:[],
  267. textIndex:1,
  268. myHeaders: {Authorization: ('Bearer ' + getToken())},
  269. type:[],// 委员会类型
  270. ActivityOptions: [],
  271. value:[],
  272. dialogImageUrl: '',
  273. dialogVisible2: false,
  274. allActivityOptions:[],
  275. externalFormData:this.activity,
  276. screenIndex: 2,
  277. baseLeagueInfos:[],
  278. realTimeInfoScreens2:[{
  279. lable:"委员会简介",
  280. value:'0'
  281. },{
  282. lable:"委员会布局",
  283. value:'1'
  284. },{
  285. lable:"委员会活动",
  286. value:'2'
  287. }],
  288. dialogVisible:false,
  289. leagueType:[],
  290. processKey: 'ALLIANCE_APPROVAL',
  291. approvers:[],
  292. duty:'',
  293. group:'',
  294. leagueMap:{},
  295. ActivityTime:[],
  296. RegistrationTime:[],
  297. Template:[],
  298. }
  299. },
  300. created(){
  301. },
  302. mounted(){
  303. this.getDict();// 获取字典
  304. },
  305. watch:{
  306. externalFormData:{
  307. handler :function () {
  308. this.externalFormData.language = this.editableTabsValue;
  309. this.$emit('update:activity',this.externalFormData);
  310. },
  311. deep:true
  312. },
  313. activity:{
  314. handler: function () {
  315. this.externalFormData = this.activity;
  316. },
  317. deep:true
  318. },
  319. "externalFormData.activityTime"(){
  320. let start = this.formatDate(this.externalFormData.activityTime[0]);
  321. let end = this.formatDate(this.externalFormData.activityTime[1]);
  322. // this.externalFormData.activityTime = start+'--'+end;
  323. },
  324. "externalFormData.RegistrationTime"(){
  325. let start = this.formatDate(this.externalFormData.RegistrationTime[0]);
  326. let end = this.formatDate(this.externalFormData.RegistrationTime[1]);
  327. // this.externalFormData.registrationTime = start+'--'+end;
  328. },
  329. "$i18n.locale"(){
  330. // this.$refs.form.clearValidate();
  331. // this.$refs.form2.clearValidate();
  332. this.getDict();// 获取字典
  333. },
  334. },
  335. computed:{
  336. form1Rules(){
  337. return {
  338. activityTime:[
  339. { required: true,message: this.$t('common.PleaseEnter')+' '+this.$t('common.ActivityTime'), trigger: 'blur' }
  340. ],
  341. activityTypeDict:[
  342. {required: true, message: this.$t('common.PleaseSelects')+' '+this.$t('common.ByType'), trigger: 'change'}
  343. ],
  344. orderNumber: [
  345. { required: true, message: this.$t('common.PleaseSelects')+' '+this.$t('common.Committee'), trigger: 'blur' }
  346. ],
  347. activityPlace:[
  348. { required: true, message: this.$t('common.PleaseEnter')+' '+this.$t('common.Venue'), trigger: 'blur' },
  349. ],
  350. activityName:[
  351. { required: true, message: this.$t('common.PleaseEnter')+' '+this.$t('common.Name'), trigger: 'blur' }
  352. ],
  353. unitIntroduction:[
  354. { required: true, message: this.$t('common.PleaseEnter')+' '+this.$t('common.BriefIntroductionOfApplicant'), trigger: 'blur' }
  355. ],
  356. activityLogo:[
  357. { required: true, trigger: 'blur' }
  358. ],
  359. activityIntroductionUe:[
  360. { required: true, trigger: 'blur' }
  361. ],
  362. }
  363. },
  364. },
  365. methods:{
  366. beforeAvatarUpload (){
  367. },
  368. submit(){
  369. this.$refs["externalFormData"].validate((valid1) => {
  370. if (valid1) {
  371. this.$refs["externalFormData2"].validate((valid2) => {
  372. if (valid2) {
  373. this.$emit("saveForm");
  374. }
  375. })
  376. } else {
  377. this.$notify.error({
  378. title: 'error',
  379. message: this.$i18n.locale == 'en'?'Please add':'请补充' + this.$t('common.BasicInformation')
  380. });
  381. return false;
  382. }
  383. });
  384. },
  385. beforeUpload(){
  386. },
  387. handleRemove(file, fileList) {
  388. this.externalFormData.picturesId = "";
  389. this.externalFormData.pictures = "";
  390. for(let index=0;index<fileList.length;index++){
  391. this.externalFormData.picturesId = fileList[index].id+","+this.externalFormData.picturesId;
  392. this.externalFormData.pictures = fileList[index].url.replace('/api/file/pub/','')+","+this.externalFormData.pictures;
  393. }
  394. },
  395. handlePictureCardSucess(file){
  396. if(undefined == this.externalFormData.picturesId){
  397. this.externalFormData.picturesId = "";
  398. }
  399. if(undefined == this.externalFormData.pictures){
  400. this.externalFormData.pictures = "";
  401. }
  402. this.externalFormData.picturesId = file.data.attachmentId+","+this.externalFormData.picturesId;
  403. this.externalFormData.pictures = file.data.path+","+this.externalFormData.pictures;
  404. },
  405. handlePictureCardPreview(file) {
  406. this.dialogImageUrl = file.url;
  407. this.dialogVisible = true;
  408. },
  409. //修改
  410. handleChange(value) {
  411. },
  412. handleChange1(value){
  413. console.log("存在问题")
  414. this.externalFormData.cascader = value;
  415. this.externalFormData.committeeName = '';
  416. this.externalFormData.committeeId = '';
  417. this.externalFormData.orderNumber = '';
  418. value.forEach(j=>{
  419. this.externalFormData.orderNumber = j+","+this.externalFormData.orderNumber
  420. })
  421. this.allActivityOptions.forEach(item=>{
  422. value.forEach(j=>{
  423. if(item.value == j){
  424. this.externalFormData.committeeName = item.label+","+this.externalFormData.committeeName;
  425. this.externalFormData.committeeId = item.id+","+this.externalFormData.committeeId;
  426. }
  427. })
  428. })
  429. this.externalFormData.committeeName=this.externalFormData.committeeName.replace(/,$/gi,"");
  430. this.externalFormData.committeeId=this.externalFormData.committeeId.replace(/,$/gi,"");
  431. this.externalFormData.orderNumber = this.externalFormData.orderNumber.replace(/,$/gi,"");
  432. },
  433. activityIntroductionUe(data){
  434. this.externalFormData.activityIntroductionUe = data;
  435. },
  436. activityPreviewUe(data){
  437. this.externalFormData.activityPreviewUe = data;
  438. },
  439. activityReviewUe(data){
  440. this.externalFormData.activityReviewUe = data;
  441. },
  442. ActivityTimeRule (rule, value, callback) {
  443. },
  444. docRemove(file, fileList) {
  445. this.externalFormData.ids=[];
  446. for(let index=0;index<fileList.length;index++){
  447. this.externalFormData.ids.push(fileList[index].id)
  448. }
  449. },
  450. docSuccess(res, file) {
  451. if(!this.externalFormData.fileList){
  452. this.externalFormData.fileList = []
  453. }
  454. this.externalFormData.fileList.push(file);
  455. if (res.data) {
  456. if(undefined == this.externalFormData.ids){
  457. this.externalFormData.ids = []
  458. }
  459. // this.externalFormData.fileList.push(res.data)
  460. this.externalFormData.ids.push(res.data.attachmentId)
  461. }
  462. },
  463. photoSuccess(res, file) {
  464. this.imgList = [];
  465. this.externalFormData.activityLogo=res.data;
  466. this.$forceUpdate();
  467. },
  468. getDict(){
  469. this.Template=[{
  470. label:this.$i18n.locale=='zh'?'会员活动模板':'Member activity template',
  471. value:'0'
  472. },{
  473. label:this.$i18n.locale=='zh'?'联盟活动模板':'Alliance activity template',
  474. value:'1'
  475. },{
  476. label:this.$i18n.locale=='zh'?'合作活动模板':'Cooperative activity template',
  477. value:'2'
  478. }];
  479. getDicts(this.$i18n.locale=="zh"?'COMMITTEE_ACTIVITY_TYPE':'COMMITTEE_ACTIVITY_TYPE_EN').then(res=>{
  480. this.type=res.data[0];
  481. console.log('定制模板')
  482. console.log(res.data)
  483. });
  484. let page = {
  485. language:this.$i18n.locale.toUpperCase()
  486. }
  487. getRegionsAndCountries(page).then(res=>{
  488. this.allActivityOptions = res.data;
  489. // res.data.forEach((item,index)=>{
  490. // if(item.value.length>4){
  491. // this.$set(item,'faValue',item.value.substring(0,3))
  492. // }else {
  493. // this.$set(item,'children',new Array )
  494. // }
  495. // })
  496. // res.data.forEach((item) =>{
  497. // res.data.forEach((i) =>{
  498. // if(item.value == i.faValue){
  499. // item.children.push(i);
  500. // }
  501. // })
  502. // });
  503. this.ActivityOptions = res.data;
  504. // this.ActivityOptions.forEach((item,index)=>{
  505. // if(item.faValue){
  506. // delete this.ActivityOptions[index];
  507. // }
  508. // })
  509. // this.ActivityOptions = this.ActivityOptions.filter(item=>{
  510. // return item !==undefined
  511. // })
  512. })
  513. },
  514. agreementChange(val){
  515. this.active=val;
  516. },
  517. // 提交并下载
  518. submitForm(){
  519. this.$refs["externalFormData"].validate((valid1) => {
  520. if (valid1) {
  521. } else {
  522. this.$notify.error({
  523. title: 'error',
  524. message: this.$t('common.unitInfo')
  525. });
  526. this.activeNames=["1"]
  527. return false;
  528. }
  529. });
  530. },
  531. print(){
  532. loading();
  533. if (this.duty || this.group) {
  534. getUsers({
  535. duty: this.duty,
  536. groups: this.group,
  537. }).then(res => {
  538. let data = res.data || {};
  539. let approvers = data.authUsers || [];
  540. if (approvers && approvers.length > 0) {
  541. this.approver = '';
  542. approvers.forEach(item => {
  543. this.approver += item.userId + ",";
  544. });
  545. this.approver = this.approver.substring(0, this.approver.length - 1);
  546. }
  547. });
  548. }
  549. this.baseLeagueApply.phaseDict = '1';
  550. this.baseLeagueApply.statusDict = this.submitStatus;
  551. this.baseLeagueApply.auditStatusDict = '1';
  552. this.baseLeagueApply.leagueId = this.leagueType.join(',');
  553. var leagueType = [];
  554. if(this.leagueType.length > 0){
  555. this.leagueType.forEach(e=>{
  556. leagueType.push(this.leagueMap[e])
  557. })
  558. }
  559. this.baseLeagueApply.leagueName = leagueType.join(',');
  560. this.submitHandler((token) => {
  561. submitApplyPortal(JSON.stringify(this.baseLeagueApply),JSON.stringify(this.baseContactsInfo),null,this.approver, this.taskComment,token).then(res=>{
  562. this.$message({
  563. message: this.$i18n.locale.toUpperCase()=="ZH"?'添加资料成功':'submit success',
  564. type: 'success'
  565. });
  566. this.resetToken();
  567. this.active=2;
  568. closeLoading();
  569. }).catch(error => {
  570. this.resetToken();
  571. closeLoading();
  572. });
  573. })
  574. },
  575. // 发送申请表
  576. submitFormApplication(){
  577. },
  578. realTimeInfoScreen(i,index){
  579. this.toView('nationalregionalCommissions2',index)
  580. },
  581. getIconUrl(url){
  582. return require("@/assets/img/introductionCooperation/"+url);
  583. },
  584. toView(router,json){
  585. this.$router.push({name:router,query:{key:json}})
  586. },
  587. toNewView(router,json){
  588. this.$store.commit('modify', router);
  589. window.localStorage.setItem('router', router);
  590. const { href } = this.$router.resolve({
  591. name: router,
  592. query: {
  593. key: json
  594. },
  595. });
  596. window.open(href, '_blank');
  597. },
  598. toViewCenter(router,json){
  599. this.$router.push({name:router,params:{index:json}})
  600. },
  601. resetForm(item) {
  602. this[item] = {};
  603. console.log( this.form2)
  604. this.$refs.form2.resetFields()
  605. if(this.$refs[formName]){
  606. this.$refs[item].resetFields()
  607. }
  608. }
  609. }
  610. }
  611. </script>
  612. <!-- Add "scoped" attribute to limit CSS to this component only -->
  613. <style scoped>
  614. .box {
  615. margin-top: 10px;
  616. background: #fff;
  617. min-height: 500px;
  618. padding: 20px 0;
  619. }
  620. .crumbs {
  621. margin-left: 20px;
  622. }
  623. body {
  624. margin: 0;
  625. }
  626. .crumbs >>>.el-step__icon {
  627. width: 37px;
  628. height: 37px;
  629. font-size: 18px;
  630. }
  631. .crumbs>>> .el-step.is-horizontal .el-step__line {
  632. top:20px;
  633. }
  634. .crumbs>>>.el-step__head.is-process {
  635. color: #409eff;
  636. border-color:inherit;
  637. }
  638. .crumbs>>>.el-step__head.is-process .el-step__icon.is-text {
  639. background: #409eff;
  640. color: #fff;
  641. border-color:#409eff;
  642. width: 46px;
  643. height: 46px;
  644. }
  645. .crumbs>>>.el-step__title.is-process,
  646. .crumbs>>>.el-step__description.is-process {
  647. color: #409eff;
  648. }
  649. .crumbs>>>.el-collapse-item {
  650. /* width: 80%; */
  651. margin: auto;
  652. }
  653. .el-collapse {
  654. border: none;
  655. }
  656. .crumbs>>>.el-collapse-item__header {
  657. padding: 0 20px 0 50px;
  658. font-weight: 700;
  659. }
  660. .crumbs>>>.el-collapse-item__content {
  661. padding: 0 0 0 0px;
  662. }
  663. .el-checkbox {
  664. display: inline-block;
  665. margin-bottom: 20px;
  666. }
  667. .avatar-uploader >>>.el-upload {
  668. border: 1px solid #d9d9d9;
  669. border-radius: 6px;
  670. cursor: pointer;
  671. position: relative;
  672. overflow: hidden;
  673. }
  674. .avatar-uploader .el-upload:hover {
  675. border-color: #409EFF;
  676. }
  677. .avatar-uploader-icon {
  678. font-size: 28px;
  679. color: #8c939d;
  680. width: 178px;
  681. height: 178px;
  682. line-height: 178px;
  683. text-align: center;
  684. }
  685. .avatar {
  686. width: 178px;
  687. height: 178px;
  688. display: block;
  689. }
  690. .crumbs>>>.el-collapse-item__header.is-active {
  691. border-bottom-color: #EBEEF5;
  692. }
  693. .button_409EFF {
  694. border-color:#409EFF ;
  695. color: #409EFF;
  696. }
  697. .textInfo {
  698. padding: 10px 20px;
  699. background-color: #1890ff;
  700. color: #fff;
  701. border: 1px solid rgba(228, 228, 228, 1);
  702. }
  703. .textInfo2 {
  704. padding: 10px 20px;
  705. background-color: rgba(249, 249, 249, 1);
  706. color: #333;
  707. border: 1px solid rgba(228, 228, 228, 1);
  708. }
  709. .form2Sty{
  710. margin-top: 20px;
  711. width: 100%;
  712. }
  713. .form2Sty>>>.el-collapse-item__content{
  714. /* padding-left: 20px; */
  715. width: 49%;
  716. }
  717. .form2Sty>>>.el-form-item{
  718. width: 50%;
  719. float: left;
  720. }
  721. .avatar-uploader .el-upload {
  722. border: 1px dashed #d9d9d9;
  723. border-radius: 6px;
  724. cursor: pointer;
  725. position: relative;
  726. overflow: hidden;
  727. }
  728. .avatar-uploader .el-upload:hover {
  729. border-color: #409EFF;
  730. }
  731. .avatar-uploader-icon {
  732. font-size: 28px;
  733. color: #8c939d;
  734. width: 178px;
  735. height: 178px;
  736. line-height: 178px;
  737. text-align: center;
  738. }
  739. .avatar {
  740. width: 178px;
  741. height: 178px;
  742. display: block;
  743. }
  744. .edui-editor {
  745. width: 100%;
  746. }
  747. .edui>>>.edui-editor-iframeholder {
  748. height: 679px !important;
  749. }
  750. </style>