leisure-core 0.6.96 → 0.7.7

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.
@@ -138,71 +138,6 @@
138
138
  </div>
139
139
  </el-main>
140
140
  </el-container>
141
- <!-- <el-dialog
142
- title="修改密码"
143
- ref="elDialog"
144
- :visible.sync="showChangePwd"
145
- width="30%"
146
- :close-on-click-modal="false"
147
- @close="cancelChangePwd"
148
- :show-close="showClose"
149
- custom-class="rounded-dialog"
150
- center
151
- >
152
- <el-form
153
- :model="ruleForm"
154
- status-icon
155
- :rules="rules"
156
- ref="ruleForm"
157
- label-width="100px"
158
- class="demo-ruleForm"
159
- >
160
- <el-form-item label="新密码" prop="pwd">
161
- <el-input
162
- type="password"
163
- v-model="ruleForm.pwd"
164
- placeholder="请输入新密码"
165
- autocomplete="off"
166
- ></el-input>
167
- </el-form-item>
168
- <el-form-item label="确认密码" prop="confirmPwd">
169
- <el-input
170
- type="password"
171
- v-model="ruleForm.confirmPwd"
172
- placeholder="请输入确认密码"
173
- autocomplete="off"
174
- ></el-input>
175
- </el-form-item>
176
- </el-form>
177
- <div
178
- ref="pwdref"
179
- style="display: flex; justify-content: center; color: red"
180
- >
181
- {{ pwdinfo }}
182
- </div>
183
- <div slot="footer">
184
- <el-button
185
- type="info"
186
- v-if="showClose"
187
- @click="cancelChangePwd('ruleForm')"
188
- >取 消</el-button
189
- >
190
- <el-button type="primary" @click="saveChangePwd('ruleForm')"
191
- >确认修改</el-button
192
- >
193
- </div>
194
- </el-dialog> -->
195
- <!-- <le-dialog-container :showDialog="showPerInfo" title="个人信息" width="30%">
196
- <le-list-form
197
- :formColumns="formColumns"
198
- :formData="perInfo"
199
- :columnsPerRow="1"
200
- :handleStatus="2"
201
- @closeDialog="cancelChangePerInfo"
202
- @saveData="savePerInfo"
203
- ></le-list-form>
204
- </le-dialog-container> -->
205
-
206
141
  <!-- 系统设置对话框 -->
207
142
  <el-dialog
208
143
  :visible.sync="sysSettingsVisible"
@@ -222,14 +157,6 @@
222
157
  label-width="100px"
223
158
  style="padding: 20px 0"
224
159
  >
225
- <!-- <el-form-item label="原密码" prop="oldPwd">
226
- <el-input
227
- v-model="sysPwdForm.oldPwd"
228
- type="password"
229
- placeholder="请输入原密码"
230
- show-password
231
- ></el-input>
232
- </el-form-item> -->
233
160
  <el-form-item label="新密码" prop="newPwd">
234
161
  <el-input
235
162
  v-model="sysPwdForm.newPwd"
@@ -313,7 +240,6 @@
313
240
  </template>
314
241
  </div>
315
242
  </el-dialog>
316
-
317
243
  <div v-show="contextMenuVisible">
318
244
  <ul
319
245
  :style="{ left: menuLeft + 'px', top: menuTop + 'px' }"
@@ -417,22 +343,6 @@ export default {
417
343
  // changeUid: "",
418
344
  tabNameCurrent: "",
419
345
  tabsAll: [],
420
- // ruleForm: {
421
- // pwd: "",
422
- // confirmPwd: "",
423
- // },
424
- // formColumns: [
425
- // { prop: "nick", label: "昵称" },
426
- // { prop: "phone", label: "手机号" },
427
- // ],
428
- // perInfo: {
429
- // nick: this.$store.getters.userinfo.nick,
430
- // phone: this.$store.getters.userinfo.phone,
431
- // },
432
- // rules: {
433
- // pwd: [{ validator: validatePass, trigger: "blur" }],
434
- // confirmPwd: [{ validator: validatePass2, trigger: "blur" }],
435
- // },
436
346
  //右键菜单
437
347
  contextMenuVisible: false,
438
348
  menuLeft: 0,
@@ -588,18 +498,6 @@ export default {
588
498
  }
589
499
  return item;
590
500
  });
591
-
592
- //代码2
593
- // this.menuData = this.$store.getters.menu;
594
- // this.menuData = this.$store.getters.menu.filter(function (item) {
595
- // if (item.children) {
596
- // item.children = item.children.filter(function (item1) {
597
- // return item1.ishide === 0;
598
- // });
599
- // }
600
- // return item;
601
- // });
602
-
603
501
  this.$emit("homeInit");
604
502
  document.addEventListener("keydown", this.handleKeyDown);
605
503
 
@@ -720,7 +618,6 @@ export default {
720
618
  },
721
619
  handleCommand(command) {
722
620
  if (command === "openSysSettings") {
723
- // 打开系统设置对话框,默认密码 tab
724
621
  this.sysSettingsTab = "pwd";
725
622
  this.sysPwdForm = { oldPwd: "", newPwd: "", confirmPwd: "" };
726
623
  this.sysPerForm = {
@@ -734,6 +631,15 @@ export default {
734
631
  this.$emit("command", command); // 抛出外部命令
735
632
  }
736
633
  },
634
+ changPwd() {
635
+ this.sysSettingsTab = "pwd";
636
+ this.sysPwdForm = { oldPwd: "", newPwd: "", confirmPwd: "" };
637
+ this.sysPerForm = {
638
+ nick: this.$store.getters.userinfo.nick || "",
639
+ phone: this.$store.getters.userinfo.phone || "",
640
+ };
641
+ this.sysSettingsVisible = true;
642
+ },
737
643
  // 系统设置 - 提交修改密码
738
644
  submitSysPwd() {
739
645
  this.$refs.sysPwdForm.validate((valid) => {
@@ -776,68 +682,11 @@ export default {
776
682
  this.$leTheme.set(skinName);
777
683
  this.$message.success("皮肤切换成功");
778
684
  },
779
- // changPwd() {
780
- // this.changeUid = this.$store.getters.userinfo.id;
781
- // this.ruleForm.pwd = "";
782
- // this.ruleForm.confirmPwd = "";
783
- // this.showChangePwd = true;
784
- // },
785
- // changPerson() {
786
- // this.changeUid = this.$store.getters.userinfo.id;
787
- // this.perInfo.nick = this.$store.getters.userinfo.nick;
788
- // this.perInfo.phone = this.$store.getters.userinfo.phone;
789
- // this.showPerInfo = true;
790
- // },
791
685
  validatePhone(phone) {
792
686
  const phoneRegex = /^1[3-9]\d{9}$/;
793
687
  return phoneRegex.test(phone);
794
688
  },
795
- // cancelChangePwd() {
796
- // this.showChangePwd = false;
797
- // this.changeUid = "";
798
- // this.ruleForm.pwd = "";
799
- // this.ruleForm.confirmPwd = "";
800
- // },
801
- // cancelChangePerInfo() {
802
- // this.showPerInfo = false;
803
- // this.perInfo.nick = "";
804
- // this.perInfo.phone = "";
805
- // },
806
- // savePerInfo(param) {
807
- // if (param.phone) {
808
- // if (!this.validatePhone(param.phone)) {
809
- // this.$message.error("请输入有效的手机号");
810
- // return;
811
- // }
812
- // }
813
-
814
- // if (!param.nick && !param.phone) {
815
- // this.$message.error("昵称和手机号至少填写一项");
816
- // return;
817
- // }
818
689
 
819
- // let params = {
820
- // uid: this.$store.getters.userinfo.id,
821
- // nick: param.nick,
822
- // phone: param.phone,
823
- // };
824
- // this.$emit("savePerInfo", params);
825
- // },
826
- // saveChangePwd(formName) {
827
- // this.$refs[formName].validate((valid) => {
828
- // if (valid) {
829
- // let params = {
830
- // pwd: this.ruleForm.pwd,
831
- // confirmPwd: this.ruleForm.confirmPwd,
832
- // uid: this.changeUid,
833
- // };
834
- // this.$emit("userChangePwd", params, this.changePwdAfter);
835
- // } else {
836
- // console.log("error submit!!");
837
- // return false;
838
- // }
839
- // });
840
- // },
841
690
  changePwdAfter(res) {
842
691
  if (res && res.data && res.data.code == "10000") {
843
692
  this.$message.success("更新成功");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.6.96",
3
+ "version": "0.7.07",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",