Commit dd6610fb authored by 陈祥烨's avatar 陈祥烨

shifting

parent ee5c6228
...@@ -6,7 +6,7 @@ import { getSortSences } from './api'; ...@@ -6,7 +6,7 @@ import { getSortSences } from './api';
const { TabList, Tab, TabPanel } = Tabs; const { TabList, Tab, TabPanel } = Tabs;
const sences = ['全部', '新能源', '水利环境', '医疗健康', '智慧城市', '智慧园区', '企业运营', '物流仓库', '生产制造', '其他'] const categoryScene = ['全部', '新能源', '水利环境', '医疗健康', '智慧城市', '智慧园区', '企业运营', '物流仓库', '生产制造', '其他']
const miniSences = ['综合排序', '热门推荐', '最新发布'] const miniSences = ['综合排序', '热门推荐', '最新发布']
...@@ -71,7 +71,7 @@ class Shifting extends Component { ...@@ -71,7 +71,7 @@ class Shifting extends Component {
this.state = { this.state = {
mode: 'divider', mode: 'divider',
cardItems: [], cardItems: [],
selectSence: sences[0], selectSence: categoryScene[0],
selectMiniSence: miniSences[0] selectMiniSence: miniSences[0]
// mode2: 'line', // mode2: 'line',
// mode3: 'bullet' // mode3: 'bullet'
...@@ -132,7 +132,7 @@ render() { ...@@ -132,7 +132,7 @@ render() {
</TabList> </TabList>
<TabPanel> <TabPanel>
<StdFormRow label="场景" block style={{ paddingBottom: 11 }}> <StdFormRow label="场景" block style={{ paddingBottom: 11 }}>
<TagSelect defaultValue = {sences[0]} data={sences} onChange={this.handleSenecesSubmit} expandable single /> <TagSelect defaultValue = {categoryScene[0]} data={categoryScene} onChange={this.handleSenecesSubmit} expandable single />
</StdFormRow> </StdFormRow>
<StdFormRow block style={{ paddingBottom: 11 }}> <StdFormRow block style={{ paddingBottom: 11 }}>
<TagSelect defaultValue = {miniSences[0]} data={miniSences} onChange={this.handleMiniSenecesSubmit} expandable single /> <TagSelect defaultValue = {miniSences[0]} data={miniSences} onChange={this.handleMiniSenecesSubmit} expandable single />
......
...@@ -14,12 +14,12 @@ const { ...@@ -14,12 +14,12 @@ const {
export const UrlConsts = export const UrlConsts =
{ {
getSortSencesUrl: () => completePrefix()(gateWay.tool, 'v1/iot/AmosToolTemplate/select/all'), getSortSencesUrl: () => completePrefix()(gateWay.atl, 'v1/iot/AmosToolTemplate/select/all'),
}; };
export const getSortSences = (sences, miniSences) => { export const getSortSences = (categoryScene, miniSences) => {
const formData = new window.FormData(); const formData = new window.FormData();
formData.append('sences', sences) formData.append('categoryScene', categoryScene)
formData.append('miniSences', miniSences) formData.append('miniSences', miniSences)
return commonPost(UrlConsts.getSortSencesUrl(), formData ); return commonPost(UrlConsts.getSortSencesUrl(), formData );
}; };
......
...@@ -6,22 +6,29 @@ const proxy = { ...@@ -6,22 +6,29 @@ const proxy = {
'/baseURI/jcs': { '/baseURI/jcs': {
// target: 'http://172.16.10.72:10005/', // target: 'http://172.16.10.72:10005/',
target: 'http://172.16.0.120:20000/', target: 'http://172.16.0.120:20000/',
changeOrigin: true, // changeOrigin: true,
pathRewrite: { '^/baseURI': '' } pathRewrite: { '^/baseURI': '' }
}, },
'/bizURI/openapi': { '/bizURI/openapi': {
target: 'http://172.16.3.3:11001/', target: 'http://172.16.3.3:11001/',
pathRewrite: { '^/bizURI': '' } pathRewrite: { '^/bizURI': '' }
}, },
'/bizURI/atl': {
target: 'http://172.16.0.14:30002/',
// changeOrigin: true,
pathRewrite: { '^/bizURI': '' }
},
'/bizURI': { '/bizURI': {
// target: 'http://172.16.3.20:11100/', // 苏 // target: 'http://172.16.3.20:11100/', // 苏
// target: 'http://172.16.3.89:11100/', // 田 // target: 'http://172.16.3.89:11100/', // 田
target: 'http://172.16.10.72:10005/', // target: 'http://172.16.10.72:10005/',
// target: 'http://172.16.3.20:8807/', // 田 // target: 'http://172.16.3.20:8807/', // 田
// target: 'http://172.16.3.89:11000/', // 田 // target: 'http://172.16.3.89:11000/', // 田
// target: 'http://113.134.211.174:10005/', // 李 // target: 'http://113.134.211.174:10005/', // 李
// target: 'http://172.16.3.41:11100/', // 唐 // target: 'http://172.16.3.41:11100/', // 唐
// target: 'http://172.16.3.4:11100/', // 陈 // target: 'http://172.16.3.4:11100/', // 陈
target: 'http://192.168.1.110:30002/',
changeOrigin: true,
pathRewrite: { '^/bizURI': '' } pathRewrite: { '^/bizURI': '' }
}, },
......
...@@ -23,5 +23,5 @@ export default { ...@@ -23,5 +23,5 @@ export default {
risk: 'risk', // 风险模型 risk: 'risk', // 风险模型
report: 'report', // 数据填报 report: 'report', // 数据填报
tool: 'tool' atl: 'atl'
}; };
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