Commit eeb93ad9 by fanyj

tijiao

parent 62da8f61
...@@ -152,7 +152,6 @@ export function PostJSON(url, payload) { ...@@ -152,7 +152,6 @@ export function PostJSON(url, payload) {
// } catch (error) { // } catch (error) {
// } // }
console.log(params)
return IsArr(data) ? instance.post(url, data, { return IsArr(data) ? instance.post(url, data, {
params: {env, templateType: getTemplateType(), ...params}, cancelToken params: {env, templateType: getTemplateType(), ...params}, cancelToken
......
...@@ -337,16 +337,20 @@ const AssetAction = (props) => { ...@@ -337,16 +337,20 @@ const AssetAction = (props) => {
const getElements = ( cb = null ) => { const getElements = ( cb = null ) => {
console.log('data',templateType) console.log('data',templateType)
const tempinfo = {}
if(templateType){
tempinfo.templateType =templateType
}
dispatch({ dispatch({
type: (currentAction==='add')?'assetmanage.listElementsAndFillValue':'assetmanage.listElements', type: (currentAction==='add')?'assetmanage.listElementsAndFillValue':'assetmanage.listElements',
payload: (currentAction==='add')?{ payload: (currentAction==='add')?{
params: { params: {
dirId, dirId,
templateType ...tempinfo
} }
}:{ }:{
params:{ params:{
templateType ...tempinfo
} }
}, },
callback: data => { callback: data => {
......
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