功能太多了,代码量也多,有些接口什么的都没改,大家可以做个参考!
<el-button type=“primary” @click=“loadPage(1, 10)”>查询
<el-button @click=“resetQuery”>重置
<el-table border ref=“singleTable” :data=“tableData” highlight-current-row
@current-change=“handleCurrentChange” style=“width: 100%;margin-bottom:2%”>
<div style=“color:blue” v-if=“scope.row.workflows.length <= 0”
@click=“boa2(scope.row)”>新建
{{ scope.row.workflows.length }}
<el-dropdown-item v-for=“item, index in scope.row.workflows”
:key=“item.workflowId” @click.native=“boa2(scope.row, index)”
v-model=“lily”>版本:{{ item.version }}
<el-pagination @size-change=“handleSizeChange” @current-change=“handlePageChangeTable”
:current-page.sync=“pageData.current” :page-size.sync=“pageData.size”
layout=“total, sizes, prev, pager, next, jumper” :total=“total” style=“margin-top: 30px;”>
}
附图
希望能帮助到大家!!