Commit 6b382224 authored by “yiyousong”'s avatar “yiyousong”

perf:暂时关闭

parent 072475da
......@@ -99,7 +99,7 @@ export default {
handleJump(url) {
if (url.includes("http") || url.includes("https")) {
let siteid = Storage.get(2, "siteId") || 0;
location.href = `${url}?token=${this.token}&siteid=${siteid}`;
window.open(`${url}?token=${this.token}&siteid=${siteid}`, "_blank");
} else {
this.$router.push(url);
}
......
......@@ -41,7 +41,7 @@
import { changePassWord } from "@/utils/js/validate";
import { changePassword, LogoutInterface } from "@/api/user";
import { mapMutations } from "vuex";
import { encrypt } from "@/utils";
// import { encrypt } from "@/utils";
import storage from "@/utils/js/Storage";
export default {
props: {
......@@ -99,10 +99,15 @@ export default {
let _this = this;
this.$refs.formData.validate(async (valid) => {
if (valid) {
// let obj = {
// loginName: encrypt(this.form.loginName),
// oldPwd: encrypt(this.form.oldPwd),
// newPwd: encrypt(this.form.newPwd),
// };
let obj = {
loginName: encrypt(this.form.loginName),
oldPwd: encrypt(this.form.oldPwd),
newPwd: encrypt(this.form.newPwd),
loginName: this.form.loginName,
oldPwd: this.form.oldPwd,
newPwd: this.form.newPwd,
};
let res = await changePassword(obj);
let { code } = res;
......
......@@ -47,7 +47,7 @@
<script>
import { changeAccount, changePassWord } from "@/utils/js/validate";
import { editPassword } from "@/api/user";
import { encrypt } from "@/utils";
// import { encrypt } from "@/utils";
export default {
props: {
visibleEditPwd: {
......@@ -101,9 +101,13 @@ export default {
handleOk() {
this.$refs.formData.validate(async (valid) => {
if (valid) {
// let obj = {
// loginName: encrypt(this.form.loginName),
// newPwd: encrypt(this.form.newPwd),
// };
let obj = {
loginName: encrypt(this.form.loginName),
newPwd: encrypt(this.form.newPwd),
loginName: this.form.loginName,
newPwd: this.form.newPwd,
};
let res = await editPassword(obj);
if (res.code === 1) {
......
......@@ -69,7 +69,7 @@ import { getListByParentId } from "@/api/area.js";
import { userSave } from "@/api/userManagement.js";
import { TreeSelect } from "ant-design-vue";
const SHOW_PARENT = TreeSelect.SHOW_PARENT; //SHOW_ALL, SHOW_PARENT, SHOW_CHILD
import { encrypt } from "@/utils";
// import { encrypt } from "@/utils";
export default {
data() {
return {
......@@ -181,7 +181,7 @@ export default {
...this.form,
areaNames: JSON.stringify(this.form.areaNames),
areaCodes: this.form.areaNames.map((v) => v.areaCode).join(","),
loginName: encrypt(this.form.loginName),
// loginName: encrypt(this.form.loginName),
});
let { code, msg } = res;
if (code === 1) {
......
......@@ -93,7 +93,7 @@ import { changeAccount, changePassWord } from "@/utils/js/validate";
import { getListByParentId } from "@/api/area.js";
import { userSave } from "@/api/userManagement.js";
import { TreeSelect } from "ant-design-vue";
import { encrypt } from "@/utils";
// import { encrypt } from "@/utils";
const SHOW_PARENT = TreeSelect.SHOW_PARENT; //SHOW_ALL, SHOW_PARENT, SHOW_CHILD
export default {
data() {
......@@ -192,8 +192,8 @@ export default {
...this.form,
areaCodes: this.form.areaCodes.join(","),
areaNames: JSON.stringify(this.changeSelect),
loginName: encrypt(this.form.loginName),
loginPwd: encrypt(this.form.loginPwd),
// loginName: encrypt(this.form.loginName),
// loginPwd: encrypt(this.form.loginPwd),
});
let { code, msg } = res;
if (code === 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment