Browse Source

fix:维权抚慰优化

master
pengwei 4 weeks ago
parent
commit
9671d9d4f8
  1. 5
      src/App.vue
  2. 8
      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> </script>
<style>
.el-scrollbar__bar.is-horizontal {
height: 14px !important;
}
</style>

8
src/api/rightsComfort/rights.ts

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

6
src/views/rightsComfort/Rights.vue

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

6
src/views/rightsComfort/Supervision.vue

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

Loading…
Cancel
Save