-- 先设置参数
// 使用switch结构优化多条件判断({{JS判断操作系统语言(浏览器)-1886.md}})
switch(aa) {
case "物料采购宗数":
window.open(
"https://www.baidu.com/?tn=62095104_29_oem_dg&ch=6",
"_blank",
"width=800,height=600"
);
break;
case "物料采购金额":
window.open(
"https://baijiahao.baidu.com/s?id=1832247028504573469&wfr=spider&for=pc",
"_blank",
"width=800,height=600"
);
break;
case "供应商宗数":
window.open(
"https://mbd.baidu.com/newspage/data/landingsuper?context=%7B%22nid%22%3A%22news_9360932211423624799%22%7D&n_type=1&p_from=3",
"_blank",
"width=800,height=600"
);
break;
case "供应商金额":
window.open(
"https://mbd.baidu.com/newspage/data/landingsuper?context=%7B%22nid%22%3A%22news_9557378410688803957%22%7D&n_type=1&p_from=4",
"_blank",
"width=800,height=600"
);
break;
default:
console.warn("未匹配到有效条件");
}