Commit 6e72223e by yangming

new

1 parent f9dabcc7
...@@ -27,7 +27,7 @@ const getMerchant = params => { ...@@ -27,7 +27,7 @@ const getMerchant = params => {
}) })
} }
const getCard = params => { const getCard = params => {
params.method = 'scrm.api.equity.open.card.price.get.by.merchantid' params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
......
...@@ -100,8 +100,8 @@ img { ...@@ -100,8 +100,8 @@ img {
} }
.scrm-box-f { .scrm-box-f {
background: #FFFFFF; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.10); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
.scrm-flex { .scrm-flex {
...@@ -114,12 +114,37 @@ img { ...@@ -114,12 +114,37 @@ img {
height: 4px; height: 4px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/ /*滚动条里面小方块*/
border-radius: 4px; border-radius: 4px;
background-color: rgba(144, 147, 153, .3); background-color: rgba(144, 147, 153, 0.3);
} }
.glsx-table .line-ellipsis { .glsx-table .line-ellipsis {
display: inline; display: inline;
} }
.el-form--inline .el-form-item {
margin-right: 0px;
}
.el-tag {
color: #666 !important;
font-size: 14px !important;
}
.el-tag.el-tag--info {
background: #fafbfe !important;
border: 1px solid #e8e8ea !important;
border-radius: 4px;
}
.el-tag.el-tag--info.el-tag--plain {
background: transparent !important;
}
.el-dialog__title {
height: 30px;
display: block;
}
.el-table--enable-row-hover .el-table__body tr:hover {
background: #f4f3ff !important;
}
.el-table tbody tr:hover > td {
background: #f4f3ff !important;
}
<template>
<div class="basic-panel">
<el-tooltip class="item" effect="dark" :content="content" placement="top" v-show="tooltipStatus">
<div class="basic-title-s">{{ content }}</div>
</el-tooltip>
<div class="basic-title" v-show="!tooltipStatus">{{ content }}</div>
</div>
</template>
<script>
export default {
name: 'basic-dialog',
props: {
content: {
type: String,
default: ''
},
titleWid: {
type: Number,
default: 100
}
},
data() {
return {
tooltipStatus: false
}
},
watch: {
content: {
handler(value) {
const title = document.querySelector('.basic-title')
console.log(title, value)
if (title.innerText == value) {
this.tooltipStatus = false
} else {
this.tooltipStatus = true
}
},
deep: true
}
},
mounted() {
const title = document.querySelector('.basic-title-s')
console.log(title.innerText, this.content)
if (title.innerText == this.content) {
this.tooltipStatus = false
} else {
this.tooltipStatus = true
}
}
}
</script>
<style lang="scss">
.basic-panel {
display: inline-block;
}
.basic-title,.basic-title-s {
width: 100%;
display: inline-block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
</style>
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
import Vue from 'vue' import Vue from 'vue'
// 导入权限按钮 // 导入权限按钮
import _button from '@/components/glsx-button/index' import _button from '@/components/glsx-button/index'
import _title from '@/components/basic-title/index'
Vue.component('basic-dialog', () => Vue.component('basic-dialog', () =>
import ('./basic-dialog/index.vue')) import('./basic-dialog/index.vue'))
Vue.component('GLButton', _button) Vue.component('GLButton', _button)
Vue.component('GLTitle', _title)
// Vue.component('glsx-table', glsxTable) // Vue.component('glsx-table', glsxTable)
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<el-input size="small" v-model="labelGroupName" placeholder="请输入搜索内容"></el-input> <el-input size="small" v-model="labelGroupName" placeholder="请输入搜索内容"></el-input>
<el-button size="small" type="primary" @click="handleSearch">查询</el-button> <el-button size="small" type="primary" @click="handleSearch">查询</el-button>
</div> </div>
<div class="checkbox-group-box" :style="{ 'max-height': heightBox + 'px' }"> <div class="checkbox-group-box" :style="{ 'height': heightBox + 'px' }">
<div style="margin-bottom: 8px" v-for="(item, index) in labelTreeRets" :key="index"> <div style="margin-bottom: 8px" v-for="(item, index) in labelTreeRets" :key="index">
<span class="el-tree-node__expand-icon el-icon-caret-right" :class="{ expanded: item.checked }" @click="item.checked = !item.checked"></span> <span class="el-tree-node__expand-icon el-icon-caret-right" :class="{ expanded: item.checked }" @click="item.checked = !item.checked"></span>
<el-checkbox :indeterminate="item.isIndeterminate" v-model="item.checkAll" @change="handleCheckAllChange(item.checkAll, index)">{{ item.labelGroup.name }}({{ item.tagChecked.length }}/{{ item.labelList.length }} 项)</el-checkbox> <el-checkbox :indeterminate="item.isIndeterminate" v-model="item.checkAll" @change="handleCheckAllChange(item.checkAll, index)">{{ item.labelGroup.name }}({{ item.tagChecked.length }}/{{ item.labelList.length }} 项)</el-checkbox>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<div class="tag-selected-box" :style="{ 'height': heightBox + 'px' }"> <div class="tag-selected-box" :style="{ 'height': heightBox + 'px' }">
<template v-for="item in labelTreeRetSelect"> <template v-for="item in labelTreeRetSelect">
<template v-for="(tag, idx) in item.tagChecked"> <template v-for="(tag, idx) in item.tagChecked">
<el-tag type='info' class="tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)"> <el-tag :title="tag.name" type='info' class="tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)">
{{ tag.name }} {{ tag.name }}
</el-tag> </el-tag>
</template> </template>
...@@ -339,6 +339,10 @@ export default { ...@@ -339,6 +339,10 @@ export default {
line-height: 24px; line-height: 24px;
font-size: 14px; font-size: 14px;
color: #666; color: #666;
max-width: 200px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
} }
.el-tree-node__expand-icon { .el-tree-node__expand-icon {
color: #5850ff; color: #5850ff;
......
...@@ -9,29 +9,27 @@ ...@@ -9,29 +9,27 @@
<el-tab-pane label="权益套餐" name="4"></el-tab-pane> <el-tab-pane label="权益套餐" name="4"></el-tab-pane>
<el-tab-pane label="商城券" name="2"></el-tab-pane> <el-tab-pane label="商城券" name="2"></el-tab-pane>
<el-tab-pane label="秒杀活动" name="5"></el-tab-pane> <el-tab-pane label="秒杀活动" name="5"></el-tab-pane>
<el-tab-pane label="精品券" name="1"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading"> <div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading">
<div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)"> <div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<div class="model-item-title" :title="item.cardClassName" v-show="activeName == 3">{{ item.cardClassName }}</div> <div class="model-item-title" :title="item.equityName" v-show="activeName == 3">{{ item.equityName }}</div>
<div class="model-item-title" :title="item.couponName" v-show="activeName == 2">{{ item.couponName }}</div> <div class="model-item-title" :title="item.couponName" v-show="activeName == 2">{{ item.couponName }}</div>
<div class="model-item-title" :title="item.cardClassName" v-show="activeName == 1">{{ item.couponName }}</div> <div class="model-item-title" :title="item.couponName" v-show="activeName == 1">{{ item.couponName }}</div>
<div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}</div> <div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}</div>
<div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}</div> <div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}</div>
<div class="model-item-content" v-show="activeName == 1 || activeName == 4"></div> <div class="model-item-content" v-show="activeName == 1 || activeName == 4"></div>
<div class="model-item-content" v-show="activeName == 2">剩余数量:{{ item.residueAmount }}</div> <div class="model-item-content" v-show="activeName == 2">剩余数量:{{ item.residueAmount }}</div>
<div class="model-item-content" v-show="activeName == 1">剩余数量:{{ item.remainAmount }}</div> <div class="model-item-content" v-show="activeName == 1">剩余数量:{{ item.remainAmount }}</div>
<div class="model-item-content" v-show="activeName == 3">价格:{{ item.price }}元</div> <div class="model-item-content" v-show="activeName == 3">价格:{{ item.goodPrice }}元</div>
<div class="model-item-content" v-show="activeName == 4">价格:{{ item.packagePrice }}元</div> <div class="model-item-content" v-show="activeName == 4">价格:{{ item.packagePrice }}元</div>
<div class="model-item-content" v-show="activeName == 5"></div> <div class="model-item-content" v-show="activeName == 5"></div>
<div class="model-item-content" v-show="activeName == 5"></div> <div class="model-item-content" v-show="activeName == 5"></div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 1">有效期:{{ item.effectiveDays }}天</div> <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 1">有效期:{{ item.effectiveDays }}天</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 3">有效期:无限制</div> <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 3">有效期:无限制</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div> <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 3">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 1">有效期:无限制</div> <div class="model-item-content" v-show="activeName == 3">有效期:{{ item.effectivedDay }}天</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 2">有效期:{{ item.effectiveNum }}天</div>
<div class="model-item-content" v-show="activeName == 2"> <div class="model-item-content" v-show="activeName == 2">
类型: 类型:
<span>{{ item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '兑换券' : '' }}</span> <span>{{ item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '兑换券' : '' }}</span>
...@@ -50,7 +48,7 @@ ...@@ -50,7 +48,7 @@
</div> </div>
<div class="model-item-content" v-if="activeName == 5"> <div class="model-item-content" v-if="activeName == 5">
活动时间: 活动时间:
{{item.startTime.split(' ')[0]}}-{{item.endTime.split(' ')[0]}} {{ item.startTime.split(' ')[0] }}-{{ item.endTime.split(' ')[0] }}
</div> </div>
</div> </div>
</div> </div>
...@@ -58,7 +56,7 @@ ...@@ -58,7 +56,7 @@
<img src="@/assets/img/empty.png" /> <img src="@/assets/img/empty.png" />
<div class="empty-item">暂无数据</div> <div class="empty-item">暂无数据</div>
</div> </div>
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal" layout="total, sizes, prev, pager, next, jumper"></el-pagination> <el-pagination v-if="activeName != 3" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取 消</el-button> <el-button size="small" @click="dialogVisible = false">取 消</el-button>
...@@ -80,12 +78,18 @@ export default { ...@@ -80,12 +78,18 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 12, pageSize: 12,
tableTotal: 0, tableTotal: 0,
selectItem: {} selectItem: {
id: ''
}
} }
}, },
methods: { methods: {
handleSelectItem(item) { handleSelectItem(item) {
this.selectItem = item this.selectItem = item
if(item.equityClassId) {
this.selectItem.id = item.equityClassId
}
console.log(this.selectItem)
}, },
handleSelect() { handleSelect() {
if (!this.selectItem.id) { if (!this.selectItem.id) {
...@@ -96,7 +100,7 @@ export default { ...@@ -96,7 +100,7 @@ export default {
return return
} }
this.dialogVisible = false this.dialogVisible = false
this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.cardClassName : this.activeName == 4 ? this.selectItem.packageName : this.activeName == 5 ? this.selectItem.activityName: this.selectItem.couponName }) this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.equityName : this.activeName == 4 ? this.selectItem.packageName : this.activeName == 5 ? this.selectItem.activityName : this.selectItem.couponName })
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val this.pageSize = val
...@@ -139,13 +143,21 @@ export default { ...@@ -139,13 +143,21 @@ export default {
params.discountTypes = [2, 3, 4] params.discountTypes = [2, 3, 4]
params.validType = 'valid' params.validType = 'valid'
} }
if(this.activeName == 5) { if (this.activeName == 5) {
params.currentPage = this.pageNum params.currentPage = this.pageNum
params.activityStatus = 2 params.activityStatus = 2
} }
this.$apis.marketing[market](params).then(res => { this.$apis.marketing[market](params)
.then(res => {
if (this.activeName == 3) {
this.modelList = res
} else {
this.modelList = res.list ? res.list : res.data this.modelList = res.list ? res.list : res.data
this.tableTotal = res.total this.tableTotal = res.total
}
this.loading = false
})
.catch(() => {
this.loading = false this.loading = false
}) })
}, },
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-form-item label="备注"> <el-form-item label="备注">
<el-input size="small" v-model.trim="addCodeForm.codeRemark" placeholder="请输入备注" maxlength="50"></el-input> <el-input size="small" v-model.trim="addCodeForm.codeRemark" placeholder="请输入备注" maxlength="30"></el-input>
<div class="form-tips">设置备注,便于后续管理查找</div> <div class="form-tips">设置备注,便于后续管理查找</div>
</el-form-item> </el-form-item>
</el-row> </el-row>
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
</span> </span>
<div class="el-input-tag input-tag-wrapper" v-show="taggingLength"> <div class="el-input-tag input-tag-wrapper" v-show="taggingLength">
<template v-if="tagging && tagging.length > 0"> <template v-if="tagging && tagging.length > 0">
<template v-for="item in tagging"> <template v-for="(item,index) in tagging">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item.labelList, idx)"> <el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx,index)">
{{ tag ? tag.name : '' }} {{ tag ? tag.name : '' }}
</el-tag> </el-tag>
</template> </template>
...@@ -141,8 +141,11 @@ export default { ...@@ -141,8 +141,11 @@ export default {
goback() { goback() {
this.$router.push('/channel/index') this.$router.push('/channel/index')
}, },
removeTag(item, idx) { removeTag(item, idx,index) {
item.splice(idx, 1) item.labelList.splice(idx, 1)
if(item.labelList.length == 0) {
this.tagging.splice(index,1)
}
}, },
removeStaff(index) { removeStaff(index) {
this.staffInfo.splice(index, 1) this.staffInfo.splice(index, 1)
...@@ -300,7 +303,7 @@ export default { ...@@ -300,7 +303,7 @@ export default {
.chanel-form-title { .chanel-form-title {
padding: 20px; padding: 20px;
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 600;
color: #333333; color: #333333;
line-height: 16px; line-height: 16px;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
......
...@@ -29,39 +29,44 @@ ...@@ -29,39 +29,44 @@
{{ item.staffName }} {{ item.staffName }}
</div> </div>
<div slot="reference" class="name-wrapper"> <div slot="reference" class="name-wrapper">
<div class="accountType-row" v-for="(item, index) in scope.scope.staffInfo" :key="index" v-show="index < 4"> <div v-for="(item, index) in scope.scope.staffInfo" :key="index" v-show="index < 4">
<div class="accountType-row" >
<i class="el-icon-user-solid"></i> <i class="el-icon-user-solid"></i>
{{ index == 3 && scope.scope.staffInfo.length > 3 ? '...(' + scope.scope.staffInfo.length + ')' : item.staffName }} {{ index == 3 && scope.scope.staffInfo.length > 3 ? '...(' + scope.scope.staffInfo.length + ')' : item.staffName }}
</div> </div>
</div> </div>
</div>
</el-popover> </el-popover>
<div class="accountType-row" v-for="(item, index) in scope.scope.staffInfo" :key="index" v-else> <div v-for="(item, index) in scope.scope.staffInfo" :key="index" v-else>
<div class="accountType-row">
<i class="el-icon-user-solid"></i> <i class="el-icon-user-solid"></i>
{{ item.staffName }} {{ item.staffName }}
</div> </div>
</div> </div>
</div>
<div slot="qrCode" slot-scope="scope"> <div slot="qrCode" slot-scope="scope">
<img :src="scope.scope.qrCode" style="width: 80px; height: 80px" /> <img :src="scope.scope.qrCode" style="width: 80px; height: 80px" />
<div class="download-link" @click="downloadIamge(scope.scope.qrCode)">下载二维码</div> <div class="download-link" @click="downloadIamge(scope.scope.qrCode)">下载二维码</div>
</div> </div>
<div slot="tagging" slot-scope="scope" class="allTagsWrap"> <div slot="tagging" slot-scope="scope" class="tag-panel">
<el-popover trigger="hover" placement="top"> <el-popover trigger="hover" placement="top" v-if="scope.scope.taggingList && scope.scope.taggingList.length > 3">
<template v-if="scope.scope.taggingList"> <div :title="item.name" class="accountType-row accountType-row-tag" v-for="(item, index) in scope.scope.taggingList" :key="index">
<span v-for="(item, index) in scope.scope.taggingList" :key="index" class="ellipsis-1 tag-box-wrap"> {{ item ? item.name : '' }}
<el-tooltip class="item" :content="item.name" placement="top"> </div>
<span>{{ item.name }}</span> <div slot="reference" class="name-wrapper">
</el-tooltip> <div v-for="(item, index) in scope.scope.taggingList" :key="index" v-show="index < 4">
</span> <div :title="item.name" class="accountType-row accountType-row-tag"> {{ index == 3 && scope.scope.taggingList.length > 3 ? '...('+scope.scope.taggingList.length+')' : item ? item.name : '' }}</div>
</template> </div>
</div>
</el-popover> </el-popover>
<template v-if="scope.scope.taggingList"> <template v-if="scope.scope.taggingList && scope.scope.taggingList.length <= 3 && scope.scope.taggingList.length > 0">
<span v-for="(item, index) in scope.scope.taggingList" :key="index" class="ellipsis-1 tag-box-wrap"> <div v-for="(item, index) in scope.scope.taggingList" :key="index">
<el-tooltip class="item" :content="item.name" placement="top"> <div :title="item.name" class="accountType-row accountType-row-tag">{{ item ? item.name : '' }}</div>
<span>{{ item.name }}</span> </div>
</el-tooltip>
</span>
</template> </template>
<div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">--</div> <div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">
--
</div>
</div> </div>
<div slot="codeRemark" slot-scope="scope"> <div slot="codeRemark" slot-scope="scope">
<div class="codeName">{{ scope.scope.codeName }}</div> <div class="codeName">{{ scope.scope.codeName }}</div>
...@@ -114,7 +119,8 @@ export default { ...@@ -114,7 +119,8 @@ export default {
{ {
label: '标签', label: '标签',
prop: 'tagging', prop: 'tagging',
addHtml: 'tagging' addHtml: 'tagging',
width: '150px'
}, },
{ {
label: '创建时间', label: '创建时间',
...@@ -233,11 +239,17 @@ export default { ...@@ -233,11 +239,17 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.popover-panel {
width: 1000px;
}
.form-header { .form-header {
margin-bottom: 20px; margin-bottom: 20px;
} }
.form-panel { .form-panel {
padding: 20px; padding: 20px;
/deep/ .el-popover{
max-width: 1000px;
}
} }
.download-link { .download-link {
cursor: pointer; cursor: pointer;
...@@ -338,6 +350,19 @@ export default { ...@@ -338,6 +350,19 @@ export default {
display: inline-block; display: inline-block;
margin-bottom: 5px; margin-bottom: 5px;
margin-right: 5px; margin-right: 5px;
&-tag {
display: inline-block;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666;
max-width: 150px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
i { i {
color: #75acff; color: #75acff;
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<el-form-item size="small" label="渠道名称"> <el-form-item size="small" label="渠道名称">
<el-input size="small" v-model="tableSearchForm.keyWord" placeholder="请输入渠道名称"></el-input> <el-input size="small" v-model="tableSearchForm.keyWord" placeholder="请输入渠道名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right"> <el-form-item size="small" style="float: right;margin-left: 40px">
<el-button type="primary" @click="handleSearch">查询</el-button> <el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</div> </div>
<div class="chart-desc-item" v-for="(item, index) in codeIds" :key="index"> <div class="chart-desc-item" v-for="(item, index) in codeIds" :key="index">
<div class="chart-item-title"> <div class="chart-item-title">
<span :style="{ color: colorList[index], 'font-size': '18px' }">—</span> <span :style="{ background: colorList[index], }"></span>
{{ item.codeName }} {{ item.codeName }}
</div> </div>
<div class="chart-item-num">{{ item.totalNum }}</div> <div class="chart-item-num">{{ item.totalNum }}</div>
...@@ -232,7 +232,7 @@ export default { ...@@ -232,7 +232,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 600;
color: #333333; color: #333333;
line-height: 20px; line-height: 20px;
.chart-title-time { .chart-title-time {
...@@ -247,6 +247,15 @@ export default { ...@@ -247,6 +247,15 @@ export default {
color: #666666; color: #666666;
line-height: 17px; line-height: 17px;
margin-top: 10px; margin-top: 10px;
.chart-item-title {
span {
vertical-align: middle;
display: inline-block;
width: 12px;
height: 2px;
margin-right: 10px;
}
}
} }
.chart-desc-add { .chart-desc-add {
font-size: 12px; font-size: 12px;
......
...@@ -25,6 +25,10 @@ export default { ...@@ -25,6 +25,10 @@ export default {
}, },
methods: { methods: {
init(chartList, codeName) { init(chartList, codeName) {
if(chartList.length == 0) {
this.lineStatus = false
return
}
let time = chartList[0].trendItemList.map(item => { let time = chartList[0].trendItemList.map(item => {
return item.dayTime return item.dayTime
}) })
...@@ -100,10 +104,12 @@ export default { ...@@ -100,10 +104,12 @@ export default {
.chart-line-empty { .chart-line-empty {
height: 300px; height: 300px;
text-align: center; text-align: center;
color: #666;
img { img {
margin-top: 100px; margin-top: 100px;
width: 64px; width: 64px;
height: 32px; height: 32px;
margin-bottom: 12px;
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="selected-panel"> <div class="selected-panel">
<div class="selected-item" v-for="(item, index) in selectedList" :key="index"> <div class="selected-item" v-for="(item, index) in selectedList" :key="index">
<div> <div>
<span :style="{ color: colorList[index] ,'font-size': '18px'}">—</span> <span :style="{ background: colorList[index]}"></span>
{{ item.codeName }} {{ item.codeName }}
</div> </div>
<img src="@/assets/img/channel/del.png" @click="delTag(item)" /> <img src="@/assets/img/channel/del.png" @click="delTag(item)" />
...@@ -148,6 +148,13 @@ export default { ...@@ -148,6 +148,13 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
span {
vertical-align: middle;
display: inline-block;
width: 12px;
height: 2px;
margin-right: 10px;
}
img { img {
width: 16px; width: 16px;
height: 16px; height: 16px;
......
...@@ -225,6 +225,7 @@ export default { ...@@ -225,6 +225,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #666; color: #666;
margin-right: 5px; margin-right: 5px;
margin-bottom: 5px;
} }
.emp-item { .emp-item {
text-align: left; text-align: left;
...@@ -283,6 +284,7 @@ export default { ...@@ -283,6 +284,7 @@ export default {
} }
.count-panel { .count-panel {
display: flex; display: flex;
margin-top: 5px;
&-item { &-item {
position: relative; position: relative;
margin: 10px 20px 20px 0px; margin: 10px 20px 20px 0px;
...@@ -323,7 +325,8 @@ export default { ...@@ -323,7 +325,8 @@ export default {
} }
} }
.tab-panel { .tab-panel {
margin-bottom: 20px; margin-top: 20px;
margin-bottom: 10px;
display: inline-block; display: inline-block;
/deep/ { /deep/ {
.el-checkbox:last-of-type { .el-checkbox:last-of-type {
...@@ -348,6 +351,7 @@ export default { ...@@ -348,6 +351,7 @@ export default {
.el-tabs__item.is-active { .el-tabs__item.is-active {
background-color: #fff; background-color: #fff;
border-radius: 4px; border-radius: 4px;
font-weight: 600;
} }
} }
} }
......
...@@ -250,7 +250,6 @@ export default { ...@@ -250,7 +250,6 @@ export default {
message: '操作成功', message: '操作成功',
type: 'success' type: 'success'
}) })
this.init()
} }
}) })
}, },
...@@ -305,7 +304,7 @@ export default { ...@@ -305,7 +304,7 @@ export default {
if (res) { if (res) {
this.configItem = res this.configItem = res
this.addValue = res.delFlag == 0 ? true : false this.addValue = res.delFlag == 0 ? true : false
this.staffIds = eval(res.staffIds) this.staffIds = res.staffIds?eval(res.staffIds):[]
} }
}) })
}, },
...@@ -353,7 +352,7 @@ export default { ...@@ -353,7 +352,7 @@ export default {
.drainage-title { .drainage-title {
padding-left: 20px; padding-left: 20px;
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 600;
color: #333333; color: #333333;
line-height: 57px; line-height: 57px;
height: 57px; height: 57px;
......
...@@ -323,6 +323,9 @@ export default { ...@@ -323,6 +323,9 @@ export default {
.el-date-editor.el-input__inner { .el-date-editor.el-input__inner {
width: 220px; width: 220px;
} }
.el-form-item {
margin-right: 20px;
}
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -106,10 +106,12 @@ export default { ...@@ -106,10 +106,12 @@ export default {
.chart-line-empty { .chart-line-empty {
height: 300px; height: 300px;
text-align: center; text-align: center;
color: #666;
img { img {
margin-top: 100px; margin-top: 100px;
width: 64px; width: 64px;
height: 32px; height: 32px;
margin-bottom: 12px;
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -89,11 +89,6 @@ ...@@ -89,11 +89,6 @@
</div> </div>
<linechart ref="customerForm"></linechart> <linechart ref="customerForm"></linechart>
</div> </div>
<div class="user-panel-balance scrm-box-f">
<div class="balance-title">资源剩余</div>
<div class="balance-image"><img src="@/assets/img/overview/balance3.png" /></div>
<div class="balance-image"><img src="@/assets/img/overview/balance4.png" /></div>
</div>
</div> </div>
<div class="statistics-main"> <div class="statistics-main">
<message-list></message-list> <message-list></message-list>
...@@ -203,7 +198,7 @@ export default { ...@@ -203,7 +198,7 @@ export default {
color: #666666; color: #666666;
line-height: 30px; line-height: 30px;
li { li {
color: #999999; color: #666;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!