|
@@ -16,10 +16,10 @@
|
|
|
</a-badge>
|
|
|
|
|
|
<a-badge :count="numCheckStandard1" title="点检标准" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
- <a-button style="margin-left: 20px" type="default" @ok="handleOk" @click="handleViewCheck(1)">点检标准</a-button>
|
|
|
+ <a-button style="margin-left: 20px" type="default" @ok="handleOk" @click="handleViewCheck2(1)">点检标准</a-button>
|
|
|
</a-badge>
|
|
|
<a-badge :count="numCheckjob1" title="点检任务" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
- <a-button style="margin-left: 20px" type="default" @click="handleViewCheckJob(1)">点检任务</a-button>
|
|
|
+ <a-button style="margin-left: 20px" type="default" @click="handleViewCheckJob2(1)">点检任务</a-button>
|
|
|
</a-badge>
|
|
|
|
|
|
<a-badge :count="numCheckStandard2" title="保养标准" :number-style="{ backgroundColor: '#52c41a' }">
|
|
@@ -30,10 +30,10 @@
|
|
|
</a-badge>
|
|
|
|
|
|
<a-badge :count="numCheckStandard3" title="润滑标准" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
- <a-button style="margin-left: 20px" type="default" @ok="handleOk" @click="handleViewCheck(3)">润滑标准</a-button>
|
|
|
+ <a-button style="margin-left: 20px" type="default" @ok="handleOk" @click="handleViewCheck3(3)">润滑标准</a-button>
|
|
|
</a-badge>
|
|
|
<a-badge :count="numCheckjob3" title="润滑任务" :number-style="{ backgroundColor: '#52c41a' }">
|
|
|
- <a-button style="margin-left: 20px" type="default" @click="handleViewCheckJob(3)">润滑任务</a-button>
|
|
|
+ <a-button style="margin-left: 20px" type="default" @click="handleViewCheckJob3(3)">润滑任务</a-button>
|
|
|
</a-badge>
|
|
|
<a-button style="margin-left: 20px" type="default" @click="handleViewTree()">设备树</a-button>
|
|
|
<a-button v-show="model.useType==4" style="margin-left: 8px" type="default" @click="handleMeasure()">检定记录</a-button>
|
|
@@ -457,11 +457,29 @@ export default {
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|
|
|
handleViewCheck (type) {
|
|
|
+ const routeUrl = this.$router.resolve({ path: '/check/polling-standard', query: { id: this.model.id, checkType: type } })
|
|
|
+ // let routeUrl = this.$router.resolve(`/share/${96}`)
|
|
|
+ window.open(routeUrl.href, '_blank')
|
|
|
+ },
|
|
|
+ handleViewCheck2 (type) {
|
|
|
+ const routeUrl = this.$router.resolve({ path: '/check/spot-standard', query: { id: this.model.id, checkType: type } })
|
|
|
+ // let routeUrl = this.$router.resolve(`/share/${96}`)
|
|
|
+ window.open(routeUrl.href, '_blank')
|
|
|
+ },
|
|
|
+ handleViewCheck3 (type) {
|
|
|
const routeUrl = this.$router.resolve({ path: '/check-run-standard', query: { id: this.model.id, checkType: type } })
|
|
|
// let routeUrl = this.$router.resolve(`/share/${96}`)
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|
|
|
handleViewCheckJob (type) {
|
|
|
+ const routeUrl = this.$router.resolve({ path: '/check/polling-job', query: { id: this.model.id, checkType: type } })
|
|
|
+ window.open(routeUrl.href, '_blank')
|
|
|
+ },
|
|
|
+ handleViewCheckJob2 (type) {
|
|
|
+ const routeUrl = this.$router.resolve({ path: '/check/spot-job', query: { id: this.model.id, checkType: type } })
|
|
|
+ window.open(routeUrl.href, '_blank')
|
|
|
+ },
|
|
|
+ handleViewCheckJob3 (type) {
|
|
|
const routeUrl = this.$router.resolve({ path: '/check-run-job', query: { id: this.model.id, checkType: type } })
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|