|
@@ -18,7 +18,7 @@
|
|
|
:value="task.code"
|
|
|
/>
|
|
|
</el-select>
|
|
|
- <el-button class="filter-item" v-if="bgrhStatus < 1" style="margin-left: 10px;" type="primary" @click="">
|
|
|
+ <el-button class="filter-item" v-if="bgrhStatus < 1" style="margin-left: 10px;" type="primary" @click="generateBgrh()">
|
|
|
生成融合数据
|
|
|
</el-button>
|
|
|
<el-button :disabled="true" class="filter-item" v-if="bgrhStatus === 1" style="margin-left: 10px;" type="primary" @click="exportReport()">
|
|
@@ -93,7 +93,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
generateBgrh () {
|
|
|
- Http.post(Api.MIXDEFECT.GENERATE.replace('{taskCode}', this.selectedTaskCode)).then((res) => {
|
|
|
+ Http.get(Api.MIXDEFECT.GENERATE.replace('{taskCode}', this.selectedTaskCode)).then((res) => {
|
|
|
if (res.code === 20000) {
|
|
|
notify('success', '报告融合数据生成中...')
|
|
|
this.bgrhStatus = 1
|
|
@@ -101,7 +101,6 @@ export default {
|
|
|
notify('error', '生成报告融合数据失败')
|
|
|
}
|
|
|
}).catch((error) => {
|
|
|
- this.hideLoading()
|
|
|
notify('error', '生成报告融合数据异常:系统异常')
|
|
|
})
|
|
|
},
|