Просмотр исходного кода

fix: 待审批 处理成功 刷新 列表处理

lanceJiang 1 год назад
Родитель
Сommit
ec2a14647e

+ 1 - 3
src/views/approve/components/approvedContent.vue

@@ -188,10 +188,8 @@ const validateForm = ref({
 const closeDetailEv = () => {
 	// 存储表单 todo.....
 	// 如果这里有表单,是否要把所有表单的内容进行存储,存储完毕后,才能关闭这个详情,刷新左侧的列表 todo
-	// return todo
-	debugger
 	taskProcessInfo.refresh = true
-	taskProcessInfo.setCurrentTaskRow({})
+	// taskProcessInfo.setCurrentTaskRow({})
 }
 
 /**

+ 6 - 4
src/views/approve/components/approvedItem.vue

@@ -32,7 +32,7 @@
 					<!--头部-->
 					<div class="header">
 						<el-text tag="b">{{ i.processName }}</el-text>
-						<el-tag type="primary">待审核</el-tag>
+						<el-tag>待审核</el-tag>
 					</div>
 					<!--操作类容-->
 					<div class="summary-list"></div>
@@ -85,10 +85,12 @@ const init = () => {
 	totalPages.value = 0
 	taskProcessInfo.refresh = false
 	taskProcessInfo.setCurrentTaskRow({})
+	load()
 }
 
 // 分页获取数据
 const load = () => {
+	if (loading.value) return false
 	loading.value = true
 	getPagedSatellites()
 }
@@ -118,9 +120,9 @@ const getTaskDetail = item => {
 	taskProcessInfo.setCurrentTaskRow(item)
 }
 
-onMounted(() => {
+/*onMounted(() => {
 	init()
-})
+})*/
 
 /**
  * 监听同级子组件通知
@@ -170,7 +172,7 @@ const disabledInfinite = computed(() => noMore.value)
 	.flow-list-box {
 		background-color: #fff;
 		padding: 0 12px;
-		height: calc(100vh - 161px);
+		height: calc(100vh - 192px);
 		overflow: hidden auto;
 		scroll-snap-type: y mandatory;
 		will-change: scroll-position;