Browse Source

fix:加上查重

feature/tsjb-1.0
buaixuexideshitongxue 6 hours ago
parent
commit
4612d3d936
  1. 35
      src/components/data/complaintformdialog.vue
  2. 1
      src/views/data/DuplicateDrawerWithDetail.vue

35
src/components/data/complaintformdialog.vue

@ -344,9 +344,24 @@
responderPhone: formData.responderPhone responderPhone: formData.responderPhone
}" }"
:requestFn="maileRepeatt" :requestFn="maileRepeatt"
detailIdKey="complaintId" detailIdKey="negativeId"
@opened-detail="handleDuplicateRowClick"
/> />
<!-- 办理详情 -->
<NegativeDialog
v-model="detailDialogVisible"
:id="detailNegativeId"
@close="detailDialogVisible = false"
/>
<!-- 局长信箱办理详情 -->
<NegativeMailboxDialog
v-model="mailboxDetailVisible"
:id="detailNegativeId"
@close="mailboxDetailVisible = false"
/>
</template> </template>
<script setup> <script setup>
@ -742,6 +757,24 @@ const onAutoCheckDuplicate = async () => {
} }
} }
//
const detailDialogVisible = ref(false)
const mailboxDetailVisible = ref(false)
const detailNegativeId = ref("")
//
const handleDuplicateRowClick = (row) => {
// ComplaintCollection.vue
if (row.problemSources === '局长信箱') {
mailboxDetailVisible.value = true
detailNegativeId.value = row.originId
} else {
detailDialogVisible.value = true
detailNegativeId.value = row.negativeId
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

1
src/views/data/DuplicateDrawerWithDetail.vue

@ -148,6 +148,7 @@ watch(
); );
const handleRowClick = (row) => { const handleRowClick = (row) => {
debugger
const id = row?.[props.detailIdKey]; const id = row?.[props.detailIdKey];
if (!id) return; // ElMessage.warning("ID") if (!id) return; // ElMessage.warning("ID")
activeId.value = id; activeId.value = id;

Loading…
Cancel
Save