This commit is contained in:
夏菊 2025-12-26 17:28:45 +08:00
parent 537bdfef2b
commit a4cd51a53a
5 changed files with 40 additions and 21 deletions

View File

@ -0,0 +1,5 @@
insert into Sys_Set(SetId,SetName,SetValue)
values('1002','最唗溼恀華硊','http://localhost:4528/')

View File

@ -1599,23 +1599,23 @@ namespace BLL
public static string getInitialPassword(string unitId, string idCard) public static string getInitialPassword(string unitId, string idCard)
{ {
string prefixValue = "XJYJ"; string prefixValue = "XJYJ!@#qwe";
string suffixValue = "1234"; string suffixValue = "1234";
var getUnit = UnitService.GetUnitByUnitId(unitId); //var getUnit = UnitService.GetUnitByUnitId(unitId);
if (getUnit != null) //if (getUnit != null)
{ //{
if (!string.IsNullOrEmpty(getUnit.UnitCode)) // if (!string.IsNullOrEmpty(getUnit.UnitCode))
{ // {
if (getUnit.UnitCode.Length > 4) // if (getUnit.UnitCode.Length > 4)
{ // {
prefixValue = getUnit.UnitCode.Substring(getUnit.UnitCode.Length-4, 4); // prefixValue = getUnit.UnitCode.Substring(getUnit.UnitCode.Length-4, 4);
} // }
else // else
{ // {
prefixValue = getUnit.UnitCode; // prefixValue = getUnit.UnitCode;
} // }
} // }
} //}
if (!string.IsNullOrEmpty(idCard)) if (!string.IsNullOrEmpty(idCard))
{ {
if (idCard.Length > 4) if (idCard.Length > 4)

View File

@ -33,7 +33,7 @@
</f:FormRow> </f:FormRow>
<f:FormRow> <f:FormRow>
<Items> <Items>
<f:TextBox ID="txtNewPassword" Label="新密码" TextMode="Password" <f:TextBox ID="txtNewPassword" Label="新密码" TextMode="Password" MinLength="12"
EmptyText="输入新密码" Required="true" ShowRedStar="true" runat="server"> EmptyText="输入新密码" Required="true" ShowRedStar="true" runat="server">
</f:TextBox> </f:TextBox>
</Items> </Items>
@ -41,7 +41,7 @@
<f:FormRow> <f:FormRow>
<Items> <Items>
<f:TextBox ID="txtConfirmPassword" Label="确认密码" TextMode="Password" <f:TextBox ID="txtConfirmPassword" Label="确认密码" TextMode="Password" MinLength="12"
EmptyText="再次输入新密码" Required="true" ShowRedStar="true" runat="server" EnableBlurEvent="true" OnBlur="txtConfirmPassword_Blur"> EmptyText="再次输入新密码" Required="true" ShowRedStar="true" runat="server" EnableBlurEvent="true" OnBlur="txtConfirmPassword_Blur">
</f:TextBox> </f:TextBox>
</Items> </Items>

View File

@ -140,7 +140,7 @@
</div> </div>
</div> </div>
<div id="general" > <div id="general" >
<img :src="generalImg" alt=""> <img :src="form.proImg" alt="">
</div> </div>
<div id="contract" style="height: 1.3rem;margin-bottom: 0.25rem;"> <div id="contract" style="height: 1.3rem;margin-bottom: 0.25rem;">
@ -307,7 +307,7 @@
data() { data() {
return { return {
accidentWarning: [], accidentWarning: [],
generalImg: '../res/images/01.png', proImg: '../res/images/01.png',
iframeSrc: "", iframeSrc: "",
// 控制显示状态 // 控制显示状态
show: false, show: false,

View File

@ -53,6 +53,19 @@ namespace FineUIPro.Web.common
endDays = (project.EndDate.Value - DateTime.Now).Days; endDays = (project.EndDate.Value - DateTime.Now).Days;
} }
string proImg = "../res/images/01.png";
var proFile = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == projectId);
if (proFile != null && !string.IsNullOrWhiteSpace(proFile.AttachUrl))
{
string httpUrl = string.Empty;
var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault();
if (sysSet6 != null)
{
httpUrl = sysSet6.SetValue;
}
proImg = $"{httpUrl}{proFile.AttachUrl.Split(',')[0]}";
}
//事故事件 //事故事件
var list = AccidentWarningService.GetYearsTodayList(); var list = AccidentWarningService.GetYearsTodayList();
// 构造返回数据 // 构造返回数据
@ -61,13 +74,14 @@ namespace FineUIPro.Web.common
success = true, success = true,
data = new data = new
{ {
proImg = proImg,
accidentWarning = (from x in list select new { Title = x.Title, AccidentDate = x.AccidentDate.ToString("yyyy-MM-dd") }).ToList(), accidentWarning = (from x in list select new { Title = x.Title, AccidentDate = x.AccidentDate.ToString("yyyy-MM-dd") }).ToList(),
projectInfo = new projectInfo = new
{ {
participateInNum = hsseData.JoinConstructionPersonNum ?? 0, participateInNum = hsseData.JoinConstructionPersonNum ?? 0,
dangerousProject = hsseData.MajorProjectsUnderConstructionNum ?? 0, dangerousProject = hsseData.MajorProjectsUnderConstructionNum ?? 0,
projectDays = projectDays,//项目总工期 projectDays = projectDays,//项目总工期
projectEndDate = string.Format("{0:yyyy-MM-dd}", project.EndDate),//项目到期时间 projectEndDate = project.EndDate != null ? string.Format("{0:yyyy-MM-dd}", project.EndDate) : string.Empty,//项目到期时间
projectEndDays = endDays > 0 ? endDays : 0,//合同倒计时 projectEndDays = endDays > 0 ? endDays : 0,//合同倒计时
}, },
//meetAnEmergency = new //meetAnEmergency = new