Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
1b84bf96
Commit
1b84bf96
authored
Nov 30, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(save): 调整保存配置
parent
d6ae7d3b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
11 deletions
+11
-11
editor.ts
app/controller/editor.ts
+3
-3
coupon.column.ts
...cForm/component/CouponTableModal/columns/coupon.column.ts
+1
-1
index.d.ts
typings/app/controller/index.d.ts
+1
-1
helper.d.ts
typings/app/extend/helper.d.ts
+1
-1
index.d.ts
typings/app/index.d.ts
+1
-1
index.d.ts
typings/app/middleware/index.d.ts
+1
-1
index.d.ts
typings/app/model/index.d.ts
+1
-1
index.d.ts
typings/app/service/index.d.ts
+1
-1
plugin.d.ts
typings/config/plugin.d.ts
+1
-1
No files found.
app/controller/editor.ts
View file @
1b84bf96
...
@@ -31,8 +31,8 @@ export default class EditorController extends Controller {
...
@@ -31,8 +31,8 @@ export default class EditorController extends Controller {
}
}
public
async
get
(
ctx
:
Context
)
{
public
async
get
(
ctx
:
Context
)
{
//
let pageInfo = await ctx.service.redis.get(`pageInfo:${ctx.params.uuid}`);
let
pageInfo
=
await
ctx
.
service
.
redis
.
get
(
`pageInfo:
${
ctx
.
params
.
uuid
}
`
);
//
if (!pageInfo) {
if
(
!
pageInfo
)
{
let
pageInfo
=
await
ctx
.
model
.
PageInfo
.
findOne
({
where
:
{
uuid
:
ctx
.
params
.
uuid
}});
let
pageInfo
=
await
ctx
.
model
.
PageInfo
.
findOne
({
where
:
{
uuid
:
ctx
.
params
.
uuid
}});
if
(
ctx
.
query
.
lite
&&
pageInfo
)
{
if
(
ctx
.
query
.
lite
&&
pageInfo
)
{
const
page
=
JSON
.
parse
(
pageInfo
.
page
||
[]);
const
page
=
JSON
.
parse
(
pageInfo
.
page
||
[]);
...
@@ -42,7 +42,7 @@ export default class EditorController extends Controller {
...
@@ -42,7 +42,7 @@ export default class EditorController extends Controller {
pageInfo
.
page
=
JSON
.
stringify
(
page
);
pageInfo
.
page
=
JSON
.
stringify
(
page
);
}
}
await
ctx
.
service
.
redis
.
set
(
`pageInfo:
${
ctx
.
params
.
uuid
}
`
,
pageInfo
);
await
ctx
.
service
.
redis
.
set
(
`pageInfo:
${
ctx
.
params
.
uuid
}
`
,
pageInfo
);
//
}
}
ctx
.
body
=
ctx
.
helper
.
ok
(
pageInfo
);
ctx
.
body
=
ctx
.
helper
.
ok
(
pageInfo
);
}
}
...
...
app/web/page/editor/component/DynamicForm/component/CouponTableModal/columns/coupon.column.ts
View file @
1b84bf96
...
@@ -15,7 +15,7 @@ const couponTypeList: object[] = [
...
@@ -15,7 +15,7 @@ const couponTypeList: object[] = [
id
:
21
,
id
:
21
,
name
:
'
享花券
'
,
name
:
'
享花券
'
,
},
},
];
];
const
receiverTypeList
:
object
[]
=
[
const
receiverTypeList
:
object
[]
=
[
{
{
...
...
typings/app/controller/index.d.ts
View file @
1b84bf96
// This file is created by egg-ts-helper@1.2
6.0
// This file is created by egg-ts-helper@1.2
5.9
// Do not modify this file!!!!!!!!!
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
import
'
egg
'
;
...
...
typings/app/extend/helper.d.ts
View file @
1b84bf96
// This file is created by egg-ts-helper@1.2
6.0
// This file is created by egg-ts-helper@1.2
5.9
// Do not modify this file!!!!!!!!!
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
import
'
egg
'
;
...
...
typings/app/index.d.ts
View file @
1b84bf96
// This file is created by egg-ts-helper@1.2
6.0
// This file is created by egg-ts-helper@1.2
5.9
// Do not modify this file!!!!!!!!!
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
import
'
egg
'
;
...
...
typings/app/middleware/index.d.ts
View file @
1b84bf96
// This file is created by egg-ts-helper@1.2
6.0
// This file is created by egg-ts-helper@1.2
5.9
// Do not modify this file!!!!!!!!!
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
import
'
egg
'
;
...
...
typings/app/model/index.d.ts
View file @
1b84bf96
// This file is created by egg-ts-helper@1.2
6.0
// This file is created by egg-ts-helper@1.2
5.9
// Do not modify this file!!!!!!!!!
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
import
'
egg
'
;
...
...
typings/app/service/index.d.ts
View file @
1b84bf96
// This file is created by egg-ts-helper@1.2
6.0
// This file is created by egg-ts-helper@1.2
5.9
// Do not modify this file!!!!!!!!!
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
import
'
egg
'
;
...
...
typings/config/plugin.d.ts
View file @
1b84bf96
// This file is created by egg-ts-helper@1.2
6.0
// This file is created by egg-ts-helper@1.2
5.9
// Do not modify this file!!!!!!!!!
// Do not modify this file!!!!!!!!!
import
'
egg
'
;
import
'
egg
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment