zx/public/mer/js/chunk-d5e173b6.263a7a93.js

1 line
84 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d5e173b6","chunk-2d0da983","chunk-2d0da983"],{"0165":function(t,i,e){"use strict";e("6c75")},"01fd":function(t,i,e){"use strict";e("9f5b")},"144d":function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"hot_imgs"},[t.configData.title?e("div",{staticClass:"title"},[t._v("\n "+t._s(t.configData.title)+"\n ")]):t._e(),t._v(" "),e("div",{staticClass:"list-box"},[e("draggable",{staticClass:"dragArea list-group",attrs:{list:t.configData.list,group:"peoples",handle:".move-icon"}},t._l(t.configData.list,(function(i,a){return e("div",{key:a,staticClass:"item"},[e("div",{staticClass:"info"},t._l(i.info,(function(n,s){return e("div",{key:s,staticClass:"info-item"},[e("span",[t._v(t._s(n.title))]),t._v(" "),e("div",{staticClass:"input-box",on:{click:function(e){return t.getLink(a,s,i.info)}}},[t.configData.isCube?e("el-input",{attrs:{readonly:s==i.info.length-1,placeholder:n.tips,maxlength:n.max},on:{blur:t.onBlur},model:{value:n.value,callback:function(i){t.$set(n,"value",i)},expression:"infos.value"}},[s==i.info.length-1?e("el-button",{attrs:{slot:"append",icon:"el-icon-arrow-right"},slot:"append"}):t._e()],1):e("el-input",{attrs:{readonly:s==i.info.length-1,placeholder:n.tips,maxlength:n.max},model:{value:n.value,callback:function(i){t.$set(n,"value",i)},expression:"infos.value"}},[s==i.info.length-1?e("el-button",{attrs:{slot:"append",icon:"el-icon-arrow-right"},slot:"append"}):t._e()],1)],1)])})),0)])})),0),t._v(" "),e("div",[e("el-dialog",{attrs:{visible:t.modalPic,width:"950px",title:"上传图片"},on:{"update:visible":function(i){t.modalPic=i}}},[t.modalPic?e("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)],1),t._v(" "),t.configData.list?[t.configData.list.length<t.configData.maxList?e("div",{staticClass:"add-btn"},[e("el-button",{staticClass:"btn",staticStyle:{width:"100%",height:"40px"},attrs:{plain:""},on:{click:t.addBox}},[t._v("添加板块")])],1):t._e()]:t._e(),t._v(" "),e("linkaddress",{ref:"linkaddres",on:{linkUrl:t.linkUrl}})],2)},n=[],s=(e("7f7f"),e("1980")),c=e.n(s),o=e("b5b8"),l=e("7af3"),r={name:"c_custom_menu_list",props:{configObj:{type:Object},configNme:{type:String},index:{type:null}},components:{draggable:c.a,linkaddress:l["a"],uploadPictures:o["default"]},data:function(){return{defaults:{},configData:{},menus:[],list:[{title:"aa",val:""}],modalPic:!1,isChoice:"单选",gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},activeIndex:0,indexLast:0,lastObj:{}}},mounted:function(){var t=this;this.$nextTick((function(){t.defaults=t.configObj,t.configData=t.configObj[t.configNme]}))},watch:{configObj:{handler:function(t,i){this.defaults=t,this.configData=t[this.configNme]},deep:!0}},methods:{linkUrl:function(t){this.configData.list[this.activeIndex].info[this.indexLast].value=t,"pictureCube"==this.defaults.name&&(this.defaults.picStyle.picList[this.defaults.picStyle.tabVal].link=t)},getLink:function(t,i,e){this.indexLast=e.length-1,i==e.length-1&&(this.activeIndex=t,this.$refs.linkaddres.modals=!0)},addBox:function(){if(0==this.configData.list.length)this.lastObj.info[0].value="",this.lastObj.info[1].value="",this.configData.list.push(this.lastObj);else{var t=JSON.parse(JSON.stringify(this.configData.list[this.configData.list.length-1]));t.img="",t.info[0].value="",t.info[1].value="",this.configData.list.push(t)}},modalPicTap:function(t,i){var e=this;e.$modalUpload((function(i){t.img=i[0]}))},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,i){var e=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:i,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});this.dialog=e;var a=new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){e.render(),e.open()}});re