Browse Source

fix:1、案件核查大屏(民意感知优化);fit:1、禁闭管理完善(事由数据由字典提供)

main
pengwei 6 months ago
parent
commit
7b05c776fe
  1. 29
      src/components/negative/verify.vue
  2. 10
      src/views/datav/Jwpy.vue
  3. 64
      src/views/work/Confinement.vue

29
src/components/negative/verify.vue

@ -667,12 +667,8 @@
>
<el-radio-group
v-model="item.superviseMeasuresCode"
@change="val => {
if(item.superviseMeasuresCode != 1){
item.confinementId = null
}
}"
>
<el-radio
v-for="dictItem in dict.superviseMeasures"
:key="dictItem.dictCode"
@ -687,11 +683,16 @@
'';
item.superviseMeasuresName =
'';
item.confinementId = null;
} else {
item.superviseMeasuresCode =
dictItem.dictValue;
item.superviseMeasuresName =
dictItem.dictLabel;
if(dictItem.dictValue!=1){
item.confinementId = null
}
}
}
"
@ -709,6 +710,7 @@
<el-select v-model="item.confinementId"
filterable
remote
clearable
:remote-method="fileConfinement"
popper-class="widthClass"
>
@ -1664,19 +1666,21 @@ let confinementQuery = ref({
* @param query 输入参数
*
* */
const fileConfinement = async (query)=>{
const fileConfinement = async (query,type='All')=>{
confinementQuery.value={
current: 1,
size: 100,
departBranch: false
}
if(query){
if(query && type=='All'){
confinementQuery.value.id = query
confinementQuery.value.name = query
confinementQuery.value.empNo = query
}
if(query && type =='Id'){
confinementQuery.value.id = query
}
const data =await getConfinementListAll(confinementQuery.value);
console.log('data',data)
confinementOpens.value = data.records;
}
@ -1728,12 +1732,12 @@ async function getFormData() {
if(negative.value.blames){
console.log('-----cs-----')
negative.value.blames.forEach((item)=>{
fileConfinement(item.confinementId)
fileConfinement(item.confinementId,'Id')
})
}
if(negative.value.blameLeaders){
negative.value.blameLeaders.forEach((item)=>{
fileConfinement(item.leadConfinementId)
fileConfinement(item.leadConfinementId,'Id')
})
}
if (negative.value.accountabilityTarget != undefined) {
@ -1747,6 +1751,11 @@ async function getFormData() {
}
function handleSupervise(val,index){
console.log('chang事件触发')
console.log(`val${index}`,val)
}
function handleAddBlame(type) {
form.value.blames.push({
type,

10
src/views/datav/Jwpy.vue

@ -186,18 +186,18 @@
/>
<datav-statistic
:value="reviewOk[0].mys"
:value="Number(reviewOk[0].mys) || 0"
title="满意"
style="width: 20%"
@click="open('/query?open=12337')"
/>
<datav-statistic
:value="reviewOk[0].jbmys"
:value="Number(reviewOk[0].jbmys) || 0"
title="基本满意"
style="width: 20%"
/>
<datav-statistic
:value="reviewOk[0].bmys "
:value="Number(reviewOk[0].bmys) || 0 "
title="不满意数"
style="width: 20%"
/>
@ -750,7 +750,7 @@ const option4 = ref({
}
}
],
grid: {left: '8%', right: '0%', top: '10%', bottom: '10%'},
grid: {left: '17%', right: '0%', top: '10%', bottom: '10%'},
});
@ -828,8 +828,6 @@ async function getData() {
GetGLFW(selectYear.value, selectOrg.value, task.value).then((res) => {
dcmyd.value = res
console.log('-----调查满意度----',dcmyd.value)
option1.value.xAxis.data = dcmyd.value[0].lstson.slice(new Date().getMonth()+1).map(item => item.SonPeriodName);
option1.value.series[0].data = dcmyd.value[0].lstson.slice(new Date().getMonth()+1).map(item => item.FinalRP);
});

64
src/views/work/Confinement.vue

@ -1,5 +1,5 @@
<script setup>
import useCatchStore from "@/stores/modules/catch";
//
import {timeFormat, calculateAge,extractInfoFromID} from "@/utils/util";
import {
@ -13,6 +13,13 @@ import {
} from "@/api/work/confinement";
import feedback from "@/utils/feedback";
import {BASE_PATH} from "@/api/request";
import {getDictLable} from "@/utils/util";
//
const catchStore = useCatchStore();
const dict = catchStore.getDicts(["confinement"]);
//
let editLoading =ref(false)
//
let query = ref({
current: 1,
@ -152,10 +159,15 @@ let NursingOrgList = ref([])
const handleExport = () => {
window.open(`${BASE_PATH}/confinement/export?` + new URLSearchParams(query.value).toString())
}
const ChangeMatter =()=>{
return formData.value.matter === '其他';
}
/**
* 新增禁闭弹窗
* */
const ShowAddForm = () => {
getPoliceListFun()
formData.value = {}
isEdit.value = false;
editShow.value = true
@ -221,13 +233,16 @@ const handleUpDate = (row) => {
* 编辑提交事件
* */
const handleSumbit = async () => {
await formRef.value.validate();
editLoading.value=true
//
if (isEdit.value) {
const res = await upDateConfinement(formData.value);
} else {
const res = await InsertConfinement(formData.value);
}
editLoading.value=false
feedback.msgSuccess("操作成功");
editShow.value = false
getList()
@ -329,8 +344,17 @@ onMounted(() => {
</el-col>
<el-col :span="6">
<el-form-item label="事由">
<el-input placeholder="请输入事由"
v-model="query.matter"/>
<el-select
v-model="query.matter"
clearable>
<el-option
v-for="(item,key) in dict.confinement"
:key="key"
:value="item.dictValue"
:label="item.dictLabel"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
@ -466,7 +490,7 @@ onMounted(() => {
</main>
<!-- 编辑表单-->
<el-dialog v-model="editShow" :title="isEdit?'编辑禁闭信息':'新增禁闭信息'" width="900px">
<el-form label-width="148" :model="formData" ref="formRef" :rules="rules">
<el-form v-loading="editLoading" label-width="148" :model="formData" ref="formRef" :rules="rules">
<div style="margin-bottom: 80px">
<el-row>
<el-col :span="12">
@ -476,6 +500,7 @@ onMounted(() => {
v-model="formData.policeId"
filterable
remote
clearable
default-first-option
@change="CopyUserDetail"
:remote-method="getPoliceListFun"
@ -626,10 +651,26 @@ onMounted(() => {
<el-row>
<el-col :span="24">
<el-form-item label="事由" prop="matter">
<el-input type="textarea" :rows="3" v-model="formData.matter"></el-input>
<el-select v-model="formData.matter" >
<el-option
v-for="(item,key) in dict.confinement"
:key="key"
:value="item.dictValue"
:label="item.dictLabel"
></el-option>
</el-select>
<!-- <el-input type="textarea" :rows="3" v-model="formData.matter"></el-input>-->
</el-form-item>
</el-col>
</el-row>
<el-row v-if="ChangeMatter()" >
<el-col :span="24">
<el-form-item label="备注" >
<el-input type="textarea" :rows="3" v-model="formData.remark"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="开始日期" prop="startTime">
@ -792,7 +833,18 @@ onMounted(() => {
<el-row>
<el-col :span="24">
<el-form-item label="事由" prop="matter">
{{formData.matter}}
{{ getDictLable(
dict.confinement,
formData.matter
) }}
</el-form-item>
</el-col>
</el-row>
<el-row v-if="ChangeMatter()" >
<el-col :span="24">
<el-form-item label="备注" >
{{formData.remark}}
</el-form-item>
</el-col>
</el-row>

Loading…
Cancel
Save