Commit e70f8f53 authored by zhengke's avatar zhengke

修改

parent 06769073
......@@ -147,15 +147,15 @@
</el-form-item>
<el-form-item label="热区链接" v-if="isLink">
<template v-if="chooseType=='rubik'">
<el-input size="small" style="width: 100%;" :disabled="true"
v-model="hotspotList[index].link[0].PageName">
<el-input size="small" style="width: 100%;"
v-model="hotspotList[index].link[0].PageUrl">
<template slot="append">
<el-button @click="isShowLink=true">选择链接</el-button>
</template>
</el-input>
</template>
<template v-else>
<el-input size="small" style="width: 100%;" :disabled="true" v-model="hotspotList[index].link.PageName">
<el-input size="small" style="width: 100%;" v-model="hotspotList[index].link.PageUrl">
<template slot="append">
<el-button @click="isShowLink=true">选择链接</el-button>
</template>
......
......@@ -197,7 +197,7 @@
<el-form-item label="选择链接">
<el-input size="small" v-if="rubData.data.list&&rubData.data.list.length>0
&& rubData.data.list[rubik].link && rubData.data.list[rubik].link.length>0" v-model="
rubData.data.list[rubik].link[0].PageName" :disabled="true">
rubData.data.list[rubik].link[0].PageUrl">
<template slot="append">
<el-button @click="isShowLink=true">选择链接</el-button>
</template>
......
......@@ -54,7 +54,7 @@
@keyup.native="checkInteger(searchData.CompData,'FileCount')" size="small"></el-input>
</el-form-item>
<el-form-item label="选择文件" v-if="searchData.CompData.FileCount>0">
<div style="display:flex;">
<div style="display:flex;flex-wrap:wrap;">
<div class="goods-add" style="width:50px;height:50px;" v-for="(item,index) in searchData.CompData.FileList"
:key="index" :style="{ backgroundImage: 'url(' + item + ')' }">
<el-button size="small" icon="el-icon-plus" @click="ckedIndex=index,choicImg=true"></el-button>
......
......@@ -37,7 +37,7 @@
@keyup.native="checkInteger(searchData.CompData,'FileCount')" size="small"></el-input>
</el-form-item>
<el-form-item label="选择文件" v-if="searchData.CompData.FileCount>0">
<div style="display:flex;">
<div style="display:flex;flex-wrap:wrap;">
<div class="goods-add" style="width:50px;height:50px;" v-for="(item,index) in searchData.CompData.FileList"
:key="index" :style="{ backgroundImage: 'url(' + item + ')' }">
<el-button size="small" icon="el-icon-plus" @click="ckedIndex=index,choicImg=true"></el-button>
......
......@@ -88,10 +88,6 @@
width: 375px;
}
.registraType .el-radio:last-child {
margin-left: 28px;
}
.tpEdit_header {
padding: 18px;
background: #fff;
......@@ -332,6 +328,8 @@
:index="index" :dataLeng="addMsg.FormData.length"></imgupform>
<videoform v-if="item.CompKey=='VideoUploadComp'" :searchData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="addMsg.FormData.length"></videoform>
<uploadform v-if="item.CompKey=='CommonUploadComp'" :searchData="item" @getSord="getSord" @comDelPlugin="comDelPlugin"
:index="index" :dataLeng="addMsg.FormData.length"></uploadform>
</div>
</div>
</div>
......@@ -349,6 +347,7 @@
import dropdown from '../tradePavilion/plugin/dropdown'
import imgupform from '../tradePavilion/plugin/imgupform'
import videoform from '../tradePavilion/plugin/videoform'
import uploadform from '../tradePavilion/plugin/uploadform'
export default {
data() {
return {
......@@ -377,7 +376,8 @@
multilinetext,
dropdown,
imgupform,
videoform
videoform,
uploadform
},
mounted() {
......@@ -472,6 +472,7 @@
CompData: {
Name: "", //名字
FileCount: '', //上传文件数量
FileType: '',
FileSizeLimit: '', //上传文件大小
Remark:'',//提示信息
FileList:[],//文件列表
......@@ -487,6 +488,7 @@
CompData: {
Name: "", //名字
FileCount: '', //上传文件数量
FileType: '',
FileSizeLimit: '', //上传文件大小
Remark:'',//提示信息
FileList:[],//文件列表
......@@ -494,6 +496,22 @@
};
this.addMsg.FormData.push(videoObj);
break;
//文件上传组件
case "CommonUploadComp":
let uploadObj = {
CompKey: "CommonUploadComp",
isCked: false,
CompData: {
Name: "", //名字
FileType:'', //文件类型
FileCount: '', //上传文件数量
FileSizeLimit: '', //上传文件大小
Remark:'',//提示信息
FileList:[],//文件列表
},
};
this.addMsg.FormData.push(uploadObj);
break;
}
},
//获取对应类型
......
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