完成预测功能2

master
ynmlzdwsp 11 months ago
parent e24a8a8883
commit c64f67086f

@ -41,7 +41,7 @@
<!-- 爱情买卖 --> <!-- 爱情买卖 -->
<li @click="$router.push({path: '/love'})"> <li @click="$router.push({path: '/love'})">
<div class="my-menu"> <div class="my-menu">
💋 <span>预测研发流程</span> 🥼 <span>预测研发流程</span>
</div> </div>
</li> </li>

@ -446,7 +446,7 @@ import {listTable1, predictReaction} from "@/utils/table1";
data() { data() {
return { return {
predictResult:'000', predictResult:'type预测结果',
smiles1 :'', smiles1 :'',
smiles2 :'', smiles2 :'',
userLove: { userLove: {
@ -539,10 +539,10 @@ import {listTable1, predictReaction} from "@/utils/table1";
methods: { methods: {
/** 预测按钮操作 */ /** 预测按钮操作 */
handleQuery() { handleQuery() {
this.predictResult = '预测出错,请重试'; this.predictResult = '输入的SMILES错误,请重试';
predictReaction(this.smiles1, this.smiles2) predictReaction(this.smiles1, this.smiles2)
.then(prediction => { .then(prediction => {
this.predictResult = prediction; this.predictResult = "type:"+prediction;
}) })
.catch(error => { .catch(error => {
console.error(error); console.error(error);

Loading…
Cancel
Save