Commit 18ae8182 authored by cellee's avatar cellee

Signed-off-by: cellee <893264950@qq.com>

parent beed4fd8
...@@ -103,7 +103,7 @@ const PictureOptionsRow = (props: any) => { ...@@ -103,7 +103,7 @@ const PictureOptionsRow = (props: any) => {
tmp.map((item: any, index: number) => { tmp.map((item: any, index: number) => {
// 如果没返回就用原来的名称 // 如果没返回就用原来的名称
let name = let name =
item.response.data && item.response.data.imageName item.response && item.response.data && item.response.data.imageName
? item.response.data.imageName ? item.response.data.imageName
: item.name; : item.name;
result.push(name); result.push(name);
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2020-11-19 16:54:53 * @Date: 2020-11-19 16:54:53
* @LastEditTime: 2021-01-04 13:53:50 * @LastEditTime: 2021-02-03 15:24:39
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \tostumi\src\models\CommunityManagement\CommunityAnnouncement.ts * @FilePath: \tostumi\src\models\CommunityManagement\CommunityAnnouncement.ts
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
Data: null, //公告列表 Data: null, //公告列表
Result: null, //新增、编辑保存成功信息 Result: null, //新增、编辑保存成功信息
DataSave: null, // 列表内容 DataSave: null, // 列表内容
DataSaveDetail: { pageNum: 1 }, // 页码 DataSaveDetail: null, // 页码
ImgSrc: null, ImgSrc: null,
}, },
...@@ -87,6 +87,12 @@ export default { ...@@ -87,6 +87,12 @@ export default {
yield put({ type: 'returnResult', tmp }); yield put({ type: 'returnResult', tmp });
}, },
// 清掉列表
*Lis({ playload }, { call, put }) {
var Data = null;
yield put({ type: 'returnPage', Data });
},
*SA({ playload }, { put }) { *SA({ playload }, { put }) {
console.log(playload); console.log(playload);
// 这里传递两个值来。 一个是修改同步的方法 一个是修改值的名称 一个是修改 的数据 // 这里传递两个值来。 一个是修改同步的方法 一个是修改值的名称 一个是修改 的数据
......
...@@ -97,6 +97,12 @@ export default { ...@@ -97,6 +97,12 @@ export default {
yield put({ type: 'returnDataSave', DataSave }); yield put({ type: 'returnDataSave', DataSave });
}, },
// 清掉列表
*Lis({ playload }, { call, put }) {
var Data = null;
yield put({ type: 'returnPage', Data });
},
*Paths({ playload }, { put }) { *Paths({ playload }, { put }) {
yield put({ type: 'returnPath', playload }); yield put({ type: 'returnPath', playload });
}, },
......
...@@ -656,7 +656,7 @@ const Adds = (props: any) => { ...@@ -656,7 +656,7 @@ const Adds = (props: any) => {
// export default Adds; // export default Adds;
function map(state: any) { function map(state: any) {
console.log(state); // console.log(state);
const Data = state.CellList.DataSave; const Data = state.CellList.DataSave;
const { imgUrl, Result } = state.CellList; const { imgUrl, Result } = state.CellList;
......
...@@ -46,6 +46,10 @@ const Detail = (props: any) => { ...@@ -46,6 +46,10 @@ const Detail = (props: any) => {
if (overCom != null) { if (overCom != null) {
// message.success(`Community Deleted Successfully`); // message.success(`Community Deleted Successfully`);
// 清除合同列表、公告列表
dispatch({ type: 'Contract/Lis' }); // 合同列表
dispatch({ type: 'CommunityAnnouncement/Lis' }); // 公告列表
// 提示用户下载 // 提示用户下载
setModelExcel(true); //状态 setModelExcel(true); //状态
console.log(overCom); console.log(overCom);
......
...@@ -98,6 +98,12 @@ const CommunityAnnouncement = (props: any) => { ...@@ -98,6 +98,12 @@ const CommunityAnnouncement = (props: any) => {
return data; return data;
}; };
useEffect(() => {
if (Data == null) {
request({ pageNum: 1 });
}
}, [Data]);
// 分页数据一改变就发起请求 // 分页数据一改变就发起请求
useEffect(() => { useEffect(() => {
if (DataSaveDetail != null) { if (DataSaveDetail != null) {
......
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