Commit 8f85e643 by 无尘

fix: 修改模板

parent 407c3d04
<!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.7f74d6c561e0b6db16733d16f9028a9e.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.e3bb4012b8a6a2a281db.js></script><script type=text/javascript src=./static/js/vendor.694f8850ed5112713591.js></script><script type=text/javascript src=./static/js/app.7ce66564a22bd275d44c.js></script></body></html> <!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.c7bfd080432f1855c2920b5fac1ec93e.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.19aee84a82b1f8103683.js></script><script type=text/javascript src=./static/js/vendor.694f8850ed5112713591.js></script><script type=text/javascript src=./static/js/app.64d1d9fc3a67f9b38736.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([16],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),c={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},n={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(c,n,!1,function(t){i("wc9b")},"data-v-a27616c0",null);s.default=r.exports},wc9b:function(t,s){}}); webpackJsonp([17],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),c={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},n={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(c,n,!1,function(t){i("wc9b")},"data-v-a27616c0",null);s.default=r.exports},wc9b:function(t,s){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([60],{itbt:function(t,e){},rUvh:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),o=a("exGp"),s=a.n(o),i=a("Ch4/"),c=a("3E4D"),l=a("PI0u"),u=a("P9l9"),d={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券策略?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(u.d)("/haoban-app-customer-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardStrategy?coupCardId="+e.coupCardId)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardStrategy")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return s()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n={gicEnterpriseId:(a=t).brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(u.d)("/haoban-app-customer-web/cardCoupon/find-card-page",n).then(function(t){var e=t.data;if(1==e.errorCode)return a.tableData=e.result.list||[],void(a.total=e.result.pageInfo.total);i.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","1"),this.brandId&&this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),t.tableData.length>=5?a("el-button",{attrs:{type:"primary"},on:{click:t.toNewCard}},[t._v("新增策略")]):t._e()],1),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券策略名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券模板"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"权重排序","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.effectDateString||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.couponStock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("下线")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("span",{staticClass:"font-14 color-909399 p-l-10"},[this._v("内购券针对企业内部员工发下的卡券,最多新建5个策略")])])}]};var f=a("VU/8")(d,p,!1,function(t){a("itbt")},"data-v-244a4400",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([60],{rUvh:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),o=a("exGp"),s=a.n(o),c=a("/dO2"),i=a("Ch4/"),l=a("3E4D"),u=a("PI0u"),d=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{rowDrop:function(){var t=document.querySelector(".el-table__body-wrapper tbody"),e=this;c.default.create(t,{onEnd:function(t){t.newIndex,t.oldIndex;console.log(e.tableData)}})},toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券策略?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(d.d)("/haoban-app-customer-web/cardCoupon/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardStrategy?coupCardId="+e.coupCardId)},toInput:Object(u.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardStrategy")},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return s()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n={gicEnterpriseId:(a=t).brandId,search:a.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(d.d)("/haoban-app-customer-web/cardCoupon/find-card-page",n).then(function(t){var e=t.data;if(1==e.errorCode)return a.tableData=e.result.list||[],void(a.total=e.result.pageInfo.total);i.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 3:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","1"),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()},this.rowDrop(),this.brandId&&this.getTableList()}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),t.tableData.length>=5?a("el-button",{attrs:{type:"primary"},on:{click:t.toNewCard}},[t._v("新增策略")]):t._e()],1),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("span",{staticClass:"el-icon-s-unfold",staticStyle:{cursor:"move"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券策略名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券模板"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.cardType?a("span",[t._v("抵金券")]):t._e(),t._v(" "),1==e.row.cardType?a("span",[t._v("折扣券")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"权重排序","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.effectDateString||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.couponStock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("下线")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("span",{staticClass:"font-14 color-909399 p-l-10"},[this._v("内购券针对企业内部员工发下的卡券,最多新建5个策略")])])}]};var h=a("VU/8")(p,f,!1,function(t){a("raz+")},"data-v-18063729",null);e.default=h.exports},"raz+":function(t,e){}});
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,d,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[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(a&&a(c,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var c={},f={72:0};function b(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,b){a=f[e]=[c,b]});a[2]=c;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:"0bba5382e96411be2c8f",1:"06c4e42e62c1f75191f0",2:"b4328de438a4be130bd8",3:"c57f32b5c67eff7cc74f",4:"b798e5471a16e81b44dd",5:"bf21cfa1832c94ed8d4c",6:"b559d7c450cafcef2cc6",7:"e0c1956cf72584a9caaf",8:"1eccf95fedaceb551bcf",9:"9dc5bd14c7a64bf1922d",10:"029f1f295ed7ce141245",11:"6e2cacadb15135f1db13",12:"69a7846110e7b239cf01",13:"7970c5d186ae0c956a8b",14:"4093e2a3f16424fbfb07",15:"3719b48003ce60ac35cf",16:"880047853fa23da0e4eb",17:"acb672e9ae31959ecc66",18:"4b0922e27b6b34b18611",19:"379162e017a8b5beee8b",20:"ba2e2bd0823422a4de6c",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"4ad7713214fd3234337d",25:"2ace14fbe14628825f30",26:"0e68f81c2d32fec5abdb",27:"1be63d7a49a9d810516f",28:"65284e7ae64fa171aabc",29:"907ccfaaf55fcab94f0e",30:"52e3b749752a83f92d3a",31:"b35760a5e984eafe16fb",32:"648e00249c751be0ef72",33:"819cf2e274085a903a23",34:"8bcde76a87998e61eecb",35:"cf76e4b74afa283a3eec",36:"ac81ef630923456184e4",37:"f43da4e4e894a104b34e",38:"5f4ce05b4c8050e7ac44",39:"63dc54f1a6b7a04b4d41",40:"cda2471a85245dcfc0da",41:"323d5f1c2fbe72c50184",42:"6b570b5f9aa128436f6c",43:"9d8e65affd568de30a3f",44:"e0ddfc31839e7984dba3",45:"7ed750c4b7a52ade71ec",46:"9b118ff00e438fb60b55",47:"ee289bf28d0b62cdbd74",48:"1919c6abf5a0a18c7860",49:"c11e4ff91e3e45a0e01a",50:"adf06e778b3bb59a4314",51:"10da031ace08e3b2f0ec",52:"3d733ded8368c35c7db7",53:"464efb5dbd1f1a75c07d",54:"4c49723130a02a35341c",55:"a59eb69795468eaccdab",56:"44a19541b1d9d5510256",57:"bb35aa59b73ea983662f",58:"f4362bcb70641f953b1a",59:"ca0e2cd84f2e938ee47a",60:"86a2630166704604be90",61:"c8bf83503933dbb0d3a7",62:"c150bd9c93df08960929",63:"ab752ec3ccf9371f123b",64:"3b820a9237f2357ff5ae",65:"163afd1cc6174720ed0e",66:"d83b81ba889c535b2569",67:"5fb5009212972df8959b",68:"83851f59efe48e8d85fd",69:"a85af8948bfc87b0850f"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),c},b.m=e,b.c=c,b.d=function(e,a,c){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]); !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={72: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:"0bba5382e96411be2c8f",1:"06c4e42e62c1f75191f0",2:"b4328de438a4be130bd8",3:"c57f32b5c67eff7cc74f",4:"b798e5471a16e81b44dd",5:"bf21cfa1832c94ed8d4c",6:"b559d7c450cafcef2cc6",7:"e0c1956cf72584a9caaf",8:"1eccf95fedaceb551bcf",9:"9dc5bd14c7a64bf1922d",10:"029f1f295ed7ce141245",11:"e9c527bbd1e99ac449d8",12:"9725f70f55ff0feba6a0",13:"4ad54881d4a025614cf7",14:"a7252d7e731b322fb068",15:"5c0005b279f65a60785f",16:"bc276325eab50b4b86c0",17:"edf42ec3b001b6cfe65e",18:"4b0922e27b6b34b18611",19:"379162e017a8b5beee8b",20:"ba2e2bd0823422a4de6c",21:"9e35f4bb567c79f900c4",22:"4657c811baa7a2a81fa8",23:"b696c3789461b84413c4",24:"4ad7713214fd3234337d",25:"2ace14fbe14628825f30",26:"0e68f81c2d32fec5abdb",27:"1be63d7a49a9d810516f",28:"65284e7ae64fa171aabc",29:"907ccfaaf55fcab94f0e",30:"52e3b749752a83f92d3a",31:"b35760a5e984eafe16fb",32:"648e00249c751be0ef72",33:"819cf2e274085a903a23",34:"8bcde76a87998e61eecb",35:"cf76e4b74afa283a3eec",36:"ac81ef630923456184e4",37:"f43da4e4e894a104b34e",38:"5f4ce05b4c8050e7ac44",39:"63dc54f1a6b7a04b4d41",40:"cda2471a85245dcfc0da",41:"323d5f1c2fbe72c50184",42:"6b570b5f9aa128436f6c",43:"9d8e65affd568de30a3f",44:"e0ddfc31839e7984dba3",45:"7ed750c4b7a52ade71ec",46:"9b118ff00e438fb60b55",47:"ee289bf28d0b62cdbd74",48:"1919c6abf5a0a18c7860",49:"c11e4ff91e3e45a0e01a",50:"adf06e778b3bb59a4314",51:"10da031ace08e3b2f0ec",52:"3d733ded8368c35c7db7",53:"464efb5dbd1f1a75c07d",54:"4c49723130a02a35341c",55:"a59eb69795468eaccdab",56:"44a19541b1d9d5510256",57:"bb35aa59b73ea983662f",58:"f4362bcb70641f953b1a",59:"ca0e2cd84f2e938ee47a",60:"ddf4c2b29ce27b580eb4",61:"c8bf83503933dbb0d3a7",62:"c150bd9c93df08960929",63:"ab752ec3ccf9371f123b",64:"3b820a9237f2357ff5ae",65:"163afd1cc6174720ed0e",66:"d83b81ba889c535b2569",67:"5fb5009212972df8959b",68:"83851f59efe48e8d85fd",69:"a85af8948bfc87b0850f"}[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 \ No newline at end of file
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
"localforage": "^1.7.3", "localforage": "^1.7.3",
"qrcodejs2": "0.0.2", "qrcodejs2": "0.0.2",
"script-loader": "^0.7.2", "script-loader": "^0.7.2",
"sortablejs": "^1.10.2",
"tinymce": "^4.8.3", "tinymce": "^4.8.3",
"v-contextmenu": "^2.9.0", "v-contextmenu": "^2.9.0",
"vue-amap": "^0.5.10", "vue-amap": "^0.5.10",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author : 无尘 * @Author : 无尘
* @Date : 2020-02-13 16:13:59 * @Date : 2020-02-13 16:13:59
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-04-22 10:41:58 * @LastEditTime: 2020-04-22 16:56:36
--> -->
<!-- <!--
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div class="select-body"> <div class="select-body">
<div class="select-body-list"> <div class="select-body-list">
<el-checkbox-group v-model="checkList"> <el-checkbox-group v-model="checkList">
<el-checkbox :label="item.departmentId" v-for="(item,index) in selDepart" :key="index+'sel'">{{item.departmentName}}</el-checkbox> <el-checkbox :label="item.departmentId" v-for="(item, index) in selDepart" :key="index + 'sel'">{{ item.departmentName }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
</div> </div>
...@@ -54,14 +54,12 @@ ...@@ -54,14 +54,12 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
// import { getRequest, postRequest } from '@/api/api'; import { getRequest } from '@/api/api';
// import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
// import showMsg from '@/common/js/showmsg'; // import showMsg from '@/common/js/showmsg';
export default { export default {
name: 'select-wx-depart', name: 'select-wx-depart',
components: { components: {},
limitInput
},
props: { props: {
departArr: { departArr: {
type: [Object, Array], type: [Object, Array],
...@@ -82,7 +80,7 @@ export default { ...@@ -82,7 +80,7 @@ export default {
label: 'departmentName', label: 'departmentName',
isLeaf: 'hasSonNode' isLeaf: 'hasSonNode'
}, },
checkList: [], // 右侧已选 checkList: [] // 右侧已选
}; };
}, },
methods: { methods: {
...@@ -123,9 +121,9 @@ export default { ...@@ -123,9 +121,9 @@ export default {
let arr = []; let arr = [];
that.selDepart.forEach(ele => { that.selDepart.forEach(ele => {
if (!that.checkList.includes(ele.departmentId)) { if (!that.checkList.includes(ele.departmentId)) {
arr.push(ele) arr.push(ele);
} }
}) });
that.selDepart = arr; that.selDepart = arr;
// 重新设置左侧已选数据 // 重新设置左侧已选数据
that.$refs.tree.setCheckedNodes(that.selDepart); that.$refs.tree.setCheckedNodes(that.selDepart);
...@@ -152,7 +150,7 @@ export default { ...@@ -152,7 +150,7 @@ export default {
} }
that.$refs[form].validate(valid => { that.$refs[form].validate(valid => {
if (valid) { if (valid) {
that.$emit('refreshData', ); that.$emit('refreshData', that.selDepart);
} else { } else {
return false; return false;
} }
...@@ -219,7 +217,7 @@ export default { ...@@ -219,7 +217,7 @@ export default {
if (that.departArr.length) { if (that.departArr.length) {
that.selDepart = JSON.parse(JSON.stringify(that.departArr)); that.selDepart = JSON.parse(JSON.stringify(that.departArr));
} }
that.getGroup() that.getGroup();
} }
}; };
</script> </script>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-04-12 17:56:45 * @Date: 2019-04-12 17:56:45
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-04-22 10:49:58 * @LastEditTime: 2020-04-22 17:13:58
--> -->
<template> <template>
<section class="common-right-wrap"> <section class="common-right-wrap">
...@@ -16,6 +16,11 @@ ...@@ -16,6 +16,11 @@
<el-button v-if="tableData.length >= 5" type="primary" @click="toNewCard">新增策略</el-button> <el-button v-if="tableData.length >= 5" type="primary" @click="toNewCard">新增策略</el-button>
</div> </div>
<el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: calc(100% - 3px);"> <el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: calc(100% - 3px);">
<el-table-column prop="" label="" width="100">
<template slot-scope="scope">
<span class="el-icon-s-unfold" style="cursor: move;"></span>
</template>
</el-table-column>
<el-table-column prop="" label="卡券策略名称" show-overflow-tooltip> <el-table-column prop="" label="卡券策略名称" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.cardName }} {{ scope.row.cardName }}
...@@ -48,6 +53,7 @@ ...@@ -48,6 +53,7 @@
</template> </template>
<script> <script>
import Sortable from 'sortablejs';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
...@@ -80,6 +86,17 @@ export default { ...@@ -80,6 +86,17 @@ export default {
} }
}, },
methods: { methods: {
//行拖拽
rowDrop() {
const tbody = document.querySelector('.el-table__body-wrapper tbody');
const that = this;
Sortable.create(tbody, {
onEnd({ newIndex, oldIndex }) {
/* eslint-disable */
console.log(that.tableData);
}
});
},
/** /**
* 删除 * 删除
*/ */
...@@ -208,6 +225,12 @@ export default { ...@@ -208,6 +225,12 @@ export default {
mounted() { mounted() {
let that = this; let that = this;
that.$emit('showTab', '1'); that.$emit('showTab', '1');
// 阻止默认行为
document.body.ondrop = function(event) {
event.preventDefault();
event.stopPropagation();
};
that.rowDrop();
if (!!that.brandId) { if (!!that.brandId) {
that.getTableList(); that.getTableList();
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-04-13 15:27:46 * @Date: 2020-04-13 15:27:46
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-04-22 16:41:13 * @LastEditTime: 2020-04-22 16:57:49
--> -->
<template> <template>
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<el-tooltip class="item" effect="dark" content="卡券的发送范围设置" placement="top-start"> <span style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;">发送范围</span></el-tooltip> <el-tooltip class="item" effect="dark" content="卡券的发送范围设置" placement="top-start"> <span style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;">发送范围</span></el-tooltip>
</label> </label>
<div class="el-form-item__content" style="margin-left: 120px;"> <div class="el-form-item__content" style="margin-left: 120px;">
<el-radio v-model="formData.sendType" label="0">全企业</el-radio><el-radio class="m-l-40" v-model="formData.sendType" label="1">部分部门</el-radio> <el-radio v-model="formData.sendType" label="0" @change="changeSendType">全企业</el-radio><el-radio class="m-l-40" v-model="formData.sendType" label="1" @change="changeSendType"><span @click="clickSendType">部分部门</span></el-radio>
<div v-if="formData.sendType == 0" class="position-select"> <div v-if="formData.sendType == 0" class="position-select">
<div class="position-check"><el-checkbox v-model="formData.filterCheck">按职务筛选</el-checkbox></div> <div class="position-check"><el-checkbox v-model="formData.filterCheck">按职务筛选</el-checkbox></div>
<div class="position-check-tags"> <div class="position-check-tags">
...@@ -106,12 +106,14 @@ ...@@ -106,12 +106,14 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<select-card-template :selectTemp="formData.cardTempData" @returnData="returnData" @closeTemp="closeTemp"></select-card-template> <select-card-template v-if="cardTempShow" :selectTemp="formData.cardTempData" @returnData="returnData" @closeTemp="closeTemp"></select-card-template>
<select-wx-depart v-if="departShow" :departArr="formData.departData" @refreshData="refreshData"></select-wx-depart>
</section> </section>
</template> </template>
<script> <script>
import limitInput from '@/components/limit-input.vue'; import limitInput from '@/components/limit-input.vue';
import selectCardTemplate from '@/components/app/protectCard/select-card-template.vue'; import selectCardTemplate from '@/components/app/protectCard/select-card-template.vue';
import selectWxDepart from '@/components/app/protectCard/select-wx-depart.vue';
import { getRequest, postRequest } from '@/api/api'; import { getRequest, postRequest } from '@/api/api';
import showMsg from '@/common/js/showmsg'; import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error'; import errMsg from '@/common/js/error';
...@@ -134,7 +136,8 @@ export default { ...@@ -134,7 +136,8 @@ export default {
}, },
components: { components: {
limitInput, limitInput,
selectCardTemplate selectCardTemplate,
selectWxDepart
}, },
data() { data() {
const validateRange = (rule, value, callback) => { const validateRange = (rule, value, callback) => {
...@@ -227,10 +230,37 @@ export default { ...@@ -227,10 +230,37 @@ export default {
monthOptions: [], monthOptions: [],
inputVisible: false, inputVisible: false,
inputValue: '', inputValue: '',
cardTempShow: false cardTempShow: false,
departShow: false
}; };
}, },
methods: { methods: {
/**
* 修改发送类型
*/
changeSendType() {
const that = this;
if (that.formData.sendType == 1) {
that.departShow = true;
} else {
that.departShow = false;
}
},
clickSendType() {
const that = this;
that.departShow = true;
},
refreshData(data) {
const that = this;
that.departShow = false;
if (data == 'close') {
return false;
}
that.formData.departData = data;
},
/**
* 取消
*/
cancelEdit() { cancelEdit() {
const that = this; const that = this;
that that
......
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