You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
4.8 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-29e3f432","chunk-d28c4884"],{1313:function(e,t,a){"use strict";a("5e60")},"329f1":function(e,t,a){"use strict";a("360f")},"360f":function(e,t,a){},"5e60":function(e,t,a){},"816b":function(e,t,a){"use strict";var i=a("365c");function n(e){var t="/module/index";return i["a"].get(t,e)}function l(e){var t="/module/save";return i["a"].post(t,e)}function o(e){var t="/module/update";return i["a"].post(t,e)}function r(e){var t="/module/delete";return i["a"].post(t,e)}function s(e){var t="/module/read";return i["a"].get(t,e)}function u(e){var t="/category/getModuleCate";return i["a"].get(t,e)}function d(e){var t="/moduleField/index";return i["a"].get(t,e)}function c(e){var t="/moduleField/save";return i["a"].post(t,e)}function f(e){var t="/moduleField/update";return i["a"].post(t,e)}function p(e){var t="/moduleField/delete";return i["a"].post(t,e)}function m(e){var t="/moduleField/read";return i["a"].get(t,e)}function g(e){var t="/module/all";return i["a"].get(t,e)}function h(e){var t="/module/field";return i["a"].get(t,e)}function b(e){var t="/preview";return i["a"].get(t,e)}t["a"]={moduleList:n,moduleSave:l,moduleUpdate:o,moduleDelete:r,moduleInfo:s,fieldList:d,fieldSave:c,fieldUpdate:f,fieldDelete:p,fieldInfo:m,getModuleCate:u,moduleTable:g,moduleField:h,preview:b}},"8e92":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("el-button",{staticClass:"back",attrs:{size:"small",type:"primary",icon:"el-icon-arrow-left"},on:{click:e.prev}},[e._v(" 返回 ")]),a("el-tabs",{staticClass:"tabs",attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.moduleList,(function(t){return a("el-tab-pane",{key:t.id,attrs:{label:t.title,name:t.id+""}},[a("div",{staticClass:"content"},[a("el-table",{staticClass:"subtable",staticStyle:{width:"calc(100% - 30px)"},attrs:{data:e.tableData,border:""}},[a("el-table-column",{attrs:{label:"ID",prop:"id"}}),e._l(e.tableLabel,(function(t,i){return a("el-table-column",{key:i,attrs:{prop:t.table_field,label:t.form_title,"show-overflow-tooltips":!0},scopedSlots:e._u([{key:"default",fn:function(i){return["reference"==t.form_type?a("span",e._l(i.row[t.table_field],(function(t,i){return a("span",{key:i},[i<3?a("span",[e._v(e._s(t.name)+" ,")]):e._e()])})),0):"image"==t.form_type?a("span",[a("img",{staticClass:"img",attrs:{src:i.row[t.table_field].url,alt:""}})]):"multiImage"==t.form_type?a("span",e._l(i.row[t.table_field],(function(e,t){return a("img",{directives:[{name:"show",rawName:"v-show",value:t<3,expression:"idx < 3"}],key:t,staticClass:"images",attrs:{src:e.url,alt:""}})})),0):a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(i.row[t.table_field]))]),a("el-button",{staticClass:"text",attrs:{type:"text"}},[e._v(" "+e._s(i.row[t.table_field])+" ")])],1)]}}],null,!0)})}))],2)],1)])})),1),a("el-pagination",{attrs:{"current-page":e.page.currentPage,"page-sizes":e.page.pageSizes,"page-size":e.page.size,layout:"total, sizes, prev, pager, next, jumper",total:e.page.total,"hide-on-single-page":e.page.total<e.page.size},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)},n=[],l=(a("14d9"),a("b0c0"),a("d3b7"),a("159b"),a("816b")),o=a("7632"),r={data:function(){return{imageUrl:"",imgUrl:this.$store.getters.updateURL,module_id:"",website_id:"",tableData:[],dataKey:"",dataValue:"",tableLabel:[],activeName:"1",moduleList:[],page:{total:0,currentPage:1,size:10,pageSizes:[10,20,30,40]}}},created:function(){this.module_id=this.$route.query.id,this.website_id=this.$route.query.website_id,this.activeName=this.$route.query.id+"",this.getList(),this.getContent(),this.getModulelist()},methods:{prev:function(){this.$router.push({name:"Content"})},getModulelist:function(){var e=this;l["a"].moduleList().then((function(t){e.moduleList=t.data}))},handleClick:function(e,t){this.module_id=e.name,this.getList(),this.getContent()},getList:function(){var e=this;l["a"].fieldList({module_id:this.module_id}).then((function(t){var a=t.data,i=[],n=[];a.forEach((function(e){i.push({form_title:e.form_title,table_field:e.table_field}),n.push(e.table_field)})),e.dataKey=n,e.tableLabel=a}))},getContent:function(e){var t=this,a={module_id:this.module_id,website_id:this.website_id,page:this.page.currentPage,limit:this.page.size};o["a"].mainContent(a).then((function(e){var a=e.data;t.page.total=e.count,t.tableData=a}))},handleSizeChange:function(e){this.page.size=e,this.page.currentPage=1,this.getContent()},handleCurrentChange:function(e){this.page.currentPage=e,this.getContent()}}},s=r,u=(a("1313"),a("329f1"),a("2877")),d=Object(u["a"])(s,i,n,!1,null,"21e4dcd0",null);t["default"]=d.exports}}]);