Commit 88a27f4e by 匡雅琴

样式调整

1 parent c57ac995
...@@ -135,7 +135,14 @@ ...@@ -135,7 +135,14 @@
<img :src="materialAddForm.titleUrl" alt="" /> <img :src="materialAddForm.titleUrl" alt="" />
<div class="mask" v-if="materialAddForm.titleUrl"> <div class="mask" v-if="materialAddForm.titleUrl">
<h3> <h3>
<img src="@/assets/material/view.png" alt="" /> <el-popover
placement="top"
trigger="click">
<div>
<img class="img-plus" :src="materialAddForm.titleUrl" alt="">
</div>
<img slot="reference" src="@/assets/material/view.png" alt="" />
</el-popover>
<img src="@/assets/material/dele.png" alt="" @click="deleteImg" /> <img src="@/assets/material/dele.png" alt="" @click="deleteImg" />
</h3> </h3>
</div> </div>
...@@ -260,10 +267,8 @@ export default { ...@@ -260,10 +267,8 @@ export default {
this.materialAddForm.businessType = [] this.materialAddForm.businessType = []
} }
this.$refs.textBox.setEdit(this.materialAddForm.materialUrl) this.$refs.textBox.setEdit(this.materialAddForm.materialUrl)
if (this.materialAddForm.tagJson) { if (this.materialAddForm.tagJson) {
this.taggingList = eval(this.materialAddForm.tagJson) this.taggingList = eval(this.materialAddForm.tagJson)
this.tagging = this.taggingList.map(item => { this.tagging = this.taggingList.map(item => {
return { return {
labelGroup: { labelGroup: {
...@@ -299,8 +304,6 @@ export default { ...@@ -299,8 +304,6 @@ export default {
var params = {} var params = {}
params.isDefault = 0 params.isDefault = 0
this.$apis.material.addMaterialGroup(params).then(res => { this.$apis.material.addMaterialGroup(params).then(res => {
// console.log(res);
// this.groupCounter = res
if (res) { if (res) {
this.getMaterialList() this.getMaterialList()
} }
...@@ -785,4 +788,8 @@ export default { ...@@ -785,4 +788,8 @@ export default {
} }
} }
} }
.img-plus {
width: 200px;
height: 200px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="material-group"> <div class="material-group">
<div class="all-group"> <div class="all-group">
<div>全部素材组 ({{ groupCounter.length ? groupCounter.length : 1}})</div> <div>全部素材组 ({{ groupCounter.length }})</div>
<div> <div>
<el-button class="add_btn" icon="el-icon-plus" :size="size" @click="handleAddGroup(1)">新建</el-button> <el-button class="add_btn" icon="el-icon-plus" :size="size" @click="handleAddGroup(1)">新建</el-button>
</div> </div>
</div> </div>
<ul> <ul>
<li v-if="groupCounter.length == 0">
<img src="@/assets/material/file.png" alt="">
<div class="group-name">新车素材组</div>
<el-popover placement="right" width="20" trigger="click">
<div>
<ul>
<!-- <li @click="handleStick()">置顶</li> -->
<li @click="handleAddGroup(2)">修改</li>
</ul>
</div>
<i slot="reference" class="el-icon-more"></i>
</el-popover>
</li>
<li v-for="(item, index) in groupCounter" :key="index" @click="handleGroup(item)"> <li v-for="(item, index) in groupCounter" :key="index" @click="handleGroup(item)">
<img src="@/assets/material/file.png" alt=""> <img src="@/assets/material/file.png" alt="" style="vertical-align: middle">
<div class="group-name">{{ item.materialGroupName }}</div> <div class="group-name">{{ item.materialGroupName }}</div>
<el-popover placement="right" trigger="hover"> <el-popover placement="right" trigger="hover">
<div> <div>
...@@ -57,6 +44,7 @@ export default { ...@@ -57,6 +44,7 @@ export default {
}, },
mounted() { mounted() {
this.eventBus.$on('addMaterialGroup', data => { this.eventBus.$on('addMaterialGroup', data => {
data.businessType = data.businessType.toString()
this.$apis.material.addMaterialGroup(data).then(res => { this.$apis.material.addMaterialGroup(data).then(res => {
if (res) { if (res) {
this.getMaterialList() this.getMaterialList()
...@@ -64,15 +52,27 @@ export default { ...@@ -64,15 +52,27 @@ export default {
}) })
}) })
this.eventBus.$on('editMaterialGroup', data => { this.eventBus.$on('editMaterialGroup', data => {
data.businessType = data.businessType.toString()
this.$apis.material.addMaterialGroup(data).then(res => { this.$apis.material.addMaterialGroup(data).then(res => {
if (res) { if (res) {
this.getMaterialList() this.getMaterialList()
} }
}) })
}) })
this.materialInsert()
this.getMaterialList() this.getMaterialList()
}, },
methods: { methods: {
// 创建素材组
materialInsert() {
var params = {}
params.isDefault = 0
this.$apis.material.addMaterialGroup(params).then(res => {
if (res) {
this.getMaterialList()
}
})
},
// 获取全部素材组 // 获取全部素材组
getMaterialList() { getMaterialList() {
this.$apis.material.getMaterialList({}).then(res => { this.$apis.material.getMaterialList({}).then(res => {
...@@ -193,5 +193,6 @@ ul { ...@@ -193,5 +193,6 @@ ul {
} }
.group-name { .group-name {
display: inline-flex; display: inline-flex;
margin-left: 8px;
} }
</style> </style>
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
<div v-for="(itm, idx) in item.labelList" :key="idx" class="radio-tag"> <div v-for="(itm, idx) in item.labelList" :key="idx" class="radio-tag">
<el-tooltip effect="dark" placement="top" :disabled="itm.name.length < 8"> <el-tooltip effect="dark" placement="top" :disabled="itm.name.length < 8">
<el-radio class="radio-text" :label="itm">{{ itm.name }}</el-radio> <el-radio class="radio-text" :label="itm">{{ itm.name }}</el-radio>
<!-- <el-radio :label="itm">{{ itm.name.length > 4 ? itm.name.slice(0, 3) + '...' : itm.name }}</el-radio> -->
<div slot="content">{{ itm.name }}</div> <div slot="content">{{ itm.name }}</div>
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -43,7 +42,6 @@ ...@@ -43,7 +42,6 @@
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<!-- <a class="dialog-jump" @click="jumpUrl" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2">没有意向标签?点我创建</a> -->
<el-button size="small" @click="dialogVisible = false">取 消</el-button> <el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button> <el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span> </span>
...@@ -62,56 +60,7 @@ export default { ...@@ -62,56 +60,7 @@ export default {
labelGroupName: '', labelGroupName: '',
selectNum: 0, selectNum: 0,
searchStatus: false, searchStatus: false,
labelTreeRets: [ labelTreeRets: []
{
labelGroup: { id: '109', name: '湖口123' },
labelList: [
{ id: '372', name: '12345678' },
{ id: '371', name: '7654321' },
{ id: '370', name: '1234567' }
],
checked: false,
tagChecked: [],
isIndeterminate: false,
checkAll: false
},
{
labelGroup: { id: '65', name: '自店标签111' },
labelList: [
{ id: '179', name: '标签44' },
{ id: '178', name: '标签33' },
{ id: '176', name: '标签1112' }
],
checked: false,
tagChecked: [],
isIndeterminate: false,
checkAll: false
},
{
labelGroup: { id: '44', name: '自店标签111' },
labelList: [
{ id: '111', name: '标签44' },
{ id: '222', name: '标签33' },
{ id: '333', name: '标签1112' }
],
checked: false,
tagChecked: [],
isIndeterminate: false,
checkAll: false
},
{
labelGroup: { id: '55', name: '自店标签111' },
labelList: [
{ id: '444', name: '标签44' },
{ id: '555', name: '标签33' },
{ id: '666', name: '标签1112' }
],
checked: false,
tagChecked: [],
isIndeterminate: false,
checkAll: false
}
]
} }
}, },
watch: { watch: {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</el-col> </el-col>
<el-col :span="19"> <el-col :span="19">
<div class="right" :style="{ height: boxHeight }"> <div class="right" :style="{ height: boxHeight }">
<div class="groupTitle">{{ materialGroupName ? materialGroupName : '新车素材组' }}(共{{ materialTableData.length }}条数据)</div> <div class="groupTitle">{{ materialGroupName ? materialGroupName : '默认素材分组' }}(共{{ materialTableData.length }}条数据)</div>
<GLTable ref="materialRef" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :tableData="materialTableData" :pageConf="pageConf" :tableTotal="tableTotal" @sortChange="sortChange" :isCustomHead="true" :customHeadShowList="customHeadShowList"> <GLTable ref="materialRef" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :tableData="materialTableData" :pageConf="pageConf" :tableTotal="tableTotal" @sortChange="sortChange" :isCustomHead="true" :customHeadShowList="customHeadShowList">
<!-- 素材内容 --> <!-- 素材内容 -->
<div slot="materialContentRpcResponse" slot-scope="scope" style="text-align: center"> <div slot="materialContentRpcResponse" slot-scope="scope" style="text-align: center">
...@@ -38,7 +38,8 @@ ...@@ -38,7 +38,8 @@
<el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName < 16"> <el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName < 16">
<span class="hide-content">{{ scope.scope.materialContentRpcResponse.materialName }}</span> <span class="hide-content">{{ scope.scope.materialContentRpcResponse.materialName }}</span>
</el-tooltip> </el-tooltip>
<img src="@/assets/material/pdf.png" alt=""> <!-- <img src="@/assets/material/pdf.png" alt=""> -->
<span>{{ scope.scope.materialContentRpcResponse.materialName }}.png</span>
</span> </span>
<!-- 素材为自定义链接 --> <!-- 素材为自定义链接 -->
<span v-if="scope.scope.materialType == 2"></span> <span v-if="scope.scope.materialType == 2"></span>
...@@ -47,7 +48,14 @@ ...@@ -47,7 +48,14 @@
<el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName < 16"> <el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName < 16">
<span>{{ scope.scope.materialContentRpcResponse.materialName }}</span> <span>{{ scope.scope.materialContentRpcResponse.materialName }}</span>
</el-tooltip> </el-tooltip>
<img src="@/assets/material/car.png" alt=""> <el-popover
placement="top"
trigger="click">
<div>
<img class="img-plus" src="@/assets/material/car.png" alt="">
</div>
<img slot="reference" src="@/assets/material/car.png" alt="">
</el-popover>
</span> </span>
</div> </div>
<!-- 状态 --> <!-- 状态 -->
...@@ -523,4 +531,8 @@ export default { ...@@ -523,4 +531,8 @@ export default {
height: 36px; height: 36px;
} }
} }
.img-plus {
width: 200px;
height: 200px;
}
</style>> </style>>
\ No newline at end of file \ No newline at end of file
...@@ -82,10 +82,15 @@ ...@@ -82,10 +82,15 @@
<div class="materialDetail-item-name">分享设置:</div> <div class="materialDetail-item-name">分享设置:</div>
<div class="content-item"> <div class="content-item">
<div class="content-item-text"> <div class="content-item-text">
<div class="content-item-title">{{ detailInfo.materialTitle }}</div> <div class="content-item-title">{{ detailInfo.materialTitle ? detailInfo.materialTitle : '分享标题内容' }}</div>
<div class="content-item-desc">{{ detailInfo.description }}</div> <div class="content-item-desc">{{ detailInfo.description }}</div>
</div> </div>
<div class="content-item-image"></div> <div class="content-item-image">
<div>
<img :src="detailInfo.titleUrl" alt="" v-if="detailInfo.titleUrl">
<img src="@/assets/material/pdf.png" alt="" v-else>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -125,7 +130,6 @@ ...@@ -125,7 +130,6 @@
<div class="dataList-item"> <div class="dataList-item">
<div class="dataList-item-title">打开率</div> <div class="dataList-item-title">打开率</div>
<h2>{{ overviewInfo.openRate }}%</h2> <h2>{{ overviewInfo.openRate }}%</h2>
<!-- <div class="dataList-item-num">今日:{{ overviewInfo.totalPeopleSend }}</div> -->
</div> </div>
</div> </div>
<div class="detailTable"> <div class="detailTable">
...@@ -421,4 +425,10 @@ background-color: #fff; ...@@ -421,4 +425,10 @@ background-color: #fff;
left: 30%; left: 30%;
} }
} }
.content-item-image {
img {
width: 85px;
height: 85px;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!