Commit df1807ef by 无尘

fix: 修改成功提示

parent 6d665560
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.bafc750a1f3b9e83f5257d917d0d68ff.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.aebb80b3dbaebedf6fff.js></script><script type=text/javascript src=./static/js/vendor.014a23eec35e9d02ede3.js></script><script type=text/javascript src=./static/js/app.ab6e465a2802c8ce5994.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.4a2c47f7650dca3aa7ec03eab5a9acd0.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.2006d4ea405b47fb18d4.js></script><script type=text/javascript src=./static/js/vendor.014a23eec35e9d02ede3.js></script><script type=text/javascript src=./static/js/app.ab6e465a2802c8ce5994.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={63:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"d05ce1ecbdd1111eed60",1:"06c4e42e62c1f75191f0",2:"b16524842c5a5c881bc0",3:"08ea39c2977a201ea39a",4:"6397838f67f240e44931",5:"bf21cfa1832c94ed8d4c",6:"24acba1c7ff231fff38c",7:"c9ccf52380a5efb8720c",8:"4603f181023b5a1ab604",9:"74b3ab50d09872f2f3d0",10:"db882a097f8319f562cc",11:"0fa0133322188250d3c7",12:"dd0a305cf1dc649905fd",13:"ebba5b82c2826c9ba6e1",14:"2d9e92b6a6eceba9238a",15:"3719b48003ce60ac35cf",16:"880047853fa23da0e4eb",17:"fca3406ba0423dbc034e",18:"31d8270b74259075ac18",19:"7a53269ddf9f15768789",20:"8bc10191a74fe4fcf33c",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"58c7c6c2d8897eb7c474",25:"9e5733792c18c643ff3a",26:"dba4d3332f3dbc9d7649",27:"8c00b479947588ae7b2c",28:"110ab7e5f64abacf9778",29:"cebf604cf1225f47e634",30:"7c1e52b5c0d36e8632c1",31:"3c38b82373fa7e0a809a",32:"d68d3e9c2138e9b0b094",33:"17b587ea836e40e85f6c",34:"fe5fa10071f728bce540",35:"58646980a26370faba20",36:"11a1a313d8ff29508d13",37:"4eb8995550564944b43d",38:"2b9cdeede733af9be322",39:"9aa77e3defecaceb244e",40:"5c88eb3d24b8c0c5c765",41:"754895d6e8968f855a79",42:"43bbedbec5d68a86dac1",43:"87c1782754b0b05f7608",44:"aa371b07acf3ccb8cf7b",45:"67d74a26606b9aaaaf36",46:"533788c46e1defe672d3",47:"12481e6bfc90de853c84",48:"31977b1cfef3f8807123",49:"15bc78cea887de215d32",50:"c2932bcd17cb7bb00ef7",51:"6ecd1c76f129643c28a8",52:"763413fcd4e918278c7c",53:"63a56532e0b00a60682a",54:"5953756da77aa423a0f0",55:"507e3a26f9dc9383df97",56:"0c71414a670bc8546178",57:"1a7102c508e3c1a0a222",58:"a7fa96edb1538ed5b7ff",59:"c71bd5036dd611ea623a",60:"775007688f0115e168fb"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={63:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"d05ce1ecbdd1111eed60",1:"06c4e42e62c1f75191f0",2:"b16524842c5a5c881bc0",3:"88041bee52520a93387f",4:"6397838f67f240e44931",5:"bf21cfa1832c94ed8d4c",6:"24acba1c7ff231fff38c",7:"c9ccf52380a5efb8720c",8:"4603f181023b5a1ab604",9:"74b3ab50d09872f2f3d0",10:"db882a097f8319f562cc",11:"0fa0133322188250d3c7",12:"dd0a305cf1dc649905fd",13:"ebba5b82c2826c9ba6e1",14:"2d9e92b6a6eceba9238a",15:"3719b48003ce60ac35cf",16:"880047853fa23da0e4eb",17:"743c65492d195b3ef473",18:"31d8270b74259075ac18",19:"7a53269ddf9f15768789",20:"89bfd2ff6b358260a4a6",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"58c7c6c2d8897eb7c474",25:"9e5733792c18c643ff3a",26:"dba4d3332f3dbc9d7649",27:"8c00b479947588ae7b2c",28:"110ab7e5f64abacf9778",29:"cebf604cf1225f47e634",30:"7c1e52b5c0d36e8632c1",31:"3c38b82373fa7e0a809a",32:"d68d3e9c2138e9b0b094",33:"17b587ea836e40e85f6c",34:"fe5fa10071f728bce540",35:"58646980a26370faba20",36:"11a1a313d8ff29508d13",37:"4eb8995550564944b43d",38:"2b9cdeede733af9be322",39:"9aa77e3defecaceb244e",40:"5c88eb3d24b8c0c5c765",41:"754895d6e8968f855a79",42:"43bbedbec5d68a86dac1",43:"87c1782754b0b05f7608",44:"aa371b07acf3ccb8cf7b",45:"67d74a26606b9aaaaf36",46:"533788c46e1defe672d3",47:"12481e6bfc90de853c84",48:"31977b1cfef3f8807123",49:"15bc78cea887de215d32",50:"c2932bcd17cb7bb00ef7",51:"6ecd1c76f129643c28a8",52:"763413fcd4e918278c7c",53:"63a56532e0b00a60682a",54:"5953756da77aa423a0f0",55:"507e3a26f9dc9383df97",56:"0c71414a670bc8546178",57:"1a7102c508e3c1a0a222",58:"a7fa96edb1538ed5b7ff",59:"c71bd5036dd611ea623a",60:"775007688f0115e168fb"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<!--
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-02-08 10:27:21
* @LastEditors: 无尘
* @LastEditTime: 2020-04-16 14:10:28
-->
<!--
选择门店分组组件:
<gic-select-store
:selectData="selectData"
@returnStores="returnStores">
</gic-select-store>
import gicSelectGroup from '@/components/common/gic-select-store.vue';
returnStores: function(nodes) {
const that = this;
that.conditionObj.groupIds = nodes;
},
-->
<template>
<el-popover placement="bottom" title="" width="350" trigger="click" v-model="storeVisible">
<div class="daily-store-select">
<div class="select-search">
<el-input placeholder="请输入门店名称" v-model="searchSelect" style="width: 100%;" @keyup.native="value => toInput(value, searchSelect)" @clear="clearSearch"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input>
</div>
<div class="checkbox border-box" style="padding: 15px 20px;">
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
</div>
<div class="el-scrollbar define-search-select">
<div class="el-select-dropdown__wrap el-scrollbar__wrap" style="margin-bottom: -5px; margin-right: -5px;">
<el-checkbox-group v-model="dailyRuleForm.stores" @change="handleStoresChange">
<ul class="el-scrollbar__view el-select-dropdown__list">
<li :class="['el-select-dropdown__item', item.select ? 'selected hover' : '']" v-for="item in stores" :key="item.storeId">
<!-- @click="checkStore(item)" -->
<!-- <span>{{ item.storeName }}</span> -->
<el-checkbox :label="item.storeId">{{ item.storeName }}</el-checkbox>
</li>
<li v-if="!stores.length" class="text-center"><span>暂无数据</span></li>
</ul>
</el-checkbox-group>
</div>
<div class="el-scrollbar__bar is-horizontal"><div class="el-scrollbar__thumb" style="transform: translateX(0%);"></div></div>
<div class="el-scrollbar__bar is-vertical"><div class="el-scrollbar__thumb" style="transform: translateY(0%);"></div></div>
</div>
</div>
<div class="show-select-num w-350" slot="reference" @click="changeVisible">
已经选择{{ dailyRuleForm.stores.length }}家门店
<span class="el-input__suffix"
><span class="el-input__suffix-inner"><i :class="['el-select__caret el-input__icon el-icon-arrow-up', storeVisible ? 'is-reverse' : '']"></i></span
></span>
</div>
</el-popover>
</template>
<script>
import { getRequest } from '@/api/api';
import errMsg from '@/common/js/error';
import { _debounce } from '@/common/js/public';
export default {
name: 'gic-select-store',
props: {
width: {
type: String,
default() {
return '357px';
}
},
selectData: {
type: [Object, Array],
default() {
return [];
}
},
brandId: {
type: String,
default() {
return '';
}
}
},
data() {
return {
projectName: '', // 当前项目名
enterpriseId: this.brandId,
checkAll: false,
isIndeterminate: false,
searchSelect: '',
storeVisible: false,
stores: [],
storesCopy: [],
dailyRuleForm: {
stores: []
},
pageNum: 1,
pageSize: 200
};
},
methods: {
/**
* 全选
*/
handleCheckAllChange(val) {
const that = this;
that.dailyRuleForm.stores = val ? that.stores.map(item => item.storeId) : [];
that.isIndeterminate = false;
that.$emit('returnStores',that.dailyRuleForm.stores)
},
handleStoresChange(value) {
const that = this;
let checkedCount = value.length;
that.checkAll = checkedCount === that.stores.length;
that.isIndeterminate = checkedCount > 0 && checkedCount < that.stores.length;
that.$emit('returnStores',that.dailyRuleForm.stores)
},
/**
* 输入
*/
toInput: _debounce(function(e, value) {
const that = this;
if (!that.storesCopy.length) {
return false;
}
if (value == '') {
that.stores = JSON.parse(JSON.stringify(that.storesCopy));
}
let filterData = JSON.parse(JSON.stringify(that.storesCopy)).filter(ele => {
return ele.storeName.includes(value);
});
that.stores = filterData;
}, 500),
/**
* 显示或隐藏门店列表
*/
/* eslint-disable */
changeVisible() {
// const that = this;
// that.storeVisible = !that.storeVisible;
},
/**
* 选择门店
*/
checkStore(item) {
const that = this;
if (item.select) {
item.select = false;
const index = that.dailyRuleForm.stores.indexOf(item.storeId);
that.dailyRuleForm.stores.splice(index, 1);
} else {
item.select = true;
that.dailyRuleForm.stores.push(item.storeId);
}
that.storesCopy.forEach(ele => {
if (that.dailyRuleForm.stores.includes(ele.storeId)) {
ele.select = true;
}
});
},
/**
* 清空
*/
clearSearch() {
const that = this;
that.stores = JSON.parse(JSON.stringify(that.storesCopy));
},
/**
* 获取门店
*/
getStoreData() {
let that = this;
let para = {
search: '',
gicEnterpriseId: that.activeBrand,
pageNum: that.pageNum,
pageSize: that.pageSize
};
getRequest('/haoban-app-customer-web/cardCoupon/get-store-list', para)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
if (resData.result.list) {
resData.result.list.forEach(ele => {
ele.select = false;
});
}
if (that.pageNum == 1) {
that.stores = JSON.parse(JSON.stringify(resData.result.list)) || [];
that.storesCopy = JSON.parse(JSON.stringify(resData.result.list)) || [];
}else {
resData.result.list.forEach(ele => {
that.stores.push(ele);
that.storesCopy.push(ele);
})
}
if (that.pageNum*that.pageSize < resData.result.total) {
that.pageNum ++;
that.getStoreData();
}
// console.log('that.stores:',that.stores)
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
watch: {
brandId(val) {
const that = this;
if (val) {
that.checkAll = false;
that.isIndeterminate = false;
that.stores = [];
that.storesCopy = [];
that.getStoreData();
}
}
},
mounted() {
const that = this;
// 对否有默认选中数据
if (!!that.brandId) {
that.stores = [];
that.storesCopy = [];
that.getStoreData();
}
}
};
</script>
<style lang="less" scoped>
.depart-item-content {
width: 213px;
height: 32px;
overflow: hidden;
white-space: nowrap;
border-radius: 4px;
border: 1px solid #c4c6cf;
cursor: pointer;
box-sizing: border-box;
}
.select-tree-wrap {
max-height: 300px;
overflow-y: auto;
}
.item-cell-select {
/deep/ .el-select__tags {
white-space: nowrap;
overflow: hidden;
}
.el-select {
.el-tag {
border-radius: 2px;
border: 1px solid rgba(220, 223, 230, 1);
background-color: #fff;
.el-tag__close {
top: 1px;
color: #909399;
&:hover {
background-color: transparent;
}
}
}
}
}
.daily-store-select {
position: relative;
}
</style>
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-14 09:50:16
* @LastEditors: 无尘
* @LastEditTime: 2020-04-15 16:51:13
* @LastEditTime: 2020-04-16 14:03:44
-->
<!--
<sync-success :syncData="syncData"></sync-success>
......@@ -44,7 +44,7 @@ export default {
methods: {
handleClose(done) {
// const that = this;
done();
// done();
}
}
};
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-04-13 15:27:46
* @LastEditors: 无尘
* @LastEditTime: 2020-04-16 11:33:53
* @LastEditTime: 2020-04-16 13:43:27
-->
<template>
......@@ -333,6 +333,7 @@ export default {
mounted() {
const that = this;
that.$emit('showTab', '1');
that.activeBrand = that.brandId;
if (that.$route.query.coupCardId) {
that.getCardData();
}
......
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