Commit 6261b82d by zhangmeng

迭代2

parent 8f24e9c4
......@@ -248,9 +248,8 @@
},
getAllMytext(){ // 文本框输入失去焦点时获得输入框的内容
console.log(this.$refs.myTextarea.innerHTML);
this.textarea = this.$refs.myTextarea.innerHTML.replace(/<\/div>|&nbsp;/g,'').replace(/<div>/g,'<br>').split('<br>').filter(v => v).join('<br>').replace('undefined','');
console.log(this.textarea);
this.xcxUrlObj.textarea = this.textarea;
this.xcxUrlObj.textarea = this.$refs.myTextarea.innerHTML.replace(/<\/div>|&nbsp;/g,'').replace(/<div>/g,'<br>').split('<br>').filter(v => v).join('<br>').replace(/<br>/g,'\n').replace('undefined','');
var reg = /<a\s+href=['"]([^"]*)['"].*?[^>]*>(.*?)<\/a>/g;
if(reg.exec(this.textarea)!=null){
......
......@@ -19,11 +19,9 @@ import vueGicStoreLinkage from '@gic-test/vue-gic-store-linkage/src/lib'
import vueGicStoreGroup from '@gic-test/vue-gic-store-group'
import vueGicPeople from '@gic-test/vue-gic-people'
import vueGicConfirmPeople from '@gic-test/vue-gic-confirm-people/src/lib'
import vueGicImgPreview from '@gic-test/vue-gic-img-preview'
import packele from 'packele'
// import preview from 'vue-photo-preview/src/lib/index.js'
// import 'vue-photo-preview/dist/skin.css'
// Vue.use(preview)
Vue.config.productionTip = false
Vue.use(packele)
Vue.use(ElementUI)
......@@ -36,6 +34,7 @@ Vue.use(vueGicStoreLinkage)
Vue.use(vueGicStoreGroup)
Vue.use(vueGicPeople)
Vue.use(vueGicConfirmPeople)
Vue.use(vueGicImgPreview)
Vue.prototype.axios = axios;
Vue.prototype.axios.withCredentials = true
Object.keys(directives).map(item => Vue.directive(item, directives[item]));
......
......@@ -44,3 +44,6 @@ export const getSuggestionsDetail = (params) => requests(PREFIX + 'get-suggestio
//投诉与建议-分页列表信息--立即处理--保存
export const handleSuggestions = (params) => requests(PREFIX + 'handle-suggestions', params);
//投诉与建议-分页列表信息-导出csv
export const exportProblemsCsv = config.api + PREFIX + 'export-problems-csv';
<template>
<section class="dm-marketing">
<div class="dm-marketing__opt--wrap">
<span class="dm-marketing__opt--label">添加内容</span>
<i class="el-icon-plus dm-marketing__opt--icon"></i>
<div class="inline-block dm-marketing__opt">
<span class="dm-marketing__opt__item">
<img src="./svg/imgText.svg" alt="" srcset=""><span> 图文</span>
</span>
<span class="dm-marketing__opt__item">
<img src="./svg/text.svg" alt="" srcset=""><span> 文本</span>
</span>
<span class="dm-marketing__opt__item">
<img src="./svg/app.svg" alt="" srcset=""><span> 小程序</span>
</span>
<span class="dm-marketing__opt__item">
<img src="./svg/img.svg" alt="" srcset=""><span> 图片</span>
</span>
<span class="dm-marketing__opt__item">
<img src="./svg/card.svg" alt="" srcset=""><span> 卡券</span>
</span>
<span class="dm-marketing__opt__item">
<img src="./svg/msg.svg" alt="" srcset=""><span> 短信</span>
</span>
<span class="dm-marketing__opt__item">
<img src="./svg/tel.svg" alt="" srcset=""><span> 话务</span>
</span>
</div>
</div>
<div class="dm-marketing__content--wrap">
<span class="dm-marketing__content--label">回复内容</span>
<div class="dm-marketing__content">
<div class="dm-marketing__content__item" v-for="(v,i) in list" :key="i">
<i class="dm-marketing__content--index">{{i+1}}</i>
</div>
</div>
</div>
</section>
</template>
<script>
export default {
name:'dm-marketing',
data() {
return{
list:Array(6),
}
},
}
</script>
<style lang="scss">
@import url('./style/index.css');
</style>
/* reset样式 */
.w100 {
width: 100px;
}
.w200 {
width: 200px;
}
.w240 {
width: 240px;
}
.inline-block {
vertical-align: middle;
display:inline-block!important;
}
.block{
display: block!important;
}
.gray-color{
color:#909399;
}
.fz13 {
font-size: 13px;
}
.fz12 {
font-size: 12px;
}
.fl {
float: left;
}
.fr {
float: right;
}
.clearfix:after{
display: block;
clear: both;
content: '';
visibility: hidden;
height: 0;
}
.clearfix{
zoom: 1;
}
.vertical-middle {
vertical-align: middle;
}
.block{
display: block;
overflow: hidden;
}
/* reset样式end */
.dm-marketing__opt{
background: #FFFFFF;
border: 1px solid rgba(235,238,245,1);
box-shadow: 0px 1px 20px 0px rgba(0,0,0,0.15);
padding:0 20px;
}
.dm-marketing__opt--label{
vertical-align: middle;
color:#303133;
font-size:14px;
}
.dm-marketing__opt--icon {
display:inline-block;
font-size:20px;
padding:8px;
margin:0 10px;
color:#909399;
border:2px solid #E4E7ED;
border-radius:50%;
vertical-align: middle;
}
.dm-marketing__opt__item {
display:inline-block;
height:36px;
line-height:36px;
margin-right:30px;
cursor: pointer;
}
.dm-marketing__opt__item > img {
vertical-align: middle;
height: 17px;
width: auto;
color: #909399;
}
.dm-marketing__opt__item > span {
vertical-align: middle;
color: #606266;
font-size:14px;
}
.dm-marketing__content--wrap{
margin-top:50px;
max-width:1000px;
}
.dm-marketing__content{
margin-left:120px;
}
.dm-marketing__content__item{
border-bottom:1px solid #E4E7ED;
padding:20px 0;
}
.dm-marketing__content--index{
display:inline-block;
width:24px;
height:24px;
line-height:24px;
text-align:center;
vertical-align:middle;
border:1px solid #E4E7ED;
border-radius:50%;
padding:4px;
color:#606266;
}
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M511.858139 0.60441c-282.494127 0-511.500488 229.006361-511.500488 511.500488s229.006361 511.500488 511.500488 511.500487 511.500488-229.006361 511.500487-511.500487a511.500488 511.500488 0 0 0-511.500487-511.500488z m256.466544 459.737038a151.813744 151.813744 0 0 1-87.262783 65.675863 83.16978 83.16978 0 0 1-24.449123 4.092004c-16.045331 0-29.053627-13.007298-29.053628-29.052628s13.007298-29.053627 29.053628-29.053627c2.210841 0.05095 4.407696-0.367641 6.444706-1.227801a91.353787 91.353787 0 0 0 55.855454-40.920039 75.190572 75.190572 0 0 0 11.049209-39.589339c0-45.933143-42.45454-83.78418-94.21799-83.78418a105.1643 105.1643 0 0 0-51.150049 13.400914 81.840078 81.840078 0 0 0-43.68334 70.383266V634.250615c-0.516496 50.330849-28.33433 96.405854-72.633069 120.304515a159.486252 159.486252 0 0 1-79.692176 20.460019c-84.294681 0-153.450146-63.42606-153.450146-141.890435a136.05913 136.05913 0 0 1 19.744718-69.768866 151.813744 151.813744 0 0 1 87.261783-65.675864 85.830181 85.830181 0 0 1 24.450123-4.092004c16.045331 0 29.052628 13.007298 29.052628 29.052629 0 16.04633-13.007298 29.053627-29.052628 29.053627a15.651715 15.651715 0 0 0-6.444706 1.227801 95.855391 95.855391 0 0 0-55.855454 40.920039 75.190572 75.190572 0 0 0-11.04921 39.589339c0 45.933143 42.45454 83.78418 94.83239 83.784179a105.1643 105.1643 0 0 0 51.150049-13.400913 81.840078 81.840078 0 0 0 43.579442-70.383266V390.572581c0.566447-50.37081 28.413253-96.468792 72.735969-120.407414a151.097444 151.097444 0 0 1 79.077776-21.483021c84.294681 0 153.450146 63.42606 153.450146 141.890435a136.05913 136.05913 0 0 1-19.743719 69.768867z" fill="#24AF41" /></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" fill="#909399" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M691.198707 135.809293c121.069899 0 219.59499 91.010586 219.59499 203.733333 0 35.069414-10.016323 69.302303-28.387556 100.196849-27.552323 45.08703-71.801535 78.491152-125.240888 94.354101-14.197657 4.172283-25.051798 5.845333-35.069415 5.845333-23.378747 0-41.74998-18.368646-41.749979-41.748687s18.371232-41.751273 41.749979-41.751273c1.664 0 5.008808 0 9.182384-1.664 35.905939-10.025374 64.293495-30.895838 80.155152-58.455919 10.860606-17.533414 15.869414-36.732121 15.869414-56.775111 0-65.966545-60.956444-120.233374-135.267556-120.233374-25.885737 0-50.937535 6.681859-73.48105 19.198708-39.24299 22.552566-62.621737 60.121212-62.621738 101.035959v349.862788c0 70.963717-39.241697 136.092444-104.370424 172.833616-35.068121 20.04299-74.317576 30.060606-114.395798 30.060606C216.096323 892.302222 117.569939 801.286465 117.569939 688.571475c0-35.070707 10.017616-69.308768 28.388849-100.199435 27.549737-45.094788 71.808-78.491152 125.248646-94.352808 15.026424-4.173576 25.04404-5.84404 35.069414-5.84404 23.38004 0 41.742222 18.369939 41.742223 41.748687s-18.362182 41.74998-41.742223 41.74998c-1.671758 0-5.017859 0-9.190141 1.664-35.904646 10.854141-64.293495 31.734949-80.153859 58.448161-10.854141 17.536-15.862949 36.743758-15.862949 56.785455 0 65.956202 60.947394 120.230788 136.096323 120.230788 25.885737 0 50.937535-6.67798 73.481051-19.205172 39.241697-22.542222 62.621737-60.112162 62.621737-101.025616V339.542626c0-70.975354 39.241697-136.104081 104.370424-172.834909 34.231596-20.880808 73.481051-30.898424 113.559273-30.898424zM34.909091 512.466747" /></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg fill="#909399" class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M180.224 610.304c0 76.8-56.32 142.336-132.608 153.088v134.144h928.256v-134.144c-76.288-10.752-133.12-76.288-133.12-153.088s56.32-142.336 133.12-153.088V323.072H47.616v134.144c76.288 10.752 132.608 76.288 132.608 153.088zM3.584 477.696V300.544c0-6.144 2.048-11.264 6.656-15.872 4.096-4.096 9.728-6.656 15.872-6.656H998.4c6.144 0 11.264 2.048 15.872 6.656 4.096 4.096 6.656 9.728 6.656 15.872v176.64c0 6.144-2.048 11.264-6.656 15.872-4.096 4.096-9.728 6.656-15.872 6.656-60.928 0-110.592 49.664-110.592 110.592s49.664 110.592 110.592 110.592c6.144 0 11.264 2.048 15.872 6.656 4.096 4.096 6.656 9.728 6.656 15.872v176.64c0 6.144-2.048 11.264-6.656 15.872-4.096 4.096-9.728 6.656-15.872 6.656H25.6c-6.144 0-11.264-2.048-15.872-6.656-4.096-4.096-6.656-9.728-6.656-15.872v-176.64c0-6.144 2.048-11.264 6.656-15.872 4.096-4.096 9.728-6.656 15.872-6.656 60.928 0 110.592-49.664 110.592-110.592 0-60.928-49.664-110.592-110.592-110.592-6.144 0-11.264-2.048-15.872-6.656-4.096-4.096-6.144-9.728-6.144-15.36z m377.856-223.744c-11.776 3.072-24.064-4.096-27.136-15.872-3.072-11.776 4.096-24.064 15.872-27.136l467.968-124.928c11.776-3.072 24.064 4.096 27.136 15.872l26.112 98.304c3.072 11.776-4.096 24.064-15.872 27.136-11.776 3.072-24.064-4.096-27.136-15.872l-20.48-76.8-446.464 119.296zM666.112 389.12c0-12.288 9.728-22.016 22.016-22.016s22.016 9.728 22.016 22.016v88.576c0 12.288-9.728 22.016-22.016 22.016s-22.016-9.728-22.016-22.016V389.12z m0 176.64c0-12.288 9.728-22.016 22.016-22.016s22.016 9.728 22.016 22.016v88.576c0 12.288-9.728 22.016-22.016 22.016s-22.016-9.728-22.016-22.016v-88.576z m0 176.64c0-12.288 9.728-22.016 22.016-22.016s22.016 9.728 22.016 22.016v88.576c0 12.288-9.728 22.016-22.016 22.016s-22.016-9.728-22.016-22.016V742.4z" /></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="155.50px" viewBox="0 0 1317 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M438.857143 819.2 131.657143 512 29.257143 614.4 438.857143 1024 1316.571429 146.285714 1214.171429 43.885714Z" /></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" fill="#909399" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M913.903509 128.089283l-805.853631 0c-38.792515 0-70.352301 31.559786-70.352301 70.352301l0 626.775047c0 38.792515 31.559786 70.352301 70.352301 70.352301l805.853631 0c38.792515 0 70.352301-31.559786 70.352301-70.352301l0-626.775047C984.255811 159.64907 952.696024 128.089283 913.903509 128.089283zM108.049878 179.254593l805.853631 0c10.579963 0 19.186991 8.607028 19.186991 19.186991l0 321.058227-236.495272-236.496296c-27.431769-27.429723-72.062246-27.429723-99.494015 0L445.901583 434.20417l-53.064566-52.707432c-27.430746-27.430746-72.063269-27.430746-99.494015 0L88.862887 585.977875l0-387.53629C88.862887 187.861622 97.469915 179.254593 108.049878 179.254593zM913.903509 844.403622l-805.853631 0c-10.579963 0-19.186991-8.607028-19.186991-19.186991L88.862887 658.33688l240.660128-240.661152c7.480368-7.482415 19.653619-7.481392 27.195386 0.061398l322.30666 320.137251c4.990664 4.956895 11.510148 7.432273 18.027585 7.432273 6.576789 0 13.151531-2.520403 18.151405-7.554046 9.956769-10.024308 9.902534-26.222221-0.121773-36.178991L482.20337 470.261387l151.077857-151.077857c7.480368-7.480368 19.652596-7.482415 27.13501 0l272.675286 272.675286 0 233.357815C933.090501 835.796594 924.483472 844.403622 913.903509 844.403622z" /></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" fill="#909399" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M903.9 916.4H123.4c-61.2 0-111.1-49.8-111.1-111.1V219.7c0-61.2 49.8-111.1 111.1-111.1h780.5c61.2 0 111.1 49.8 111.1 111.1v585.6c0 61.3-49.8 111.1-111.1 111.1zM123.4 169.2c-27.8 0-50.5 22.6-50.5 50.5v585.6c0 27.8 22.6 50.5 50.5 50.5h780.5c27.8 0 50.5-22.6 50.5-50.5V219.7c0-27.8-22.6-50.5-50.5-50.5H123.4z" /><path d="M327.1 591.6H213c-39 0-70.7-31.7-70.7-70.7V341.8c0-39 31.7-70.7 70.7-70.7h114.1c39 0 70.7 31.7 70.7 70.7v179.1c0 39-31.7 70.7-70.7 70.7zM213 331.7c-5.5 0-10.1 4.6-10.1 10.1v179.1c0 5.5 4.6 10.1 10.1 10.1h114.1c5.5 0 10.1-4.6 10.1-10.1V341.8c0-5.5-4.6-10.1-10.1-10.1H213z" /><path d="M172.6 723.7h649.7" /><path d="M822.3 754H172.6c-16.7 0-30.3-13.6-30.3-30.3s13.6-30.3 30.3-30.3h649.7c16.7 0 30.3 13.6 30.3 30.3S839 754 822.3 754z" /><path d="M562.4 528.8h259.9" /><path d="M822.3 559.1H562.4c-16.7 0-30.3-13.6-30.3-30.3s13.6-30.3 30.3-30.3h259.9c16.7 0 30.3 13.6 30.3 30.3s-13.6 30.3-30.3 30.3z" /><path d="M562.4 333.9h259.9" /><path d="M822.3 364.2H562.4c-16.7 0-30.3-13.6-30.3-30.3s13.6-30.3 30.3-30.3h259.9c16.7 0 30.3 13.6 30.3 30.3s-13.6 30.3-30.3 30.3z" /></svg>
<svg height="200" fill="#909399" viewBox="0 0 1024 1024" width="200" xmlns="http://www.w3.org/2000/svg"><path d="m893.686 171.345h-763.374c-55.326 0-100.6 45.272-100.6 100.601v526.064c0 55.328 45.272 100.603 100.6 100.603h763.374c55.328 0 100.603-45.274 100.603-100.603v-526.064c-.001-55.329-45.275-100.601-100.603-100.601m37.723 626.663c0 9.968-3.954 19.404-11.13 26.587-7.185 7.185-16.629 11.137-26.594 11.137h-763.373c-9.965 0-19.41-3.952-26.592-11.137-7.177-7.183-11.13-16.619-11.13-26.587v-526.062c0-9.967 3.954-19.412 11.13-26.594 7.182-7.175 16.626-11.131 26.592-11.131h763.374c9.965 0 19.412 3.956 26.594 11.131 7.178 7.182 11.133 16.628 11.133 26.594v526.062z"/><path d="m815.983 326.708-295.53 221.65-295.529-221.65c-13.883-10.416-33.594-7.6-44.01 6.288-10.417 13.893-7.603 33.597 6.287 44.013l314.394 235.797c.007.008.02.014.025.019.69.516 1.399 1.002 2.126 1.457.016.013.04.026.066.037a30.93 30.93 0 0 0 1.949 1.124c.15.076.294.152.444.227.666.341 1.338.666 2.028.954.126.056.254.096.378.148a35.8 35.8 0 0 0 1.682.624c.293.104.587.192.886.288.415.127.835.245 1.255.354.299.079.593.164.895.234.637.144 1.277.271 1.927.387.294.045.582.082.876.119.454.065.904.118 1.355.161.275.023.551.056.828.071.666.045 1.324.071 1.99.079.043 0 .085.006.127.006h.055c.04 0 .085-.006.127-.006a35.323 35.323 0 0 0 1.985-.079c.275-.016.553-.048.828-.071.457-.043.906-.096 1.361-.161.293-.037.582-.074.875-.119.648-.11 1.291-.24 1.934-.387.293-.07.59-.155.883-.234.42-.109.846-.228 1.261-.359.294-.091.587-.18.88-.283.572-.19 1.135-.399 1.693-.629.118-.048.245-.088.367-.144.689-.288 1.361-.61 2.033-.954.15-.071.293-.147.443-.227.654-.35 1.301-.715 1.938-1.111l.085-.056a31.568 31.568 0 0 0 2.104-1.443.105.105 0 0 1 .037-.024l314.396-235.797c13.889-10.417 16.702-30.123 6.279-44.012-10.419-13.886-30.121-16.707-44.013-6.291"/></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" fill="#909399" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M762.8 1024l-5.6-0.1c-125.5-6.4-290.5-119.2-442.2-301.8l-54-64.9C106.7 471.6 29.5 294.9 49.1 172.3 64.9 74 199.1 0 278.4 0c51.1 0 71.1 29.2 77.8 43.7 37.2 66.2 88.6 189 88.9 241l0.1 9-3.3 8.5c-12.4 32.6-39.7 48-57.8 58.2-16.4 9.2-18.8 11.3-19.5 15.6 2 6.6 15.2 40.1 94.8 137.8l41.1 49.3c80.8 94.9 110.8 113.2 116.4 116 5.1 0.5 7.7-1 21-15.5 13.9-15.2 34.9-38.1 70-43.2l8.7-1.2 8.4 1.8c51.6 10.8 164.6 85.7 223.9 135.2 21.5 15.3 38.4 48.3 23.1 96.5-22.3 69.7-114.9 171.3-209.2 171.3zM278.4 63.6c-54.1 0-156.8 58.7-166.4 118.7-16.3 101.4 59.6 267.8 197.9 434.2l54 64.9C502.4 848.1 654 954.9 759.4 960.3h3.6c59.6-0.2 132.3-77 148.3-127.2 5.4-16.9 2.3-24 0.6-25.3l-2.8-2.1c-61.2-51.3-159.1-112.5-194.6-122-10.6 2.4-18.4 10.4-29.7 22.8-15.9 17.3-37.7 41.1-78.9 35.3-11.5-1.6-41.9-5.9-154.1-137.8l-41.5-49.8C298.1 416.6 300 387 300.8 374.3c2.7-41.7 30-57 51.9-69.3 14.5-8.1 24-14 28.6-23.1-2.6-36-43.8-142-81.3-208.2l-1.6-3.1c-2.6-6.3-14.9-7-20-7z m339.4 615.9zM364.2 374.7z" /></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" fill="#909399" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M170.496 179.2h683.52v106.496h-683.52z" /><path d="M458.752 179.2h106.496v683.52h-106.496z" /></svg>
\ No newline at end of file
......@@ -256,4 +256,6 @@ export default {
}
}
</script>
<style lang="scss">
@import url('./index.css');
</style>
<template>
<div>
<div>
<div style="background:#fff;">
<!-- <div>
<p>新版门店</p>
<vue-gic-store-new style="padding:20px;" :uuid="uuid"></vue-gic-store-new>
</div>
......@@ -11,6 +11,9 @@
<div>
<p>老版门店</p>
<vue-gic-store-linkage style="padding:20px;" :msg="sendChildData"></vue-gic-store-linkage>
</div> -->
<div style="padding:20px;">
<dm-marketing></dm-marketing>
</div>
</div>
</template>
......@@ -24,7 +27,13 @@ import { gicStoreCard } from './dmStore/index.js';
Vue.use(gicStoreNew)
Vue.use(gicStoreCard)
import dmMarketing from './dmMarketing';
export default {
components:{
'dm-marketing':dmMarketing
},
data() {
return {
uuid:'',
......
......@@ -283,9 +283,7 @@ export default {
this.$tips({type: 'warning',message: '时间不能为空'});
return;
}
window.location = `${exportLatestEvaluate}?searchName=${this.listParams.searchName}&visiteStatus=${this.listParams.visiteStatus}&isContent=${this.listParams.isContent}&isBad=${this.listParams.isBad}&currentStoreGroupId=${this.listParams.currentStoreGroupId}&beginTime=${this.listParams.beginTime}&endTime=${this.listParams.endTime}&requestProject=gic-web`;
},
}
}
......
......@@ -16,7 +16,7 @@
</el-form-item>
<el-form-item label="意见图片" v-if="form.imgs.length>0">
<div class="img-box">
<img v-for="(v,i) in form.imgs" preview="0" preview-text="" :key="i" :src="v.imgUrl" alt="" preview-title-enable="true" preview-nav-enable="true">
<img v-for="(v,i) in form.imgs" preview="0" preview-text="" :key="i" :src="v.imgUrl" alt="" preview-title-enable="true" preview-nav-enable="true" @mouseover="showImage(v.imgUrl)">
</div>
</el-form-item>
<el-form-item label="回复内容" prop="handleRemark">
......@@ -27,6 +27,7 @@
<el-button type="primary" v-if="!isInfo" @click="submit('form')">提 交</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</span>
<vue-gic-img-preview :imgUrl="imgUrl" :imgShowFlag="imgShowFlag" @hideImage="hideImage"></vue-gic-img-preview>
</div>
</template>
<script>
......@@ -51,7 +52,9 @@ import {getSuggestionsDetail,handleSuggestions} from '@/service/api/evaluationAp
{ max: 200, message: '字数不能大于200', trigger: 'blur' }
]
},
isInfo:this.$route.meta.type === 'info'
isInfo:this.$route.meta.type === 'info',
imgUrl: '', // 传递的图片 src
imgShowFlag: false, // 是否弹框显示,true: 显示;false: 不显示
};
},
created() {
......@@ -97,6 +100,16 @@ import {getSuggestionsDetail,handleSuggestions} from '@/service/api/evaluationAp
console.log(err)
}
this.loading = false
},
showImage(src) {
if(!src || src == ''){
return false;
}
this.imgShowFlag = true;
this.imgUrl = src;
},
hideImage(val) {
this.imgShowFlag = val
}
}
}
......
......@@ -2,9 +2,13 @@
<section class="suggestion dm-wrap">
<div class="clearfix pb22">
<span class="pr10">{{total}}条投诉与建议</span>
<el-select class="w200" v-model="listParams.status" placeholder="选择状态" @change="pageSuggestionsList">
<el-option v-for="item in statusOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
<el-select class="w200" v-model="listParams.status" placeholder="选择状态" @change="search">
<el-option v-for="item in statusOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
<el-date-picker class="w250" v-model="dateTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="search"></el-date-picker>
<el-input v-model="listParams.storeSearch" class="w200" placeholder="门店名称/code" clearable @change="search"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-input v-model="listParams.memberSearch" class="w200" placeholder="会员昵称/手机" clearable @change="search"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-button icon="iconfont icon-icon_yunxiazai fz14" class="fr" type="primary" @click="exportSuggestionExcel"> 下载Excel</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%" v-loading="loading" element-loading-text="拼命加载中">
<el-table-column :show-overflow-tooltip="true" width="160" align="left" :key="Math.random()" prop="createTime" label="评价时间">
......@@ -48,7 +52,7 @@
</section>
</template>
<script>
import {pageSuggestionsList} from '@/service/api/evaluationApi.js';
import {pageSuggestionsList,exportProblemsCsv} from '@/service/api/evaluationApi.js';
import {formateDateTimeByType} from '@/utils/index.js'
export default {
name: 'suggestion',
......@@ -58,11 +62,15 @@ export default {
defaultAvatar:require('../../assets/img/head_default.png'),
loading:false,
tableList:[],
dateTime:[Date.now() - 3*30*24*60*60*1000,Date.now()],
listParams: {
status:'',
currentPage:1, //是 Number 当前页面
pageSize:20 ,//是 Number 每页显示条数
isBad:0
beginTime:'',
endTime:'',
storeSearch:'',
memberSearch:''
},
statusOptions:[{value:'',label:'所有'},{value:1,label:'待处理'},{value:4,label:'已解决'}],
total: 0,
......@@ -73,6 +81,10 @@ export default {
this.$store.commit('mutations_breadcrumb',[{name:'企业管理',path:''},{name:'服务监督',path:'/evaluation'},{name:'投诉与建议',path:'/suggestion'}])
},
methods: {
search() {
this.listParams.currentPage = 1;
this.pageSuggestionsList();
},
handleSizeChange(val) {
this.listParams.pageSize = val;
this.pageSuggestionsList();
......@@ -82,6 +94,12 @@ export default {
this.pageSuggestionsList();
},
async pageSuggestionsList() {
if(!this.dateTime) {
this.listParams.beginTime = this.listParams.endTime = '';
} else {
this.listParams.beginTime = formateDateTimeByType(this.dateTime[0],'yyyy-MM-dd-HH-mm-ss')
this.listParams.endTime = formateDateTimeByType(this.dateTime[1],'yyyy-MM-dd-HH-mm-ss')
}
try {
this.loading = true;
let res = await pageSuggestionsList(this.listParams);
......@@ -97,6 +115,19 @@ export default {
this.loading = false;
}
},
exportSuggestionExcel() {
if(!this.dateTime) {
this.listParams.beginTime = this.listParams.endDate = '';
} else {
this.listParams.beginTime = formateDateTimeByType(this.dateTime[0],'yyyy-MM-dd')
this.listParams.endTime = formateDateTimeByType(this.dateTime[1],'yyyy-MM-dd')
}
if (!this.listParams.beginTime || !this.listParams.endTime) {
this.$tips({type: 'warning',message: '时间不能为空'});
return;
}
window.location = `${exportProblemsCsv}?storeSearch=${this.listParams.storeSearch}&memberSearch=${this.listParams.memberSearch}&status=${this.listParams.status}&beginTime=${this.listParams.beginTime}&endTime=${this.listParams.endTime}&requestProject=gic-web`;
}
}
}
</script>
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