|
@@ -52,6 +52,7 @@
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm">重置</a-button>
|
|
|
+ <a-button style="margin-left: 8px" @click="handleAdd">新增</a-button>
|
|
|
</span>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -175,7 +176,7 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
// 下拉框map
|
|
|
- tokenType:1,
|
|
|
+ tokenType: 1,
|
|
|
delFlagMap: {},
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
@@ -330,6 +331,12 @@ export default {
|
|
|
onExpand (expandedKeys) {
|
|
|
this.expandedKeys = expandedKeys
|
|
|
this.autoExpandParent = false
|
|
|
+ },
|
|
|
+ handleAdd () {
|
|
|
+ const a = document.createElement('a')
|
|
|
+ a.href = '/spare/part/info'
|
|
|
+ a.target = '_about'
|
|
|
+ a.click()
|
|
|
}
|
|
|
}
|
|
|
}
|