工业视觉平台

This commit is contained in:
卢序振 2024-07-11 14:01:21 +08:00
parent ed7892feba
commit 2538e0ba4d

View File

@ -576,7 +576,7 @@ export default {
this.reset();
const user = {
userId : parseStrEmpty(""),
distinctionNum: 94021,
distinctionNum: window.location.port,
}
getUser(user).then(response => {
this.postOptions = response.posts;
@ -591,7 +591,7 @@ export default {
this.reset();
const user = {
userId : row.userId || this.ids[0],
distinctionNum: 94021,
distinctionNum: window.location.port,
}
getUser(user).then(response => {
this.form = response.data;
@ -613,7 +613,7 @@ export default {
inputPattern: /^.{5,20}$/,
inputErrorMessage: "用户密码长度必须介于 5 和 20 之间"
}).then(({ value }) => {
resetUserPwdA(row.userId, value, 94021).then(response => {
resetUserPwdA(row.userId, value, window.location.port).then(response => {
this.$modal.msgSuccess("修改成功,新密码是:" + value);
});
}).catch(() => {});
@ -627,7 +627,7 @@ export default {
submitForm: function() {
this.$refs["form"].validate(valid => {
if (valid) {
this.form.distinctionNum = 94021
this.form.distinctionNum = window.location.port
if (this.form.userId != undefined) {
updateUser(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
@ -648,7 +648,7 @@ export default {
handleDelete(row) {
const userIds = [row.userId] || this.ids;
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() {
const distinctionNum = 94021;
const distinctionNum = window.location.port;
// JSON.stringify(user)
return delUserA(userIds, distinctionNum);
}).then(() => {