更新
This commit is contained in:
@ -55,7 +55,7 @@
|
||||
<template #czfs="{ row }">
|
||||
<div>关注:<DictTag :tag="false" style="display: inline;" :value="row.sfGz" :options="D_BZ_SF" /> ;</div>
|
||||
<div>布控人员:<DictTag :tag="false" style="display: inline;" :value="row.sfZbkry" :options="D_BZ_SF" /> ;</div>
|
||||
<div>重点人员<DictTag :tag="false" style="display: inline;" :value="row.sfZzdry" :options="D_BZ_SF" /></div>
|
||||
<div>重点人员:<DictTag :tag="false" style="display: inline;" :value="row.sfZzdry" :options="D_BZ_SF" />;</div>
|
||||
</template>
|
||||
</MyTable>
|
||||
<Pages
|
||||
@ -89,7 +89,6 @@ import { qcckGet } from "@/api/qcckApi.js";
|
||||
import { ref, reactive, onMounted, getCurrentInstance } from "vue";
|
||||
import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||
import Pages from "@/components/aboutTable/Pages.vue";
|
||||
import FormMessage from "@/components/aboutTable/FormMessage.vue";
|
||||
import { qcckPost } from "@/api/qcckApi.js";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const {D_BZ_SF, D_GS_RQFJ_FXDJ, D_GS_RQFJ_FXLB } = proxy.$dict("D_BZ_SF","D_GS_RQFJ_FXDJ","D_GS_RQFJ_FXLB"); //获取字典数据
|
||||
@ -296,6 +295,8 @@ const chooseType = (val)=>{
|
||||
break;
|
||||
case '是否关注':
|
||||
case '移交管控':
|
||||
if(ids.value.length == 0) return ElMessage.warning("请选择对应的数据");
|
||||
isShow.value = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,11 @@
|
||||
<template>
|
||||
<el-dialog v-model="modelValue" title="等级切换" width="500px" @close="handleClose">
|
||||
<el-dialog v-model="modelValue" title="提交" width="500px" @close="handleClose">
|
||||
<el-form :model="listQuery" ref="formValidate" :rules="rules">
|
||||
<el-form-item prop="sfbk" label="是否布控" v-if="props.type == '布控'">
|
||||
<MOSTY.Select filterable v-model="listQuery.sfbk" :dictEnum="bkList" width="100%" clearable placeholder="请选择是否布控"/>
|
||||
<el-form-item prop="sfGz" label="是否关注" v-if="props.type == '是否关注'">
|
||||
<MOSTY.Select filterable v-model="listQuery.sfGz" :dictEnum="props.dic.D_BZ_SF" width="100%" clearable placeholder="请选择是否布控"/>
|
||||
</el-form-item>
|
||||
<el-form-item prop="sfZzdry" label="是否移交管控" v-if="props.type == '移交管控'">
|
||||
<MOSTY.Select filterable v-model="listQuery.sfZzdry" :dictEnum="props.dic.D_BZ_SF" width="100%" clearable placeholder="请选择是否布控"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
@ -31,14 +34,11 @@ const props = defineProps({
|
||||
type:String,
|
||||
dic:Object
|
||||
})
|
||||
const bkList = reactive([
|
||||
{ label:'撤销申请布控',value:'0' },
|
||||
{ label:'申请布控',value:'1' },
|
||||
])
|
||||
const emits = defineEmits(["update:modelValue",'getDepValue']);
|
||||
const formValidate = ref()
|
||||
const rules = reactive({
|
||||
sfbk: [{ required: true, message: "请选择是布控", trigger: "change" }],
|
||||
sfGz: [{ required: true, message: "请选择是否关注", trigger: "change" }],
|
||||
sfZzdry: [{ required: true, message: "请选择是否移交管控", trigger: "change" }],
|
||||
})
|
||||
const listQuery = ref({});
|
||||
|
||||
@ -47,7 +47,8 @@ const submitForm = () =>{
|
||||
if (!valid) return false;
|
||||
let params = { ids:props.ids, ...listQuery.value }
|
||||
let url = ''
|
||||
if( props.type == '布控') url = '/mosty-gsxt/tbGsxtRqfjRy/updateBySfbkpz'
|
||||
if( props.type == '是否关注') url = '/mosty-gsxt/tbGsxtRqfjRy/updateBySfgz'
|
||||
if( props.type == '移交管控') url = '/mosty-gsxt/tbGsxtRqfjRy/updateByYjgk'
|
||||
qcckPost(params,url).then(res=>{
|
||||
ElMessage.success("成功");
|
||||
emits('update:modelValue',false)
|
||||
|
Reference in New Issue
Block a user