济菏高速业务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
784 B

import Vue from "vue";
import { getDicts } from "@/api/system/dict/data";
export default function(){
return Promise.all([
getDicts('iot_device_font_type'),
// getDicts('iot_devices_font_color'),
// getDicts('iot_device_font_inScreen_mode'),
// getDicts('iot_template_category'),
// getDicts('iot_device_font_size'),
]).then(resArr=>{
initFontType(resArr[0]);
function initFontType(res){
let dic = {};
res.data.forEach(item => {
dic[item.dictValue] = item.cssClass;
});
Vue.prototype.fontTypeDic = dic;
Vue.prototype.fontTypeList = res.data;
}
});
}