Merge branch 'master' of http://10.0.41.100:3000/lishenfeng/tsg-web
commit
c1883456a7
|
|
@ -8,6 +8,7 @@ module.exports = function (app) {
|
||||||
target: 'http://local.gunshiiot.com:18083/',//测试
|
target: 'http://local.gunshiiot.com:18083/',//测试
|
||||||
// target: 'http://192.168.66.199:24105/',//正式
|
// target: 'http://192.168.66.199:24105/',//正式
|
||||||
// target: 'http://36.139.207.50:18083/',//移动云
|
// target: 'http://36.139.207.50:18083/',//移动云
|
||||||
|
// target: 'http://192.168.66.49:24105/',//移动云
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,8 @@ const Page = () => {
|
||||||
const params = {
|
const params = {
|
||||||
search: {
|
search: {
|
||||||
...searchVal,
|
...searchVal,
|
||||||
|
'orderField':'id',
|
||||||
|
'isAsc':true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
search(params)
|
search(params)
|
||||||
|
|
@ -77,7 +79,7 @@ const Page = () => {
|
||||||
ref={refModal}
|
ref={refModal}
|
||||||
title=""
|
title=""
|
||||||
component={ModalForm}
|
component={ModalForm}
|
||||||
onCrudSuccess={refresh}
|
onCrudSuccess={()=>refresh({search:{'orderField':'id','isAsc':true}})}
|
||||||
/>
|
/>
|
||||||
<BasicCrudModal
|
<BasicCrudModal
|
||||||
width={1000}
|
width={1000}
|
||||||
|
|
@ -85,7 +87,7 @@ const Page = () => {
|
||||||
ref={refModal2}
|
ref={refModal2}
|
||||||
title=""
|
title=""
|
||||||
component={ModalForm2}
|
component={ModalForm2}
|
||||||
onCrudSuccess={refresh}
|
onCrudSuccess={()=>refresh({search:{'orderField':'id','isAsc':true}})}
|
||||||
/>
|
/>
|
||||||
<BasicCrudModal
|
<BasicCrudModal
|
||||||
width={1500}
|
width={1500}
|
||||||
|
|
@ -93,7 +95,7 @@ const Page = () => {
|
||||||
ref={refModal3}
|
ref={refModal3}
|
||||||
title=""
|
title=""
|
||||||
component={ModalForm3}
|
component={ModalForm3}
|
||||||
onCrudSuccess={refresh}
|
onCrudSuccess={()=>refresh({search:{'orderField':'id','isAsc':true}})}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@ const ModalForm = ({ mode, record,onEdit,onSave,close }) => {
|
||||||
const [checked, setChecked] = useState(true)
|
const [checked, setChecked] = useState(true)
|
||||||
|
|
||||||
const onFinish = async(values) => {
|
const onFinish = async(values) => {
|
||||||
|
const userId = localStorage.getItem("userId");
|
||||||
|
const userName = localStorage.getItem("userName");
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
...values,
|
...values,
|
||||||
forecastTm: record.tms.forecastTime,
|
forecastTm: record.tms.forecastTime,
|
||||||
|
|
@ -24,6 +27,7 @@ const ModalForm = ({ mode, record,onEdit,onSave,close }) => {
|
||||||
forecastWarm: record.tms.forecastWarm,
|
forecastWarm: record.tms.forecastWarm,
|
||||||
type: record.tms.type,
|
type: record.tms.type,
|
||||||
voList:record.data,
|
voList:record.data,
|
||||||
|
userId:userId+'_'+userName
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mode === 'save') {
|
if (mode === 'save') {
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,8 @@ const Page = () => {
|
||||||
const params = {
|
const params = {
|
||||||
search: {
|
search: {
|
||||||
...searchVal,
|
...searchVal,
|
||||||
|
"orderField":"chtm",
|
||||||
|
"isAsc":false
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
search(params)
|
search(params)
|
||||||
|
|
@ -82,7 +84,7 @@ const Page = () => {
|
||||||
message.error('修改失败')
|
message.error('修改失败')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
refresh()
|
refresh({search:{'orderField':'chtm','isAsc':false}})
|
||||||
message.success('修改成功')
|
message.success('修改成功')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -108,7 +110,7 @@ const Page = () => {
|
||||||
ref={refModal}
|
ref={refModal}
|
||||||
title=""
|
title=""
|
||||||
component={ModalForm}
|
component={ModalForm}
|
||||||
onCrudSuccess={refresh}
|
onCrudSuccess={()=>refresh({search:{'orderField':'chtm','isAsc':false}})}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import drpOption from './drpOption';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import './index.less'
|
import './index.less'
|
||||||
import ModalForm1 from './table1'
|
import ModalForm1 from './table1'
|
||||||
import { httppost2 } from '../../../../utils/request';
|
import { httpget2, httppost2 } from '../../../../utils/request';
|
||||||
import apiurl from '../../../../service/apiurl';
|
import apiurl from '../../../../service/apiurl';
|
||||||
|
|
||||||
const Page = ({projectId,onCancel}) => {
|
const Page = ({projectId,onCancel}) => {
|
||||||
|
|
@ -31,7 +31,7 @@ const Page = ({projectId,onCancel}) => {
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
(async()=>{
|
(async()=>{
|
||||||
const {code , data} = await httppost2(apiurl.fxdd_xyt.hsyb.ybfagl.getData+'?projectId='+projectId)
|
const {code , data} = await httpget2(apiurl.fxdd_xyt.hsyb.ybfagl.getData+'?projectId='+projectId)
|
||||||
if(code!==200){
|
if(code!==200){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue