{{ scope.row.label }}
@@ -307,8 +321,12 @@
xmlns="http://www.w3.org/2000/svg"
>
+
数量
@@ -867,7 +885,11 @@
/* 蓝色按钮样式 */
.action-button {
- background: linear-gradient(135deg, rgba(64, 169, 255, 0.85) 0%, rgba(24, 144, 255, 0.85) 100%);
+ background: linear-gradient(
+ 135deg,
+ rgba(64, 169, 255, 0.85) 0%,
+ rgba(24, 144, 255, 0.85) 100%
+ );
color: white;
border: none;
padding: 8px 16px;
@@ -879,7 +901,11 @@
}
.action-button:hover {
- background: linear-gradient(135deg, rgba(105, 192, 255, 0.9) 0%, rgba(64, 169, 255, 0.9) 100%);
+ background: linear-gradient(
+ 135deg,
+ rgba(105, 192, 255, 0.9) 0%,
+ rgba(64, 169, 255, 0.9) 100%
+ );
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(64, 169, 255, 0.25);
}
@@ -1135,17 +1161,26 @@ export default {
loadTaskData(retryCount = 0) {
const maxRetries = 10; // 最大重试次数
const retryDelay = 100; // 重试间隔(ms)
-
+
try {
const listDataTask = [];
let allComponentsReady = true;
-
+
// 检查所有子组件是否已准备就绪
const childRefs = [
- 'childOne', 'child2', 'child3', 'child4', 'child5', 'child6',
- 'child7', 'child8', 'child9', 'child10', 'child11'
+ "childOne",
+ "child2",
+ "child3",
+ "child4",
+ "child5",
+ "child6",
+ "child7",
+ "child8",
+ "child9",
+ "child10",
+ "child11",
];
-
+
for (const refName of childRefs) {
const childRef = this.$refs[refName];
if (!isEmpty(childRef)) {
@@ -1157,12 +1192,12 @@ export default {
allComponentsReady = false;
}
}
-
+
if (allComponentsReady || retryCount >= maxRetries) {
// 所有组件都准备好了,或者已达到最大重试次数
this.listData = listDataTask;
this.listData.sort((a, b) => b.value - a.value);
- console.log('代办数据加载完成,共', this.listData.length, '条数据');
+ console.log("代办数据加载完成,共", this.listData.length, "条数据");
} else {
// 还有组件未准备好,延迟重试
setTimeout(() => {
@@ -1170,7 +1205,7 @@ export default {
}, retryDelay);
}
} catch (error) {
- console.error('加载代办数据时出错:', error);
+ console.error("加载代办数据时出错:", error);
// 出错时也尝试重试
if (retryCount < maxRetries) {
setTimeout(() => {