diff --git a/Api/Ewide.Application/Entity/BsHouseProjectInfo.cs b/Api/Ewide.Application/Entity/BsHouseProjectInfo.cs index b456dea..1f294e2 100644 --- a/Api/Ewide.Application/Entity/BsHouseProjectInfo.cs +++ b/Api/Ewide.Application/Entity/BsHouseProjectInfo.cs @@ -29,7 +29,7 @@ namespace Ewide.Application.Entity [Comment("区域ID")] [MaxLength(36)] [Required] - public string AreaId { get; set; } + public string AreaCode { get; set; } [Comment("类型")] [Required] diff --git a/Api/Ewide.Application/Service/HouseProjectInfo/Dto/HouseProjectInfoInput.cs b/Api/Ewide.Application/Service/HouseProjectInfo/Dto/HouseProjectInfoInput.cs index 3867919..636af34 100644 --- a/Api/Ewide.Application/Service/HouseProjectInfo/Dto/HouseProjectInfoInput.cs +++ b/Api/Ewide.Application/Service/HouseProjectInfo/Dto/HouseProjectInfoInput.cs @@ -13,7 +13,7 @@ namespace Ewide.Application.Service.HouseProjectInfo.Dto public string Name { get; set; } public string Note { get; set; } public int Sort { get; set; } - public string AreaId { get; set; } + public string AreaCode { get; set; } public int Type { get; set; } } public class AddProjectInput : HouseProjectInfoInput diff --git a/Api/Ewide.Application/Service/HouseProjectInfo/Dto/HouseProjectOutput.cs b/Api/Ewide.Application/Service/HouseProjectInfo/Dto/HouseProjectOutput.cs index 9558ace..307b548 100644 --- a/Api/Ewide.Application/Service/HouseProjectInfo/Dto/HouseProjectOutput.cs +++ b/Api/Ewide.Application/Service/HouseProjectInfo/Dto/HouseProjectOutput.cs @@ -12,7 +12,7 @@ namespace Ewide.Application.Service.HouseProjectInfo.Dto public string Name { get; set; } public string Note { get; set; } public int Sort { get; set; } - public string AreaId { get; set; } + public string AreaCode { get; set; } public string AreaName { get; set; } public int Type { get; set; } } diff --git a/Api/Ewide.Core/Entity/SysUser.cs b/Api/Ewide.Core/Entity/SysUser.cs index b668ef1..8c292c8 100644 --- a/Api/Ewide.Core/Entity/SysUser.cs +++ b/Api/Ewide.Core/Entity/SysUser.cs @@ -30,6 +30,13 @@ namespace Ewide.Core [Required] public string Password { get; set; } + /// + /// 密码安全级别,在注册和修改密码时生成 + /// + [Comment("密码安全级别")] + [Required] + public int SecurityLevel { get; set; } + /// /// 昵称 /// diff --git a/Api/Ewide.Core/Ewide.Core.xml b/Api/Ewide.Core/Ewide.Core.xml index 3cbc0f1..ee9bdb5 100644 --- a/Api/Ewide.Core/Ewide.Core.xml +++ b/Api/Ewide.Core/Ewide.Core.xml @@ -1679,6 +1679,11 @@ 密码(采用MD5加密) + + + 密码安全级别,在注册和修改密码时生成 + + 昵称 @@ -3080,6 +3085,11 @@ 账号 + + + 密码安全级别 + + 昵称 @@ -6604,11 +6614,6 @@ 用户Id - - - 用户Id - - 密码 @@ -6824,7 +6829,7 @@ - + 更新用户信息 @@ -6859,7 +6864,7 @@ - + 修改用户头像(未实现) diff --git a/Api/Ewide.Core/SeedDataXml/SysUser.xml b/Api/Ewide.Core/SeedDataXml/SysUser.xml index b79be0c..5601d21 100644 --- a/Api/Ewide.Core/SeedDataXml/SysUser.xml +++ b/Api/Ewide.Core/SeedDataXml/SysUser.xml @@ -7,6 +7,7 @@ false superAdmin e10adc3949ba59abbe56e057f20f883e + 1 superAdmin 1986-07-26T00:00:00 1 @@ -22,6 +23,7 @@ false admin e10adc3949ba59abbe56e057f20f883e + 1 admin 1986-07-26T00:00:00 2 @@ -37,6 +39,7 @@ false zuohuaijun e10adc3949ba59abbe56e057f20f883e + 1 zuohuaijun 1986-07-26T00:00:00 1 diff --git a/Api/Ewide.Core/Service/Auth/AuthService.cs b/Api/Ewide.Core/Service/Auth/AuthService.cs index beb77f9..0ff2a2c 100644 --- a/Api/Ewide.Core/Service/Auth/AuthService.cs +++ b/Api/Ewide.Core/Service/Auth/AuthService.cs @@ -115,6 +115,15 @@ namespace Ewide.Core.Service var httpContext = App.GetService().HttpContext; var loginOutput = user.Adapt(); + // 隐藏手机号/邮箱中间几位 + loginOutput.Phone = String.IsNullOrEmpty(loginOutput.Phone) ? loginOutput.Phone + : loginOutput.Phone.Substring(0, 3) + "****" + loginOutput.Phone.Substring(7, 4); + loginOutput.Email = String.IsNullOrEmpty(loginOutput.Email) ? loginOutput.Email + : String.Join("@", loginOutput.Email.Split('@').Select((p, i) => + { + return i == 0 ? (p.Length > 3 ? p.Substring(0, 3).PadRight(p.Length, '*') : "".PadRight(3, '*')) : p; + })); + loginOutput.LastLoginTime = user.LastLoginTime = DateTime.Now; var ip = httpContext.Request.Headers["X-Real-IP"].FirstOrDefault(); loginOutput.LastLoginIp = user.LastLoginIp = string.IsNullOrEmpty(user.LastLoginIp) ? httpContext.GetRemoteIpAddressToIPv4() : ip; @@ -153,18 +162,18 @@ namespace Ewide.Core.Service } // 增加登录日志 - await new SysLogVis - { - Name = "登录", - Success = true, - Message = "登录成功", - Ip = loginOutput.LastLoginIp, - Browser = loginOutput.LastLoginBrowser, - Os = loginOutput.LastLoginOs, - VisType = 1, - VisTime = loginOutput.LastLoginTime, - Account = loginOutput.Account - }.InsertAsync(); + //await new SysLogVis + //{ + // Name = "登录", + // Success = true, + // Message = "登录成功", + // Ip = loginOutput.LastLoginIp, + // Browser = loginOutput.LastLoginBrowser, + // Os = loginOutput.LastLoginOs, + // VisType = 1, + // VisTime = loginOutput.LastLoginTime, + // Account = loginOutput.Account + //}.InsertAsync(); return loginOutput; } diff --git a/Api/Ewide.Core/Service/Auth/Dto/LoginOutput.cs b/Api/Ewide.Core/Service/Auth/Dto/LoginOutput.cs index 4dfea66..e066ed6 100644 --- a/Api/Ewide.Core/Service/Auth/Dto/LoginOutput.cs +++ b/Api/Ewide.Core/Service/Auth/Dto/LoginOutput.cs @@ -20,6 +20,11 @@ namespace Ewide.Core.Service /// public string Account { get; set; } + /// + /// 密码安全级别 + /// + public int SecurityLevel { get; set; } + /// /// 昵称 /// diff --git a/Api/Ewide.Core/Service/User/Dto/UserInput.cs b/Api/Ewide.Core/Service/User/Dto/UserInput.cs index 13b0740..c31572b 100644 --- a/Api/Ewide.Core/Service/User/Dto/UserInput.cs +++ b/Api/Ewide.Core/Service/User/Dto/UserInput.cs @@ -46,11 +46,13 @@ namespace Ewide.Core.Service /// /// 邮箱 /// + [RegularExpression(@"^\w{3,}(\.\w+)*@[A-z0-9]+(\.[A-z]{2,5}){1,2}$", ErrorMessage = "邮箱格式不正确")] public virtual string Email { get; set; } /// /// 手机 /// + [RegularExpression(@"^((13[0-9])|(14[5,7])|(15[^4,\\D])|(17[0,1,3,6-8])|(18[0-9])|(19[8,9])|(166))[0-9]{8}$", ErrorMessage = "手机号格式不正确")] public virtual string Phone { get; set; } /// @@ -120,12 +122,6 @@ namespace Ewide.Core.Service public class ChangePasswordUserInput { - /// - /// 用户Id - /// - [Required(ErrorMessage = "用户Id不能为空")] - public string Id { get; set; } - /// /// 密码 /// diff --git a/Api/Ewide.Core/Service/User/ISysUserService.cs b/Api/Ewide.Core/Service/User/ISysUserService.cs index e0f5f1a..f712b30 100644 --- a/Api/Ewide.Core/Service/User/ISysUserService.cs +++ b/Api/Ewide.Core/Service/User/ISysUserService.cs @@ -22,9 +22,9 @@ namespace Ewide.Core.Service Task QueryUserPageList([FromQuery] UserInput input); Task ResetUserPwd(QueryUserInput input); Task SaveAuthUserToUser(AuthUserInput authUser, UserInput sysUser); - Task UpdateAvatar(UpdateUserInput input); + Task UpdateAvatar(UserInput input); Task UpdateUser(UpdateUserInput input); - Task UpdateUserInfo(UpdateUserInput input); + Task UpdateUserInfo(UserInput input); Task UpdateUserPwd(ChangePasswordUserInput input); } } \ No newline at end of file diff --git a/Api/Ewide.Core/Service/User/SysUserService.cs b/Api/Ewide.Core/Service/User/SysUserService.cs index bc45545..880b61e 100644 --- a/Api/Ewide.Core/Service/User/SysUserService.cs +++ b/Api/Ewide.Core/Service/User/SysUserService.cs @@ -230,16 +230,18 @@ namespace Ewide.Core.Service /// /// [HttpPost("/sysUser/updateInfo")] - public async Task UpdateUserInfo(UpdateUserInput input) + public async Task UpdateUserInfo(UserInput input) { var user = input.Adapt(); + user.Id = _userManager.UserId; await user.UpdateExcludeAsync(new string[] { nameof(SysUser.Account), + nameof(SysUser.SecurityLevel), nameof(SysUser.Name), nameof(SysUser.Password), nameof(SysUser.AdminType), nameof(SysUser.Status), - // 邮箱和手机号作为可能登录的方式,不能在此处直接进行修改 + // 邮箱和手机号作为安全验证的方式,不能在此处直接进行修改 nameof(SysUser.Phone), nameof(SysUser.Email) }, true); @@ -253,7 +255,7 @@ namespace Ewide.Core.Service [HttpPost("/sysUser/updatePwd")] public async Task UpdateUserPwd(ChangePasswordUserInput input) { - var user = await _sysUserRep.FirstOrDefaultAsync(u => u.Id == input.Id); + var user = await _sysUserRep.FirstOrDefaultAsync(u => u.Id == _userManager.UserId); if (MD5Encryption.Encrypt(input.Password) != user.Password) throw Oops.Oh(ErrorCode.D1004); if (MD5Encryption.Encrypt(input.NewPassword).Equals(user.Password)) @@ -301,9 +303,9 @@ namespace Ewide.Core.Service /// /// [HttpPost("/sysUser/updateAvatar")] - public async Task UpdateAvatar(UpdateUserInput input) + public async Task UpdateAvatar(UserInput input) { - var user = await _sysUserRep.FirstOrDefaultAsync(u => u.Id == input.Id); + var user = await _sysUserRep.FirstOrDefaultAsync(u => u.Id == _userManager.UserId); // 调用文件上传 //sysFileInfoService.assertFile(input.Avatar); user.Avatar = input.Avatar; diff --git a/Api/Ewide.Web.Core/core.settings.json b/Api/Ewide.Web.Core/core.settings.json index 41b6a0c..d6ee02a 100644 --- a/Api/Ewide.Web.Core/core.settings.json +++ b/Api/Ewide.Web.Core/core.settings.json @@ -6,7 +6,9 @@ "sysFileInfo:upload", "sysFileInfo:download", "sysFileInfo:preview", - "sysUser:updateInfo" + "sysUser:updateInfo", + "sysUser:updatePwd", + "sysUser:updateAvatar" ] } } \ No newline at end of file diff --git a/Web/src/assets/style/app.less b/Web/src/assets/style/app.less index 6ceea2a..6eafc94 100644 --- a/Web/src/assets/style/app.less +++ b/Web/src/assets/style/app.less @@ -3,6 +3,7 @@ @import './lib/container.less'; @import './lib/align.less'; @import './lib/font-size.less'; +@import './lib/text-color.less'; @import './lib/margin.less'; @import './lib/width-height.less'; @import './lib/scrollbar.less'; @@ -15,6 +16,7 @@ .yo-nav-theme--light { .light(); } +@import './lib/button.less'; @import './lib/card.less'; @import './lib/table.less'; @import './lib/list.less'; diff --git a/Web/src/assets/style/lib/button.less b/Web/src/assets/style/lib/button.less new file mode 100644 index 0000000..fbc571b --- /dev/null +++ b/Web/src/assets/style/lib/button.less @@ -0,0 +1,5 @@ +@import (reference) '~@/assets/style/extend.less'; +@btn-default-border: @border-color-split; +.ant-btn { + box-shadow: none; +} diff --git a/Web/src/assets/style/lib/form.less b/Web/src/assets/style/lib/form.less index a4508aa..9f53965 100644 --- a/Web/src/assets/style/lib/form.less +++ b/Web/src/assets/style/lib/form.less @@ -4,25 +4,17 @@ width: 660px; margin: 0 auto; } - h1, .h1, - h2, .h2, - h3, .h3, - h4, .h4, - h5, .h5, - h6, .h6 { color: darken(@white, 40%); } - h3, .h3 { font-size: 16px; } - h4, .h4 { font-size: 15px; } diff --git a/Web/src/assets/style/lib/list.less b/Web/src/assets/style/lib/list.less index 3ab9fab..3343e02 100644 --- a/Web/src/assets/style/lib/list.less +++ b/Web/src/assets/style/lib/list.less @@ -1,10 +1,14 @@ @import (reference) '~@/assets/style/extend.less'; +.ant-list-bordered { + border-color: @border-color-split; + background-color: @white; +} .yo-list { &-content--h { display: flex; align-items: center; &--item { - min-width: 100px; + min-width: 120px; margin-left: @padding-xl; >span { line-height: 20px; diff --git a/Web/src/assets/style/lib/text-color.less b/Web/src/assets/style/lib/text-color.less new file mode 100644 index 0000000..b4e431f --- /dev/null +++ b/Web/src/assets/style/lib/text-color.less @@ -0,0 +1,32 @@ +@import (reference) '~@/assets/style/extend.less'; +.text-primary { + color: @primary-color; +} +.text-info { + color: @info-color; +} +.text-success { + color: @success-color; +} +.text-processing { + color: @processing-color; +} +.text-error, +.text-danger { + color: @error-color; +} +.text-highlight { + color: @highlight-color; +} +.text-warning { + color: @warning-color; +} +.text-normal { + color: @normal-color; +} +.text-white { + color: @white; +} +.text-black { + color: @black; +} diff --git a/Web/src/assets/style/main.less b/Web/src/assets/style/main.less index 3992476..849aa4d 100644 --- a/Web/src/assets/style/main.less +++ b/Web/src/assets/style/main.less @@ -95,6 +95,8 @@ box-shadow: 0 0 0 2px @white; } &--name { + font-weight: bolder; + position: absolute; left: 32px + @padding-sm * 2; diff --git a/Web/src/common/api/index.js b/Web/src/common/api/index.js index 907d351..dbb9ed3 100644 --- a/Web/src/common/api/index.js +++ b/Web/src/common/api/index.js @@ -18,6 +18,7 @@ axios.defaults.baseURL = '/api' * api.getItemGroupType(parmas).then(...) */ import urls from './requests' +import { settings } from 'nprogress' const initInstance = (options) => { const instance = axios @@ -45,10 +46,12 @@ const errorNotification = ({ code, message }) => { switch (message.constructor) { case Array: message.map(p => { - app.$notification.error({ - duration: 30, - message: p.field, - description: p.messages.join('/'), + setTimeout(() => { + app.$notification.error({ + duration: 30, + message: p.field, + description: p.messages.join('/'), + }) }) }) break diff --git a/Web/src/components/yoModalForm/index.js b/Web/src/components/yoModalForm/index.js index c5f4a6b..f1a6cc8 100644 --- a/Web/src/components/yoModalForm/index.js +++ b/Web/src/components/yoModalForm/index.js @@ -13,6 +13,9 @@ export default { }, action: { type: Function + }, + successMessage: { + type: String } }, @@ -124,7 +127,7 @@ export default { && this.action(data) .then(({ success }) => { if (success) { - this.$message.success('保存成功'); + this.$message.success(this.successMessage || '保存成功'); this.onClose(); this.$emit('ok'); } diff --git a/Web/src/pages/business/house/houseCode/form.vue b/Web/src/pages/business/house/houseCode/form.vue new file mode 100644 index 0000000..cb8f26d --- /dev/null +++ b/Web/src/pages/business/house/houseCode/form.vue @@ -0,0 +1,129 @@ + + \ No newline at end of file diff --git a/Web/src/pages/business/house/houseCode/index.vue b/Web/src/pages/business/house/houseCode/index.vue new file mode 100644 index 0000000..a10161b --- /dev/null +++ b/Web/src/pages/business/house/houseCode/index.vue @@ -0,0 +1,206 @@ + + \ No newline at end of file diff --git a/Web/src/pages/business/houseprojectinfo/form.vue b/Web/src/pages/business/house/project/form.vue similarity index 90% rename from Web/src/pages/business/houseprojectinfo/form.vue rename to Web/src/pages/business/house/project/form.vue index 67f82aa..b65d1a6 100644 --- a/Web/src/pages/business/houseprojectinfo/form.vue +++ b/Web/src/pages/business/house/project/form.vue @@ -12,7 +12,7 @@ - + @@ -43,16 +43,18 @@ export default { data() { return { /** 表单数据 */ - form: { areaId: '' }, + form: {}, /** 验证格式 */ rules: { /* ... */ note: [{ required: true, message: '请输入备注' }], + name: [{ required: true, message: '请输入项目名称' }], + sort: [{ required: true, message: '请输入排序' }], + areaCode: [{ required: true, message: '请选择所属区域' }], }, /** 加载异步数据状态 */ loading: false, - /** 其他成员属性 */ areaData: [], /* ... */ @@ -96,10 +98,9 @@ export default { ...defaultForm, ...params.record, /** 在此处添加其他默认数据转换 */ - areaId: areaCode[3], + areaCode, /* ... */ }); - this.areaCode = areaCode; }, /** @@ -111,7 +112,7 @@ export default { this.$refs.form.validate((valid) => { if (valid) { const record = this.$_.cloneDeep(this.form); - + record.areaCode = record.areaCode[record.areaCode.length - 1]; /** 验证通过后可以对数据进行转换得到想要提交的格式 */ /* ... */ @@ -162,6 +163,9 @@ export default { return res.data; }); }, + displayRender({ labels }) { + return labels[labels.length - 1]; + }, /* ... */ }, }; diff --git a/Web/src/pages/business/houseprojectinfo/index.vue b/Web/src/pages/business/house/project/index.vue similarity index 100% rename from Web/src/pages/business/houseprojectinfo/index.vue rename to Web/src/pages/business/house/project/index.vue diff --git a/Web/src/pages/account/index.vue b/Web/src/pages/system/account/index.vue similarity index 60% rename from Web/src/pages/account/index.vue rename to Web/src/pages/system/account/index.vue index 3009fac..d8f1ecf 100644 --- a/Web/src/pages/account/index.vue +++ b/Web/src/pages/system/account/index.vue @@ -1,10 +1,10 @@ + \ No newline at end of file diff --git a/Web/src/pages/system/account/setting/safety/password.vue b/Web/src/pages/system/account/setting/safety/password.vue new file mode 100644 index 0000000..6e91b85 --- /dev/null +++ b/Web/src/pages/system/account/setting/safety/password.vue @@ -0,0 +1,126 @@ + + \ No newline at end of file diff --git a/Web/src/pages/system/app/addForm.vue b/Web/src/pages/system/app/addForm.vue deleted file mode 100644 index 2d1ce72..0000000 --- a/Web/src/pages/system/app/addForm.vue +++ /dev/null @@ -1,71 +0,0 @@ - - \ No newline at end of file diff --git a/Web/src/pages/system/app/editForm.vue b/Web/src/pages/system/app/editForm.vue deleted file mode 100644 index 76f613d..0000000 --- a/Web/src/pages/system/app/editForm.vue +++ /dev/null @@ -1,74 +0,0 @@ - - \ No newline at end of file diff --git a/Web/src/pages/system/config/form.vue b/Web/src/pages/system/config/form.vue index 93ec7d1..dacdc2a 100644 --- a/Web/src/pages/system/config/form.vue +++ b/Web/src/pages/system/config/form.vue @@ -11,38 +11,33 @@
- - - - - - - - - - 是 - - - 否 - - - - - + + + + + + + + + + + + + + {{ item.value }} - - - - - - - - - + :key="i" + :value="item.code" + v-for="(item, i) in groupCode" + >{{ item.value }} + + + + + + + +
@@ -50,7 +45,6 @@ \ No newline at end of file diff --git a/Web/src/pages/system/menu/editForm.vue b/Web/src/pages/system/menu/editForm.vue deleted file mode 100644 index e5867ab..0000000 --- a/Web/src/pages/system/menu/editForm.vue +++ /dev/null @@ -1,83 +0,0 @@ - - \ No newline at end of file diff --git a/Web/src/pages/system/org/form.vue b/Web/src/pages/system/org/form.vue index ae1f515..b0b949d 100644 --- a/Web/src/pages/system/org/form.vue +++ b/Web/src/pages/system/org/form.vue @@ -11,7 +11,7 @@
- + @@ -57,16 +57,15 @@ import { EMPTY_ID } from '@/util/global'; /* 表单内容默认值 */ const defaultForm = { /* ... */ + pid: undefined, + sort: 100, }; export default { data() { return { /** 表单数据 */ - form: { - pid: undefined, - sort: 100, - }, + form: {}, /** 验证格式 */ rules: { name: [{ required: true, message: '请输入机构名称' }], @@ -90,45 +89,42 @@ export default { * 必要的方法 * 在打开编辑页时允许填充数据 */ - onFillData(params,orgId) { - if(orgId){ - this.form.pid = orgId; - }else if(params){ - // 从字符串areaCode查找到整个层级 - const areaCode = []; - const findCode = (data, level) => { - level = level || 0; - for (let i = 0; i < data.length; i++) { - const item = data[i]; - areaCode[level] = item.code; + onFillData(params) { + // 从字符串areaCode查找到整个层级 + const areaCode = []; + const findCode = (data, level) => { + level = level || 0; + for (let i = 0; i < data.length; i++) { + const item = data[i]; + areaCode[level] = item.code; - if (item.code === params.areaCode) { - areaCode.length = level + 1; + if (item.code === params.record.areaCode) { + areaCode.length = level + 1; + return true; + } + + if (item.children && item.children.length) { + const found = findCode(item.children, level + 1); + if (found) { return true; } - - if (item.children && item.children.length) { - const found = findCode(item.children, level + 1); - if (found) { - return true; - } - } } - }; - - if (params.areaCode) { - findCode(this.areaData); } - + }; + + if (params.record && params.record.areaCode) { + findCode(this.areaData); + } + /** 将默认数据覆盖到form */ this.form = this.$_.cloneDeep({ ...defaultForm, - ...params, - areaCode, + pid: params.orgId, + ...params.record, /** 在此处添加其他默认数据转换 */ /* ... */ + areaCode, }); - } }, /** @@ -137,14 +133,13 @@ export default { */ onGetData() { return new Promise((reslove, reject) => { - this.$refs.form.validate((valid) => { if (valid) { const record = this.$_.cloneDeep(this.form); record.areaCode = record.areaCode[record.areaCode.length - 1]; /** 验证通过后可以对数据进行转换得到想要提交的格式 */ /* ... */ - + reslove(record); } else { reject(); @@ -182,7 +177,7 @@ export default { this.loading = true; /** 可以在这里await获取一些异步数据 */ await this.onLoadOrgData(); - await this.onLoadAreaData(); + await this.onLoadAreaData(); /* ... */ this.loading = false; }, diff --git a/Web/src/pages/system/org/index.vue b/Web/src/pages/system/org/index.vue index 190d6bc..17bf5c2 100644 --- a/Web/src/pages/system/org/index.vue +++ b/Web/src/pages/system/org/index.vue @@ -5,63 +5,68 @@ 2021-04-30 Lufthafen --> - - -
- - - - - - - - - - - 新增机构 - - - - - - - - 编辑 - - - - 删除 - - - + +
+ + + + -
-
-
-
+ + + + + + 新增机构 + + + + + + + + 编辑 + + + + 删除 + + + + + + + + - - - - + + + + - - - - -
-
+ + + + + + \ No newline at end of file diff --git a/Web/src/pages/system/pos/editForm.vue b/Web/src/pages/system/pos/editForm.vue deleted file mode 100644 index 79196bc..0000000 --- a/Web/src/pages/system/pos/editForm.vue +++ /dev/null @@ -1,74 +0,0 @@ - - \ No newline at end of file diff --git a/Web/src/pages/system/pos/form.vue b/Web/src/pages/system/pos/form.vue index e752d1b..48576b9 100644 --- a/Web/src/pages/system/pos/form.vue +++ b/Web/src/pages/system/pos/form.vue @@ -1,50 +1,99 @@ \ No newline at end of file diff --git a/Web/src/pages/system/pos/index.vue b/Web/src/pages/system/pos/index.vue index 6453768..df21a4d 100644 --- a/Web/src/pages/system/pos/index.vue +++ b/Web/src/pages/system/pos/index.vue @@ -1,30 +1,36 @@ \ No newline at end of file diff --git a/Web/src/pages/system/role/dataForm.vue b/Web/src/pages/system/role/dataForm.vue index e24cca7..984928e 100644 --- a/Web/src/pages/system/role/dataForm.vue +++ b/Web/src/pages/system/role/dataForm.vue @@ -83,16 +83,16 @@ export default { }, methods: { - async onOpen(record) { + async onOpen(params) { this.visible = true; - this.record = record; + this.record = params.record; this.loading = true; await this.onLoadCodes(); - this.form.dataScopeType = record.dataScopeType.toString(); + this.form.dataScopeType = this.record.dataScopeType.toString(); - await this.onChange(record.dataScopeType); + await this.onChange(this.record.dataScopeType); this.loading = false; }, diff --git a/Web/src/pages/system/role/editForm.vue b/Web/src/pages/system/role/editForm.vue deleted file mode 100644 index 1998175..0000000 --- a/Web/src/pages/system/role/editForm.vue +++ /dev/null @@ -1,75 +0,0 @@ - - \ No newline at end of file diff --git a/Web/src/pages/system/role/form.vue b/Web/src/pages/system/role/form.vue index a1de03e..2d2606c 100644 --- a/Web/src/pages/system/role/form.vue +++ b/Web/src/pages/system/role/form.vue @@ -1,50 +1,98 @@ \ No newline at end of file diff --git a/Web/src/pages/system/role/index.vue b/Web/src/pages/system/role/index.vue index 2057f1a..49e66c4 100644 --- a/Web/src/pages/system/role/index.vue +++ b/Web/src/pages/system/role/index.vue @@ -1,31 +1,36 @@ \ No newline at end of file diff --git a/Web/src/pages/system/user/dataForm.vue b/Web/src/pages/system/user/dataForm.vue index 8407c31..91d05f0 100644 --- a/Web/src/pages/system/user/dataForm.vue +++ b/Web/src/pages/system/user/dataForm.vue @@ -65,9 +65,9 @@ export default { * 必要的方法 * 从外部调用打开本窗口 */ - async onOpen(record) { + async onOpen(params) { this.visible = true; - this.id = record.id; + this.id = params.record.id; this.$nextTick(() => { this.onInit(); }); diff --git a/Web/src/pages/system/user/editForm.vue b/Web/src/pages/system/user/editForm.vue deleted file mode 100644 index c14d8cd..0000000 --- a/Web/src/pages/system/user/editForm.vue +++ /dev/null @@ -1,75 +0,0 @@ - - \ No newline at end of file diff --git a/Web/src/pages/system/user/form.vue b/Web/src/pages/system/user/form.vue index f6742fc..902c9c9 100644 --- a/Web/src/pages/system/user/form.vue +++ b/Web/src/pages/system/user/form.vue @@ -1,10 +1,16 @@