Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
劳工
zeroing-editor
Commits
ecb888ac
Commit
ecb888ac
authored
Mar 18, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复星速台编辑皮肤的一些bug
parent
7a338bac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
PublishView.vue
src/views/Editor/dialogs/PublishView.vue
+3
-3
PxSkinEditorDialog.vue
src/views/Editor/dialogs/PxSkinEditorDialog.vue
+4
-0
No files found.
src/views/Editor/dialogs/PublishView.vue
View file @
ecb888ac
...
@@ -30,11 +30,11 @@
...
@@ -30,11 +30,11 @@
</el-select>
</el-select>
<el-input
v-model=
"name"
size=
"small"
class=
"name"
placeholder=
"请输入皮肤名称"
></el-input>
<el-input
v-model=
"name"
size=
"small"
class=
"name"
placeholder=
"请输入皮肤名称"
></el-input>
</div>
</div>
<el-popconfirm
v-if=
"skinId"
class=
"save-button"
@
onConfirm=
"clickSave"
placement=
"top"
<el-popconfirm
v-if=
"skinId
|| operate===0
"
class=
"save-button"
@
onConfirm=
"clickSave"
placement=
"top"
:title=
"$t('Click save will overwrite and apply immediately',
{name: this.pxProjectName, skin: skinName})">
:title=
"$t('Click save will overwrite and apply immediately',
{name: this.pxProjectName, skin:
operate===0 ? '' :
skinName})">
<el-button
slot=
"reference"
type=
"primary"
size=
"small"
>
{{
$t
(
"Save"
)
}}
</el-button>
<el-button
slot=
"reference"
type=
"primary"
size=
"small"
>
{{
$t
(
"Save"
)
}}
</el-button>
</el-popconfirm>
</el-popconfirm>
<el-button
v-if=
"skinId"
size=
"small"
@
click=
"getUrl"
>
获取链接
</el-button>
<el-button
v-if=
"skinId
&& operate!==0
"
size=
"small"
@
click=
"getUrl"
>
获取链接
</el-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/Editor/dialogs/PxSkinEditorDialog.vue
View file @
ecb888ac
...
@@ -146,6 +146,9 @@
...
@@ -146,6 +146,9 @@
async
onSaveSkin
(
skin
,
operate
)
{
async
onSaveSkin
(
skin
,
operate
)
{
try
{
try
{
await
this
.
saveSkin
(
skin
,
operate
);
await
this
.
saveSkin
(
skin
,
operate
);
let
oldSkin
=
this
.
skins
.
find
(
s
=>
s
.
id
===
skin
.
id
);
oldSkin
.
name
=
skin
.
name
;
oldSkin
.
html
=
skin
.
html
;
this
.
$refs
.
pxSkinEditor
.
onSaveSuccess
();
this
.
$refs
.
pxSkinEditor
.
onSaveSuccess
();
}
catch
(
e
)
{
}
catch
(
e
)
{
throw
new
Error
(
e
.
message
);
throw
new
Error
(
e
.
message
);
...
@@ -234,6 +237,7 @@
...
@@ -234,6 +237,7 @@
};
};
const
{
ret
}
=
await
playWaiting
(
saveSkins
(
data
),
this
.
$t
(
'In processing'
));
const
{
ret
}
=
await
playWaiting
(
saveSkins
(
data
),
this
.
$t
(
'In processing'
));
if
(
ret
.
success
!==
false
)
{
if
(
ret
.
success
!==
false
)
{
this
.
$message
({
this
.
$message
({
message
:
this
.
$t
(
'Operate success'
),
message
:
this
.
$t
(
'Operate success'
),
type
:
"success"
type
:
"success"
...
...
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