Commit 2b7a1dde authored by cellee's avatar cellee

新建编辑小区 附件上传预览重做更新,文案修复

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent f0bf87b9
...@@ -76,7 +76,12 @@ export default { ...@@ -76,7 +76,12 @@ export default {
{ {
let Result = resp; let Result = resp;
yield put({ type: 'returnResult', Result }); yield put({ type: 'returnResult', Result });
// 新增成功清空Data 用来刷新最新数据
let Data = null;
let village = null;
yield put({ type: 'returnPage', Data });
yield put({ type: 'returnVillage', village });
// 提示跳转
message.success(`Information saved successfully!`); message.success(`Information saved successfully!`);
history.push('/CommunityManagement/CellList'); history.push('/CommunityManagement/CellList');
} }
......
...@@ -119,7 +119,7 @@ const CellLists = (props: any) => { ...@@ -119,7 +119,7 @@ const CellLists = (props: any) => {
if (comment.communityName.length > 0 || typeof comment.label !== 'undefined') { if (comment.communityName.length > 0 || typeof comment.label !== 'undefined') {
let obj = { let obj = {
residentialManagerUserName: comment.label, residentialManagerUserName: comment.label,
communityNameList: comment.communityName, communityNameList: comment.communityName.length > 0 ? comment.communityName : null, // 如果为空就返回null 否则后台不好判断
pageNum: 1, pageNum: 1,
}; };
setTerm(obj); // 存进搜索条件 setTerm(obj); // 存进搜索条件
...@@ -205,6 +205,7 @@ const CellLists = (props: any) => { ...@@ -205,6 +205,7 @@ const CellLists = (props: any) => {
}; };
function map(state: any) { function map(state: any) {
console.log(state);
const loading = state.loading.models.CellList; const loading = state.loading.models.CellList;
const { Data, curString, village } = state[module]; const { Data, curString, village } = state[module];
return { Data, loading, curString, village }; return { Data, loading, curString, village };
......
...@@ -197,7 +197,7 @@ const Detail = (props: any) => { ...@@ -197,7 +197,7 @@ const Detail = (props: any) => {
{/* ---------- */} {/* ---------- */}
<div className="item"> <div className="item">
<label>Administrators</label> <label>Administrator:</label>
<span>{detailData.rows.residentialManagerUserName}</span> <span>{detailData.rows.residentialManagerUserName}</span>
</div> </div>
{/* ---------- */} {/* ---------- */}
...@@ -213,7 +213,7 @@ const Detail = (props: any) => { ...@@ -213,7 +213,7 @@ const Detail = (props: any) => {
<div className="celBox"> <div className="celBox">
<div className="list-item"> <div className="list-item">
<div className="item"> <div className="item">
<label>Louba Timetable:</label> <label>Shuttle Bus Timetable:</label>
<PreView OpenUrl={detailData.rows.balouscheduleUrl}></PreView> <PreView OpenUrl={detailData.rows.balouscheduleUrl}></PreView>
</div> </div>
{/* ---------- */} {/* ---------- */}
...@@ -223,7 +223,7 @@ const Detail = (props: any) => { ...@@ -223,7 +223,7 @@ const Detail = (props: any) => {
</div> </div>
{/* ---------- */} {/* ---------- */}
<div className="item"> <div className="item">
<label>Shelf Life Service:</label> <label>Warranty Period Service:</label>
<PreView OpenUrl={detailData.rows.lifeServiceUrl}></PreView> <PreView OpenUrl={detailData.rows.lifeServiceUrl}></PreView>
</div> </div>
</div> </div>
......
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