gds-plus-design-vue 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import o from "vue";
2
- import { n, m as l, c as u, g as h, a as f, u as g, r as w, b as v, l as b, d as A, e as y, f as R } from "./index.47ab5def.mjs";
2
+ import { n, m as l, c as u, g as h, a as f, u as g, r as w, b as v, l as A, d as b, e as y, f as R } from "./index.4030a33f.mjs";
3
3
  const C = {
4
4
  name: "GdVerificationCode",
5
5
  props: {
@@ -132,7 +132,9 @@ var x = function() {
132
132
  var e = this, t = e._self._c;
133
133
  return t("el-dialog", { attrs: { visible: e.visible, width: e.width, "before-close": e.close, "append-to-body": !0, "show-close": !1, center: !0, top: e.dialogTop }, on: { "update:visible": function(s) {
134
134
  e.visible = s;
135
- } } }, [t("div", { staticClass: "dialog-code" }, [t("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "100px", "label-position": "top" } }, [t("el-form-item", { staticStyle: { "margin-bottom": "0" }, attrs: { prop: "code", rules: [{ required: !0, message: e.$i18nt("gd.login.codeTip"), trigger: "blur" }] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.login.codeTip") }, nativeOn: { keyup: function(s) {
135
+ } } }, [t("div", { staticClass: "dialog-code" }, [t("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "100px", "label-position": "top" }, nativeOn: { submit: function(s) {
136
+ s.preventDefault();
137
+ } } }, [t("el-form-item", { staticStyle: { "margin-bottom": "0" }, attrs: { prop: "code", rules: [{ required: !0, message: e.$i18nt("gd.login.codeTip"), trigger: "blur" }] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.login.codeTip") }, nativeOn: { keyup: function(s) {
136
138
  return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.save.apply(null, arguments);
137
139
  } }, model: { value: e.ruleForm.code, callback: function(s) {
138
140
  e.$set(e.ruleForm, "code", s);
@@ -143,7 +145,7 @@ var x = function() {
143
145
  F,
144
146
  !1,
145
147
  null,
146
- "474b04bb",
148
+ "3cfce932",
147
149
  null,
148
150
  null
149
151
  );
@@ -382,7 +384,9 @@ var L = function() {
382
384
  var e = this, t = e._self._c;
383
385
  return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", attrs: { visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px" }, on: { "update:visible": function(s) {
384
386
  e.visible = s;
385
- }, close: e.handleCancel } }, [t("template", { slot: "title" }, [t("div", { staticClass: "gd-dialog-head" }, [t("div", { staticClass: "dialog-head-title" }, [e._v(e._s(e.title))])])]), t("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "100px", "label-position": "top" } }, [e.type != 3 ? t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { margin: "10px 40px 20px" } }, [e.type == 1 ? t("span", { style: e.styleTitle }, [e._v(" " + e._s(e.loginTitle) + " ")]) : e._e(), !e.isShow && e.type == 2 ? e._e() : [t("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e.type == 1 || !e.isShow, expression: "type == 1 || !isShow" }], attrs: { label: e.$i18nt("gd.account.userName", "\u8D26\u53F7"), porp: "account", rules: [
387
+ }, close: e.handleCancel } }, [t("template", { slot: "title" }, [t("div", { staticClass: "gd-dialog-head" }, [t("div", { staticClass: "dialog-head-title" }, [e._v(e._s(e.title))])])]), t("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "100px", "label-position": "top" }, nativeOn: { submit: function(s) {
388
+ s.preventDefault();
389
+ } } }, [e.type != 3 ? t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticStyle: { margin: "10px 40px 20px" } }, [e.type == 1 ? t("span", { style: e.styleTitle }, [e._v(" " + e._s(e.loginTitle) + " ")]) : e._e(), !e.isShow && e.type == 2 ? e._e() : [t("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e.type == 1 || !e.isShow, expression: "type == 1 || !isShow" }], attrs: { label: e.$i18nt("gd.account.userName", "\u8D26\u53F7"), porp: "account", rules: [
386
390
  { required: !0, message: e.$i18nt("gd.account.userNameTip", "\u8BF7\u8F93\u5165\u8D26\u53F7") },
387
391
  { validator: e.handleUsernameOrEmail }
388
392
  ] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.account.userNameTip", "\u8BF7\u8F93\u5165\u8D26\u53F7"), disabled: e.isShow, size: "medium" }, model: { value: e.ruleForm.account, callback: function(s) {
@@ -421,7 +425,7 @@ var L = function() {
421
425
  k,
422
426
  !1,
423
427
  null,
424
- "76bd364f",
428
+ "036a57bd",
425
429
  null,
426
430
  null
427
431
  );
@@ -505,7 +509,7 @@ const G = {
505
509
  }, 200);
506
510
  },
507
511
  getloginByWeChatWork(i) {
508
- b({ code: i }).then((e) => {
512
+ A({ code: i }).then((e) => {
509
513
  if (e.success) {
510
514
  o.ls.set(ACCESS_TOKEN, e.data.accessToken), this.$store.commit("SET_TOKEN", e.data.accessToken), this.isInitialize = e.data.isInitialize, this.pwdExpiration = e.data.pwdExpiration, this.wxUserId = e.data.wxUserId, this.setDate = new Date(this.pwdExpiration), this.currentTime = new Date(e.timestamp);
511
515
  let t = 24 * 60 * 60 * 1e3, s = this.setDate - this.currentTime + t, r = parseInt(s / (1e3 * 60 * 60 * 24));
@@ -562,7 +566,7 @@ const G = {
562
566
  password: this.ruleForm.password,
563
567
  wxCorpId: this.wxUserId
564
568
  };
565
- i && (this.confirmLoading = !0, A(e).then((t) => {
569
+ i && (this.confirmLoading = !0, b(e).then((t) => {
566
570
  t.success ? (t.data.code == -1 ? this.$message.error(t.data.msg) : t.data.code == 1 ? this.$message.success(t.data.msg) : this.$message.success(t.data.msg), this.handleCancel()) : (this.$message.error(this.$i18nt("gd.https.operateFail") + t.message), this.$refs.wx_qrcode.innerHTML = "");
567
571
  }));
568
572
  });
@@ -573,7 +577,9 @@ var V = function() {
573
577
  var e = this, t = e._self._c;
574
578
  return t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", attrs: { visible: e.visible, width: e.titleWidth, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px" }, on: { "update:visible": function(s) {
575
579
  e.visible = s;
576
- }, closed: e.handleCancel } }, [t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "main", style: e.style }, [e.num == 1 ? t("div", { ref: "wx_qrcode", staticStyle: { height: "380px" }, attrs: { id: "wx_qrcode" } }) : e.num == 2 ? t("div", [t("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "100px", "label-position": "top" } }, [t("a-form-item", { attrs: { label: e.$i18nt("gd.system.account.loginID"), prop: "account", rules: [
580
+ }, closed: e.handleCancel } }, [t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "main", style: e.style }, [e.num == 1 ? t("div", { ref: "wx_qrcode", staticStyle: { height: "380px" }, attrs: { id: "wx_qrcode" } }) : e.num == 2 ? t("div", [t("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "100px", "label-position": "top" }, nativeOn: { submit: function(s) {
581
+ s.preventDefault();
582
+ } } }, [t("a-form-item", { attrs: { label: e.$i18nt("gd.system.account.loginID"), prop: "account", rules: [
577
583
  { required: !0, message: e.$i18nt("gd.account.userNameTip", "\u8BF7\u8F93\u5165\u8D26\u53F7") },
578
584
  { validator: e.handleUsernameOrEmail }
579
585
  ] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.account.userNameTip", "\u8BF7\u8F93\u5165\u8D26\u53F7") }, model: { value: e.ruleForm.account, callback: function(s) {
@@ -587,7 +593,7 @@ var V = function() {
587
593
  Z,
588
594
  !1,
589
595
  null,
590
- "f430111e",
596
+ "8400fc32",
591
597
  null,
592
598
  null
593
599
  );
@@ -873,7 +879,9 @@ const M = {
873
879
  };
874
880
  var B = function() {
875
881
  var e = this, t = e._self._c;
876
- return t("div", { staticClass: "main", style: e.style }, [t("div", { staticClass: "mode" }, [t("div", { staticClass: "item", class: e.customActiveKey === "paw" ? "item-active" : "item-noactive" }, [e._v(" " + e._s(e.$i18nt("gd.login.title")) + " ")]), t("div", { staticClass: "error" }, [e.isLoginError ? t("el-alert", { attrs: { title: e.accountLoginErrMsg, type: "error", "show-icon": "", closable: !1 } }) : e._e()], 1)]), t("el-form", { ref: "ruleForm", staticClass: "user-login", attrs: { model: e.ruleForm, "label-width": "100px", "label-position": "top", id: "formLogin" } }, [t("el-form-item", { staticStyle: { height: "96px", "margin-bottom": "0" }, attrs: { prop: "account", rules: [{ required: !0, message: e.$i18nt("gd.login.accountTip"), trigger: "blur" }] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.login.accountTip") }, nativeOn: { keyup: function(s) {
882
+ return t("div", { staticClass: "main", style: e.style }, [t("div", { staticClass: "mode" }, [t("div", { staticClass: "item", class: e.customActiveKey === "paw" ? "item-active" : "item-noactive" }, [e._v(" " + e._s(e.$i18nt("gd.login.title")) + " ")]), t("div", { staticClass: "error" }, [e.isLoginError ? t("el-alert", { attrs: { title: e.accountLoginErrMsg, type: "error", "show-icon": "", closable: !1 } }) : e._e()], 1)]), t("el-form", { ref: "ruleForm", staticClass: "user-login", attrs: { model: e.ruleForm, "label-width": "100px", "label-position": "top", id: "formLogin" }, nativeOn: { submit: function(s) {
883
+ s.preventDefault();
884
+ } } }, [t("el-form-item", { staticStyle: { height: "96px", "margin-bottom": "0" }, attrs: { prop: "account", rules: [{ required: !0, message: e.$i18nt("gd.login.accountTip"), trigger: "blur" }] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.login.accountTip") }, nativeOn: { keyup: function(s) {
877
885
  return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.submitForm.apply(null, arguments);
878
886
  } }, model: { value: e.ruleForm.account, callback: function(s) {
879
887
  e.$set(e.ruleForm, "account", s);
@@ -892,7 +900,7 @@ var B = function() {
892
900
  O,
893
901
  !1,
894
902
  null,
895
- "10b2afe1",
903
+ "43600593",
896
904
  null,
897
905
  null
898
906
  );