|
@ -124,7 +124,7 @@ function AdminMgm(props) { |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
setGovernmentStatus(true) |
|
|
|
|
|
|
|
|
// setGovernmentStatus(true) |
|
|
setGetAreaStatus(false) |
|
|
setGetAreaStatus(false) |
|
|
let arr = v |
|
|
let arr = v |
|
|
let newArr = arr[arr.length - 1]; |
|
|
let newArr = arr[arr.length - 1]; |
|
@ -135,15 +135,34 @@ function AdminMgm(props) { |
|
|
ajax.getOrgDetail(data).then(res => { |
|
|
ajax.getOrgDetail(data).then(res => { |
|
|
console.log(res); |
|
|
console.log(res); |
|
|
if (res.status === 20000) { |
|
|
if (res.status === 20000) { |
|
|
setAddManage(Object.assign({},addManage,{ |
|
|
|
|
|
|
|
|
setAddManage(Object.assign({}, addManage, { |
|
|
deptName: v, |
|
|
deptName: v, |
|
|
government_style:res.data.control_type, |
|
|
|
|
|
government_area:res.data.control_area |
|
|
|
|
|
|
|
|
government_style: res.data.control_type, |
|
|
|
|
|
government_area: res.data.control_area |
|
|
})) |
|
|
})) |
|
|
|
|
|
if (res.data.control_area.length === 0) { |
|
|
|
|
|
setGovernmentStatus(false) |
|
|
|
|
|
} else { |
|
|
|
|
|
setGovernmentStatus(true) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
message.error(res.message) |
|
|
message.error(res.message) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
let arrSte = v |
|
|
|
|
|
let newArrarrSte = arrSte[arrSte.length - 1]; |
|
|
|
|
|
let strarrSte = newArrarrSte.toString() |
|
|
|
|
|
let dataarrSte = { |
|
|
|
|
|
depart_id: strarrSte |
|
|
|
|
|
} |
|
|
|
|
|
ajax.roleList(dataarrSte).then(res => { |
|
|
|
|
|
if (res.status === 20000) { |
|
|
|
|
|
setGetRoleData(res.data) |
|
|
|
|
|
} else { |
|
|
|
|
|
message.error(res.message) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
console.log(addManage); |
|
|
console.log(addManage); |
|
@ -691,11 +710,11 @@ function AdminMgm(props) { |
|
|
</div> |
|
|
</div> |
|
|
<div className="timePicker "> |
|
|
<div className="timePicker "> |
|
|
<div className="btnBox"> |
|
|
<div className="btnBox"> |
|
|
<Button className="yisa-btn reset" onClick={() => { getResetData() }}> |
|
|
|
|
|
|
|
|
<Button className="yisa-btn reset" onClick={() => { getResetData() }}> |
|
|
重置 |
|
|
重置 |
|
|
</Button> |
|
|
</Button> |
|
|
<Button type="primary" className="yisa-btn submit" onClick={() => { getSearchData() }}> |
|
|
|
|
|
查询 |
|
|
|
|
|
|
|
|
<Button type="primary" className="yisa-btn submit" onClick={() => { getSearchData() }}> |
|
|
|
|
|
查询 |
|
|
</Button> |
|
|
</Button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -707,7 +726,7 @@ function AdminMgm(props) { |
|
|
<div className="result-info-row"> |
|
|
<div className="result-info-row"> |
|
|
<span className="font">共检索到<em>{resultData.total_records}</em>条结果</span> |
|
|
<span className="font">共检索到<em>{resultData.total_records}</em>条结果</span> |
|
|
<Button type="primary" className="yisa-btn" onClick={() => { addAdmin() }}> |
|
|
<Button type="primary" className="yisa-btn" onClick={() => { addAdmin() }}> |
|
|
添加 |
|
|
|
|
|
|
|
|
添加 |
|
|
</Button> |
|
|
</Button> |
|
|
</div> |
|
|
</div> |
|
|
<ResultFlowResult ajaxLoad={ajaxLoading} resultData={resultData.data ? resultData.data : []}> |
|
|
<ResultFlowResult ajaxLoad={ajaxLoading} resultData={resultData.data ? resultData.data : []}> |
|
@ -1011,7 +1030,30 @@ function AdminMgm(props) { |
|
|
if (selectedOptions.length === 1) { |
|
|
if (selectedOptions.length === 1) { |
|
|
setGovernmentStatus(false) |
|
|
setGovernmentStatus(false) |
|
|
} else { |
|
|
} else { |
|
|
setGovernmentStatus(true) |
|
|
|
|
|
|
|
|
setGetAreaStatus(false) |
|
|
|
|
|
let arr = v |
|
|
|
|
|
let newArr = arr[arr.length - 1]; |
|
|
|
|
|
let str = newArr.toString() |
|
|
|
|
|
let data = { |
|
|
|
|
|
id: str |
|
|
|
|
|
} |
|
|
|
|
|
ajax.getOrgDetail(data).then(res => { |
|
|
|
|
|
console.log(res); |
|
|
|
|
|
if (res.status === 20000) { |
|
|
|
|
|
setGetImg(Object.assign({}, getImg, { |
|
|
|
|
|
deptName: v, |
|
|
|
|
|
government_style: res.data.control_type, |
|
|
|
|
|
government_area: res.data.control_area |
|
|
|
|
|
})) |
|
|
|
|
|
if (res.data.control_area.length === 0) { |
|
|
|
|
|
setGovernmentStatus(false) |
|
|
|
|
|
} else { |
|
|
|
|
|
setGovernmentStatus(true) |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
message.error(res.message) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
if (v.length != []) { |
|
|
if (v.length != []) { |
|
|
setGetImg( |
|
|
setGetImg( |
|
@ -1064,25 +1106,22 @@ function AdminMgm(props) { |
|
|
|
|
|
|
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
{ |
|
|
|
|
|
getAreaStatus ? |
|
|
|
|
|
<div className="yisa-search"> |
|
|
|
|
|
<label>管辖区域</label> |
|
|
|
|
|
<Tree |
|
|
|
|
|
checkable |
|
|
|
|
|
style={{ width: 260, marginLeft: 14 }} |
|
|
|
|
|
onCheck={onCheck} |
|
|
|
|
|
checkedKeys={getImg.government_area} |
|
|
|
|
|
// onSelect={onSelect} |
|
|
|
|
|
treeData={getGovernmentArea} |
|
|
|
|
|
fieldNames={{ |
|
|
|
|
|
title: 'name', |
|
|
|
|
|
key: 'id', |
|
|
|
|
|
children: 'children' |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</div> : '' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
<div className="yisa-search"> |
|
|
|
|
|
<label>管辖区域</label> |
|
|
|
|
|
<Tree |
|
|
|
|
|
checkable |
|
|
|
|
|
style={{ width: 260, marginLeft: 14 }} |
|
|
|
|
|
onCheck={onCheck} |
|
|
|
|
|
checkedKeys={getImg.government_area} |
|
|
|
|
|
// onSelect={onSelect} |
|
|
|
|
|
treeData={getGovernmentArea} |
|
|
|
|
|
fieldNames={{ |
|
|
|
|
|
title: 'name', |
|
|
|
|
|
key: 'id', |
|
|
|
|
|
children: 'children' |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div className="yisa-search"> |
|
|
<div className="yisa-search"> |
|
|
<label>管辖车场接入方式</label> |
|
|
<label>管辖车场接入方式</label> |
|
|