Commit ede0ff04 authored by wuhao's avatar wuhao 🎯

asder

parent f59d6525
...@@ -11,7 +11,7 @@ export default { ...@@ -11,7 +11,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/api/** // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
"/wms/": { "/wms/": {
// 要代理的地址 // 要代理的地址
target: "http://192.168.40.212:18040/", //39:18040 23/wms/ //60 翔 target: "http://192.168.40.18:18040/", //39:18040 23/wms/ //60 翔 //18
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
"^/wms": "", "^/wms": "",
......
...@@ -81,10 +81,10 @@ const Specialproperties = (props) => { ...@@ -81,10 +81,10 @@ const Specialproperties = (props) => {
}; };
const searchTree = (val, e) => { const searchTree = (val, e) => {
let value; let value;
if (e) { if (val) {
value = e.target.value;
} else {
value = val; value = val;
} else {
value = e.target.value;
} }
const dataLists = getAllList(); const dataLists = getAllList();
const expandedKeys = dataLists const expandedKeys = dataLists
...@@ -101,6 +101,10 @@ const Specialproperties = (props) => { ...@@ -101,6 +101,10 @@ const Specialproperties = (props) => {
searchValue: { formName: value }, searchValue: { formName: value },
}); });
}; };
const selectTree = (selectedKeys, selectedNodes) => { const selectTree = (selectedKeys, selectedNodes) => {
const dataLists = getAllList(); const dataLists = getAllList();
let checkedNode = dataLists.filter((it) => it.key == selectedKeys[0])[0]; let checkedNode = dataLists.filter((it) => it.key == selectedKeys[0])[0];
...@@ -142,6 +146,7 @@ const Specialproperties = (props) => { ...@@ -142,6 +146,7 @@ const Specialproperties = (props) => {
placeholder="请输入" placeholder="请输入"
onSearch={searchTree} onSearch={searchTree}
allowClear allowClear
/> />
<Tree <Tree
onExpand={onExpand} onExpand={onExpand}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment