|
|
|
|
@ -297,6 +297,9 @@
|
|
|
|
|
<el-row style="margin-top: 10px">
|
|
|
|
|
<el-col :span ="12">
|
|
|
|
|
<el-form-item label="护理时间范围" prop="startTimeArray" label-width="110px">
|
|
|
|
|
<div style="position: relative">
|
|
|
|
|
<i class="little-red-heart el-icon-star-on"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-time-picker
|
|
|
|
|
is-range
|
|
|
|
|
v-model="item.startTimeArray"
|
|
|
|
|
@ -313,9 +316,12 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row style="margin-top: 10px">
|
|
|
|
|
<el-row style="margin-top: 20px">
|
|
|
|
|
<el-col :span ="12">
|
|
|
|
|
<el-form-item label="启动图片GIF" prop="modeBanner" label-width="110px">
|
|
|
|
|
<el-form-item label="启动图片GIF" prop="startSourceArray" label-width="110px">
|
|
|
|
|
<div style="position: relative">
|
|
|
|
|
<i class="little-red-heart el-icon-star-on"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-upload
|
|
|
|
|
:action="upload.url+'/else'"
|
|
|
|
|
:headers="upload.headers"
|
|
|
|
|
@ -335,7 +341,10 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span ="12">
|
|
|
|
|
<el-form-item label="暂停图片GIF" prop="modeBanner" label-width="110px">
|
|
|
|
|
<el-form-item label="暂停图片GIF" prop="stopSourceArray" label-width="110px">
|
|
|
|
|
<div style="position: relative">
|
|
|
|
|
<i class="little-red-heart el-icon-star-on"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-upload
|
|
|
|
|
:action="upload.url+'/else'"
|
|
|
|
|
:headers="upload.headers"
|
|
|
|
|
@ -387,6 +396,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="使用技术" prop="technologyInfo" label-width="110px" style="margin-top: 10px">
|
|
|
|
|
<div style="position: relative; left: 30px">
|
|
|
|
|
<i class="little-red-heart2 el-icon-star-on"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="item.technologyArray"
|
|
|
|
|
placeholder="请选择技术"
|
|
|
|
|
@ -403,6 +415,9 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="模式功效" prop="effectContent" label-width="110px" style="margin-top: 10px">
|
|
|
|
|
<div style="position: relative; left: 30px">
|
|
|
|
|
<i class="little-red-heart2 el-icon-star-on"></i>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input v-model="item.effectContent" placeholder="请输入模式功效" maxlength="50"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
@ -557,7 +572,7 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
modeTime: [
|
|
|
|
|
{ required: true, message: "模式时长不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
@ -720,7 +735,7 @@ export default {
|
|
|
|
|
let serverImageFlag = false;
|
|
|
|
|
if (this.form.serviceData.length > 0) {
|
|
|
|
|
this.form.serviceData.forEach(data => {
|
|
|
|
|
if(data.startTimeArray.length == 0) {
|
|
|
|
|
if(data.startTimeArray == null || data.startTimeArray.length == 0) {
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
if (data.startSourceArray.length == 0 ) {
|
|
|
|
|
@ -740,11 +755,11 @@ export default {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("护理内容不能为空");
|
|
|
|
|
this.$message.error("启动/暂停图片不能为空");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (flag) {
|
|
|
|
|
this.$message.error("护理时间不能为空");
|
|
|
|
|
this.$message.error("护理时间范围不能为空");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (serverImageFlag) {
|
|
|
|
|
@ -1078,3 +1093,21 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.little-red-heart {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 12px;
|
|
|
|
|
left: -108px;
|
|
|
|
|
color: #ff4949;
|
|
|
|
|
font-size: 7px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.little-red-heart2 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 12px;
|
|
|
|
|
left: -108px;
|
|
|
|
|
color: #ff4949;
|
|
|
|
|
font-size: 7px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|