更新
This commit is contained in:
@ -37,18 +37,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
<template #controls="{ row }">
|
<template #controls="{ row }">
|
||||||
<el-button type="primary" v-if="roleList.includes('BK_SH_RY')" size="small" @click="handleDetail(row,'审核')"
|
<el-link type="primary" v-if="roleList.includes('BK_SH_RY')" size="small" @click="handleDetail(row,'审核')">审核</el-link>
|
||||||
>审核</el-button
|
|
||||||
>
|
|
||||||
<!-- <el-button type="info" size="small" @click="handleDetail(row,'审批')"
|
|
||||||
>审批</el-button
|
|
||||||
>
|
|
||||||
<el-button type="warning" size="small" @click="handleDetail(row,'去除')"
|
|
||||||
>去除</el-button
|
|
||||||
>
|
|
||||||
<el-button type="danger" size="small" @click="handleDetail(row,'拉黑')"
|
|
||||||
>拉黑</el-button
|
|
||||||
>-->
|
|
||||||
</template>
|
</template>
|
||||||
</MyTable>
|
</MyTable>
|
||||||
<Pages
|
<Pages
|
||||||
@ -61,7 +50,7 @@
|
|||||||
}"
|
}"
|
||||||
></Pages>
|
></Pages>
|
||||||
</div>
|
</div>
|
||||||
<Model v-model="isShow" :type="chooselx" :ids="ids" @change="getList" :dic="{D_BZ_RCSHZT}"></Model>
|
<Model v-model="isShow" :data="chooeRow" @change="getList" :dic="{D_BZ_RCSHZT}"></Model>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -85,9 +74,8 @@ const { D_BZ_RCSHZT, D_GS_RQFJ_LX, D_GS_RQFJ_FXDJ, D_BZ_SF, D_GS_RQFJ_FXLB } =
|
|||||||
"D_GS_RQFJ_FXLB"
|
"D_GS_RQFJ_FXLB"
|
||||||
);
|
);
|
||||||
|
|
||||||
const chooselx = ref('')
|
|
||||||
const isShow = ref(false)
|
const isShow = ref(false)
|
||||||
const ids = ref([])
|
const chooeRow = ref({})
|
||||||
|
|
||||||
const searchBox = ref(); //搜索框
|
const searchBox = ref(); //搜索框
|
||||||
|
|
||||||
@ -191,14 +179,8 @@ const getList = () => {
|
|||||||
|
|
||||||
// 处理数据
|
// 处理数据
|
||||||
const handleDetail = (val,type) =>{
|
const handleDetail = (val,type) =>{
|
||||||
chooselx.value = type;
|
chooeRow.value = val;
|
||||||
ids.value = [val.id];
|
isShow.value = true;
|
||||||
switch(type){
|
|
||||||
case '审核':
|
|
||||||
if(ids.value.length == 0) return ElMessage.warning("请选择对应的数据");
|
|
||||||
isShow.value = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// 表格高度计算
|
// 表格高度计算
|
||||||
const tabHeightFn = () => {
|
const tabHeightFn = () => {
|
||||||
|
@ -1,64 +1,65 @@
|
|||||||
<template>
|
<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 :model="listQuery" ref="formValidate" :rules="rules" label-width="120px">
|
||||||
<el-form-item prop="bkshzt" label="审核" v-if="props.type == '审核'">
|
<el-form-item prop="bkshzt" label="审核">
|
||||||
<MOSTY.Select filterable v-model="listQuery.bkshzt" :dictEnum="props.dic.D_BZ_RCSHZT" width="100%" clearable placeholder="请选择是否布控"/>
|
<MOSTY.Select filterable v-model="listQuery.bkshzt" :dictEnum="props.dic.D_BZ_RCSHZT" width="100%" clearable placeholder="请选择是否布控" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
<el-form-item prop="bkshzt" label="审核部门">
|
||||||
<template #footer>
|
<MOSTY.Department clearable v-model="listQuery.ssbmdm" :placeholder="listQuery.ssbm ? listQuery.ssbm : ''" style="width: 100%" />
|
||||||
<div class="tc">
|
</el-form-item>
|
||||||
<el-button @click="handleClose">取消</el-button>
|
</el-form>
|
||||||
<el-button type="primary" @click="submitForm">确定</el-button>
|
<template #footer>
|
||||||
</div>
|
<div class="tc">
|
||||||
</template>
|
<el-button @click="handleClose">取消</el-button>
|
||||||
</el-dialog>
|
<el-button type="primary" @click="submitForm">确定</el-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import { qcckPost } from "@/api/qcckApi.js";
|
import { qcckPost } from "@/api/qcckApi.js";
|
||||||
import * as MOSTY from "@/components/MyComponents/index";
|
import * as MOSTY from "@/components/MyComponents/index";
|
||||||
import { ref ,defineProps,defineEmits, reactive} from 'vue';
|
import { ref, defineProps, defineEmits, reactive } from "vue";
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue:{
|
modelValue: {
|
||||||
type:Boolean,
|
type: Boolean,
|
||||||
default:false
|
default: false
|
||||||
},
|
},
|
||||||
ids:{
|
data: {
|
||||||
type:Array,
|
type: Object,
|
||||||
default:[]
|
default: {}
|
||||||
},
|
},
|
||||||
type:String,
|
dic: {
|
||||||
dic:Object
|
type: Object,
|
||||||
})
|
default: {}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const emits = defineEmits(["update:modelValue",'getDepValue']);
|
const emits = defineEmits(["update:modelValue", "getDepValue"]);
|
||||||
const formValidate = ref()
|
const formValidate = ref();
|
||||||
const rules = reactive({
|
const rules = reactive({
|
||||||
bkshzt: [{ required: true, message: "请选择审核状态", trigger: "change" }],
|
bkshzt: [{ required: true, message: "请选择审核状态", trigger: "change" }]
|
||||||
})
|
});
|
||||||
const listQuery = ref({});
|
const listQuery = ref({});
|
||||||
|
|
||||||
const submitForm = () =>{
|
const submitForm = () => {
|
||||||
formValidate.value.validate((valid) => {
|
formValidate.value.validate((valid) => {
|
||||||
if (!valid) return false;
|
if (!valid) return false;
|
||||||
let params = { ids:props.ids, ...listQuery.value }
|
let params = { ids: props.ids, ...listQuery.value };
|
||||||
let url = ''
|
qcckPost(params, "/mosty-gsxt/tbGsxtRqfjRy/updateByBksh").then((res) => {
|
||||||
if( props.type == '审核') url = '/mosty-gsxt/tbGsxtRqfjRy/updateByBksh'
|
|
||||||
qcckPost(params,url).then(res=>{
|
|
||||||
ElMessage.success("成功");
|
ElMessage.success("成功");
|
||||||
emits('update:modelValue',false)
|
emits("update:modelValue", false);
|
||||||
emits('change')
|
emits("change");
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
const handleClose = () =>{
|
const handleClose = () => {
|
||||||
emits('update:modelValue',false)
|
emits("update:modelValue", false);
|
||||||
formValidate.value.resetFields();
|
formValidate.value.resetFields();
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped></style>
|
||||||
|
|
||||||
</style>
|
|
Reference in New Issue
Block a user