Browse Source

涉访涉诉--生成问题时涉嫌问题没有生成

master
buaixuexideshitongxue 1 month ago
parent
commit
aa3efde90b
  1. 7
      src/components/negative/verify-sfss.vue
  2. 3
      src/views/data/ComplaintCollection.vue

7
src/components/negative/verify-sfss.vue

@ -1630,9 +1630,11 @@ watch(negative, () => {
}); });
async function getFormData() { async function getFormData() {
const row = negative.value?.currentRow ?? {}
form.value = { form.value = {
...negative.value.currentRow, ...row,
complaintId: negative.value?.currentRow?.id, complaintId: row?.id,
involveProblem:row.involveProblem ? String(row.involveProblem).split(/[,,]/).filter(Boolean) : [],
involveDepartId: negative.value.involveDepartId, involveDepartId: negative.value.involveDepartId,
caseNumber: negative.value.caseNumber, caseNumber: negative.value.caseNumber,
checkStatus: negative.value.checkStatus, checkStatus: negative.value.checkStatus,
@ -1680,6 +1682,7 @@ async function getFormData() {
if (negative.value.problemSourcesCode === ProblemSources.JWDC) { if (negative.value.problemSourcesCode === ProblemSources.JWDC) {
form.value.accountabilityTarget = AccountabilityTarget.PERSONAL; form.value.accountabilityTarget = AccountabilityTarget.PERSONAL;
} }
console.log("传入之后解析的form的数据=======================")
console.log(form.value); console.log(form.value);
} }

3
src/views/data/ComplaintCollection.vue

@ -755,7 +755,6 @@ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const handleAction = async (row) => { const handleAction = async (row) => {
negativeSfss.value.currentRow = JSON.parse(JSON.stringify(row)) negativeSfss.value.currentRow = JSON.parse(JSON.stringify(row))
negativeVerifySfssDailog.value = true negativeVerifySfssDailog.value = true
console.log(row)
} }
const negativeVerifySfssRef = ref(); const negativeVerifySfssRef = ref();
// //
@ -766,8 +765,8 @@ const handleSubmit = async () => {
try { try {
// const formData = await negativeVerifySfssRef.value.validate(); // const formData = await negativeVerifySfssRef.value.validate();
const formData = negativeVerifySfssRef.value.getData() const formData = negativeVerifySfssRef.value.getData()
console.log("提交前面==================")
console.log(formData) console.log(formData)
await sleep(3000);
let res = await addComplaintCollectionBlame(formData); let res = await addComplaintCollectionBlame(formData);
feedback.msgSuccess("提交成功"); feedback.msgSuccess("提交成功");
negativeVerifySfssDailog.value = false; negativeVerifySfssDailog.value = false;

Loading…
Cancel
Save