diff --git a/src/assets/css/index.css b/src/assets/css/index.css index f128908..f45dec4 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -43,8 +43,8 @@ body { /* 模块化背景色及透明度 */ .background-opacity { - /*background: var(--background);*/ - /*opacity: 0.88;*/ + background-color: var(--background); + opacity: 0.88; } .my-el-image { diff --git a/src/components/home.vue b/src/components/home.vue index d87617e..2be23fe 100644 --- a/src/components/home.vue +++ b/src/components/home.vue @@ -41,7 +41,7 @@
  • - 💋 预测研发流程 + 🥼 预测研发流程
  • diff --git a/src/components/index.vue b/src/components/index.vue index 372f960..34a8464 100644 --- a/src/components/index.vue +++ b/src/components/index.vue @@ -39,6 +39,10 @@ +
    +
    - +
    -
    - {{ notice }} -
    + + + +             世界上只有一种真正的英雄主义,那就是看清生活的真相之后,依然勇敢地热爱生活。
    - - - - - - - - + @@ -141,7 +132,7 @@
    diff --git a/src/main.js b/src/main.js index 8d6c669..d739f60 100644 --- a/src/main.js +++ b/src/main.js @@ -8,7 +8,8 @@ import common from './utils/common' import constant from './utils/constant' import mavonEditor from 'mavon-editor' //引入js -import './utils/live2d' +//注释掉下面一行就取消了看板娘 +// import './utils/live2d' import './utils/title' //引入css import './assets/css/animation.css' diff --git a/src/utils/table1.js b/src/utils/table1.js index ae69705..33a5bcf 100644 --- a/src/utils/table1.js +++ b/src/utils/table1.js @@ -7,15 +7,51 @@ export function listTable1(query) { .catch(error => console.error(error)); } +/** + * 查询药品总条数 + * @param query + * @returns {Promise | void>} + */ +export function listTotal(query) { + const url = '/system/table1/total'; + return axios.get(url, { params: query }) + .then(response => response.data) + .catch(error => console.error(error)); +} -// 查询药品作用管理详细 -export function getTable1(id) { - return request({ - url: '/system/table1/' + id, - method: 'get' - }) +/** + * 查询药品详细描述 + * @param query + * @returns {Promise | void>} + */ +export function selectDetails(drugName) { + const url = '/system/table1/details'; + return axios.get(url, { params: { drugName } }) + .then(response => response.data) + .catch(error => console.error(error)); +} + +/** + * + * @param drugName + * @returns {Promise | void>} + */ +export function predictReaction(mol1, mol2) { + const url = 'http://127.0.0.1:5000/predict'; + return axios.get(url, { params: { mol1, mol2 } }) + .then(response => Number(response.data)) + .catch(error => {console.error(error);throw new Error('请求出错');}); // 抛出错误 } + +// 查询药品作用管理详细 +// export function getTable1(id) { +// return request({ +// url: '/system/table1/' + id, +// method: 'get' +// }) +// } + // // 新增药品作用管理 // export function addTable1(data) { // return request({