Commit 9806abdc authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 171bbb4b 8a3fcf34
...@@ -108,8 +108,12 @@ ...@@ -108,8 +108,12 @@
}" }"
:customRequest="handleChangeBg" :customRequest="handleChangeBg"
> >
<a-button class="upload-btn"> <a-button
<a-icon type="upload" /> 点击上传 type="primary"
:class="{ 'upload-btn': v.fieldValue }"
>
<a-icon :type="v.fieldValue ? 'edit' : 'upload'" />
{{ v.fieldValue ? "点击修改" : "点击上传" }}
</a-button> </a-button>
</a-upload> </a-upload>
</a-form-model-item> </a-form-model-item>
...@@ -130,8 +134,11 @@ ...@@ -130,8 +134,11 @@
<span class="color-show">{{ <span class="color-show">{{
v.fieldValue ? v.fieldValue : "--" v.fieldValue ? v.fieldValue : "--"
}}</span> }}</span>
<a-button class="select-color-btn"> <a-button
选择颜色 type="primary"
:class="{ 'select-color-btn': v.fieldValue }"
>
{{ v.fieldValue ? "修改颜色" : "选择颜色" }}
<input <input
type="color" type="color"
class="color-ipt" class="color-ipt"
...@@ -307,6 +314,7 @@ export default { ...@@ -307,6 +314,7 @@ export default {
this.$refs.formData && this.$refs.formData.resetFields(); this.$refs.formData && this.$refs.formData.resetFields();
this.isEdit = false; this.isEdit = false;
this.show = false; this.show = false;
this.loading = false;
this.skinTemplate = []; this.skinTemplate = [];
this.curSkinTemplate = undefined; this.curSkinTemplate = undefined;
}, },
...@@ -418,8 +426,7 @@ export default { ...@@ -418,8 +426,7 @@ export default {
if (code === 1) { if (code === 1) {
this.$message.success(msg); this.$message.success(msg);
this.$emit("addSkinSuccess"); this.$emit("addSkinSuccess");
this.$refs.formData.resetFields(); this.backOne();
this.show = false;
} }
}); });
} }
...@@ -504,8 +511,9 @@ export default { ...@@ -504,8 +511,9 @@ export default {
} }
.upload-btn, .upload-btn,
.select-color-btn { .select-color-btn {
background-color: #11a265; background-color: #04cb8f;
color: #fff; color: #fff;
border: 1px solid #04cb8f;
} }
.color-ipt { .color-ipt {
width: 100%; width: 100%;
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
<!-- 排号机竖版 1080*1920 --> <!-- 排号机竖版 1080*1920 -->
<div <div
class="vertical-skin" class="vertical-skin"
:id="conponentsId"
v-else-if="imageResolution === '2'" v-else-if="imageResolution === '2'"
:style="{ :style="{
background: filterItem('1', 0), background: filterItem('1', 0),
......
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