Compare commits
2 Commits
2ca7bdfc3c
...
f70b20fc8d
Author | SHA1 | Date | |
---|---|---|---|
f70b20fc8d | |||
7d79b23bcb |
@ -341,7 +341,7 @@ export default {
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
distinctionNum: 94021,
|
distinctionNum: window.location.port?window.location.port:0,
|
||||||
roleName: undefined,
|
roleName: undefined,
|
||||||
roleKey: undefined,
|
roleKey: undefined,
|
||||||
status: undefined
|
status: undefined
|
||||||
@ -579,7 +579,7 @@ export default {
|
|||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm: function() {
|
submitForm: function() {
|
||||||
this.$refs['form'].validate(valid => {
|
this.$refs['form'].validate(valid => {
|
||||||
this.form.distinctionNum = 94021
|
this.form.distinctionNum = window.location.port?window.location.port:0
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.roleId != undefined) {
|
if (this.form.roleId != undefined) {
|
||||||
this.form.menuIds = this.getMenuAllCheckedKeys()
|
this.form.menuIds = this.getMenuAllCheckedKeys()
|
||||||
|
@ -80,7 +80,7 @@ export default {
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
distinctionNum: 94021,
|
distinctionNum: window.location.port?window.location.port:0,
|
||||||
roleId: undefined,
|
roleId: undefined,
|
||||||
userName: undefined,
|
userName: undefined,
|
||||||
phonenumber: undefined
|
phonenumber: undefined
|
||||||
|
@ -72,7 +72,7 @@ export default {
|
|||||||
const userId = this.$route.params && this.$route.params.userId
|
const userId = this.$route.params && this.$route.params.userId
|
||||||
if (userId) {
|
if (userId) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAuthRoleA(userId, 94021).then((response) => {
|
getAuthRoleA(userId, window.location.port?window.location.port:0).then((response) => {
|
||||||
this.form = response.user
|
this.form = response.user
|
||||||
this.roles = response.roles
|
this.roles = response.roles
|
||||||
this.total = this.roles.length
|
this.total = this.roles.length
|
||||||
@ -104,7 +104,7 @@ export default {
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
const userId = this.form.userId
|
const userId = this.form.userId
|
||||||
const roleIds = this.roleIds.join(',')
|
const roleIds = this.roleIds.join(',')
|
||||||
updateAuthRoleA({ userId: userId, roleIds: roleIds, distinctionNum: 94021}).then((response) => {
|
updateAuthRoleA({ userId: userId, roleIds: roleIds, distinctionNum: window.location.port?window.location.port:0}).then((response) => {
|
||||||
this.$modal.msgSuccess('授权成功')
|
this.$modal.msgSuccess('授权成功')
|
||||||
this.close()
|
this.close()
|
||||||
})
|
})
|
||||||
|
@ -419,7 +419,7 @@ export default {
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
distinctionNum: 94021,
|
distinctionNum: window.location.port?window.location.port:0,
|
||||||
userName: undefined,
|
userName: undefined,
|
||||||
phonenumber: undefined,
|
phonenumber: undefined,
|
||||||
status: undefined,
|
status: undefined,
|
||||||
@ -576,7 +576,7 @@ export default {
|
|||||||
this.reset();
|
this.reset();
|
||||||
const user = {
|
const user = {
|
||||||
userId : parseStrEmpty(""),
|
userId : parseStrEmpty(""),
|
||||||
distinctionNum: window.location.port,
|
distinctionNum: window.location.port?window.location.port:0,
|
||||||
}
|
}
|
||||||
getUser(user).then(response => {
|
getUser(user).then(response => {
|
||||||
this.postOptions = response.posts;
|
this.postOptions = response.posts;
|
||||||
@ -591,7 +591,7 @@ export default {
|
|||||||
this.reset();
|
this.reset();
|
||||||
const user = {
|
const user = {
|
||||||
userId : row.userId || this.ids[0],
|
userId : row.userId || this.ids[0],
|
||||||
distinctionNum: window.location.port,
|
distinctionNum: window.location.port?window.location.port:0,
|
||||||
}
|
}
|
||||||
getUser(user).then(response => {
|
getUser(user).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
@ -613,7 +613,7 @@ export default {
|
|||||||
inputPattern: /^.{5,20}$/,
|
inputPattern: /^.{5,20}$/,
|
||||||
inputErrorMessage: "用户密码长度必须介于 5 和 20 之间"
|
inputErrorMessage: "用户密码长度必须介于 5 和 20 之间"
|
||||||
}).then(({ value }) => {
|
}).then(({ value }) => {
|
||||||
resetUserPwdA(row.userId, value, window.location.port).then(response => {
|
resetUserPwdA(row.userId, value, window.location.port?window.location.port:0).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功,新密码是:" + value);
|
this.$modal.msgSuccess("修改成功,新密码是:" + value);
|
||||||
});
|
});
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
@ -627,7 +627,7 @@ export default {
|
|||||||
submitForm: function() {
|
submitForm: function() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.form.distinctionNum = window.location.port
|
this.form.distinctionNum = window.location.port?window.location.port:0
|
||||||
if (this.form.userId != undefined) {
|
if (this.form.userId != undefined) {
|
||||||
updateUser(this.form).then(response => {
|
updateUser(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
@ -648,7 +648,7 @@ export default {
|
|||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const userIds = [row.userId] || this.ids;
|
const userIds = [row.userId] || this.ids;
|
||||||
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() {
|
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() {
|
||||||
const distinctionNum = window.location.port;
|
const distinctionNum = window.location.port?window.location.port:0;
|
||||||
// JSON.stringify(user)
|
// JSON.stringify(user)
|
||||||
return delUserA(userIds, distinctionNum);
|
return delUserA(userIds, distinctionNum);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user