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