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

perf:暂时关闭

parent 072475da
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
handleJump(url) { handleJump(url) {
if (url.includes("http") || url.includes("https")) { if (url.includes("http") || url.includes("https")) {
let siteid = Storage.get(2, "siteId") || 0; 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 { } else {
this.$router.push(url); this.$router.push(url);
} }
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
import { changePassWord } from "@/utils/js/validate"; import { changePassWord } from "@/utils/js/validate";
import { changePassword, LogoutInterface } from "@/api/user"; import { changePassword, LogoutInterface } from "@/api/user";
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
import { encrypt } from "@/utils"; // import { encrypt } from "@/utils";
import storage from "@/utils/js/Storage"; import storage from "@/utils/js/Storage";
export default { export default {
props: { props: {
...@@ -99,10 +99,15 @@ export default { ...@@ -99,10 +99,15 @@ export default {
let _this = this; let _this = this;
this.$refs.formData.validate(async (valid) => { this.$refs.formData.validate(async (valid) => {
if (valid) { if (valid) {
// let obj = {
// loginName: encrypt(this.form.loginName),
// oldPwd: encrypt(this.form.oldPwd),
// newPwd: encrypt(this.form.newPwd),
// };
let obj = { let obj = {
loginName: encrypt(this.form.loginName), loginName: this.form.loginName,
oldPwd: encrypt(this.form.oldPwd), oldPwd: this.form.oldPwd,
newPwd: encrypt(this.form.newPwd), newPwd: this.form.newPwd,
}; };
let res = await changePassword(obj); let res = await changePassword(obj);
let { code } = res; let { code } = res;
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<script> <script>
import { changeAccount, changePassWord } from "@/utils/js/validate"; import { changeAccount, changePassWord } from "@/utils/js/validate";
import { editPassword } from "@/api/user"; import { editPassword } from "@/api/user";
import { encrypt } from "@/utils"; // import { encrypt } from "@/utils";
export default { export default {
props: { props: {
visibleEditPwd: { visibleEditPwd: {
...@@ -101,9 +101,13 @@ export default { ...@@ -101,9 +101,13 @@ export default {
handleOk() { handleOk() {
this.$refs.formData.validate(async (valid) => { this.$refs.formData.validate(async (valid) => {
if (valid) { if (valid) {
// let obj = {
// loginName: encrypt(this.form.loginName),
// newPwd: encrypt(this.form.newPwd),
// };
let obj = { let obj = {
loginName: encrypt(this.form.loginName), loginName: this.form.loginName,
newPwd: encrypt(this.form.newPwd), newPwd: this.form.newPwd,
}; };
let res = await editPassword(obj); let res = await editPassword(obj);
if (res.code === 1) { if (res.code === 1) {
......
...@@ -69,7 +69,7 @@ import { getListByParentId } from "@/api/area.js"; ...@@ -69,7 +69,7 @@ import { getListByParentId } from "@/api/area.js";
import { userSave } from "@/api/userManagement.js"; import { userSave } from "@/api/userManagement.js";
import { TreeSelect } from "ant-design-vue"; import { TreeSelect } from "ant-design-vue";
const SHOW_PARENT = TreeSelect.SHOW_PARENT; //SHOW_ALL, SHOW_PARENT, SHOW_CHILD const SHOW_PARENT = TreeSelect.SHOW_PARENT; //SHOW_ALL, SHOW_PARENT, SHOW_CHILD
import { encrypt } from "@/utils"; // import { encrypt } from "@/utils";
export default { export default {
data() { data() {
return { return {
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
...this.form, ...this.form,
areaNames: JSON.stringify(this.form.areaNames), areaNames: JSON.stringify(this.form.areaNames),
areaCodes: this.form.areaNames.map((v) => v.areaCode).join(","), areaCodes: this.form.areaNames.map((v) => v.areaCode).join(","),
loginName: encrypt(this.form.loginName), // loginName: encrypt(this.form.loginName),
}); });
let { code, msg } = res; let { code, msg } = res;
if (code === 1) { if (code === 1) {
......
...@@ -93,7 +93,7 @@ import { changeAccount, changePassWord } from "@/utils/js/validate"; ...@@ -93,7 +93,7 @@ import { changeAccount, changePassWord } from "@/utils/js/validate";
import { getListByParentId } from "@/api/area.js"; import { getListByParentId } from "@/api/area.js";
import { userSave } from "@/api/userManagement.js"; import { userSave } from "@/api/userManagement.js";
import { TreeSelect } from "ant-design-vue"; 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 const SHOW_PARENT = TreeSelect.SHOW_PARENT; //SHOW_ALL, SHOW_PARENT, SHOW_CHILD
export default { export default {
data() { data() {
...@@ -192,8 +192,8 @@ export default { ...@@ -192,8 +192,8 @@ export default {
...this.form, ...this.form,
areaCodes: this.form.areaCodes.join(","), areaCodes: this.form.areaCodes.join(","),
areaNames: JSON.stringify(this.changeSelect), areaNames: JSON.stringify(this.changeSelect),
loginName: encrypt(this.form.loginName), // loginName: encrypt(this.form.loginName),
loginPwd: encrypt(this.form.loginPwd), // loginPwd: encrypt(this.form.loginPwd),
}); });
let { code, msg } = res; let { code, msg } = res;
if (code === 1) { 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