Browse Source

fix: 栈溢出问题解决

text-draggable
xuesinan 4 years ago
parent
commit
3e7778b0a7
  1. 9
      src/App.vue
  2. 8
      src/components/tall/Render/Render.vue
  3. 8
      src/components/tall/center/Global.vue
  4. 11
      src/components/tall/center/RegularTask.vue
  5. 2
      src/plugins/p-account-management/p-account-management.vue
  6. 6
      src/plugins/p-daily-account/p-daily-account-detail.vue
  7. 4
      src/plugins/p-daily-account/p-daily-account.vue
  8. 2
      src/plugins/p-deliver-second/p-deliver-second.vue
  9. 2
      src/plugins/p-deliver/p-deliver.vue
  10. 2
      src/plugins/p-domain-source-manage/p-domain-source-manage.vue
  11. 2
      src/plugins/p-project-version-management/p-project-version-management.vue
  12. 2
      src/plugins/p-source-manage/p-source-manage.vue
  13. 2
      src/plugins/p-task-title.vue
  14. 3
      src/store/tall/task/index.js
  15. 2
      src/views/home/Index.vue

9
src/App.vue

@ -215,4 +215,13 @@ body,
.rounded-md { .rounded-md {
border-radius: 0.375rem; border-radius: 0.375rem;
} }
/* 任务面板 */
.task-card-plugin {
padding: 12px;
border-radius: 10px;
-moz-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12);
-webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12);
box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12);
}
</style> </style>

8
src/components/tall/Render/Render.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="render-box shadow-lg block w-full"> <div class="render-box shadow-lg block w-full task-card-plugin">
<view <div
class="render-content block w-full" class="render-content block w-full"
:id="`render-${props.task.id}`" :id="`render-${props.task.id}`"
:data-did="props.task.detailId" :data-did="props.task.detailId"
@ -17,8 +17,8 @@
:data-uid="userId" :data-uid="userId"
:data-url="project.url" :data-url="project.url"
:data-type="1" :data-type="1"
></view> ></div>
</view> </div>
</template> </template>
<script setup> <script setup>

8
src/components/tall/center/Global.vue

@ -2,10 +2,13 @@
<div class="global"> <div class="global">
<div <div
class="global-box" class="global-box"
v-if="globals.length || (project.businessCode === 'ZERO' && roleInfo && roleInfo.name === '管理员')" v-if="globals.length || (project.businessCode === 'ZERO' && roleInfo && roleInfo.id === roleId && roleInfo.name === '管理员')"
style="max-height: calc((100vh - 50px - 44px - 36px - 10px) / 5 * 4)" style="max-height: calc((100vh - 50px - 44px - 36px - 10px) / 5 * 4)"
> >
<div class="task-card-plugin my-3" v-if="project.businessCode === 'ZERO' && roleInfo && roleInfo.name === '管理员'"> <div
class="task-card-plugin my-3"
v-if="project.businessCode === 'ZERO' && roleInfo && roleInfo.id === roleId && roleInfo.name === '管理员'"
>
<a-button type="primary" block @click="toWorkbench">工作台</a-button> <a-button type="primary" block @click="toWorkbench">工作台</a-button>
</div> </div>
@ -15,7 +18,6 @@
<div v-for="(pluginArr, i) in item.plugins" :key="i"> <div v-for="(pluginArr, i) in item.plugins" :key="i">
<div class="my-3" v-if="pluginArr.length"> <div class="my-3" v-if="pluginArr.length">
<Plugin <Plugin
class="task-card-plugin"
v-for="plugin in pluginArr" v-for="plugin in pluginArr"
:key="plugin.pluginTaskId" :key="plugin.pluginTaskId"
:plugin-id="plugin.pluginId" :plugin-id="plugin.pluginId"

11
src/components/tall/center/RegularTask.vue

@ -21,7 +21,6 @@
<div v-for="(pluginArr, i) in item.plugins" :key="i"> <div v-for="(pluginArr, i) in item.plugins" :key="i">
<div :class="{ 'pt-3': i > 0 }" v-if="pluginArr.length"> <div :class="{ 'pt-3': i > 0 }" v-if="pluginArr.length">
<Plugin <Plugin
class="task-card-plugin"
v-for="plugin in pluginArr" v-for="plugin in pluginArr"
:key="plugin.pluginTaskId" :key="plugin.pluginTaskId"
:plugin-id="plugin.pluginId" :plugin-id="plugin.pluginId"
@ -37,7 +36,7 @@
</template> </template>
<div v-else class=""> <div v-else class="">
<Plugin class="task-card-plugin" plugin-id="1" :task="item" /> <Plugin plugin-id="1" :task="item" />
</div> </div>
</div> </div>
</div> </div>
@ -388,14 +387,6 @@ function setNextPlaceholderTasks() {
height: 20px; height: 20px;
} }
.task-card-plugin {
padding: 12px;
border-radius: 10px;
-moz-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12);
-webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12);
box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.12);
}
.task-con { .task-con {
margin-top: 16px; margin-top: 16px;
padding-left: 16px; padding-left: 16px;

2
src/plugins/p-account-management/p-account-management.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="flex justify-around"> <div class="flex justify-around task-card-plugin">
<a-button type="primary" style="width: 125px" @click="openAudit">账号管理</a-button> <a-button type="primary" style="width: 125px" @click="openAudit">账号管理</a-button>
<a-button type="primary" style="width: 125px" @click="openStatistical">UI配置</a-button> <a-button type="primary" style="width: 125px" @click="openStatistical">UI配置</a-button>
</div> </div>

6
src/plugins/p-daily-account/p-daily-account-detail.vue

@ -331,6 +331,10 @@ async function getQueryTasks() {
const data = await queryTasks(params, url); const data = await queryTasks(params, url);
if (formState.timeRange[0].startOf('day').add(1, 'day').valueOf() === formState.timeRange[1].startOf('day').valueOf()) {
current.value = 1;
}
columns.value = [ columns.value = [
{ {
title: '时间', title: '时间',
@ -403,7 +407,7 @@ function handleSubmit() {
if (index > -1) proDatas.value.push(item.id); if (index > -1) proDatas.value.push(item.id);
}); });
if (!startTime.value) startTime.value = dayjs(+formState.timeRange[0].startOf('day')).valueOf(); startTime.value = dayjs(+formState.timeRange[0].startOf('day')).valueOf();
const end = dayjs(+startTime.value).add(1, 'day'); const end = dayjs(+startTime.value).add(1, 'day');
endTime.value = dayjs(+end).valueOf(); endTime.value = dayjs(+end).valueOf();
getQueryTasks(); getQueryTasks();

4
src/plugins/p-daily-account/p-daily-account.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="w-full block text-center"> <div class="w-full block text-center task-card-plugin">
<a-button type="primary" style="width: 250px" @click="openDailyAccount">流水账</a-button> <a-button type="primary" style="width: 250px" @click="openDailyAccount">流水账</a-button>
</view> </div>
</template> </template>
<script setup> <script setup>

2
src/plugins/p-deliver-second/p-deliver-second.vue

@ -1,6 +1,6 @@
<template> <template>
<!-- 任务名插件 --> <!-- 任务名插件 -->
<div> <div v-if="deliver" class="task-card-plugin">
<p-deliver-upload-second v-if="deliver" @upload-success="getDeliverData"></p-deliver-upload-second> <p-deliver-upload-second v-if="deliver" @upload-success="getDeliverData"></p-deliver-upload-second>
<!-- <p-deliver-check-second <!-- <p-deliver-check-second

2
src/plugins/p-deliver/p-deliver.vue

@ -1,6 +1,6 @@
<template> <template>
<!-- 任务名插件 --> <!-- 任务名插件 -->
<div> <div v-if="deliver" class="task-card-plugin">
<p-deliver-upload v-if="deliver" @upload-success="getDeliverData"></p-deliver-upload> <p-deliver-upload v-if="deliver" @upload-success="getDeliverData"></p-deliver-upload>
<p-deliver-check <p-deliver-check

2
src/plugins/p-domain-source-manage/p-domain-source-manage.vue

@ -1,6 +1,6 @@
<!-- 域资源管理 --> <!-- 域资源管理 -->
<template> <template>
<div class="text-center"> <div class="text-center task-card-plugin">
<a-button type="primary" style="width: 250px" @click="openSourceManage">域资源管理</a-button> <a-button type="primary" style="width: 250px" @click="openSourceManage">域资源管理</a-button>
</div> </div>
</template> </template>

2
src/plugins/p-project-version-management/p-project-version-management.vue

@ -1,6 +1,6 @@
<!-- 项目版本管理 --> <!-- 项目版本管理 -->
<template> <template>
<div class="text-center"> <div class="text-center task-card-plugin">
<a-button type="primary" style="width: 250px" @click="openSourceManage">项目版本管理</a-button> <a-button type="primary" style="width: 250px" @click="openSourceManage">项目版本管理</a-button>
</div> </div>
</template> </template>

2
src/plugins/p-source-manage/p-source-manage.vue

@ -1,6 +1,6 @@
<!-- 资源管理 --> <!-- 资源管理 -->
<template> <template>
<div class="text-center"> <div class="text-center task-card-plugin">
<a-button type="primary" class="" style="width: 250px" @click="openSourceManage">资源管理</a-button> <a-button type="primary" class="" style="width: 250px" @click="openSourceManage">资源管理</a-button>
</div> </div>
</template> </template>

2
src/plugins/p-task-title.vue

@ -1,6 +1,6 @@
<template> <template>
<!-- 任务名插件 --> <!-- 任务名插件 -->
<div class="u-font-14"> <div class="u-font-14 task-card-plugin">
{{ task.name }} {{ task.name }}
</div> </div>
</template> </template>

3
src/store/tall/task/index.js

@ -407,7 +407,8 @@ export default {
*/ */
setTaskDetailUrl(state, data) { setTaskDetailUrl(state, data) {
state.taskDetailUrl = data; state.taskDetailUrl = data;
sessionStorage.setItem('targetUrl', data); sessionStorage.setItem('targetUrl', '');
sessionStorage.setItem('taskDetailUrl', data);
}, },
/** /**

2
src/views/home/Index.vue

@ -93,7 +93,7 @@ onMounted(() => {
}); });
window.addEventListener('setItemEvent', e => { window.addEventListener('setItemEvent', e => {
if (e.key === 'targetUrl') { if (e.key === 'targetUrl' && e.newValue) {
store.commit('task/setTaskDetailUrl', e.newValue); store.commit('task/setTaskDetailUrl', e.newValue);
} }
// console.log('sessionStorage:', e); // console.log('sessionStorage:', e);

Loading…
Cancel
Save