Commit ff5ea28d authored by 杨硕's avatar 杨硕

商家下拉框过滤停用的商家

parent a85fb3c4
......@@ -17,7 +17,15 @@ body .el-table th.gutter{
.el-upload__input {
display: none;
}
.el-tag.el-tag--info {
max-width: 90%;
.el-select__tags-text{
max-width: 90%;
display: inline-flex;
overflow: hidden;
text-overflow: ellipsis;
}
}
// to fixed https://github.com/ElemeFE/element/issues/2461
// 弹出框dialog 公共样式修改
......
......@@ -695,7 +695,7 @@ export default {
getDeptList() {
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
this.deptList = res.data.filter(item => item.flag === '1')
if (res.data && res.data.length > 0) {
if (!this.clearable) {
this.queryParams.deptId = res.data[0].businessId
......
......@@ -63,7 +63,7 @@
<div style="padding:5px 10px">
<el-table v-loading="loading" border :data="cmsBannerList">
<el-table-column type="index" label="序号" width="100px" align="center" />
<el-table-column label="图片" prop="bannerPicture" >
<el-table-column label="图片" prop="bannerPicture">
<template slot-scope="scope">
<div :id="step(scope.$index)">
<el-image
......@@ -102,7 +102,7 @@
{{ scope.row.type === '0' ? '是' : '否' }}
</template>
</el-table-column>
<el-table-column label="排序" prop="weight" :show-overflow-tooltip="true" >
<el-table-column label="排序" prop="weight" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.weight || '-' }}
</template>
......@@ -369,7 +369,7 @@ export default {
getDeptList() {
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
this.deptList = res.data.filter(item => item.flag === '1')
if (res.data && res.data.length > 0) {
if (!this.clearable) {
this.queryParams.unitId = res.data[0].businessId
......
......@@ -801,7 +801,7 @@ import {
} from '@/api/try/teaTrialCourse'
import { getDict } from '@/api/system/dict/data'
import { validOpenCourse } from '@/api/classManagement'
import {importSpokesmanExcel, importSysUserExcel, importTemplateSysuser, listByIdentity} from '@/api/system/user'
import { importSpokesmanExcel, importSysUserExcel, importTemplateSysuser, listByIdentity } from '@/api/system/user'
import { listAllShop, listCourseAll } from '@/api/sysUnit'
import { mapGetters } from 'vuex'
import {
......@@ -1046,7 +1046,7 @@ export default {
console.log('this.clearable', this.clearable)
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
this.deptList = res.data.filter(item => item.flag === '1')
if (res.data && res.data.length > 0) {
if (!this.clearable) {
this.queryParams.unitId = res.data[0].businessId
......
......@@ -556,7 +556,7 @@ export default {
getDeptList() {
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
this.deptList = res.data.filter(item => item.flag === '1')
if (res.data && res.data.length > 0) {
if (!this.clearable) {
this.queryParams.unitId = res.data[0].businessId
......@@ -610,6 +610,8 @@ export default {
this.queryParams.rows = 10
this.queryParams.title = ''
this.dateRange = []
this.queryParams.beginTime = ''
this.queryParams.endTime = ''
if (this.clearable) {
this.queryParams.unitId = ''
}
......
......@@ -401,7 +401,7 @@ export default {
getDeptList() {
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
this.deptList = res.data.filter(item => item.flag === '1')
if (res.data && res.data.length > 0) {
if (!this.clearable) {
this.queryParams.unitId = res.data[0].businessId
......@@ -451,9 +451,11 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.queryParams.page = 1,
this.queryParams.rows = 10,
this.queryParams.videoTitle = '',
this.queryParams.page = 1
this.queryParams.rows = 10
this.queryParams.beginTime = ''
this.queryParams.endTime = ''
this.queryParams.videoTitle = ''
this.dateRange = []
if (this.clearable) {
this.queryParams.unitId = ''
......
......@@ -4,9 +4,9 @@
<div class="topTitle">
<span class="topTitleText">{{ title }}</span>
</div>
<!-- <div class="twoTitle">-->
<!-- <el-tag v-if="form.flag==='1'" type="success">已发布</el-tag>-->
<!-- </div>-->
<!-- <div class="twoTitle">-->
<!-- <el-tag v-if="form.flag==='1'" type="success">已发布</el-tag>-->
<!-- </div>-->
<div class="updateBoby">
<el-form ref="deviceFormRef" :model="form" :rules="rules" label-position="right" label-width="auto">
<el-row>
......@@ -104,11 +104,12 @@
class="avatar-uploader"
action="#"
drag
:show-file-list="false"
:show-file-list="true"
:http-request="handleUploadVideo"
:on-success="handleAvatarSuccessVideo"
:before-upload="beforeAvatarUploadVideo"
:on-preview="previewVideo"
:on-remove="handleRemove"
>
<i class="el-icon-upload" />
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
......@@ -155,6 +156,7 @@ export default {
data() {
return {
videoShow: false,
fileList: [],
// 视频配置
playerOptions: {
height: '100%',
......@@ -300,6 +302,7 @@ export default {
})
},
handleUploadVideo(file) {
this.fileList = []
const formData = new FormData()
formData.append('file', file.file)
formData.append('temp', 'videoInformation')
......@@ -308,6 +311,7 @@ export default {
this.$message.success('上传成功')
this.videoUrl = res.data.businessId
this.form.videoUrlId = res.data.businessId
this.fileList.push(res.data)
// this.playerOptions.sources[0].src = urlDecrypt(res.data.url)
})
},
......@@ -380,7 +384,19 @@ export default {
this.videoShow = true
})
},
handleRemove(file, fileList) {
console.log('file', file)
console.log('fileList', fileList)
this.fileList = []
if (fileList.length <= 0) {
this.videoUrl = ''
}
},
beforeAvatarUploadVideo(file) {
if (this.fileList.length > 0) {
this.$message.error('一次只能上传一个视频!')
return false
}
console.log('KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK')
const allowedExtensions = ['mp4']
const extension = file.name.slice((file.name.lastIndexOf('.') - 1 >>> 0) + 2).toLowerCase()
......
......@@ -106,11 +106,11 @@
style="width: 100%"
class="top"
>
<el-table-column type="index" label="序号" width="50" :show-overflow-tooltip="true"/>
<el-table-column prop="name" label="姓名" width="80" :show-overflow-tooltip="true"/>
<el-table-column prop="phone" label="手机号" :show-overflow-tooltip="true"/>
<el-table-column prop="clickThroughRate" label="推广次数" width="80" :show-overflow-tooltip="true"/>
<el-table-column prop="price" label="金额" width="50" :show-overflow-tooltip="true"/>
<el-table-column type="index" label="序号" width="50" :show-overflow-tooltip="true" />
<el-table-column prop="name" label="姓名" width="80" :show-overflow-tooltip="true" />
<el-table-column prop="phone" label="手机号" :show-overflow-tooltip="true" />
<el-table-column prop="clickThroughRate" label="推广次数" width="80" :show-overflow-tooltip="true" />
<el-table-column prop="price" label="金额" width="50" :show-overflow-tooltip="true" />
</el-table>
<vue-seamless-scroll
:data="list"
......@@ -123,11 +123,11 @@
style="width: 100%"
class="bottom"
>
<el-table-column type="index" label="序号" width="50" :show-overflow-tooltip="true"/>
<el-table-column prop="name" label="姓名" width="80" :show-overflow-tooltip="true"/>
<el-table-column type="index" label="序号" width="50" :show-overflow-tooltip="true" />
<el-table-column prop="name" label="姓名" width="80" :show-overflow-tooltip="true" />
<el-table-column prop="phone" label="手机号" :show-overflow-tooltip="true" />
<el-table-column prop="clickThroughRate" label="推广次数" width="80" :show-overflow-tooltip="true"/>
<el-table-column prop="price" label="金额" width="50" :show-overflow-tooltip="true"/>
<el-table-column prop="clickThroughRate" label="推广次数" width="80" :show-overflow-tooltip="true" />
<el-table-column prop="price" label="金额" width="50" :show-overflow-tooltip="true" />
</el-table>
</vue-seamless-scroll>
......@@ -146,7 +146,7 @@
<div class="videNum">视频总推广次数:</div>
</div>
</div>
<div v-show="pieShow" id="echarts-textPieChart" class="span_1" v-loading="loading">
<div v-show="pieShow" id="echarts-textPieChart" v-loading="loading" class="span_1">
<div id="dataCharts_textPieChart" style="height: 16vh" />
</div>
<div v-show="!pieShow" class="nodata" style="height: 16vh">
......@@ -174,7 +174,7 @@
</el-button>
</div>
</el-row>
<div v-show="promotionShow" id="echarts-leaveMessage" class="span_1" v-loading="loading">
<div v-show="promotionShow" id="echarts-leaveMessage" v-loading="loading" class="span_1">
<div id="dataCharts_leaveMessage" style="height: 10vh" />
</div>
<div v-show="!promotionShow" class="nodata" style="height: 10vh">
......@@ -323,7 +323,7 @@ export default {
return new Promise(resolve => {
listAllShop().then(res => {
if (res.code === 200) {
this.deptList = res.data
this.deptList = res.data.filter(item => item.flag === '1')
this.company = this.deptList[0].businessId
this.companyName = this.deptList[0].unitName
this.getTableData() // 代言人,文章,视频数据
......
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