Merge pull request 'fix:终审仪表盘动态调整' (#283) from fix/change_task into test

Reviewed-on: #283
pull/284/head
赵辉 1 year ago
commit 24f6e82074

@ -132,7 +132,9 @@ watch(
}
},
)
defineExpose({
getData,
});
</script>
<template>

@ -61,6 +61,7 @@ const emit = defineEmits(['changeShow'])
function changeContent() {
emit('changeShow')
}
const headerref=ref(null)
const checkedRowKeys = ref([])
const dicStore = useDictionary()
const izstatusList = ref([])
@ -719,6 +720,7 @@ function rejectHandler(list) {
//
function doAudit(param: any) {
const modal = unref(headerref)! as any
dialog.info({
title: '确认提示',
content: '确认给该任务审批为【通过】吗?',
@ -731,7 +733,8 @@ function doAudit(param: any) {
message.success(res.message)
reload()
haeaderstore.setDataConfig(true)
modal.getData()
// haeaderstore.setDataConfig(true)
}
else {
message.error(res.message)
@ -748,6 +751,7 @@ function switchBatch() {
}
function reload() {
const modal = unref(headerref)! as any
selectionIds.value = []
checkedRowKeys.value = []
@ -755,8 +759,8 @@ function reload() {
tableRef.value?.pagination,
) as PaginationProps
query(page!, pageSize!, {}, props.taskvalue)
haeaderstore.setDataConfig(true)
modal.getData()
//haeaderstore.setDataConfig(true)
}
watch(
@ -946,7 +950,7 @@ defineExpose({
</div>
</div>
<div class="header_data">
<DataHeader :has-color="true" />
<DataHeader ref="headerref" :has-color="true" />
</div>
<div class="wrapper-settings">

@ -25,6 +25,7 @@ const props = defineProps({
const emit = defineEmits(['changeShow'])
const aa=ref(true)
const haeaderstore=useDataHeaderStore()
const headerref=ref(null)
const dialog = useDialog()
const message = useMessage()
const router = useRouter()
@ -303,6 +304,7 @@ function actionHandler(action: any, row: any) {
}
//
function doAudit(param: any, row: any) {
const modal = unref(headerref)! as any
dialog.info({
title: '确认提示',
@ -312,18 +314,16 @@ function doAudit(param: any, row: any) {
onPositiveClick: () => {
audit(param).then((res) => {
aa.value=false
const { code } = res
if (code === 'OK') {
message.success(res.message)
// changecardstatus(3, row);
initData(1, 20, {}, props.taskvalue)
num = 1
reload()
aa.value=true
selectionIds.value = []
modal.getData()
}
else {
message.error(res.message)
@ -486,13 +486,14 @@ function changesort(sortnamex) {
num = 1
}
function notpass() {
aa.value=false
const modal = unref(headerref)! as any
initData(1, 20, {}, props.taskvalue)
selectionIds.value = []
modal.getData()
// haeaderstore.setDataConfig(true)
aa.value=true
}
watch(
() => finalStore.asideValue,
@ -595,7 +596,7 @@ defineExpose({
</div>
<div class="header_data">
<DataHeader :has-color="true" v-if="aa"/>
<DataHeader ref="headerref" :has-color="true" v-if="aa"/>
</div>
<div class="wrapper-settings">
<div>

Loading…
Cancel
Save