|
@@ -101,12 +101,12 @@ export default {
|
|
|
*remoteAdd(action, { select, call, put }) {
|
|
*remoteAdd(action, { select, call, put }) {
|
|
|
try {
|
|
try {
|
|
|
const dashboardDesigner = yield select(state => state.present.dashboardDesigner);
|
|
const dashboardDesigner = yield select(state => state.present.dashboardDesigner);
|
|
|
- const { name, items } = dashboardDesigner;
|
|
|
|
|
|
|
+ const { name, items, thumbnail } = dashboardDesigner;
|
|
|
let body = {
|
|
let body = {
|
|
|
bdName: name,
|
|
bdName: name,
|
|
|
bdNote: '',
|
|
bdNote: '',
|
|
|
bdConfiguration: JSON.stringify(items),
|
|
bdConfiguration: JSON.stringify(items),
|
|
|
- thumbnail: '',
|
|
|
|
|
|
|
+ thumbnail: thumbnail,
|
|
|
createBy: 'zhuth'
|
|
createBy: 'zhuth'
|
|
|
}
|
|
}
|
|
|
console.log('新增看板', body);
|
|
console.log('新增看板', body);
|
|
@@ -157,13 +157,13 @@ export default {
|
|
|
*remoteModify(action, { select, call, put }) {
|
|
*remoteModify(action, { select, call, put }) {
|
|
|
try {
|
|
try {
|
|
|
const dashboardDesigner = yield select(state => state.present.dashboardDesigner);
|
|
const dashboardDesigner = yield select(state => state.present.dashboardDesigner);
|
|
|
- const { code, name, items } = dashboardDesigner;
|
|
|
|
|
|
|
+ const { code, name, items, thumbnail } = dashboardDesigner;
|
|
|
let body = {
|
|
let body = {
|
|
|
id: code,
|
|
id: code,
|
|
|
bdName: name,
|
|
bdName: name,
|
|
|
bdNote: '',
|
|
bdNote: '',
|
|
|
bdConfiguration: JSON.stringify(items),
|
|
bdConfiguration: JSON.stringify(items),
|
|
|
- thumbnail: '',
|
|
|
|
|
|
|
+ thumbnail: thumbnail,
|
|
|
createBy: 'zhuth'
|
|
createBy: 'zhuth'
|
|
|
}
|
|
}
|
|
|
console.log('修改看板', body);
|
|
console.log('修改看板', body);
|