mooho-base-admin-plus 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/history.md
CHANGED
|
@@ -52961,18 +52961,18 @@ const _sfc_main$l = {
|
|
|
52961
52961
|
await this.$refs.table.init(viewCode, callback, onFail);
|
|
52962
52962
|
},
|
|
52963
52963
|
open(param) {
|
|
52964
|
-
|
|
52965
|
-
|
|
52966
|
-
|
|
52964
|
+
setTimeout(() => {
|
|
52965
|
+
if (this.param) {
|
|
52966
|
+
for (let key in this.param) {
|
|
52967
|
+
delete this.filterData[key];
|
|
52968
|
+
}
|
|
52967
52969
|
}
|
|
52968
|
-
|
|
52969
|
-
|
|
52970
|
-
|
|
52971
|
-
|
|
52972
|
-
|
|
52970
|
+
this.param = param;
|
|
52971
|
+
if (this.param) {
|
|
52972
|
+
for (let key in this.param) {
|
|
52973
|
+
this.filterData[key] = this.param[key];
|
|
52974
|
+
}
|
|
52973
52975
|
}
|
|
52974
|
-
}
|
|
52975
|
-
setTimeout(() => {
|
|
52976
52976
|
this.$refs.table.loadData();
|
|
52977
52977
|
setTimeout(() => {
|
|
52978
52978
|
this.opened = true;
|
|
@@ -340,7 +340,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
340
340
|
`),require$$0.renderSlot(a.$slots,"tableCommand",{table:v.table,tableColumn:v.tableColumn,tableCode:v.tableCode,row:v.row,index:v.index})]),bottom:require$$0.withCtx(({form:v})=>[require$$0.createCommentVNode(`\r
|
|
341
341
|
@slot \u5E95\u90E8\r
|
|
342
342
|
@binding {object} form \u8868\u5355\u5BF9\u8C61\r
|
|
343
|
-
`),require$$0.renderSlot(a.$slots,"bottom",{form:v})]),_:3},8,["view-code","readonly","defaultData","setting-enable","onOnChange","onOnReady"])])]),_:3},8,["modelValue","mask-closable","draggable","width","before-close","onOnVisibleChange"]),l.settingActive?(require$$0.openBlock(),require$$0.createBlock(h,{key:0,ref:"setting","is-setting":!0,onLayoutMode:u.layoutMode,onOnChange:u.init},null,8,["onLayoutMode","onOnChange"])):require$$0.createCommentVNode("v-if",!0),l.settingActive?(require$$0.openBlock(),require$$0.createBlock(p,{key:1,ref:"settingLayout","is-setting":!0,onListMode:u.listMode,onOnChange:u.init},null,8,["onListMode","onOnChange"])):require$$0.createCommentVNode("v-if",!0)])}var ModalForm=_export_sfc(_sfc_main$m,[["render",_sfc_render$m],["__file","D:/Project/Mooho/FrontEnd/mooho-base-admin-plus/src/components/view/modal-form.vue"]]);const _sfc_main$l={mixins:[mixinPage],components:{},data(){return{opened:!1,tableView:{},param:{}}},created(){},props:{viewCode:{type:String},static:{type:Boolean,default:!1},filter:{type:Object,default(){return{}}},footerEnable:{type:Boolean,default:!1},autoLoad:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:null},draggable:{type:Boolean,default:null},settingEnable:{type:Boolean,default:!0},selectEnable:{type:Boolean,default:!1},checkCrossPage:{type:Boolean,default:!1},treeEnable:{type:Boolean,default:!1},treeColumn:{type:String},treeLoad:{type:Function},hasChildren:{type:Function},createEnable:{type:Boolean,default:!0},editEnable:{type:Boolean,default:!0},removeEnable:{type:Boolean,default:!0},filterEnable:{type:Boolean,default:!0},pageEnable:{type:Boolean,default:!0},embedded:{type:Boolean,default:!1},beforeLoadData:{type:Function},onSearch:{type:Function},summaryMethod:{type:Function},pageSizeOpts:{type:Array},beforeClose:{type:Function},spanMethod:{type:Function},loadDataEnable:{type:Boolean,default:!0},rowClassName:{type:Function}},computed:{data(){return this.$refs.table.data},table(){return this.$refs.table},filterData(){return this.$refs.table.filterData},screenWidth(){return document.body.clientWidth*.8}},methods:{async init(a,r,o){await this.$refs.table.init(a,r,o)},open(a){if(this.param)for(let r in this.param)delete this.filterData[r];if(this.param=a,this.param)for(let r in this.param)this.filterData[r]=this.param[r];
|
|
343
|
+
`),require$$0.renderSlot(a.$slots,"bottom",{form:v})]),_:3},8,["view-code","readonly","defaultData","setting-enable","onOnChange","onOnReady"])])]),_:3},8,["modelValue","mask-closable","draggable","width","before-close","onOnVisibleChange"]),l.settingActive?(require$$0.openBlock(),require$$0.createBlock(h,{key:0,ref:"setting","is-setting":!0,onLayoutMode:u.layoutMode,onOnChange:u.init},null,8,["onLayoutMode","onOnChange"])):require$$0.createCommentVNode("v-if",!0),l.settingActive?(require$$0.openBlock(),require$$0.createBlock(p,{key:1,ref:"settingLayout","is-setting":!0,onListMode:u.listMode,onOnChange:u.init},null,8,["onListMode","onOnChange"])):require$$0.createCommentVNode("v-if",!0)])}var ModalForm=_export_sfc(_sfc_main$m,[["render",_sfc_render$m],["__file","D:/Project/Mooho/FrontEnd/mooho-base-admin-plus/src/components/view/modal-form.vue"]]);const _sfc_main$l={mixins:[mixinPage],components:{},data(){return{opened:!1,tableView:{},param:{}}},created(){},props:{viewCode:{type:String},static:{type:Boolean,default:!1},filter:{type:Object,default(){return{}}},footerEnable:{type:Boolean,default:!1},autoLoad:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:null},draggable:{type:Boolean,default:null},settingEnable:{type:Boolean,default:!0},selectEnable:{type:Boolean,default:!1},checkCrossPage:{type:Boolean,default:!1},treeEnable:{type:Boolean,default:!1},treeColumn:{type:String},treeLoad:{type:Function},hasChildren:{type:Function},createEnable:{type:Boolean,default:!0},editEnable:{type:Boolean,default:!0},removeEnable:{type:Boolean,default:!0},filterEnable:{type:Boolean,default:!0},pageEnable:{type:Boolean,default:!0},embedded:{type:Boolean,default:!1},beforeLoadData:{type:Function},onSearch:{type:Function},summaryMethod:{type:Function},pageSizeOpts:{type:Array},beforeClose:{type:Function},spanMethod:{type:Function},loadDataEnable:{type:Boolean,default:!0},rowClassName:{type:Function}},computed:{data(){return this.$refs.table.data},table(){return this.$refs.table},filterData(){return this.$refs.table.filterData},screenWidth(){return document.body.clientWidth*.8}},methods:{async init(a,r,o){await this.$refs.table.init(a,r,o)},open(a){setTimeout(()=>{if(this.param)for(let r in this.param)delete this.filterData[r];if(this.param=a,this.param)for(let r in this.param)this.filterData[r]=this.param[r];this.$refs.table.loadData(),setTimeout(()=>{this.opened=!0})})},async close(){this.opened=!1},validate(){return this.$refs.table.validate()},loadData(a){this.$refs.table.loadData(a)},getSelected(){return this.$refs.table.getSelected()},setSelected(a){this.$refs.table.setSelected(a)},getData(){return this.$refs.table.getData()},getDefaultData(){return this.$refs.table.getDefaultData()},onReady(a){this.tableView=a},onVisibleChange(a){a||(this.$refs.table.isStatic&&this.$refs.table.loadData([]),this.$emit("on-close"))},onLoadData(){this.$emit("on-load-data")},create(){this.$emit("create",this.param)},edit(a){this.$emit("edit",a)},remove(a){this.$refs.table.remove(a)},afterInit(){this.$emit("after-init")},selectAllCancel(){this.setSelected([])},clear(){this.$refs.table.clear()},dragDrop(a){this.$emit("on-drag-drop",a)},getNameI18n(a){if(this.layout.showI18n){if(a.code){let r="DataView_"+a.code,o=this.$t(r);return o==r?a.name:o}}else return a.name},getDescI18n(a){if(this.layout.showI18n){if(a.code){let r="DataView_"+a.code+"_$Desc",o=this.$t(r);return o==r?a.name:o}}else return a.description}}},_hoisted_1$c={class:"title"},_hoisted_2$a={class:"description"},_hoisted_3$8={class:"ivu-ml-8 ivu-mr-8"};function _sfc_render$l(a,r,o,s,l,u){const c=require$$0.resolveComponent("view-table"),d=require$$0.resolveComponent("Modal");return require$$0.openBlock(),require$$0.createBlock(d,{ref:"modal",modelValue:l.opened,"onUpdate:modelValue":r[0]||(r[0]=f=>l.opened=f),scrollable:"","mask-closable":o.maskClosable==null?a.layout.maskClosable:o.maskClosable,draggable:o.draggable==null?a.layout.draggable:o.draggable,sticky:!0,"reset-drag-position":!0,width:l.tableView.width||u.screenWidth,"before-close":o.beforeClose,"footer-hide":!o.footerEnable,onOnVisibleChange:u.onVisibleChange},{header:require$$0.withCtx(()=>[require$$0.createElementVNode("div",null,[require$$0.createCommentVNode(`\r
|
|
344
344
|
@slot \u9875\u5934\r
|
|
345
345
|
`),require$$0.renderSlot(a.$slots,"header",{},()=>[require$$0.createElementVNode("span",_hoisted_1$c,require$$0.toDisplayString(u.getNameI18n(l.tableView)),1),require$$0.createElementVNode("span",_hoisted_2$a,require$$0.toDisplayString(u.getDescI18n(l.tableView)),1)])])]),footer:require$$0.withCtx(()=>[require$$0.createElementVNode("div",null,[require$$0.createCommentVNode(`\r
|
|
346
346
|
@slot \u9875\u811A\r
|
package/package.json
CHANGED
|
@@ -372,21 +372,21 @@
|
|
|
372
372
|
* @public
|
|
373
373
|
*/
|
|
374
374
|
open(param) {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
375
|
+
setTimeout(() => {
|
|
376
|
+
if (this.param) {
|
|
377
|
+
for (let key in this.param) {
|
|
378
|
+
delete this.filterData[key];
|
|
379
|
+
}
|
|
378
380
|
}
|
|
379
|
-
}
|
|
380
381
|
|
|
381
|
-
|
|
382
|
+
this.param = param;
|
|
382
383
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
384
|
+
if (this.param) {
|
|
385
|
+
for (let key in this.param) {
|
|
386
|
+
this.filterData[key] = this.param[key];
|
|
387
|
+
}
|
|
386
388
|
}
|
|
387
|
-
}
|
|
388
389
|
|
|
389
|
-
setTimeout(() => {
|
|
390
390
|
this.$refs.table.loadData();
|
|
391
391
|
|
|
392
392
|
setTimeout(() => {
|