Browse Source

fix:维权抚慰优化

master
pengwei 4 weeks ago
parent
commit
9671d9d4f8
  1. 5
      src/App.vue
  2. 10
      src/api/rightsComfort/rights.ts
  3. 6
      src/views/rightsComfort/Rights.vue
  4. 6
      src/views/rightsComfort/Supervision.vue

5
src/App.vue

@ -12,3 +12,8 @@ const elConfig = {
};
</script>
<style>
.el-scrollbar__bar.is-horizontal {
height: 14px !important;
}
</style>

10
src/api/rightsComfort/rights.ts

@ -6,4 +6,12 @@ export function listRights(query) {
url: `/rights`,
query: query
});
}
}
export function delRights(id){
return request.del({
url:`/rights/${id}`
})
}

6
src/views/rightsComfort/Rights.vue

@ -144,7 +144,7 @@
</template>
<script setup>
import moment from "moment";
import { listRights } from "@/api/rightsComfort/rights";
import { listRights,delRights } from "@/api/rightsComfort/rights";
import { delComfort } from "@/api/rightsComfort/comfort";
import { listPolice } from "@/api/system/police";
import { getDictLable } from "@/utils/util";
@ -191,7 +191,9 @@ function handleShow(row) {
const handleDelete = async (row) => {
await feedback.confirm(`确定要删除该数据?`);
await delComfort(row.rpcId);
// await delComfort(row.rpcId);
console.log('row.id',row)
await delRights(row.personId)
feedback.msgSuccess("删除成功");
getList();
};

6
src/views/rightsComfort/Supervision.vue

@ -119,6 +119,10 @@ const changeSeverity =(val,index)=>{
detailData.value.rpcApplyPeoples[index].injurySeverityName = injurySeverityName;
}
const closeDialog =()=>{
getList()
}
onMounted(()=>{
query.value.activeName = "1";
getList();
@ -246,7 +250,7 @@ watch(()=>activeName,()=>{
说明维权督办展示执法办案系统相关维权案件由各单位上报维权至市局
</div>
<el-dialog v-model="reportedShow" width="900px" title="维权上报">
<el-dialog v-model="reportedShow" width="900px" title="维权上报" @close="closeDialog">
<el-form :model="detailData" ref="reportedFORM" label-width="148">
<el-row>
<el-col :span="12">

Loading…
Cancel
Save