|
@@ -103,7 +103,16 @@
|
|
|
this.getTermTypes();
|
|
|
},
|
|
|
methods: {
|
|
|
- async getTermTypes(){
|
|
|
+ getTermTypes(){
|
|
|
+ api.getAllType().then((res)=>{
|
|
|
+ if(res.data.code=='0'){
|
|
|
+ this.termTypes = res.data.data.records;
|
|
|
+ }
|
|
|
+ }).catch((error)=>{
|
|
|
+ console.log('获取术语类型失败');
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /*async getTermTypes(){
|
|
|
let types = localStorage.getItem('termTypes');
|
|
|
if(!types){
|
|
|
types = await api.getAllType();
|
|
@@ -113,7 +122,7 @@
|
|
|
}else{
|
|
|
this.termTypes = JSON.parse(types).records;
|
|
|
}
|
|
|
- },
|
|
|
+ },*/
|
|
|
toEditProduct(row){
|
|
|
this.$router.push({
|
|
|
name:'AddMedicinePrompt',
|