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 {
{
let Result = resp;
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!`);
history.push('/CommunityManagement/CellList');
}
......
......@@ -119,7 +119,7 @@ const CellLists = (props: any) => {
if (comment.communityName.length > 0 || typeof comment.label !== 'undefined') {
let obj = {
residentialManagerUserName: comment.label,
communityNameList: comment.communityName,
communityNameList: comment.communityName.length > 0 ? comment.communityName : null, // 如果为空就返回null 否则后台不好判断
pageNum: 1,
};
setTerm(obj); // 存进搜索条件
......@@ -205,6 +205,7 @@ const CellLists = (props: any) => {
};
function map(state: any) {
console.log(state);
const loading = state.loading.models.CellList;
const { Data, curString, village } = state[module];
return { Data, loading, curString, village };
......
......@@ -197,7 +197,7 @@ const Detail = (props: any) => {
{/* ---------- */}
<div className="item">
<label>Administrators</label>
<label>Administrator:</label>
<span>{detailData.rows.residentialManagerUserName}</span>
</div>
{/* ---------- */}
......@@ -213,7 +213,7 @@ const Detail = (props: any) => {
<div className="celBox">
<div className="list-item">
<div className="item">
<label>Louba Timetable:</label>
<label>Shuttle Bus Timetable:</label>
<PreView OpenUrl={detailData.rows.balouscheduleUrl}></PreView>
</div>
{/* ---------- */}
......@@ -223,7 +223,7 @@ const Detail = (props: any) => {
</div>
{/* ---------- */}
<div className="item">
<label>Shelf Life Service:</label>
<label>Warranty Period Service:</label>
<PreView OpenUrl={detailData.rows.lifeServiceUrl}></PreView>
</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