Przeglądaj źródła

reactor:综合查询取消签收和修改工单按钮;

zhangchong 10 miesięcy temu
rodzic
commit
3a953a26aa

+ 1 - 1
src/App.vue

@@ -136,7 +136,7 @@ onMounted(() => {
 });
 // 清除缓存 name
 const clearCacheTagsView = async (routeName: string) => {
-	let item: any = {};
+	let item;
 	tagsViewRoutes.value.forEach((v: any) => {
 		if (v.name === routeName) {
 			item = v;

+ 17 - 19
src/layout/routerView/parent.vue

@@ -1,20 +1,18 @@
 <template>
 	<div class="layout-parent">
 		<router-view v-slot="{ Component }">
-			<Suspense>
-				<transition :name="setTransitionName" mode="out-in">
+			<transition :name="setTransitionName" mode="out-in">
+				<Suspense>
 					<keep-alive :include="getKeepAliveNames">
 						<component :is="Component" :key="state.refreshRouterViewKey" class="w100" v-show="!isIframePage" />
 					</keep-alive>
-				</transition>
-        <template #fallback>
-          <el-card style="margin:15px" shadow="never">
-            <div class="flex-center-center">
-              <SvgIcon name="ele-Loading" class="mr5 loading" size="18px"></SvgIcon> 加载中,请稍后...
-            </div>
-          </el-card>
-        </template>
-			</Suspense>
+					<template #fallback>
+						<el-card style="margin: 15px" shadow="never">
+							<div class="flex-center-center"><SvgIcon name="ele-Loading" class="mr5 loading" size="18px"></SvgIcon> 加载中,请稍后...</div>
+						</el-card>
+					</template>
+				</Suspense>
+			</transition>
 		</router-view>
 		<transition :name="setTransitionName" mode="out-in">
 			<Iframes class="w100" v-show="isIframePage" :refreshKey="state.iframeRefreshKey" :name="setTransitionName" :list="state.iframeList" />
@@ -112,14 +110,14 @@ watch(
 </script>
 <style lang="scss" scoped>
 @keyframes arrow-circle {
-  0% {
-    transform: rotate(360deg);
-  }
-  100% {
-    transform: rotate(0);
-  }
+	0% {
+		transform: rotate(360deg);
+	}
+	100% {
+		transform: rotate(0);
+	}
 }
-.loading{
-  animation: arrow-circle 1.2s linear infinite;
+.loading {
+	animation: arrow-circle 1.2s linear infinite;
 }
 </style>

+ 1 - 1
src/views/todo/seats/accept/index.vue

@@ -1074,9 +1074,9 @@ const chooseAdvice = (item: any) => {
 };
 // 流程提交成功
 const orderProcessSuccess = () => {
+  mittBus.emit('clearCache', ['order', 'todoSeats', 'todoOrder', 'todoCenter', 'callLog']);
 	// 关闭当前 tagsView
 	mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 1, ...route }));
-	mittBus.emit('clearCache', ['order', 'todoSeats', 'todoOrder', 'todoCenter', 'callLog']);
 };
 // 取消
 const onCancel = () => {