|
@@ -5,7 +5,7 @@
|
|
|
<el-input v-model="form.strategyName" placeholder="输入策略名称"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="产品" placeholder="选择产品">
|
|
|
- <el-select v-model="form.productId" filterable clearable>
|
|
|
+ <el-select v-model="form.productId" filterable clearable>
|
|
|
<el-option v-for="item in productList" :key="item.id" :label="`${item.productName}/${item.remark}/${item.spid}`" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -27,7 +27,7 @@
|
|
|
<el-button v-if="deleteDatas.length > 0" style="margin-left: 20px" type="primary" icon="el-icon-delete" size="mini" @click="removeAll">批量删除</el-button>
|
|
|
<el-button v-if="deleteDatas.length > 1" style="margin-left: 20px" type="primary" icon="el-icon-edit" size="mini" @click="drawerClick">批量修改</el-button>
|
|
|
</div>
|
|
|
- <el-table :key="key" v-loading="loading" :data="datas" :header-cell-style="{ 'background-color': '#E4E7ED', color: '#000' }" @selection-change="selectionChnage">
|
|
|
+ <el-table :key="key" highlight-current-row v-loading="loading" :data="datas" :header-cell-style="{ 'background-color': '#E4E7ED', color: '#000' }" @selection-change="selectionChnage">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column prop="strategyName" label="策略名称"></el-table-column>
|
|
|
<el-table-column prop="maskText" label="策略备注"></el-table-column>
|
|
@@ -65,7 +65,7 @@
|
|
|
<el-tag style="margin-left: 15px" :key="index" v-for="(tag, index) in deleteDatas" :disable-transitions="false">
|
|
|
{{ tag.strategyName }}</el-tag>
|
|
|
</div>
|
|
|
- <div style="padding: 10px; margin: 15px">
|
|
|
+ <div style="padding:30px 10px; margin: 30px">
|
|
|
<el-form size="small" ref="form" style="width: 100%" label-width="120px">
|
|
|
<el-collapse v-model="collapseVal">
|
|
|
<el-collapse-item title="配色方案-主产品" name="0">
|
|
@@ -171,14 +171,15 @@
|
|
|
<span>banner图</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl + productJson.bannerImg" @imgVal="productJson.bannerImg =$event" @removeClick="productJson.bannerImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {
|
|
|
fileSuccess(file, fileList, '主banner');
|
|
|
}
|
|
|
">
|
|
|
<img v-if="productJson.bannerImg" :src="imgUrl + productJson.bannerImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
- </el-upload>
|
|
|
+ </el-upload> -->
|
|
|
<span v-if="productJson.bannerImg !== ''" @click="productJson.bannerImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
@@ -203,12 +204,13 @@
|
|
|
<span>上层素材</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.upImg" @imgVal="productJson.upImg =$event" @removeClick="productJson.upImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {fileSuccess(file, fileList, '主upImg');}">
|
|
|
<img v-if="productJson.upImg !== ''" :src="imgUrl + productJson.upImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.upImg !== ''" @click="productJson.upImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.upImg !== ''" @click="productJson.upImg = ''" style="color: #f56c6c; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -216,7 +218,8 @@
|
|
|
<span>顶层素材</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.topImg" @imgVal="productJson.topImg =$event" @removeClick="productJson.topImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {
|
|
|
fileSuccess(file, fileList, '主topImg');
|
|
|
}
|
|
@@ -224,7 +227,15 @@
|
|
|
<img v-if="productJson.topImg !== ''" :src="imgUrl + productJson.topImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.topImg !== ''" @click="productJson.topImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.topImg !== ''" @click="productJson.topImg = ''" style="color: #f56c6c; cursor: pointer">删除</span> -->
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="订购窗标题">
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.explainTitle" @imgVal="productJson.explainTitle =$event" @removeClick="productJson.explainTitle = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="((file,fileList)=>{fileSuccess(file,fileList,'explainTitle')})">
|
|
|
+ <img v-if="productJson.explainTitle !== ''" :src="imgUrl+productJson.explainTitle" class="avatar" />
|
|
|
+ <i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
+ </el-upload>
|
|
|
+ <span v-if="productJson.explainTitle!==''" @click="productJson.explainTitle=''" style="color: #F56C6C; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -232,7 +243,8 @@
|
|
|
<span>订购窗配图</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.explainImg" @imgVal="productJson.explainImg =$event" @removeClick="productJson.explainImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {
|
|
|
fileSuccess(file, fileList, '主explainImg');
|
|
|
}
|
|
@@ -240,7 +252,7 @@
|
|
|
<img v-if="productJson.explainImg !== ''" :src="imgUrl + productJson.explainImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.explainImg !== ''" @click="productJson.explainImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.explainImg !== ''" @click="productJson.explainImg = ''" style="color: #f56c6c; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -248,7 +260,8 @@
|
|
|
<span>产品说明标题</span>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl+productJson.orderImg" @imgVal="productJson.orderImg =$event" @removeClick="productJson.orderImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {
|
|
|
fileSuccess(file, fileList, '主orderImg');
|
|
|
}
|
|
@@ -256,7 +269,7 @@
|
|
|
<img v-if="productJson.orderImg !== ''" :src="imgUrl + productJson.orderImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="productJson.orderImg !== ''" @click="productJson.orderImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
+ <span v-if="productJson.orderImg !== ''" @click="productJson.orderImg = ''" style="color: #f56c6c; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
</el-collapse-item>
|
|
|
<el-collapse-item title="配色方案-副产品" name="2">
|
|
@@ -326,7 +339,8 @@
|
|
|
<template slot="label">
|
|
|
<span>banner图</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl + viceJson.bannerImg" @imgVal="viceJson.bannerImg =$event" @removeClick="viceJson.bannerImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {
|
|
|
fileSuccess(file, fileList, '副banner');
|
|
|
}
|
|
@@ -334,7 +348,7 @@
|
|
|
<img v-if="viceJson.bannerImg" :src="imgUrl + viceJson.bannerImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.bannerImg !== ''" @click="viceJson.bannerImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.bannerImg !== ''" @click="viceJson.bannerImg = ''" style="color: #f56c6c; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
@@ -354,7 +368,8 @@
|
|
|
<template slot="label">
|
|
|
<span>上层素材</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl + viceJson.upImg" @imgVal="viceJson.upImg =$event" @removeClick="viceJson.upImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {
|
|
|
fileSuccess(file, fileList, '副upImg');
|
|
|
}
|
|
@@ -362,14 +377,15 @@
|
|
|
<img v-if="viceJson.upImg" :src="imgUrl + viceJson.upImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.upImg !== ''" @click="viceJson.upImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.upImg !== ''" @click="viceJson.upImg = ''" style="color: #f56c6c; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
|
<span>顶层素材</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl + viceJson.topImg" @imgVal="viceJson.topImg =$event" @removeClick="viceJson.topImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {
|
|
|
fileSuccess(file, fileList, '副topImg');
|
|
|
}
|
|
@@ -377,13 +393,14 @@
|
|
|
<img v-if="viceJson.topImg" :src="imgUrl + viceJson.topImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.topImg !== ''" @click="viceJson.topImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.topImg !== ''" @click="viceJson.topImg = ''" style="color: #f56c6c; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
|
<span>订购窗配图</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl + viceJson.explainImg" @imgVal="viceJson.explainImg =$event" @removeClick="viceJson.explainImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {
|
|
|
fileSuccess(file, fileList, '副explainImg');
|
|
|
}
|
|
@@ -391,13 +408,14 @@
|
|
|
<img v-if="viceJson.explainImg" :src="imgUrl + viceJson.explainImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.explainImg !== ''" @click="viceJson.explainImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.explainImg !== ''" @click="viceJson.explainImg = ''" style="color: #f56c6c; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<template slot="label">
|
|
|
<span>产品说明标题</span>
|
|
|
</template>
|
|
|
- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
+ <img-Content :imgValue="imgUrl + viceJson.orderImg" @imgVal="viceJson.orderImg =$event" @removeClick="viceJson.orderImg = $event" />
|
|
|
+ <!-- <el-upload class="avatar-uploader" :show-file-list="false" :action="imgapi" :on-success="
|
|
|
(file, fileList) => {
|
|
|
fileSuccess(file, fileList, '副orderImg');
|
|
|
}
|
|
@@ -405,7 +423,7 @@
|
|
|
<img v-if="viceJson.orderImg" :src="imgUrl + viceJson.orderImg" class="avatar" />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span v-if="viceJson.orderImg !== ''" @click="viceJson.orderImg = ''" style="color: #f56c6c; cursor: pointer">删除</span>
|
|
|
+ <span v-if="viceJson.orderImg !== ''" @click="viceJson.orderImg = ''" style="color: #f56c6c; cursor: pointer">删除</span> -->
|
|
|
</el-form-item>
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
@@ -448,7 +466,11 @@
|
|
|
<script>
|
|
|
const XEUtils = require("xe-utils");
|
|
|
import { post, get } from "@/api/common";
|
|
|
+import imgContent from '../../components/imgBox/index.vue'
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ imgContent
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
schemelog: [],
|
|
@@ -461,7 +483,7 @@ export default {
|
|
|
drawer: false,
|
|
|
loading: false,
|
|
|
form: {
|
|
|
- productId:'',
|
|
|
+ productId: '',
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
strategyName: "",
|
|
@@ -497,6 +519,7 @@ export default {
|
|
|
upImg: "", // 上层素材 (原bannerPics[2])
|
|
|
topImg: "", //顶层素材 (原bannerPics[3])
|
|
|
drawVal: "0", //开页动效 (原cacheSeatOne[0].dongHua)
|
|
|
+ explainTitle: "0",
|
|
|
orderImg: "", //订购窗图
|
|
|
explainImg: "", //产品说明图
|
|
|
}, //产品json
|