cooperationActiveRegistration.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. <template>
  2. <view class="rf-category">
  3. <u-navbar :back-text="i18n('Back')" :back-text-style="backStyle" back-icon-color="#fff" title-color="#fff"
  4. :title="i18n('ActivityRegistration')" :background="background">
  5. </u-navbar>
  6. <view class="activityName">
  7. {{activityInfo.activityName}}
  8. </view>
  9. <!-- 加载动画 -->
  10. <u-mask :show="showLoading" :mask-click-able="false"
  11. style="display: flex;justify-content: center;align-items: center;">
  12. <view>
  13. <u-loading mode="flower" size="100" :show="showLoading"></u-loading>
  14. </view>
  15. </u-mask>
  16. <view class="uni-form">
  17. <u-form :model="formLabelAlign" ref="uForm" label-position="top" :error-type="errorType">
  18. <!-- 姓名 -->
  19. <u-form-item v-if="$i18n.locale=='zh'" label="姓名" prop="name" :required="true">
  20. <!--<u-form-item :label="i18n('fullName')" prop="name" :required="true"> -->
  21. <u-input v-model="formLabelAlign.name" :placeholder="i18n('FirstNameTips')" :clearable="false"
  22. :disabled="true" />
  23. </u-form-item>
  24. <!-- country -->
  25. <u-form-item v-if="$i18n.locale=='en'" label="Country" prop="unitCountry" :required="true">
  26. <u-input v-model="unitCountry" type="select" :placeholder="i18n('CountryTips')"
  27. @click="showCountry = true" />
  28. <!-- 选择器 -->
  29. <u-select v-model="showCountry" mode="single-column" :list="countrydate" @confirm="confirmCountry"
  30. label-name="label" value-name="value" :confirm-text="i18n('submit')"
  31. :cancel-text="i18n('cancel')"></u-select>
  32. </u-form-item>
  33. <!-- Region -->
  34. <u-form-item v-if="$i18n.locale=='en'" label="Region" prop="Region" :required="true">
  35. <!-- <u-input v-model="formLabelAlign.Region" :placeholder="i18n('RegionTips')" :clearable="false" /> -->
  36. <u-input v-model="formLabelAlign.Region" type="select"
  37. :placeholder="'Please select' +' ' + i18n('Region')" @click="showRegion = true" />
  38. <u-select v-model="showRegion" mode="single-column" :list="Regiondate" @confirm="confirmRegion"
  39. label-name="label" value-name="value" :confirm-text="i18n('submit')"
  40. :cancel-text="i18n('cancel')"></u-select>
  41. </u-form-item>
  42. <!-- Title -->
  43. <u-form-item v-if="$i18n.locale=='en'" label="Title" prop="Title" :required="true">
  44. <u-input v-model="formLabelAlign.Title" type="select" :placeholder="i18n('TitleTips')"
  45. @click="showTitle = true" />
  46. <!-- ActionSheet 操作菜单 -->
  47. <u-action-sheet :list="titleList" v-model="showTitle" @click="actionSheetCallback"
  48. cancel-text="cancel"></u-action-sheet>
  49. </u-form-item>
  50. <!-- FirstName -->
  51. <u-form-item v-if="$i18n.locale=='en'" label="First(given) Name(s)" prop="FirstName" :required="true">
  52. <u-input v-model="formLabelAlign.FirstName" :placeholder="i18n('FirstNameTips')"
  53. :clearable="false" />
  54. </u-form-item>
  55. <!-- LastName -->
  56. <u-form-item v-if="$i18n.locale=='en'" label="Last Name" prop="LastName" :required="true">
  57. <u-input v-model="formLabelAlign.LastName" :placeholder="i18n('LastNameTips')" :clearable="false" />
  58. </u-form-item>
  59. <!-- 单位名称 -->
  60. <u-form-item :label="i18n('NameoftheEntity')" prop="unitName" :required="true">
  61. <u-input v-model="formLabelAlign.unitName" :placeholder="i18n('NameEntityTips')" />
  62. <u-button slot="right" type="primary" v-if="formLabelAlign.unitName" shape="square" size="mini"
  63. @click="showSelect">{{i18n('Search')}}</u-button>
  64. <!-- 选择器 -->
  65. <u-select v-model="show" mode="single-column" :list="projectList" @confirm="confirm"
  66. label-name="unitName" value-name="baseEntityId" :confirm-text="i18n('submit')"
  67. :cancel-text="i18n('cancel')"></u-select>
  68. </u-form-item>
  69. <!-- 职务 -->
  70. <u-form-item :label="i18n('Position')" prop="post" :required="true">
  71. <u-input v-model="formLabelAlign.post" :placeholder="i18n('PositionTips')" />
  72. </u-form-item>
  73. <!-- 联系电话 -->
  74. <u-form-item :label="i18n('ContactPhoneNumber')" prop="phoneNumber" :required="true">
  75. <view @click="toGR"
  76. style="display: inline-block;padding: 6upx; margin-right: 20upx;background-color:#c7c7c7;border-radius:8upx">
  77. <text
  78. style="max-width:106upx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;display: inline-block;vertical-align: middle;">
  79. {{selectName}}</text>
  80. <text style="vertical-align: middle; "> ({{'+' + select}})></text>
  81. </view>
  82. <u-input v-model="formLabelAlign.contactNumber" :placeholder="i18n('PhoneTips')" type="number"
  83. maxlength="20" />
  84. <!-- <u-button slot="right" type="primary" shape="square" size="mini" @click="showSelect">{{i18n('Search')}}</u-button> -->
  85. </u-form-item>
  86. <!-- 邮箱 -->
  87. <u-form-item :label="i18n('Emails')" prop="mailbox" :required="true">
  88. <u-input v-model="formLabelAlign.mailbox" :placeholder="i18n('EmailTips')" type="email" />
  89. </u-form-item>
  90. </u-form>
  91. <u-button v-if="showSubmitBtnFlag" style="margin-top: 100upx;bottom: 60upx;" @click="submit" type="primary">
  92. {{i18n('SubmitAndDownload')}}
  93. </u-button>
  94. </view>
  95. <u-toast ref="uToast" />
  96. <!-- <u-popup v-model="showGlobalRoaming" mode="bottom" height="100%">
  97. <GlobalRoaming @getAreCode="getMoblieAreCode"></GlobalRoaming>
  98. </u-popup> -->
  99. </view>
  100. </template>
  101. <script>
  102. import GlobalRoaming from "../../public/GlobalRoaming.vue"
  103. import {
  104. addIntegral,
  105. addGrowth
  106. } from '@/components/addPointDetailByTaskDict.js'
  107. export default {
  108. components: {
  109. GlobalRoaming,
  110. addIntegral,
  111. addGrowth
  112. },
  113. data() {
  114. return {
  115. showGlobalRoaming: false,
  116. show: false,
  117. showLoading: false,
  118. showTitle: false,
  119. showCountry: false,
  120. showRegion: false,
  121. ActiviteId: "",
  122. activityInfo: {},
  123. backStyle: {
  124. color: '#ffffff',
  125. },
  126. background: {
  127. backgroundImage: 'linear-gradient(270deg, #4BC0E2 0%, #538BE7 100%)',
  128. },
  129. rules: {
  130. name: [{
  131. required: true,
  132. message: this.i18n('FirstNameTips'),
  133. // 可以单个或者同时写两个触发验证方式
  134. trigger: ['change', 'blur'],
  135. }],
  136. unitCountry: [{
  137. required: true,
  138. message: 'Please enter country',
  139. // 可以单个或者同时写两个触发验证方式
  140. trigger: ['change', 'blur'],
  141. }],
  142. Region: [{
  143. required: true,
  144. message: this.i18n('RegionTips'),
  145. // 可以单个或者同时写两个触发验证方式
  146. trigger: ['change', 'blur'],
  147. }],
  148. Title: [{
  149. required: true,
  150. message: this.i18n('TitleTips'),
  151. // 可以单个或者同时写两个触发验证方式
  152. trigger: ['change', 'blur'],
  153. }],
  154. FirstName: [{
  155. required: true,
  156. message: 'Please enter First(given) Name(s)',
  157. // 可以单个或者同时写两个触发验证方式
  158. trigger: ['blur'],
  159. }],
  160. LastName: [{
  161. required: true,
  162. message: 'Please enter Last Name',
  163. // 可以单个或者同时写两个触发验证方式
  164. trigger: ['blur'],
  165. }],
  166. unitName: [{
  167. required: true,
  168. message: this.i18n('NameEntityTips'),
  169. // 可以单个或者同时写两个触发验证方式
  170. trigger: ['blur'],
  171. }],
  172. post: [{
  173. required: true,
  174. message: this.i18n('PositionTips'),
  175. // 可以单个或者同时写两个触发验证方式
  176. trigger: ['change', 'blur'],
  177. }],
  178. contactNumber: [{
  179. required: true,
  180. message: this.i18n('PhoneTips'),
  181. // 可以单个或者同时写两个触发验证方式
  182. trigger: ['change', 'blur'],
  183. },
  184. {
  185. max: 20
  186. }
  187. ],
  188. mailbox: [{
  189. required: true,
  190. message: this.i18n('EmailTips'),
  191. // 可以单个或者同时写两个触发验证方式
  192. trigger: ['change', 'blur'],
  193. },
  194. // 正则判断为邮箱
  195. {
  196. // pattern: /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/,
  197. pattern: /^[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*@[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*\.[a-z]{2,}$/,
  198. // 正则检验前先将值转为字符串
  199. transform(value) {
  200. return String(value);
  201. },
  202. message: this.i18n('Pleaseenterthecorrectemailnumber') + "!",
  203. },
  204. ],
  205. },
  206. // message:文字提示
  207. // border:配置输入框的边框为红色进行提示
  208. // toast:以"toast"提示的方式弹出错误信息
  209. // none:不提示
  210. // errorType: ['message', 'border-bottom'],//文字和下划线提示
  211. errorType: ['message', 'border-bottom'],
  212. countrydate: [], //国家数据
  213. Regiondate: [], //大洲数据
  214. formLabelAlign: {
  215. name: '',
  216. unitName: '', //id
  217. unitNameLabel: '', //名字
  218. ifName: null,
  219. post: '',
  220. contactNumber: '',
  221. mailbox: '',
  222. FirstName: '',
  223. LastName: '',
  224. unitCountry: '',
  225. Title: '',
  226. Region: '',
  227. auditStatusDict: '',
  228. language: '',
  229. selectCode: '0086',
  230. invitationCode: '', //邀请码
  231. meetingId: '' //会议id
  232. },
  233. titleList: [{
  234. value: 'Mr.',
  235. text: 'Mr.'
  236. },
  237. {
  238. value: 'Ms.',
  239. text: 'Ms.'
  240. },
  241. {
  242. value: 'Dr.',
  243. text: 'Dr.'
  244. },
  245. {
  246. value: 'Prof.',
  247. text: 'Prof.'
  248. }
  249. ],
  250. token: '',
  251. approverId: '',
  252. taskComment: '',
  253. projectList: [],
  254. activityIds: '',
  255. selectMap: {}, //select选择器选中的内容
  256. Storage_data: "",
  257. select: '0086',
  258. selectName: this.$i18n.locale == 'zh' ? '中国' : 'China',
  259. selectList: '',
  260. regLogStyle: '5',
  261. meetingApply: {},
  262. unitName: "",
  263. unitCountry: "",
  264. showSubmitBtnFlag: true,
  265. }
  266. },
  267. async onShow() {
  268. this.getList();
  269. try {
  270. this.Storage_data = JSON.parse(uni.getStorageSync('user'));
  271. this.token = uni.getStorageSync('Auth-Token');
  272. } catch (e) {
  273. };
  274. if (this.Storage_data) {
  275. this.formLabelAlign.name = this.Storage_data.realName;
  276. }
  277. this.getCountryDate();
  278. //添加监听一个handleFun的事件
  279. uni.$on("moblieAreCode", res => {
  280. this.selectList = res;
  281. // 清除监听
  282. uni.$off('moblieAreCode');
  283. });
  284. if (this.selectList) {
  285. this.select = this.selectList.id ? this.selectList.id : this.select;
  286. let countryName = this.$i18n.locale == 'zh' ? this.selectList.cnValue : this.selectList.enValue;
  287. this.selectName = countryName ? countryName : this.selectName;
  288. }
  289. },
  290. onLoad: function(options) { //option为object类型,会序列化上个页面传递的参数
  291. if (options.Rep) {
  292. this.showSubmitBtnFlag = false
  293. }
  294. console.log('option', options)
  295. if (options.id) {
  296. this.ActiviteId = options.id
  297. }
  298. if (options.Rep) {
  299. this.getApplyMes(options.Rep)
  300. }
  301. },
  302. async onReady() {
  303. this.$refs.uForm.setRules(this.rules);
  304. },
  305. methods: {
  306. /* getMoblieAreCode(data) {
  307. console.log('getMoblieAreCodef', data)
  308. this.selectList = data ? data : {};
  309. this.select = this.selectList.id ? this.selectList.id : this.select;
  310. let countryName = this.$i18n.locale == 'zh' ? this.selectList.cnValue : this.selectList.enValue;
  311. this.selectName = countryName ? countryName : this.selectName;
  312. this.showGlobalRoaming=false
  313. }, */
  314. async getApplyMes(ele) {
  315. const that = this;
  316. const result = await this.$myRequest({
  317. url: '/project/coopCustomServices/getUnitViews',
  318. data: {
  319. language: this.$i18n.locale.toUpperCase()
  320. },
  321. });
  322. if (JSON.stringify(result.data) !== '{}') {
  323. that.projectList = result.data.baseUnitViewList || [];
  324. }
  325. const res = await this.$myRequest({
  326. url: `/meeting/meetingApplys/${ele}`,
  327. });
  328. if (res) {
  329. let data = res.data;
  330. const that = this;
  331. if (data) {
  332. this.meetingApply = data.meetingApply || this.meetingApply;
  333. this.formLabelAlign.id = this.meetingApply.id;
  334. this.formLabelAlign.name = this.meetingApply.name;
  335. this.formLabelAlign.ifName = 'false'
  336. if (this.$i18n.locale == 'zh') {
  337. this.formLabelAlign.unitName = this.meetingApply.unitName;
  338. this.formLabelAlign.ifName = 'true'
  339. } else {
  340. this.formLabelAlign.unitName = this.meetingApply.unitNameEn;
  341. this.formLabelAlign.ifName = 'true'
  342. }
  343. this.projectList.forEach(i => {
  344. if (this.$i18n.locale == 'zh') {
  345. if (this.meetingApply.unitName == i.unitName) {
  346. // this.formLabelAlign.unitName = i.baseEntityId;
  347. this.formLabelAlign.unitName = i.unitName;
  348. this.unitNameLabel = i.unitName;
  349. // this.unitName = i.unitName;
  350. this.formLabelAlign.ifName = 'true'
  351. }
  352. } else {
  353. if (this.meetingApply.unitNameEn == i.unitName) {
  354. this.formLabelAlign.unitName = i.baseEntityId;
  355. this.unitNameLabel = i.unitName;
  356. // this.unitName = i.unitName;
  357. this.formLabelAlign.ifName = 'true'
  358. }
  359. }
  360. });
  361. // this.formLabelAlign.unitName = i.baseEntityId;
  362. that.formLabelAlign.post = that.meetingApply.positionName;
  363. that.formLabelAlign.contactNumber = that.meetingApply.tel;
  364. that.formLabelAlign.mailbox = that.meetingApply.email;
  365. that.formLabelAlign.unitCountry = that.meetingApply.unitCountryDict;
  366. that.unitCountry = that.meetingApply.unitCountryDict;
  367. that.formLabelAlign.Region = that.meetingApply.unitCountryDictEn;
  368. that.formLabelAlign.Title = that.meetingApply.dietaryTaboos;
  369. that.formLabelAlign.FirstName = that.meetingApply.givenName;
  370. that.formLabelAlign.LastName = that.meetingApply.surname;
  371. that.formLabelAlign.meetingId = that.meetingApply.meetingId;
  372. that.select = that.formLabelAlign.selectCode = that.meetingApply.mobileAreaCodeDictEn;
  373. // console.log(that.formLabelAlign.unitCountry ,that.meetingApply.unitCountryDict,'--------------')
  374. // debugger
  375. }
  376. }
  377. },
  378. toGR() {
  379. uni.navigateTo({
  380. url: '/pages/public/GlobalRoaming?regLogStyle=' + this.regLogStyle
  381. })
  382. // this.showGlobalRoaming = true;
  383. },
  384. async showSelect() {
  385. // this.showLoading = true;
  386. if (this.formLabelAlign.unitName) {
  387. await this.getSelecBaseList();
  388. } else {
  389. await this.getBaseList();
  390. }
  391. this.showLoading = false;
  392. this.show = true;
  393. },
  394. confirm(arr) {
  395. console.log(arr);
  396. if (arr[0].value == '1') {
  397. this.show = false;
  398. this.formLabelAlign.ifName = 'false'
  399. } else {
  400. this.formLabelAlign.unitName = arr[0].label;
  401. this.formLabelAlign.unitNameLabel = arr[0].value;
  402. this.selectMap = arr[0];
  403. this.activityIds = arr[0].value;
  404. //报名不通过后修改ifname状态
  405. this.formLabelAlign.ifName = 'false'
  406. }
  407. },
  408. confirmCountry(arr) {
  409. console.log(arr);
  410. this.formLabelAlign.unitCountry = arr[0].value;
  411. this.unitCountry = arr[0].label;
  412. },
  413. confirmRegion(arr) {
  414. console.log(arr);
  415. this.formLabelAlign.Region = arr[0].label;
  416. // this.unitCountry = arr[0].label;
  417. },
  418. actionSheetCallback(index) {
  419. console.log(`点击了第${index + 1}项,内容为:${this.titleList[index].text}`)
  420. this.formLabelAlign.Title = this.titleList[index].text;
  421. },
  422. async getList() {
  423. const res = await this.$myRequest({
  424. url: '/project/activityInfos/getById',
  425. data: {
  426. baseActivityEntityId: this.ActiviteId,
  427. language: this.$i18n.locale.toUpperCase()
  428. }
  429. });
  430. this.activityInfo = res.data.activityInfos[0] || {};
  431. if (this.activityInfo) {
  432. this.formLabelAlign.invitationCode = this.activityInfo.activityQrCode
  433. this.formLabelAlign.meetingId = res.data.meetingId;
  434. }
  435. },
  436. i18n(data) {
  437. return this.$t('common.' + data);
  438. },
  439. async save() {
  440. const that = this;
  441. //流程改造6
  442. this.formLabelAlign.auditStatusDict = '4';
  443. // this.formLabelAlign.unitName = that.activityInfo.baseActivityEntityId;
  444. that.formLabelAlign.invitationCode = that.activityInfo.activityQrCode;
  445. //流程改造7
  446. const result = await this.$myRequest({
  447. url: '/meeting/meetingApplys/getApproverId',
  448. data: {
  449. activityIds: this.ActiviteId,
  450. invitationCode: that.formLabelAlign.invitationCode,
  451. }
  452. });
  453. if (result) {
  454. var resdata = result.data;
  455. var str = "";
  456. for (var i = 0; i < resdata.length; i++) {
  457. str += resdata[i].userId + ",";
  458. }
  459. if (str.length > 0) {
  460. str = str.substr(0, str.length - 1);
  461. }
  462. this.approverId = str;
  463. // 会员模块后期加的 可传空字符串
  464. const res = await this.$myRequest({
  465. url: '/meeting/meetingApplys/saveActivityOrUpdate',
  466. header: that.token,
  467. data: {
  468. formLabelAlign: JSON.stringify(that.formLabelAlign),
  469. approver: that.approverId,
  470. taskComment: that.taskComment,
  471. // token: that.token,
  472. activityIds: that.activityIds
  473. },
  474. method: 'put',
  475. });
  476. console.log("approverId", this.approverId)
  477. if (res.status == '200') {
  478. let type = 'success';
  479. if (res.msg == 'error') {
  480. res.msg = this.$i18n.locale == 'zh' ? '您已报名成功,请勿重复报名。' :
  481. 'You have registered successfully, please do not repeat the registration';
  482. type = 'warning';
  483. } else {
  484. res.msg = this.$i18n.locale == 'zh' ? '报名成功' : 'Successful registration';
  485. }
  486. that.$refs.uToast.show({
  487. title: res.msg,
  488. type: type,
  489. // url: '/pages/cooperationExchange/cooperationExchangeList/activitiesInfo',
  490. // params: {
  491. // ActivitesId: this.ActiviteId,
  492. // }
  493. });
  494. setTimeout(() => {
  495. // 2秒后自动跳转
  496. // uni.reLaunch({
  497. // url: '/pages/cooperationExchange/cooperationExchangeList/activitiesInfo?ActivitesId=' + this.ActiviteId
  498. // });
  499. uni.navigateBack({
  500. delta: 1
  501. });
  502. }, 2000)
  503. this.resetToken();
  504. } else {
  505. that.$refs.uToast.show({
  506. title: res.msg,
  507. type: 'error',
  508. });
  509. this.resetToken();
  510. }
  511. }
  512. },
  513. resetToken() {
  514. this.token = null;
  515. },
  516. /* async getBaseList() {
  517. const that = this;
  518. const res = await this.$myRequest({
  519. url: '/project/baseUnitViews/getList',
  520. data: {
  521. language: this.$i18n.locale.toUpperCase()
  522. },
  523. });
  524. if (JSON.stringify(res.data) !== '{}') {
  525. that.projectList = res.data.baseUnitViews || [];
  526. }
  527. console.log('121474', that.projectList);
  528. }, */
  529. async getBaseList() {
  530. const that = this;
  531. const res = await this.$myRequest({
  532. url: '/project/coopCustomServices/getUnitViews',
  533. data: {
  534. language: this.$i18n.locale.toUpperCase()
  535. },
  536. });
  537. if (JSON.stringify(res.data) !== '{}') {
  538. that.projectList = res.data.baseUnitViewList || [];
  539. }
  540. },
  541. async getCountryDate() {
  542. const result = await this.$myRequest({
  543. url: '/sys/sysDicts',
  544. data: {
  545. type: 'unit_country_dict_en'
  546. },
  547. });
  548. if (result.status == '200') {
  549. this.countrydate = result.data[0];
  550. };
  551. const results = await this.$myRequest({
  552. url: '/sys/sysDicts',
  553. data: {
  554. type: 'CONTINENT_CODE_DICT_EN'
  555. },
  556. });
  557. if (results.status == '200') {
  558. this.Regiondate = results.data[0];
  559. };
  560. },
  561. async getSelecBaseList() {
  562. const res = await this.$myRequest({
  563. url: '/project/baseUnitViews/getUnitByNameForApp',
  564. data: {
  565. unitName: this.formLabelAlign.unitName,
  566. // unitName: "",
  567. language: this.$i18n.locale.toUpperCase()
  568. },
  569. });
  570. if (JSON.stringify(res.data) !== '{}') {
  571. this.projectList = res.data.baseUnitViews || [];
  572. } else if (JSON.stringify(res.data) == '{}') {
  573. this.projectList = [{
  574. unitName: this.$i18n.locale == 'en' ? 'NO Data' : '无数据',
  575. baseEntityId: '1'
  576. }];
  577. }
  578. },
  579. submit() {
  580. const that = this;
  581. if (this.formLabelAlign.unitName != this.selectMap.label) {
  582. this.activityIds = '';
  583. }
  584. this.$refs.uForm.validate(valid => {
  585. if (valid) {
  586. that.save();
  587. console.log('验证通过');
  588. addIntegral('activity_registration_successful', '10')
  589. addGrowth('activity_registration_successful', '10')
  590. } else {
  591. console.log('验证失败');
  592. }
  593. });
  594. },
  595. }
  596. }
  597. </script>
  598. <style lang="scss" scoped>
  599. .rf-category {
  600. background-color: $color-white;
  601. max-height: 150vh;
  602. min-height: 100vh;
  603. /* #ifdef APP-PLUS */
  604. // margin-top: calc(20upx + var(--status-bar-height));
  605. /* #endif */
  606. .uni-form {
  607. margin: 32upx;
  608. height: 100%;
  609. }
  610. .activityName {
  611. margin: 32upx;
  612. font-size: 32upx;
  613. font-weight: 700;
  614. }
  615. .title-icon {
  616. color: #ff0000;
  617. }
  618. .module-classify-border {
  619. margin: 10upx 0upx;
  620. background-color: #adadad;
  621. height: 1upx;
  622. }
  623. }
  624. </style>