feat:添加部门名称和页面提示

ln_ry20250512
wangxy 2 weeks ago
parent 59b14f4026
commit 63893ecd16

@ -136,6 +136,7 @@ public class ApplyInfoListManager {
applyInfoList.setCreateBy(ShiroUtils.getSysUser().getUserName()); applyInfoList.setCreateBy(ShiroUtils.getSysUser().getUserName());
} }
applyInfoList.setDeptId(ShiroUtils.getSysUser().getDeptId()); applyInfoList.setDeptId(ShiroUtils.getSysUser().getDeptId());
applyInfoList.setDeptName(ShiroUtils.getSysUser().getDept().getDeptName());
applyInfoList.setApplyStatus(ApplyListStatusEnum.NEWSAVE.getStatus()); applyInfoList.setApplyStatus(ApplyListStatusEnum.NEWSAVE.getStatus());
return applyInfoListService.saveOrUpdate(applyInfoList); return applyInfoListService.saveOrUpdate(applyInfoList);
} }

@ -292,7 +292,7 @@
</form> </form>
<div class="row mt-6"> <div class="row mt-6">
<div class="col-sm-offset-5 col-sm-10" style="display: flex;"> <div class="col-sm-offset-5 col-sm-10" style="display: flex;">
<button type="button" class="btn btn-sm btn-primary" @click="submitHandler()"><i class="fa fa-check"></i>提 交</button>&nbsp; <button type="button" class="btn btn-sm btn-primary" @click="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭
</button> </button>
</div> </div>
@ -497,7 +497,7 @@
alert('请上传一寸照片'); alert('请上传一寸照片');
return; return;
} }
this.$confirm('确认提交吗?', '提示', { this.$confirm('确认保存吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -505,7 +505,7 @@
$.operate.saveTab(`${this.prefix}/add`,this.formData); $.operate.saveTab(`${this.prefix}/add`,this.formData);
this.$message({ this.$message({
type: 'success', type: 'success',
message: '提交成功!' message: '保存成功!'
}); });
}).catch(() => { }).catch(() => {
this.$message({ this.$message({

@ -65,7 +65,7 @@
updateUrl: prefix + "/edit/{id}", updateUrl: prefix + "/edit/{id}",
detailUrl:prefix + "/editFile/{id}", detailUrl:prefix + "/editFile/{id}",
removeUrl: prefix + "/remove", removeUrl: prefix + "/remove",
modalName: "涉密人员上岗", modalName: "涉密人员登记",
type: 0, type: 0,
columns: [{ columns: [{
checkbox: true checkbox: true

@ -292,7 +292,7 @@
</form> </form>
<div class="row mt-6"> <div class="row mt-6">
<div class="col-sm-offset-5 col-sm-10" style="display: flex;"> <div class="col-sm-offset-5 col-sm-10" style="display: flex;">
<button type="button" class="btn btn-sm btn-primary" @click="submitHandler()"><i class="fa fa-check"></i>提 交</button>&nbsp; <button type="button" class="btn btn-sm btn-primary" @click="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭
</button> </button>
</div> </div>
@ -496,7 +496,7 @@
}) })
return; return;
} }
this.$confirm('确认提交吗?', '提示', { this.$confirm('确认保存吗?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -504,7 +504,7 @@
$.operate.saveTab(`${this.prefix}/edit`,this.formData); $.operate.saveTab(`${this.prefix}/edit`,this.formData);
this.$message({ this.$message({
type: 'success', type: 'success',
message: '提交成功!' message: '保存成功!'
}); });
}).catch(() => { }).catch(() => {
this.$message({ this.$message({

@ -65,6 +65,12 @@ public class TdApplyInfoList extends BaseEntity {
*/ */
private Long deptId; private Long deptId;
/**
* id
*/
private String deptName;
/** /**
* *
*/ */

@ -69,6 +69,11 @@ public class TdApplyInfoListDTO extends BaseEntity {
*/ */
private Long deptId; private Long deptId;
/**
* id
*/
private String deptName;
/** /**
* *
*/ */

@ -36,6 +36,7 @@
<result property="photoUrl" column="photo_url" jdbcType="VARCHAR"/> <result property="photoUrl" column="photo_url" jdbcType="VARCHAR"/>
<result property="leaveMsg" column="leave_msg" jdbcType="VARCHAR"/> <result property="leaveMsg" column="leave_msg" jdbcType="VARCHAR"/>
<result property="leaveTime" column="leave_time" jdbcType="TIMESTAMP"/> <result property="leaveTime" column="leave_time" jdbcType="TIMESTAMP"/>
<result property="deptName" column="dept_name" jdbcType="VARCHAR"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
@ -48,7 +49,7 @@
political,phone,cerno, political,phone,cerno,
address,registered_authority,permanent_address, address,registered_authority,permanent_address,
resident_bureau,position_capacity,sm_post, resident_bureau,position_capacity,sm_post,
sm_grade,photo_url,leave_msg,leave_time sm_grade,photo_url,leave_msg,leave_time,dept_name
</sql> </sql>
<select id="selectTdApplyInfoListList" resultType="com.ruoyi.system.domain.apply.TdApplyInfoList"> <select id="selectTdApplyInfoListList" resultType="com.ruoyi.system.domain.apply.TdApplyInfoList">
select <include refid="Base_Column_List"/> from td_apply_info_list d select <include refid="Base_Column_List"/> from td_apply_info_list d

Loading…
Cancel
Save