人员记录查询

pg_adapter
dshclm 8 months ago
parent 090e552374
commit 82cdc29cbf

@ -82,6 +82,10 @@
<span class="weight">籍贯: </span>
<span :class="getDiffClass(item.userarea, 'userarea', index)">{{ item.userarea }}</span>
</p>
<p class="leftCard">
<span class="weight">涉密程度: </span>
<span :class="getDiffClass(item.shemichengdu, 'shemichengdu', index)">{{getDictLabel(item.shemichengdu) }}</span>
</p>
<p class="leftCard">
<span class="weight">是否具有出入境备案: </span>
<span :class="getDiffClass(item.entryexitFiling, 'entryexitFiling', index)">{{ item.entryexitFiling == '1' ? '是' : '否' }}</span>
@ -119,6 +123,10 @@
<span class="weight">籍贯: </span>
<span :class="getDiffClass(item.userarea, 'userarea', index)">{{ item.userarea }}</span>
</p>
<p class="rightCard">
<span class="weight">涉密程度: </span>
<span :class="getDiffClass(item.shemichengdu, 'shemichengdu', index)">{{getDictLabel(item.shemichengdu) }}</span>
</p>
<p class="rightCard">
<span class="weight">是否具有出入境备案: </span>
<span :class="getDiffClass(item.entryexitFiling, 'entryexitFiling', index)">{{ item.entryexitFiling == '1' ? '是' : '否' }}</span>
@ -141,7 +149,8 @@
data: {
userAfterList:[],
userBeforeList:[],
diffData: []
diffData: [],
shemicehngdu:[[${@dict.getType('sys_user_shemi')}]]
},
mounted(){
this.userAfterList = [[${userRecordDTO}]].userAfterList
@ -149,6 +158,10 @@
this.findDifferences()
},
methods:{
getDictLabel(value) {
const dictItem = this.shemicehngdu.find(item => item.dictValue === value);
return dictItem ? dictItem.dictLabel : '未知';
},
findDifferences() {
// 将差异数据初始化为空数组
this.diffData = this.userBeforeList.map((beforeItem, index) => {

@ -187,7 +187,7 @@
var more = [];
more.push("<a class='btn btn-default btn-xs " + resetPwdFlag + "' href='javascript:void(0)' onclick='resetPwd(" + row.userId + ")'><i class='fa fa-key'></i>重置密码</a> ");
more.push("<a class='btn btn-default btn-xs " + editFlag + "' href='javascript:void(0)' onclick='authRole(" + row.userId + ")'><i class='fa fa-check-square-o'></i>分配角色</a>");
more.push("<a class='btn btn-default btn-xs " + "' href='javascript:void(0)' onclick='handleDetail(" + row.userId + ")'><i class='fa fa-check-square-o'></i>修改详情</a>");
more.push("<a class='btn btn-default btn-xs " + "' href='javascript:void(0)' onclick='handleDetail(" + row.userId + ")'><i class='fa fa-check-square-o'></i>修改记录</a>");
actions.push('<a tabindex="0" class="btn btn-info btn-xs" role="button" data-container="body" data-placement="left" data-toggle="popover" data-html="true" data-trigger="hover" data-content="' + more.join('') + '"><i class="fa fa-chevron-circle-right"></i>更多操作</a>');
return actions.join('');
} else {

Loading…
Cancel
Save