| | |
| | | </el-alert> |
| | | <div> |
| | | <el-input |
| | | placeholder="请è¾å
¥å¯ç " |
| | | placeholder="请è¾å
¥æ§å¯ç " |
| | | v-model="password" |
| | | size="large" |
| | | style="width: 100%; margin-top: 15px" |
| | | /> |
| | | </div> |
| | | <div> |
| | | <el-input |
| | | placeholder="请è¾å
¥æ°å¯ç " |
| | | v-model="newpassword" |
| | | size="large" |
| | | style="width: 100%; margin-top: 15px" |
| | | /> |
| | | </div> |
| | | <template #footer> |
| | | <el-button |
| | | type="primary" |
| | | @click="savePwd()" |
| | | >ä¿®æ¹å¯ç </el-button |
| | | > |
| | | <el-button |
| | | @click="model = false" |
| | | >å
³é</el-button |
| | | > |
| | | <el-button type="primary" @click="savePwd()">ä¿®æ¹å¯ç </el-button> |
| | | <el-button @click="model = false">å
³é</el-button> |
| | | </template> |
| | | </vol-box> |
| | | </div> |
| | |
| | | import { defineComponent, defineAsyncComponent } from "vue"; |
| | | export default defineComponent({ |
| | | components: { |
| | | VolBox: defineAsyncComponent(() => import("@/components/basic/VolBox.vue")) |
| | | VolBox: defineAsyncComponent(() => import("@/components/basic/VolBox.vue")), |
| | | }, |
| | | data() { |
| | | return { |
| | | row: {}, |
| | | password: "", |
| | | newpassword: "", |
| | | model: false, |
| | | }; |
| | | }, |
| | | methods: { |
| | | open(row) { |
| | | this.password = ""; |
| | | this.newpassword = ""; |
| | | this.row = row; |
| | | this.model = true; |
| | | }, |
| | | savePwd() { |
| | | if (!this.password) return this.$Message.error("请è¾å¯ç "); |
| | | if (!this.password) return this.$Message.error("请è¾å
¥æ§å¯ç "); |
| | | if (!this.newpassword) return this.$Message.error("请è¾å
¥æ°å¯ç "); |
| | | if (this.password.length < 6) |
| | | return this.$Message.error("å¯ç é¿åº¦è³å°6ä½"); |
| | | return this.$Message.error("æ§å¯ç é¿åº¦è³å°6ä½"); |
| | | if (this.newpassword.length < 6) |
| | | return this.$Message.error("æ°å¯ç é¿åº¦è³å°6ä½"); |
| | | let url = |
| | | "/api/user/modifyUserPwd?password=" + |
| | | "/api/user/modifyPwd?oldPwd=" + |
| | | this.password + |
| | | "&userName=" + |
| | | this.row.UserName; |
| | | "&newPwd=" + |
| | | this.newpassword + |
| | | "&user_Id=" + |
| | | this.row.user_Id; |
| | | this.http.post(url, {}, true).then((x) => { |
| | | if (!x.status) { |
| | | return this.$message.error(x.message); |
| | |
| | | }, |
| | | }, |
| | | created() {}, |
| | | }) |
| | | }); |
| | | </script> |
| | | <style lang="less" scoped> |
| | | h3 { |
| | |
| | | <p><strong>è´§ä½å·:</strong>{{ currentLocation.locationCode }}</p> |
| | | <p> |
| | | <strong>è´§ä½æåå±:</strong> {{ currentLocation.row }}æ{{ |
| | | currentLocation.layer |
| | | }}å{{ currentLocation.index }}å± |
| | | currentLocation.index |
| | | }}å{{ currentLocation.layer }}å± |
| | | </p> |
| | | <p><strong>ç¶æ:</strong> {{ getStatusText(currentLocation) }}</p> |
| | | <p> |
| | |
| | | const editFormFields = ref({ |
| | | systemType: "0", |
| | | userName: "", |
| | | userPwd: "", |
| | | userTrueName: "", |
| | | role_Id: [], |
| | | deptIds: "", |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | this.http.post("/api/Sys_User/getCurrentUserInfo", {}, true).then((x) => { |
| | | this.http.post("/api/User/getCurrentUserInfo", {}, true).then((x) => { |
| | | if (!x.status) { |
| | | return this.$message(x.message); |
| | | } |
| | |
| | | |
| | | WebResponseContent GetCurrentUserInfo(); |
| | | |
| | | WebResponseContent ModifyPwd(string oldPwd, string newPwd); |
| | | WebResponseContent ModifyPwd(string oldPwd, string newPwd, int user_Id); |
| | | } |
| | | } |
| | |
| | | |
| | | public override WebResponseContent UpdateData(SaveModel saveModel) |
| | | { |
| | | var role_Id = saveModel.MainData["role_Id"].ObjToInt(); |
| | | if (role_Id < App.User.RoleId) return WebResponseContent.Instance.Error("æ ä¿®æ¹æé"); |
| | | UpdateIgnoreColOnExecute = x => |
| | | { |
| | | return new List<string> |
| | |
| | | /// </summary> |
| | | /// <param name="parameters"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent ModifyPwd(string oldPwd, string newPwd) |
| | | public WebResponseContent ModifyPwd(string oldPwd, string newPwd, int user_Id) |
| | | { |
| | | WebResponseContent content = WebResponseContent.Instance; |
| | | oldPwd = oldPwd?.Trim(); |
| | |
| | | if (newPwd.Length < 6) return WebResponseContent.Instance.Error("å¯ç ä¸è½å°äº6ä½"); |
| | | |
| | | int userId = App.User.UserId; |
| | | if (user_Id != userId && user_Id != 0) return WebResponseContent.Instance.Error("ä¸å¯ä¿®æ¹å
¶ä»ç¨æ·å¯ç "); |
| | | string userCurrentPwd = BaseDal.QueryFirst(x => x.User_Id == userId, s => s.UserPwd); |
| | | |
| | | string _oldPwd = oldPwd.EncryptDES(AppSecret.User); |
| | |
| | | } |
| | | |
| | | [HttpPost, Route("modifyPwd")] |
| | | public IActionResult ModifyPwd(string oldPwd, string newPwd) |
| | | public IActionResult ModifyPwd(string oldPwd, string newPwd, int user_Id) |
| | | { |
| | | return Json(Service.ModifyPwd(oldPwd, newPwd)); |
| | | return Json(Service.ModifyPwd(oldPwd, newPwd, user_Id)); |
| | | } |
| | | |
| | | [HttpGet, Route("getVierificationCode"), AllowAnonymous] |
| | |
| | | }); ; |
| | | builder.ConfigureApplication(); |
| | | |
| | | App.ExpDateTime = DateTime.Parse("2025-09-01 00:00:00"); |
| | | App.ExpDateTime = DateTime.Parse("2025-09-01 09:00:00"); |
| | | |
| | | // 2ãé
ç½®æå¡ |
| | | builder.Services.AddSingleton(new AppSettings(builder.Configuration));//注å |