Commit 20456ee7 by 无尘

fix: 修改排序

parent eed01471
<!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.fb2d328946e602d2526fed987e1dde63.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 src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.22defd43fe8c36c0eb22.js></script><script type=text/javascript src=./static/js/vendor.c9b2df17ceb0429de99c.js></script><script type=text/javascript src=./static/js/app.7855dd51b00b56f8c984.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.2753605e0771e76ccc35ba3a2273decd.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 src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.17e01752d9070624be81.js></script><script type=text/javascript src=./static/js/vendor.c9b2df17ceb0429de99c.js></script><script type=text/javascript src=./static/js/app.52b9c7eb5c25b76ebb48.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([29],{DhGB:function(t,e){},rUvh:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),o=a.n(n),r=a("P9l9"),i=a("Ch4/"),s=a("PI0u"),l={props:{brandId:{type:String,default:function(){return""}},policyId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},currentPage:1,pageSize:20,total:0}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{handleClose:function(t){this.$emit("closeSendRecord")},toInput:Object(s.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={policyId:e.policyId,search:e.conditionObj.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(r.d)("/haoban-app-customer-web/inner/find-card-total-log-page",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},policyId:function(t,e){t&&this.getTableList()}},mounted:function(){this.policyId&&this.getTableList()}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"记录",visible:t.dialogVisible,width:"802px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}})],1)]),t._v(" "),a("div",[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark",height:"450"}},[a("el-table-column",{attrs:{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:"投放数量","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity||"0")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity||"0"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),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.usageQuantity||"0"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var u=a("VU/8")(l,c,!1,function(t){a("DhGB")},"data-v-fef5fa24",null).exports,d=a("/dO2"),p=a("3E4D"),f={components:{recordDetail:u},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",loading:!1,tableData:[],currentPage:1,pageSize:20,total:0,recordShow:!1,coupCardId:""}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toRecord:function(t,e){this.policyId=e.policyId,this.recordShow=!0},closeSendRecord:function(){this.policyId="",this.recordShow=!1},rowDrop:function(){var t=this.$refs.multipleTable.$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],e=this;d.default.create(t,{ghostClass:"sortable-ghost",setData:function(t){t.setData("Text","")},onEnd:function(t){var a=t.newIndex,n=t.oldIndex;if(a==n)return!1;var o=e.tableData.splice(n,1)[0];e.tableData.splice(a,0,o),console.log(e.tableData,a,n),e.postSort()}})},postSort:function(){var t=this,e={json:o()(t.tableData)};Object(r.d)("/haoban-app-customer-web/inner/change-sort",e).then(function(t){var e=t.data;1!=e.errorCode?i.a.errorMsg(e):p.a.showmsg("操作成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券策略?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.policyId)}).catch(function(){})},delCardList:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,policyId:t};Object(r.d)("/haoban-app-customer-web/inner/delete-policy",a).then(function(t){var a=t.data;if(1==a.errorCode)return p.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?policyId="+e.policyId)},toSwitch:function(t,e){var a=this,n={onlineFlag:1==e.onlineFlag?0:1,policyId:e.policyId};Object(r.d)("/haoban-app-customer-web/inner/on-off-line",n).then(function(t){var e=t.data;if(1==e.errorCode)return p.a.showmsg("操作成功","success"),void a.getTableList();i.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},toInput:Object(s.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.currentPage=1,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;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId};Object(r.d)("/haoban-app-customer-web/inner/list-policy",e).then(function(e){var a=e.data;t.loading=!1,1!=a.errorCode?i.a.errorMsg(a):t.tableData=JSON.parse(o()(a.result))||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab","2"),this.rowDrop(),this.getTableList()}},h={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(" "),a("el-button",{attrs:{disabled:t.tableData.length>=5,type:"primary"},on:{click:t.toNewCard}},[t._v("新增策略")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"100","class-name":"move-row-cell"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c4c6cf",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.policyName)+"\n ")]}}])}),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.cardTemplates)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"上线状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(0==e.row.onlineFlag?"已下线":"已上线"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"策略状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(0==e.row.policyStatus?"无效":"有效"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"228"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toSwitch(e.$index,e.row)}}},[t._v(t._s(0==e.row.onlineFlag?"上线":"下线"))]),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.toRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),0==e.row.onlineFlag?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])})],1)],1),t._v(" "),t.recordShow?a("record-detail",{attrs:{policyId:t.policyId},on:{closeSendRecord:t.closeSendRecord}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{"line-height":"32px"}},[e("span",{staticClass:"font-13 color-909399 p-l-10 font-w-300"},[this._v("内购券针对企业内部员工发下的卡券,最多新建5个策略")])])}]};var g=a("VU/8")(f,h,!1,function(t){a("x92S")},"data-v-361a3de7",null);e.default=g.exports},x92S:function(t,e){}});
\ No newline at end of file
webpackJsonp([32],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={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_404,alt:"404"}})]),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 c=i("VU/8")(n,r,!1,function(t){i("Kp/m")},"data-v-0df4090e",null);s.default=c.exports},"Kp/m":function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}}); webpackJsonp([31],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={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_404,alt:"404"}})]),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 c=i("VU/8")(n,r,!1,function(t){i("Kp/m")},"data-v-0df4090e",null);s.default=c.exports},"Kp/m":function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}});
\ No newline at end of file \ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},a={88:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"55de31623c5dce58b5b2",1:"954a8a70c5f1171933ac",2:"77b8141cbf6a150401d4",3:"431f190c0e0d958eb479",4:"a38ae26530ef5c9625b9",5:"f7ad326b7bff884d7fb2",6:"29095ff98668571d8ca2",7:"facffc398c23923c8192",8:"a640ef0f7a8b7dbc5e2c",9:"38184463cc455254f3f7",10:"f45d69fd988a1f7ecb0a",11:"b5009f63b89b21f10257",12:"0db6b68e9db95bb15bf5",13:"44939097c6aafcce6c71",14:"3608611b598beac48585",15:"3d5964c0da535a1d38b5",16:"960985655f300f38644f",17:"27a2257041fd3fc7c995",18:"7743fb4634f7c199314c",19:"3b6616b2f132cde48118",20:"fcde1e6e2a44bfa56a69",21:"dd95373040f620ebac3e",22:"5967c8aac0d8efec27bb",23:"491faa03cecb9d035fc6",24:"8c63bc2c5c38d0efdfab",25:"7076feee8fb02a9fbd13",26:"05a59910aa4315a66c42",27:"98b07cae060277f91c6b",28:"43062befc595a064dd62",29:"339e866e1f6a5a0c5e8e",30:"3af504bbce79ba6a7adb",31:"604b92f94fbf4f96a069",32:"1fd5fed58bc31e91b784",33:"d60beb8286a5273c8520",34:"853c55bc3ad088112a27",35:"81b97936d77fdd203ccf",36:"53316a315ec6ecaf0a9b",37:"7c4a62ebe3aa2422c830",38:"82af7a18ce0cdc03dc93",39:"72d194121f6eeeec35ec",40:"5046b945fdb05feecd09",41:"9f0127d3704386fdce91",42:"fbe8b98174e5787f5bdd",43:"ebdfdb42d05c42d3042b",44:"1cef7966d8a4f17e69d1",45:"e2fcc640f5b18f53cd81",46:"00fead8456a25ac018c1",47:"52768d75b34a3ac8e091",48:"d063499fc53f109861e6",49:"335a1ee0f127917485a9",50:"a613c9b52259eb192c68",51:"cef48bb077d7adfd0393",52:"71c812779ff2877c8e1b",53:"8511a52e731f88850f56",54:"20d1fa1d7197fb03f561",55:"46002dc1e01cea3c9f48",56:"c5ddcc6eace690ee3eec",57:"7765fc0ee253a5aba74d",58:"57e6e0976d212fb9a035",59:"1620e8d917f055bd096c",60:"d37259c00e414504ebb1",61:"b548ee51ab52ca2ef989",62:"306973a81895e421b5f5",63:"e5d1cfb8dee067e09550",64:"4285972e7bce618c7563",65:"9f1b3d9d326610e4dfe8",66:"b5bf727065a1ed5946a8",67:"1fe24764bbf2648873df",68:"5c88c8205192e47c5440",69:"4df5e7e8568b818a23af",70:"9659ef903577b569add6",71:"7b248fa9ae5be34661ed",72:"1dd4b1447643a3433128",73:"22ffedec58d987173423",74:"0d046a48cfb0dfd6c18d",75:"d607b911312c9a505e9d",76:"f364d51949b7b1471923",77:"9568405fcd7f68bbbed2",78:"76348f14308b66ff416c",79:"54bddc96727b506c6de1",80:"189377999dd7e01b560e",81:"ba9a85726a5e4c70ee5a",82:"901721e9fa2d5e955b06",83:"1be1731cd80e60b30bfe",84:"da78f42e44edd4060633",85:"ac6eef427d7e564d19b0"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},a={88:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"55de31623c5dce58b5b2",1:"954a8a70c5f1171933ac",2:"77b8141cbf6a150401d4",3:"431f190c0e0d958eb479",4:"a38ae26530ef5c9625b9",5:"f7ad326b7bff884d7fb2",6:"29095ff98668571d8ca2",7:"facffc398c23923c8192",8:"a640ef0f7a8b7dbc5e2c",9:"38184463cc455254f3f7",10:"f45d69fd988a1f7ecb0a",11:"b5009f63b89b21f10257",12:"0db6b68e9db95bb15bf5",13:"44939097c6aafcce6c71",14:"3608611b598beac48585",15:"3d5964c0da535a1d38b5",16:"960985655f300f38644f",17:"27a2257041fd3fc7c995",18:"7743fb4634f7c199314c",19:"3b6616b2f132cde48118",20:"fcde1e6e2a44bfa56a69",21:"dd95373040f620ebac3e",22:"5967c8aac0d8efec27bb",23:"491faa03cecb9d035fc6",24:"8c63bc2c5c38d0efdfab",25:"7076feee8fb02a9fbd13",26:"05a59910aa4315a66c42",27:"98b07cae060277f91c6b",28:"43062befc595a064dd62",29:"ae6a5e38c0a8ded7d6f5",30:"228c07bb330591ac4945",31:"f15018c679d31a23a484",32:"001cad74acfa0dad43bc",33:"d60beb8286a5273c8520",34:"853c55bc3ad088112a27",35:"81b97936d77fdd203ccf",36:"53316a315ec6ecaf0a9b",37:"7c4a62ebe3aa2422c830",38:"82af7a18ce0cdc03dc93",39:"72d194121f6eeeec35ec",40:"5046b945fdb05feecd09",41:"9f0127d3704386fdce91",42:"fbe8b98174e5787f5bdd",43:"ebdfdb42d05c42d3042b",44:"1cef7966d8a4f17e69d1",45:"e2fcc640f5b18f53cd81",46:"00fead8456a25ac018c1",47:"52768d75b34a3ac8e091",48:"d063499fc53f109861e6",49:"335a1ee0f127917485a9",50:"a613c9b52259eb192c68",51:"cef48bb077d7adfd0393",52:"71c812779ff2877c8e1b",53:"8511a52e731f88850f56",54:"20d1fa1d7197fb03f561",55:"46002dc1e01cea3c9f48",56:"c5ddcc6eace690ee3eec",57:"7765fc0ee253a5aba74d",58:"57e6e0976d212fb9a035",59:"1620e8d917f055bd096c",60:"d37259c00e414504ebb1",61:"b548ee51ab52ca2ef989",62:"306973a81895e421b5f5",63:"e5d1cfb8dee067e09550",64:"4285972e7bce618c7563",65:"9f1b3d9d326610e4dfe8",66:"b5bf727065a1ed5946a8",67:"1fe24764bbf2648873df",68:"5c88c8205192e47c5440",69:"4df5e7e8568b818a23af",70:"9659ef903577b569add6",71:"7b248fa9ae5be34661ed",72:"1dd4b1447643a3433128",73:"22ffedec58d987173423",74:"0d046a48cfb0dfd6c18d",75:"d607b911312c9a505e9d",76:"f364d51949b7b1471923",77:"9568405fcd7f68bbbed2",78:"76348f14308b66ff416c",79:"54bddc96727b506c6de1",80:"189377999dd7e01b560e",81:"ba9a85726a5e4c70ee5a",82:"901721e9fa2d5e955b06",83:"1be1731cd80e60b30bfe",84:"da78f42e44edd4060633",85:"ac6eef427d7e564d19b0"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -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-08-28 12:33:41 * @LastEditTime: 2020-08-28 12:43:34
--> -->
<template> <template>
<section class="common-right-wrap"> <section class="common-right-wrap">
...@@ -113,6 +113,7 @@ export default { ...@@ -113,6 +113,7 @@ export default {
const that = this; const that = this;
Sortable.create(tbody, { Sortable.create(tbody, {
ghostClass: 'sortable-ghost', ghostClass: 'sortable-ghost',
animation: 150,
setData: function(dataTransfer) { setData: function(dataTransfer) {
dataTransfer.setData('Text', ''); dataTransfer.setData('Text', '');
}, },
...@@ -124,6 +125,7 @@ export default { ...@@ -124,6 +125,7 @@ export default {
const currRow = that.tableData.splice(oldIndex, 1)[0]; const currRow = that.tableData.splice(oldIndex, 1)[0];
that.tableData.splice(newIndex, 0, currRow); that.tableData.splice(newIndex, 0, currRow);
console.log(that.tableData, newIndex, oldIndex); console.log(that.tableData, newIndex, oldIndex);
that.$forceUpdate();
that.postSort(); that.postSort();
} }
}); });
......
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