|
|
@ -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);
|
|
|
|