Browse Source

2024-05-08 修正页面刷新问题

master_hella_20240701
zhousq 6 months ago
parent
commit
9166841c47
  1. 11
      src/views/mes/orderDay/components/schedule.vue
  2. 13
      src/views/mes/orderDay/index.vue
  3. 1
      src/views/mes/workScheduling/index.vue

11
src/views/mes/orderDay/components/schedule.vue

@ -201,7 +201,7 @@
</el-dialog>
</ContentWrap>
<template #footer>
<el-button @click="dialogVisible=false" >关闭</el-button>
<el-button @click="handleClose" >关闭</el-button>
<el-button type="primary" @click="publishPlan" >发布计划</el-button>
</template>
<SearchTable ref="searchTableRef" @search-table-success="searchTableSuccess" />
@ -470,6 +470,10 @@ const opensearchTable = (
)
}
const handleClose=()=>{
dialogVisible.value = false,
emit('close')
}
const publishPlan=()=>{
message.confirm("确认发布当前计划?","question").then(async () => {
//isPublish.value=true
@ -478,10 +482,7 @@ const publishPlan=()=>{
doPublishPlan() }finally{
formLoading.value=false;
}
// loading.value = false,
dialogVisible.value = false,
//isPublish.value=false,
emit('close')
handleClose()
}).catch(() => {
message.info("已取消发布")
})

13
src/views/mes/orderDay/index.vue

@ -82,6 +82,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import orderDetail from './components/orderDetail.vue'
import scheduleDetail from './components/schedule.vue'
import { async } from '@antv/x6/lib/registry/marker/async'
defineOptions({ name: 'MesOrderDay' })
@ -196,8 +197,11 @@ const buttonBaseClick = (val, item) => {
}
}
const publishClosed=()=>{
//console.log('publishClosed')
getList()
console.log('orderday-publishClosed-200')
nextTick(() => {
getList()
})
}
//
const isShowMainButton = (row,val) => {
@ -242,7 +246,7 @@ const butttondata = (row) => {
// -
const buttonTableClick = async (val, row) => {
const buttonTableClick = (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
@ -252,6 +256,7 @@ const buttonTableClick = async (val, row) => {
}else if(val=='stopPlan'){ //
stopPlan(row.id)
}
getList()
}
/** 添加/修改操作 */
@ -325,7 +330,7 @@ const handleExport = async () => {
}
const stopPlan = async (id) => {
await OrderDayApi.stopPlan(id)
getList()
//getList()
}
/** 导入 */
const importFormRef = ref()

1
src/views/mes/workScheduling/index.vue

@ -200,6 +200,7 @@ const buttonTableClick = async (val, row) => {
} else if(val=='callMaterial'){
}
getList()
}
/** 添加/修改操作 */

Loading…
Cancel
Save