|
|
|
|
@ -35,6 +35,13 @@
|
|
|
|
|
<Button type="error" @click="batchDelete" :disabled="selectedRows.length === 0">批量删除</Button>
|
|
|
|
|
<Button type="success" @click="toggleTreeView">{{ showTree ? '列表视图' : '树形视图' }}</Button>
|
|
|
|
|
<Button type="warning" @click="showSummaryView">汇总查看</Button>
|
|
|
|
|
<Button
|
|
|
|
|
type="info"
|
|
|
|
|
@click="openMultiPackageSummary"
|
|
|
|
|
:disabled="selectedLevel1Packages.length === 0"
|
|
|
|
|
>
|
|
|
|
|
多包汇总提交 ({{ selectedLevel1Packages.length }})
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -55,7 +62,7 @@
|
|
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" :selectable="row => row.level === 1" />
|
|
|
|
|
<el-table-column align="left" label="序号" width="90">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span class="multi-level-number">{{ generateTreeNumber(scope.row) }}</span>
|
|
|
|
|
@ -117,7 +124,7 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="200">
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="250">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<Button
|
|
|
|
|
v-if="scope.row.level <= 2"
|
|
|
|
|
@ -139,6 +146,16 @@
|
|
|
|
|
>
|
|
|
|
|
添加子包
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
v-if="scope.row.level >= 2 && scope.row.level <= 3"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="viewDetail(scope.row)"
|
|
|
|
|
size="small"
|
|
|
|
|
style="margin-right: 5px;"
|
|
|
|
|
ghost
|
|
|
|
|
>
|
|
|
|
|
查看详情
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
v-if="scope.row.level <= 2"
|
|
|
|
|
type="error"
|
|
|
|
|
@ -164,7 +181,7 @@
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" :selectable="row => row.level === 1" />
|
|
|
|
|
<el-table-column align="left" label="序号" width="90">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span class="multi-level-number">{{ generateListNumber(scope.row, scope.$index) }}</span>
|
|
|
|
|
@ -238,7 +255,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="200">
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="250">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<Button
|
|
|
|
|
v-if="scope.row.level <= 2"
|
|
|
|
|
@ -260,6 +277,16 @@
|
|
|
|
|
>
|
|
|
|
|
添加子包
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
v-if="scope.row.level >= 2 && scope.row.level <= 3"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="viewDetail(scope.row)"
|
|
|
|
|
size="small"
|
|
|
|
|
style="margin-right: 5px;"
|
|
|
|
|
ghost
|
|
|
|
|
>
|
|
|
|
|
查看详情
|
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
v-if="scope.row.level <= 2"
|
|
|
|
|
type="error"
|
|
|
|
|
|