|
@@ -138,10 +138,21 @@ export default {
|
|
getDicList() {
|
|
getDicList() {
|
|
api.getDicList().then(res => {
|
|
api.getDicList().then(res => {
|
|
// console.log(res, '字典类型');
|
|
// console.log(res, '字典类型');
|
|
|
|
+ // if (res.data.code === '0') {
|
|
|
|
+
|
|
|
|
+ // this.drugList = res.data.data && res.data.data['9'];
|
|
|
|
+
|
|
|
|
+ // }
|
|
|
|
+
|
|
if (res.data.code === '0') {
|
|
if (res.data.code === '0') {
|
|
- // console.log( res.data.data);
|
|
|
|
- this.drugList = res.data.data && res.data.data['9'];
|
|
|
|
- // console.log(this.typeList,'this.typeList');
|
|
|
|
|
|
+ let dragData = [];
|
|
|
|
+ res.data.data &&
|
|
|
|
+ res.data.data['9'].forEach(item => {
|
|
|
|
+ if (item.val !== '0') {
|
|
|
|
+ dragData.push(item);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ this.drugList = dragData;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|