浏览代码

流程展示添加空状态

lph 1 年之前
父节点
当前提交
b24dfc4b3b
共有 1 个文件被更改,包括 10 次插入6 次删除
  1. 10 6
      zkqy-ui/src/views/bussiness/progressShow.vue

+ 10 - 6
zkqy-ui/src/views/bussiness/progressShow.vue

@@ -47,12 +47,15 @@
         </div>
       </div>
       <div class="show-body">
-        <TaskList
-          v-for="(item, index) of tableData"
-          :key="index + 1"
-          :num="index + 1"
-          :cardData="item"
-        ></TaskList>
+        <template v-if="tableData.length > 0">
+          <TaskList
+            v-for="(item, index) of tableData"
+            :key="index + 1"
+            :num="index + 1"
+            :cardData="item"
+          ></TaskList>
+        </template>
+        <el-empty v-else description="暂无数据"></el-empty>
         <pagination
           v-show="total > 0"
           :total="total"
@@ -70,6 +73,7 @@ import TaskList from "./components/taskList.vue";
 import { processList, getListLog } from "@/api/bpmprocess/run/executeProcess";
 import getNodeSequence from "@/utils/bpmn/getNodeSequence";
 import { xmlStr2XmlObj } from "@/utils/bpmn/xml";
+
 export default {
   name: "ProgressShow",
   props: [],