|
@@ -19,7 +19,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="table-operator" style="margin-bottom: 8px;">
|
|
|
- <a-button v-if="$auth('part-infos-add')" type="primary" icon="plus" @click="$refs.baseModal.base()">新增</a-button>
|
|
|
+ <a-button v-if="$auth('part-infos-add')" type="primary" icon="plus" @click="handleAdd">新增</a-button>
|
|
|
<a-button style="margin-left: 8px" v-if="$auth('part-infos-export')" type="primary" icon="download" @click="doExport">导出</a-button>
|
|
|
<a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('part-infos-del')">
|
|
|
<a-menu slot="overlay">
|
|
@@ -96,7 +96,6 @@ export default {
|
|
|
// 查询参数
|
|
|
queryParam: {
|
|
|
sbId: this.$route.query.id
|
|
|
-
|
|
|
},
|
|
|
statusMap: {},
|
|
|
unitMap: {},
|
|
@@ -155,6 +154,7 @@ export default {
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
+ this.sbId = this.queryParam.sbId
|
|
|
parameter = {
|
|
|
...parameter,
|
|
|
...this.queryParam,
|
|
@@ -213,6 +213,10 @@ export default {
|
|
|
this.optionAlertShow = false
|
|
|
}
|
|
|
},
|
|
|
+ handleAdd () {
|
|
|
+ const param = { sbId: this.sbId }
|
|
|
+ this.$refs.baseModal.base(param)
|
|
|
+ },
|
|
|
batchDelete (id) {
|
|
|
let ids = []
|
|
|
if (this.BaseTool.String.isBlank(id)) {
|