|
|
@@ -131,6 +131,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <p v-show="groupedLockers.length==0" style="margin-top:20px;text-align: center">暂无数据</p>
|
|
|
</div>
|
|
|
<!-- 共锁人区域 -->
|
|
|
<div class="right_box">
|
|
|
@@ -143,6 +144,7 @@
|
|
|
<div class="user-name">{{ user.userName }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <p v-show="coLockUsers.length==0" style="margin-top:20px;text-align: center">暂无数据</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
@@ -245,7 +247,8 @@
|
|
|
<span class="tab-text">作业日志</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <div class="joblogCon">
|
|
|
+ <p v-show="filteredJoblogList.length==0" style="margin-top:20px;text-align: center">暂无数据</p>
|
|
|
+ <div class="joblogCon" v-show="filteredJoblogList.length>0">
|
|
|
<!--顶部日志内容-->
|
|
|
<div class="joblogTop">
|
|
|
<p v-for="(item, index) in filteredJoblogList" :key="index">
|
|
|
@@ -304,6 +307,7 @@ import { CaretRight } from '@element-plus/icons-vue'
|
|
|
import { getTicketOperLogPage } from '@/api/job/index'
|
|
|
import { connectWebsocket, closeWebsocket } from '@/utils/webSocket'
|
|
|
import { getIsSystemAttributeByKey } from '@/api/basic/configuration/index'
|
|
|
+import type { TabsPaneContext } from 'element-plus'
|
|
|
|
|
|
const JobForm = reactive({
|
|
|
createTime: null,
|
|
|
@@ -365,6 +369,8 @@ const isJoblogVisible = ref(false)
|
|
|
const JoblogDialogVisible = ref(false)
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
// 初始化
|
|
|
onMounted(async () => {
|
|
|
await getDetail()
|
|
|
@@ -376,7 +382,11 @@ onMounted(async () => {
|
|
|
window.addEventListener('resize', onResize)
|
|
|
onResize()
|
|
|
getWebSocket()
|
|
|
- if (route.query.todoType == 'CONFIRM' || route.query.todoType == 'END') {
|
|
|
+ const todoType = route.query.todoType as string | undefined
|
|
|
+ if (!todoType) {
|
|
|
+ // 没传值、undefined、null、空字符串都进这里
|
|
|
+ activeName.value = 'first'
|
|
|
+ } else if (todoType == 'CONFIRM' || todoType == 'END') {
|
|
|
activeName.value = 'fourth'
|
|
|
await handleClick({ paneName: 'fourth' } as TabsPaneContext, new Event('click'))
|
|
|
} else {
|
|
|
@@ -968,6 +978,12 @@ const onNewSocketLog=async (rawLogStr)=> {
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
+.demo-tabs > .el-tabs__content {
|
|
|
+ padding: 32px;
|
|
|
+ color: #6b778c;
|
|
|
+ font-size: 32px;
|
|
|
+ font-weight: 600;
|
|
|
+}
|
|
|
.basicInformation {
|
|
|
border: 1px solid #dcdfe6;
|
|
|
border-radius: 4px;
|
|
|
@@ -1430,4 +1446,5 @@ const onNewSocketLog=async (rawLogStr)=> {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</style>
|