提交 648873e1 编写于 作者: 张磊's avatar 张磊

Merge branch 'feature/zl' into 'release'

change btn

See merge request !187
......@@ -220,7 +220,7 @@
阳性报销
</div>
</div>
<div v-else class="submit-container multi-sub-wrap">
<div v-if="showFlagForReport" class="submit-container multi-sub-wrap">
<div
class="submit-button2"
@click="getReport()"
......@@ -293,7 +293,8 @@ export default {
},
openWebAppBtnName: '报告解读',
yunOrderNo: '',
action_code: ''
action_code: '',
showFlagForReport: false
};
},
created() {
......@@ -355,6 +356,11 @@ export default {
}
this.$loading.hide();
});
getDetailByYunOrderNo(this.yunOrderNo).then(res => {
console.log(res);
const {showFlagForReport} = res.data;
this.showFlagForReport = showFlagForReport;
});
},
copyText(val) {
const input = document.createElement('input');
......@@ -464,16 +470,11 @@ export default {
},
getReport() {
this.$loading.show('报告生成中,请稍等...');
getDetailByYunOrderNo(this.yunOrderNo).then(res => {
console.log(res);
const {showFlagForReport} = res.data;
if(showFlagForReport == 1) {
const p = {
env: VUE_APP_ENV == 'production' ? 'prod' : 'test1',
sample_code: this.dataDetail.sampleCode,
res_type: 1
};
//
axios.post('https://project.picahealth.com/auto_set_detection_report', p)
.then(res => {
console.error('请求menu接口失败error', res);
......@@ -486,11 +487,6 @@ export default {
this.$toast(errorMessage);
this.init();
});
}else {
this.$loading.hide();
}
console.log('--showFlagForReport', showFlagForReport);
});
},
},
};
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册