|
@@ -47,32 +47,32 @@
|
|
|
<a-divider style="background: #D6D6D6" />
|
|
|
<a-row type="flex" justify="space-between" :gutter="[16,16]">
|
|
|
<a-col :span="10">
|
|
|
- <a-button shape="round" block>
|
|
|
+ <a-button shape="round" @click="handleRouter(1)" block>
|
|
|
配件记录
|
|
|
</a-button>
|
|
|
</a-col>
|
|
|
<a-col :span="10">
|
|
|
- <a-button shape="round" @click="handleCheckFinish()" block>
|
|
|
+ <a-button shape="round" @click="handleRouter(2)" block>
|
|
|
保养记录
|
|
|
</a-button>
|
|
|
</a-col>
|
|
|
<a-col :span="10">
|
|
|
- <a-button shape="round" block>
|
|
|
+ <a-button shape="round" @click="handleRouter(3)" block>
|
|
|
历史故障
|
|
|
</a-button>
|
|
|
</a-col>
|
|
|
<a-col :span="10">
|
|
|
- <a-button shape="round" block>
|
|
|
+ <a-button shape="round" @click="handleRouter(4)" block>
|
|
|
历史费用
|
|
|
</a-button>
|
|
|
</a-col>
|
|
|
<a-col :span="10">
|
|
|
- <a-button shape="round" block>
|
|
|
+ <a-button shape="round" @click="handleRouter(5)" block>
|
|
|
状态变更记录
|
|
|
</a-button>
|
|
|
</a-col>
|
|
|
<a-col :span="10">
|
|
|
- <a-button shape="round" block>
|
|
|
+ <a-button shape="round" @click="handleRouter(6)" block>
|
|
|
停机记录
|
|
|
</a-button>
|
|
|
</a-col>
|
|
@@ -448,8 +448,28 @@ export default {
|
|
|
const routeUrl = this.$router.resolve({ path: '/check/polling-job', query: { id: this.model.id } })
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|
|
|
- handleCheckFinish () {
|
|
|
- const routeUrl = this.$router.resolve({ path: '/check/polling-job/finish', query: { id: this.model.id } })
|
|
|
+ // 根据keyNum路由相关页面
|
|
|
+ handleRouter (keyNum) {
|
|
|
+ const id = this.model.id
|
|
|
+ var routeUrl = ''
|
|
|
+ if (keyNum === 1) {
|
|
|
+ routeUrl = this.$router.resolve({ path: '/spare/used/record', query: { id: id } })
|
|
|
+ }
|
|
|
+ if (keyNum === 2) {
|
|
|
+ routeUrl = this.$router.resolve({ path: '/check/polling-job/finish', query: { id: id } })
|
|
|
+ }
|
|
|
+ if (keyNum === 3) {
|
|
|
+ routeUrl = this.$router.resolve({ path: '/repair/form', query: { id: id } })
|
|
|
+ }
|
|
|
+ if (keyNum === 4) {
|
|
|
+ routeUrl = this.$router.resolve({ path: '/repair/form', query: { id: id } })
|
|
|
+ }
|
|
|
+ if (keyNum === 5) {
|
|
|
+ routeUrl = this.$router.resolve({ path: '/status/log', query: { id: id } })
|
|
|
+ }
|
|
|
+ if (keyNum === 6) {
|
|
|
+ routeUrl = this.$router.resolve({ path: '/stop/log', query: { id: id } })
|
|
|
+ }
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|
|
|
handleMeasure (record) {
|