diff --git a/src/api/data/caseVerif.ts b/src/api/data/caseVerif.ts new file mode 100644 index 0000000..6e21479 --- /dev/null +++ b/src/api/data/caseVerif.ts @@ -0,0 +1,28 @@ +import request from "@/api/request"; + +export function importCaseVerif(body) { + return request.post({ + url: '/data/caseVerif/import', + body + }); +} + +export function listCaseVerif(query) { + return request.get({ + url: '/data/caseVerif', + query + }); +} + +export function addCaseVerif(dataUpdateMethod, body) { + return request.post({ + url: `/data/caseVerif/${dataUpdateMethod}`, + body + }); +} + +export function delCaseVerif(id) { + return request.del({ + url: `/data/caseVerif/${id}` + }); +} \ No newline at end of file diff --git a/src/api/data/petitionComplaint.ts b/src/api/data/petitionComplaint.ts index baac7b4..f958b6d 100644 --- a/src/api/data/petitionComplaint.ts +++ b/src/api/data/petitionComplaint.ts @@ -14,9 +14,15 @@ export function listPetitionComplaint(query) { }); } -export function addPetitionComplaint(body, dataUpdateMethod) { +export function addPetitionComplaint(body) { return request.post({ - url: `/data/petitionComplaint/dataUpdateMethod/${dataUpdateMethod}`, + url: `/data/petitionComplaint`, body }); +} + +export function delPetitionComplaint(id) { + return request.del({ + url: `/data/petitionComplaint/${id}` + }); } \ No newline at end of file diff --git a/src/api/system/depart.ts b/src/api/system/depart.ts index a8983a0..60f2dd6 100644 --- a/src/api/system/depart.ts +++ b/src/api/system/depart.ts @@ -26,6 +26,12 @@ export function secondList() { }); } +export function listByFirstHost() { + return request.get({ + url: '/depart/firstHost' + }); +} + export function listChildren(departId) { return request.get({ url: `/depart/${departId}/children` diff --git a/src/api/system/dict.ts b/src/api/system/dict.ts index 0e83146..b66a796 100644 --- a/src/api/system/dict.ts +++ b/src/api/system/dict.ts @@ -14,6 +14,13 @@ export function addDictType(body) { }); } +export function updateDictType(body) { + return request.put({ + url: '/dict', + body + }); +} + export function listDictDatas(query, dictType) { return request.get({ url: `/dict/${dictType}/dictData`, diff --git a/src/components/date-time-range-picker-ext.vue b/src/components/date-time-range-picker-ext.vue new file mode 100644 index 0000000..e39a994 --- /dev/null +++ b/src/components/date-time-range-picker-ext.vue @@ -0,0 +1,51 @@ + + + \ No newline at end of file diff --git a/src/components/negative/add.vue b/src/components/negative/add.vue index 5fbe42a..14efd94 100644 --- a/src/components/negative/add.vue +++ b/src/components/negative/add.vue @@ -21,10 +21,15 @@ trigger: ['blur'], }" > - + (form.problemSources = + nodeData.label) + " + /> @@ -173,14 +178,14 @@ prop="involveDepartId" :rules="{ required: true, - message: '请选择问题涉及单位' + message: '请选择问题涉及单位', }" > @@ -188,7 +193,9 @@ @@ -253,7 +260,7 @@ prop="thingDesc" :rules="{ required: true, - message: '请输入事情简要描述' + message: '请输入事情简要描述', }" > item.filePath @@ -532,33 +540,23 @@ async function handleAddNegative() { } const departs = ref([]); -function getDeparts() { +async function getDeparts() { if (form.value.hostLevel === HostLevel.FIRST) { - departs.value = [ - { - id: "2785", - shortName: "警务督察支队", - }, - { - id: "13494", - shortName: "机关纪委", - }, - { - id: "2780", - shortName: "市纪委市监委派驻纪检监察组", - }, - ]; + departs.value = await listByFirstHost() } - if (form.value.hostLevel === HostLevel.SECOND) { - secondList().then((data) => { - departs.value = data; - }); + else if (form.value.hostLevel === HostLevel.SECOND) { + departs.value = await secondList() } - if (form.value.hostLevel === HostLevel.THREE) { - departTree().then((data) => { - departs.value = data; - }); + else if (form.value.hostLevel === HostLevel.THREE) { + const data = await departTree() + data.forEach(item => { + if (item.level === 1) { + item.disabled = true + } + }) + departs.value = data } + } function handleSelectDepart(row, node) { @@ -579,8 +577,8 @@ function handleSelectInvolveProblem(vals) { } function handleLinkDepart() { - form.value.departId = form.value.involveDepartId - form.value.departName = form.value.involveDepartName + form.value.departId = form.value.involveDepartId; + form.value.departName = form.value.involveDepartName; } \ No newline at end of file diff --git a/src/views/data/Gabxf.vue b/src/views/data/Gabxf.vue index 132239b..856a7d2 100644 --- a/src/views/data/Gabxf.vue +++ b/src/views/data/Gabxf.vue @@ -3,11 +3,43 @@
+ + + + + +
+ + + + + +
+
+
+ + + + + + + @@ -15,7 +47,7 @@
公安部信访数据导入数据导入
@@ -30,31 +62,64 @@
- + - - - + + + - - + + - - - + + + @@ -74,14 +139,9 @@
- +
+ + 增量更新 + 覆盖更新 +