更新
This commit is contained in:
@ -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