x-php-Admin/dist/static/js/xChunks.e3c61803.js

1 line
160 KiB
JavaScript
Raw Normal View History

2024-01-26 16:15:12 +00:00
(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[915],{6604:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8311),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),_components_xFileExport__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(967);__webpack_exports__.Z={name:"table_2",components:{xFileExport:_components_xFileExport__WEBPACK_IMPORTED_MODULE_1__.Z},props:{name:{type:String,default:""}},data(){return{isselection:!0,tableexpand:!1,tableexpandtype:"",defaultExpandAll:!0,tableexpandfield:"content",selection:[],column:[],batch:[],aside:{items:[]},filter:[],api:"",operation:{},key:"id",title:"",search:{},tabs:[],stat:[],chartoption:{},tablename:this.$route.meta.tablename,tableurl:this.$route.meta.tableurl,groupFilterText:"",tabskey:""}},mounted(){if(this.name&&(this.tablename=this.name||this.$route.meta.tablename),this.tablename||this.tableurl){var e={cache:this.$route.meta.cache||!0,cacheparameters:this.$route.meta.cacheparameters||!1},l=this.tableurl?this.$http.get(this.tableurl,{},e):this.$api.system.table.get(this.tablename,e);l.then((e=>{if(200==e.code){Object.assign(this.$data,e.data);for(const e in this.search)Object.prototype.hasOwnProperty.call(this.$route.query,e)&&(this.search[e]=this.$route.query[e]);this.$emit("child-loaded",Object.assign({},this.$data.aside,{search:this.search}))}}))}},computed:{getWidth(){return function(e){return e.width?e.width+"px":"auto"}},exportdata(){return this.displayHandle()?this.operation.export.data?Object.assign({},this.operation.export.data,this.search):this.search:""},filterObj(){const e=[];return this.filter.forEach((l=>{l.component&&e.push({name:l.value,label:l.label,component:l.component,options:l.options})})),e}},watch:{groupFilterText(e){this.$refs.group.filter(e)}},methods:{displayHandle(){return!!(this.$refs.table.total&&this.operation.export&&this.operation.export.showhandle)&&eval(this.operation.export.showhandle.replace(/\$/g,"this.search"))},filterChange(e){var l=Object.assign({},this.search,e);this.$refs.table.reload(l)},tabChange(){this.$refs.table.reload(this.search)},plus(){this.$nextTick((()=>{let e=this.operation.plus.data||{};for(const l in e)Object.prototype.hasOwnProperty.call(this.search,l)&&(e[l]=this.search[l]);this.$refs.table.xtablehandleClick(e,this.operation.plus,"update")}))},operationEdit(e){this.$nextTick((()=>{this.$refs.table.xtablehandleClick(e,this.operation.edit,"update")}))},openStat(e){this.$nextTick((()=>{this.$refs.table.xtablehandleClick({},e,"stat")}))},async operationDelete(e,l){const t="undefined"!==typeof this.operation.delete.key&&this.operation.delete.key?this.operation.delete.key:this.key;var a=await this.$http.post(this.operation.delete.url,{[t]:e[t],index:l});200!=a.code?this.$alert(a.message,"提示",{type:"error"}):this.$refs.table.refresh()},selectionChange(e){this.selection=e}}}},3995:function(e,l,t){"use strict";t.r(l),t.d(l,{urlPrefix:function(){return o}});var a=t(7043);const o="/tenement/apartment/";l["default"]={get:async function(e,l){return await a.Z.get(o+e,l)},post:async function(e,l){return await a.Z.post(o+e,l)},list:async function(e){return await a.Z.get(o+"lists",e)},room:{submit:async function(e){return await a.Z.post(o+"roomSubmit",e)},get:async function(e){return await a.Z.get(o+"roomGet",e)}}}},5215:function(e,l,t){"use strict";t.r(l);var a=t(3839);const o={};let i=t(1783);i.keys().forEach((e=>{let l=i(e);o[e.replace(/^\.\/(.*)\.\w+$/,"$1")]=l.default})),l["default"]=(0,a.Xl)(o)},2004:function(e,l,t){"use strict";t.d(l,{Z:function(){return f}});var a=t(6808),o=t(9511);const i={class:"x-icon-select"},n={class:"x-icon-select__dialog",style:{margin:"-20px 0 -10px 0"}},d={class:"x-icon-select__list"},s=["data-icon"];function u(e,l,t,u,r,m){const p=(0,a.up)("el-input"),c=(0,a.up)("el-form-item"),f=(0,a.up)("el-form"),h=(0,a.up)("el-tag"),w=(0,a.up)("el-em