IDCDatasync-vue/dist22-04-07/js/chunk-2d0a3c6b.c252aa2d.js
2025-01-15 20:19:34 +08:00

1 line
2.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a3c6b"],{"042c":function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("a-card",[e("draggable",{staticStyle:{display:"inline-block"},attrs:{options:{animation:300}},on:{end:t.end},model:{value:t.dataSource,callback:function(a){t.dataSource=a},expression:"dataSource"}},[t._l(t.dataSource,(function(t,a){return[e("div",{key:a,staticStyle:{float:"left",width:"150px",height:"150px","margin-right":"10px",margin:"0 8px 8px 0"}},[e("div",{staticStyle:{width:"100%",height:"100%",position:"relative",padding:"8px",border:"1px solid #d9d9d9","border-radius":"4px"}},[e("img",{staticStyle:{width:"100%"},attrs:{src:t.filePath,preview:"index"}})])])]})),e("a-button",{staticStyle:{"margin-top":"115px"},attrs:{type:"primary"},on:{click:t.sureChange}},[t._v("确定")])],2),e("br"),e("a-row",[e("a-col",{attrs:{span:12}},[e("p",[t._v("拖拽前json数据")]),e("textarea",{staticStyle:{width:"780px"},attrs:{rows:"25"}},[t._v(t._s(t.oldDateSource))])]),e("a-col",{attrs:{span:12}},[e("p",[t._v("拖拽后json数据")]),e("textarea",{staticStyle:{width:"780px"},attrs:{rows:"25"}},[t._v(t._s(t.newDateSource))])])],1)],1)},i=[],r=e("b76a"),s=e.n(r),c=e("290c"),n=e("da05"),d={name:"ImgDragSort",components:{ACol:n["b"],ARow:c["a"],draggable:s.a},data:function(){return{description:"图片拖拽排序",spinning:!1,dataSource:[{id:"000",sort:0,filePath:"https://static.jeecg.com/upload/test/1_1588149743473.jpg"},{id:"111",sort:1,filePath:"https://static.jeecg.com/upload/test/u27356337152749454924fm27gp0_1588149731821.jpg"},{id:"222",sort:2,filePath:"https://static.jeecg.com/upload/test/u24454681402491956848fm27gp0_1588149712663.jpg"},{id:"333",sort:3,filePath:"https://static.jeecg.com/temp/国炬软件logo_1606575029126.png"},{id:"444",sort:4,filePath:"https://static.jeecg.com/upload/test/u8891206113801177793fm27gp0_1588149704459.jpg"}],oldDateSource:[],newDateSource:[]}},created:function(){this.oldDateSource=this.dataSource},methods:{end:function(t){},sureChange:function(){for(var t=0;t<this.dataSource.length;t++)this.dataSource[t].sort=t;this.newDateSource=this.dataSource}}},p=d,l=e("2877"),u=Object(l["a"])(p,o,i,!1,null,"05a15932",null);a["default"]=u.exports}}]);