Browse Source

修改历史执法案件的数据

dev-V1.10.2-temp
wangmingyong@163.com 3 months ago
parent
commit
5344375b79
  1. 18
      zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/enforcement/enforcementEvaluateDetail.vue
  2. 32
      zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/enforcement/enforcementRegistrationList.vue

18
zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/enforcement/enforcementEvaluateDetail.vue

@ -29,10 +29,10 @@
<span class="info-label">执法人员</span>
<div class="info-value enforcer-value">
<div>
{{ detail.lawEnforcer }}{{ detail.lawEnforcerId }}
{{ detail.lawEnforcer }} {{ detail.lawEnforcerId }}
</div>
<div>
{{ detail.lawEnforcerTwo }}{{ detail.lawEnforcerIdTwo }}
{{ detail.lawEnforcerTwo }} {{ detail.lawEnforcerIdTwo }}
</div>
</div>
</div>
@ -77,7 +77,7 @@
</div>
<div class="info-card">
<div class="info-has-auto">
<span class="info-label">受委托执法</span>
<span class="info-label has-auto-label">受委托执法</span>
<span class="info-value">
<van-radio-group v-model="detail.hasAuto" direction="horizontal" disabled>
<van-radio :name="1" shape="square">是</van-radio>
@ -86,7 +86,7 @@
</span>
</div>
<div class="info-row" v-if="detail.hasAuto">
<span class="info-label">委托行政机关</span>
<span class="info-label has-auto-label">委托行政机关</span>
<span class="info-value">{{ detail.entrustDeptName }}</span>
</div>
</div>
@ -486,7 +486,10 @@ const onSubmit = () => {
font-size: 14px;
width: 60px;
}
.has-auto-label {
width: 90px;
margin-right: 20px;
}
.info-value {
color: #999;
flex: 1;
@ -508,7 +511,10 @@ const onSubmit = () => {
font-size: 14px;
width: 60px;
}
.has-auto-label {
width: 70px;
margin-right: 20px;
}
.info-value {
color: #999;
flex: 1;

32
zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/enforcement/enforcementRegistrationList.vue

@ -26,7 +26,7 @@
<div class="card-row">
<span class="card-label">执法人员:</span>
<span class="enforcer-block">
<span>{{ getEnforcerDisplay(item) }}</span>
<div v-for="(enforcer, idx) in getEnforcers(item)" :key="idx">{{ enforcer }}</div>
</span>
</div>
<div class="card-row">
@ -84,14 +84,28 @@ const formatDate = (dateStr) => {
return `${y}-${m}-${day}`;
};
// ========== 执法人员展示 ==========
const getEnforcerDisplay = (item) => {
if (item.lawEnforcerDisplay) return item.lawEnforcerDisplay;
const names = [];
if (item.lawEnforcer) names.push(item.lawEnforcer);
if (item.lawEnforcerTwo) names.push(item.lawEnforcerTwo);
if (Array.isArray(item.lawEnforcer2List)) names.push(...item.lawEnforcer2List);
return names.length ? names.join('、') : '-';
// ========== 执法人员展示(与详情页格式一致:姓名 + 空格 + 手机号/编号)==========
const getEnforcers = (item) => {
const list = [];
if (item.lawEnforcer) {
list.push(`${item.lawEnforcer} ${item.lawEnforcerId || ''}`);
}
if (item.lawEnforcerTwo) {
list.push(`${item.lawEnforcerTwo} ${item.lawEnforcerIdTwo || ''}`);
}
const raw = item.lawEnforcer2List || item.enforcers || item.enforcerList || [];
if (Array.isArray(raw) && raw.length) {
raw.forEach(p => {
if (typeof p === 'string') {
list.push(p);
} else {
const name = p.name || p.userName || p.realName || '';
const phone = p.phone || p.mobile || p.tel || p.id || '';
if (name) list.push(`${name} ${phone}`);
}
});
}
return list.length ? list : ['-'];
};
// ========== 加载数据 ==========

Loading…
Cancel
Save