centaline-data-driven 1.6.71 → 1.6.72
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/package.json +1 -1
- package/release-log.md +7 -0
- package/src/Form.vue +2 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +220 -99
- package/src/centaline/loader/src/ctl/Base.js +3 -0
- package/src/centaline/loader/src/ctl/FormList.js +9 -0
- package/src/main.js +4 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +136 -6
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
|
@@ -7024,6 +7024,9 @@ var Base = function Base(source) {
|
|
|
7024
7024
|
},
|
|
7025
7025
|
set displayRelationFieldValue(v) {
|
|
7026
7026
|
source.displayRelationFieldValue = v;
|
|
7027
|
+
},
|
|
7028
|
+
get flagCollapse() {
|
|
7029
|
+
return source.flagCollapse || false;
|
|
7027
7030
|
}
|
|
7028
7031
|
};
|
|
7029
7032
|
|
|
@@ -31586,6 +31589,121 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
|
|
|
31586
31589
|
//
|
|
31587
31590
|
//
|
|
31588
31591
|
//
|
|
31592
|
+
//
|
|
31593
|
+
//
|
|
31594
|
+
//
|
|
31595
|
+
//
|
|
31596
|
+
//
|
|
31597
|
+
//
|
|
31598
|
+
//
|
|
31599
|
+
//
|
|
31600
|
+
//
|
|
31601
|
+
//
|
|
31602
|
+
//
|
|
31603
|
+
//
|
|
31604
|
+
//
|
|
31605
|
+
//
|
|
31606
|
+
//
|
|
31607
|
+
//
|
|
31608
|
+
//
|
|
31609
|
+
//
|
|
31610
|
+
//
|
|
31611
|
+
//
|
|
31612
|
+
//
|
|
31613
|
+
//
|
|
31614
|
+
//
|
|
31615
|
+
//
|
|
31616
|
+
//
|
|
31617
|
+
//
|
|
31618
|
+
//
|
|
31619
|
+
//
|
|
31620
|
+
//
|
|
31621
|
+
//
|
|
31622
|
+
//
|
|
31623
|
+
//
|
|
31624
|
+
//
|
|
31625
|
+
//
|
|
31626
|
+
//
|
|
31627
|
+
//
|
|
31628
|
+
//
|
|
31629
|
+
//
|
|
31630
|
+
//
|
|
31631
|
+
//
|
|
31632
|
+
//
|
|
31633
|
+
//
|
|
31634
|
+
//
|
|
31635
|
+
//
|
|
31636
|
+
//
|
|
31637
|
+
//
|
|
31638
|
+
//
|
|
31639
|
+
//
|
|
31640
|
+
//
|
|
31641
|
+
//
|
|
31642
|
+
//
|
|
31643
|
+
//
|
|
31644
|
+
//
|
|
31645
|
+
//
|
|
31646
|
+
//
|
|
31647
|
+
//
|
|
31648
|
+
//
|
|
31649
|
+
//
|
|
31650
|
+
//
|
|
31651
|
+
//
|
|
31652
|
+
//
|
|
31653
|
+
//
|
|
31654
|
+
//
|
|
31655
|
+
//
|
|
31656
|
+
//
|
|
31657
|
+
//
|
|
31658
|
+
//
|
|
31659
|
+
//
|
|
31660
|
+
//
|
|
31661
|
+
//
|
|
31662
|
+
//
|
|
31663
|
+
//
|
|
31664
|
+
//
|
|
31665
|
+
//
|
|
31666
|
+
//
|
|
31667
|
+
//
|
|
31668
|
+
//
|
|
31669
|
+
//
|
|
31670
|
+
//
|
|
31671
|
+
//
|
|
31672
|
+
//
|
|
31673
|
+
//
|
|
31674
|
+
//
|
|
31675
|
+
//
|
|
31676
|
+
//
|
|
31677
|
+
//
|
|
31678
|
+
//
|
|
31679
|
+
//
|
|
31680
|
+
//
|
|
31681
|
+
//
|
|
31682
|
+
//
|
|
31683
|
+
//
|
|
31684
|
+
//
|
|
31685
|
+
//
|
|
31686
|
+
//
|
|
31687
|
+
//
|
|
31688
|
+
//
|
|
31689
|
+
//
|
|
31690
|
+
//
|
|
31691
|
+
//
|
|
31692
|
+
//
|
|
31693
|
+
//
|
|
31694
|
+
//
|
|
31695
|
+
//
|
|
31696
|
+
//
|
|
31697
|
+
//
|
|
31698
|
+
//
|
|
31699
|
+
//
|
|
31700
|
+
//
|
|
31701
|
+
//
|
|
31702
|
+
//
|
|
31703
|
+
//
|
|
31704
|
+
//
|
|
31705
|
+
//
|
|
31706
|
+
//
|
|
31589
31707
|
|
|
31590
31708
|
//Form内表格
|
|
31591
31709
|
var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更新
|
|
@@ -31677,7 +31795,9 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
31677
31795
|
foucus: false,
|
|
31678
31796
|
itemKey: Math.random(),
|
|
31679
31797
|
tableColumnWith: 0,
|
|
31680
|
-
fixedButtons: false
|
|
31798
|
+
fixedButtons: false,
|
|
31799
|
+
collapseIndex: 0,
|
|
31800
|
+
activeName: ''
|
|
31681
31801
|
};
|
|
31682
31802
|
},
|
|
31683
31803
|
created: function created() {
|
|
@@ -31685,6 +31805,7 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
31685
31805
|
this.model = this.vmodel;
|
|
31686
31806
|
this.model.OptApi = this.api;
|
|
31687
31807
|
this.model.$self = self;
|
|
31808
|
+
if (this.model.groupExpand) this.activeName = this.model.title;
|
|
31688
31809
|
|
|
31689
31810
|
this.$nextTick(function () {
|
|
31690
31811
|
self.model.refField = this.$refs.Fields;
|
|
@@ -59994,6 +60115,15 @@ var FormList = function FormList(source, master) {
|
|
|
59994
60115
|
get title() {
|
|
59995
60116
|
return master.controlLabel || '';
|
|
59996
60117
|
},
|
|
60118
|
+
set title(v) {
|
|
60119
|
+
master.controlLabel = v;
|
|
60120
|
+
},
|
|
60121
|
+
get flagCollapse() {
|
|
60122
|
+
return master.flagCollapse || false;
|
|
60123
|
+
},
|
|
60124
|
+
get groupExpand() {
|
|
60125
|
+
return master.groupExpand === true;
|
|
60126
|
+
},
|
|
59997
60127
|
get description() {
|
|
59998
60128
|
return master.description || '';
|
|
59999
60129
|
},
|
|
@@ -81481,7 +81611,7 @@ exports.push([module.i, ".el-collapse{border-top:none}.ct-collapse-item-title .e
|
|
|
81481
81611
|
"use strict";
|
|
81482
81612
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFormListTable_vue__ = __webpack_require__(191);
|
|
81483
81613
|
/* unused harmony namespace reexport */
|
|
81484
|
-
/* harmony import */ var
|
|
81614
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_e5ad2cb8_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFormListTable_vue__ = __webpack_require__(630);
|
|
81485
81615
|
function injectStyle (ssrContext) {
|
|
81486
81616
|
__webpack_require__(628)
|
|
81487
81617
|
}
|
|
@@ -81501,7 +81631,7 @@ var __vue_scopeId__ = null
|
|
|
81501
81631
|
var __vue_module_identifier__ = null
|
|
81502
81632
|
var Component = normalizeComponent(
|
|
81503
81633
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFormListTable_vue__["a" /* default */],
|
|
81504
|
-
|
|
81634
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_e5ad2cb8_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFormListTable_vue__["a" /* default */],
|
|
81505
81635
|
__vue_template_functional__,
|
|
81506
81636
|
__vue_styles__,
|
|
81507
81637
|
__vue_scopeId__,
|
|
@@ -81522,7 +81652,7 @@ var content = __webpack_require__(629);
|
|
|
81522
81652
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
81523
81653
|
if(content.locals) module.exports = content.locals;
|
|
81524
81654
|
// add the styles to the DOM
|
|
81525
|
-
var update = __webpack_require__(3)("
|
|
81655
|
+
var update = __webpack_require__(3)("508300b4", content, true, {});
|
|
81526
81656
|
|
|
81527
81657
|
/***/ }),
|
|
81528
81658
|
/* 629 */
|
|
@@ -81533,7 +81663,7 @@ exports = module.exports = __webpack_require__(2)(false);
|
|
|
81533
81663
|
|
|
81534
81664
|
|
|
81535
81665
|
// module
|
|
81536
|
-
exports.push([module.i, ".el-table-add-row{margin-top:10px;width:100%;height:34px;border:1px dashed #c1c1cd;border-radius:3px;cursor:pointer;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-webkit-box;display:-ms-flexbox;display:flex;line-height:34px}.ct-form-list .list-title{padding-bottom:5px;text-align:left;display:inline-table;width:45%}.ct-form-list .list-button{padding-bottom:5px;text-align:right;display:inline-table;float:right}.ct-form-list .el-table__footer-wrapper .el-table__footer .has-gutter div,.ct-table-inputnumber{text-align:right}.ct-form-list .el-table__footer-wrapper .el-table__footer .has-gutter tr td:first-child div{text-align:left}.ct-table-required{color:red}.tableDisabled{pointer-events:none;opacity:.4}.has-gutter>tr>th>.cell>span{width:auto;white-space:nowrap}.el-table .cell{text-overflow:clip}.list-button ul{list-style:none;margin:0;padding:0;width:auto}.list-button ul li{margin-right:5px;float:left}", ""]);
|
|
81666
|
+
exports.push([module.i, ".el-collapse-saveLine .el-collapse-item__wrap{border-bottom:none}.el-table-add-row{margin-top:10px;width:100%;height:34px;border:1px dashed #c1c1cd;border-radius:3px;cursor:pointer;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-webkit-box;display:-ms-flexbox;display:flex;line-height:34px}.ct-form-list .list-title{padding-bottom:5px;text-align:left;display:inline-table;width:45%}.ct-form-list .list-button{padding-bottom:5px;text-align:right;display:inline-table;float:right}.ct-form-list .el-table__footer-wrapper .el-table__footer .has-gutter div,.ct-table-inputnumber{text-align:right}.ct-form-list .el-table__footer-wrapper .el-table__footer .has-gutter tr td:first-child div{text-align:left}.ct-table-required{color:red}.tableDisabled{pointer-events:none;opacity:.4}.has-gutter>tr>th>.cell>span{width:auto;white-space:nowrap}.el-table .cell{text-overflow:clip}.list-button ul{list-style:none;margin:0;padding:0;width:auto}.list-button ul li{margin-right:5px;float:left}", ""]);
|
|
81537
81667
|
|
|
81538
81668
|
// exports
|
|
81539
81669
|
|
|
@@ -81543,7 +81673,7 @@ exports.push([module.i, ".el-table-add-row{margin-top:10px;width:100%;height:34p
|
|
|
81543
81673
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81544
81674
|
|
|
81545
81675
|
"use strict";
|
|
81546
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"focus",rawName:"v-focus",value:(_vm.foucus),expression:"foucus"}],staticClass:"ct-form-list"},[(_vm.model.title)?_c('div',{staticClass:"list-title"},[_c('h5',[_vm._v(_vm._s(_vm.model.title))])]):(_vm.model.create || (_vm.model.selectRouter && _vm.model.selectRouter.id) || _vm.model.toolButtonsShow.length>0)?_c('div',{staticClass:"list-title"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"list-button"},[(!_vm.model.tableDisabled)?[_c('ul',[_vm._l((_vm.model.toolButtonsShow),function(v,i){return _c('li',[_c(v.is,{tag:"component",attrs:{"vmodel":v,"parentModel":_vm.model},on:{"click":_vm.toolButtonsClick,"importComplete":_vm.importComplete,"change":function($event){_vm.toolButtonsChangeHandler(v,$event)}}})],1)}),_vm._v(" "),(_vm.model.selectRouter!==null)?_c('li',[_c(_vm.model.selectRouter.is,{tag:"component",attrs:{"vmodel":_vm.model.selectRouter},on:{"click":_vm.popupSearchListHandle}})],1):_vm._e(),_vm._v(" "),(_vm.model.create)?_c('li',[_c('el-button',{staticClass:"max-btn-add",staticStyle:{"width":"auto"},attrs:{"disabled":_vm.model.disabled,"type":"success","size":"mini","icon":"el-icon-circle-plus-outline"},on:{"click":_vm.addRow}},[_vm._v("\n "+_vm._s(_vm.model.createText)+"\n ")])],1):_vm._e()],2)]:_vm._e()],2),_vm._v(" "),_c('div',{attrs:{"id":"listTable"}},[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('el-table',{staticClass:"max-table--border",staticStyle:{"width":"100%"},attrs:{"size":"mini","data":_vm.model.tableData,"border":"","highlight-current-row":"","show-summary":_vm.model.showSummary,"summary-method":_vm.getSummaries}},[(_vm.model.rowActionRoutersAlign === 1)?[(_vm.model.rows[0].edit || _vm.model.rows[0].delete || (_vm.model.buttons.length > 0 && _vm.model.buttonsShow.length > 0))?_c('el-table-column',{attrs:{"label":"操作","fixed":_vm.fixedButtons,"width":'100%',"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.model.tableDisabled)?[(scope.row.edit || scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,true)}}},[_vm._v("\n "+_vm._s(scope.row.isSet?'保存':"修改")+"\n ")]):_vm._e(),_vm._v(" "),(scope.row.delete && !scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--danger el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.deleteRow(scope.$index, scope.row.$sourceIndex)}}},[_vm._v("\n 删除\n ")]):(scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,false)}}},[_vm._v("\n 取消\n ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.model.buttons),function(v,i){return (!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 ))?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.buttonClick(scope.row, v)}}},[_vm._v("\n "+_vm._s(v.label)+"\n ")]):_vm._e()})]:_vm._e()]}}])}):_vm._e()]:_vm._e(),_vm._v(" "),_vm._l((_vm.model.rows[0].field),function(v,i){return (v.show !== false && v.type!==13)?_c('el-table-column',{key:i,attrs:{"prop":v.id,"label":v.label,"width":v.width,"fixed":_vm.model.frozenColumns.includes(v.id),"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [_c('div',{class:[{'ct-table-required':v.required&&_vm.model.rows[0].edit&& _vm.model.rows[0].delete&&!_vm.model.tableDisabled},_vm.getHeadClass(v)]},[_vm._v("\n "+_vm._s(v.label)+"\n ")])]}},{key:"default",fn:function(scope){return [(scope.row.isSet)?_c('span',[_c(_vm.model.currentRow.data[v.id].locked || _vm.model.currentRow.data[v.id].is!==v.is?_vm.model.currentRow.data[v.id].is:v.is,{key:_vm.model.currentRow.data[v.id].rowKey+_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":_vm.model.currentRow.data[v.id],"api":_vm.model.OptApi},on:{"change":function($event){_vm.changeHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)},"input":function($event){_vm.inputHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)}}})],1):(v.is=='ct-sensitiveeye')?_c('span',[_c(v.is,{key:_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":scope.row[v.id],"vrowmodel":scope.row,"api":_vm.model.OptApi}})],1):(v.router)?_c('span',{class:'cell',staticStyle:{"display":"flex"}},[_c('ct-tablecurrency',{attrs:{"router":v.router,"colValue":scope.row[v.id].code1,"rowData":scope.row},on:{"click":_vm.rolRouterClickHandler}})],1):_c('ct-span',{key:scope.row[v.id].rowKey+_vm.itemKey,ref:"FieldsLabel",refInFor:true,attrs:{"vmodel":scope.row[v.id],"rowNum":scope.row.$sourceIndex,"rowData":scope.row}})]}}])}):_vm._e()}),_vm._v(" "),(_vm.model.rowActionRoutersAlign !== 1)?[(_vm.model.rows[0].edit || _vm.model.rows[0].delete || (_vm.model.buttons.length > 0 && _vm.model.buttonsShow.length > 0))?_c('el-table-column',{attrs:{"label":"操作","fixed":_vm.fixedButtons,"width":'100%',"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.model.tableDisabled)?[(scope.row.edit || scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,true)}}},[_vm._v("\n "+_vm._s(scope.row.isSet?'保存':"修改")+"\n ")]):_vm._e(),_vm._v(" "),(scope.row.delete && !scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--danger el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.deleteRow(scope.$index, scope.row.$sourceIndex)}}},[_vm._v("\n 删除\n ")]):(scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,false)}}},[_vm._v("\n 取消\n ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.model.buttons),function(v,i){return (!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 ))?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.buttonClick(scope.row, v)}}},[_vm._v("\n "+_vm._s(v.label)+"\n ")]):_vm._e()})]:_vm._e()]}}])}):_vm._e()]:_vm._e()],2)],1)],1)],1),_vm._v(" "),(_vm.model.description)?_c('div',{domProps:{"innerHTML":_vm._s(_vm.model.description)}}):_vm._e()])}
|
|
81676
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"focus",rawName:"v-focus",value:(_vm.foucus),expression:"foucus"}],staticClass:"ct-form-list"},[(_vm.model.flagCollapse)?_c('el-collapse',{class:'el-collapse-saveLine',model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:"activeName"}},[_c('el-collapse-item',{key:_vm.collapseIndex,class:_vm.model.tableDisabled ? 'ct-collapse-item-title' : '',attrs:{"title":_vm.model.title,"name":_vm.model.title,"disabled":_vm.model.tableDisabled}},[_c('template',{slot:"title"},[_c('i',{staticClass:"sign"}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.model.title))])]),_vm._v(" "),_c('el-row',[_c('div',{staticClass:"list-button"},[(!_vm.model.tableDisabled)?[_c('ul',[_vm._l((_vm.model.toolButtonsShow),function(v,i){return _c('li',[_c(v.is,{tag:"component",attrs:{"vmodel":v,"parentModel":_vm.model},on:{"click":_vm.toolButtonsClick,"importComplete":_vm.importComplete,"change":function($event){_vm.toolButtonsChangeHandler(v,$event)}}})],1)}),_vm._v(" "),(_vm.model.selectRouter!==null)?_c('li',[_c(_vm.model.selectRouter.is,{tag:"component",attrs:{"vmodel":_vm.model.selectRouter},on:{"click":_vm.popupSearchListHandle}})],1):_vm._e(),_vm._v(" "),(_vm.model.create)?_c('li',[_c('el-button',{staticClass:"max-btn-add",staticStyle:{"width":"auto"},attrs:{"disabled":_vm.model.disabled,"type":"success","size":"mini","icon":"el-icon-circle-plus-outline"},on:{"click":_vm.addRow}},[_vm._v("\n "+_vm._s(_vm.model.createText)+"\n ")])],1):_vm._e()],2)]:_vm._e()],2),_vm._v(" "),_c('div',{attrs:{"id":"listTable"}},[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('el-table',{staticClass:"max-table--border",staticStyle:{"width":"100%"},attrs:{"size":"mini","data":_vm.model.tableData,"border":"","highlight-current-row":"","show-summary":_vm.model.showSummary,"summary-method":_vm.getSummaries}},[(_vm.model.rowActionRoutersAlign === 1)?[(_vm.model.rows[0].edit || _vm.model.rows[0].delete || (_vm.model.buttons.length > 0 && _vm.model.buttonsShow.length > 0))?_c('el-table-column',{attrs:{"label":"操作","fixed":_vm.fixedButtons,"width":'100%',"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.model.tableDisabled)?[(scope.row.edit || scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,true)}}},[_vm._v("\n "+_vm._s(scope.row.isSet?'保存':"修改")+"\n ")]):_vm._e(),_vm._v(" "),(scope.row.delete && !scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--danger el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.deleteRow(scope.$index, scope.row.$sourceIndex)}}},[_vm._v("\n 删除\n ")]):(scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,false)}}},[_vm._v("\n 取消\n ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.model.buttons),function(v,i){return (!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 ))?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.buttonClick(scope.row, v)}}},[_vm._v("\n "+_vm._s(v.label)+"\n ")]):_vm._e()})]:_vm._e()]}}])}):_vm._e()]:_vm._e(),_vm._v(" "),_vm._l((_vm.model.rows[0].field),function(v,i){return (v.show !== false && v.type!==13)?_c('el-table-column',{key:i,attrs:{"prop":v.id,"label":v.label,"width":v.width,"fixed":_vm.model.frozenColumns.includes(v.id),"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [_c('div',{class:[{'ct-table-required':v.required&&_vm.model.rows[0].edit&& _vm.model.rows[0].delete&&!_vm.model.tableDisabled},_vm.getHeadClass(v)]},[_vm._v("\n "+_vm._s(v.label)+"\n ")])]}},{key:"default",fn:function(scope){return [(scope.row.isSet)?_c('span',[_c(_vm.model.currentRow.data[v.id].locked || _vm.model.currentRow.data[v.id].is!==v.is?_vm.model.currentRow.data[v.id].is:v.is,{key:_vm.model.currentRow.data[v.id].rowKey+_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":_vm.model.currentRow.data[v.id],"api":_vm.model.OptApi},on:{"change":function($event){_vm.changeHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)},"input":function($event){_vm.inputHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)}}})],1):(v.is=='ct-sensitiveeye')?_c('span',[_c(v.is,{key:_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":scope.row[v.id],"vrowmodel":scope.row,"api":_vm.model.OptApi}})],1):(v.router)?_c('span',{class:'cell',staticStyle:{"display":"flex"}},[_c('ct-tablecurrency',{attrs:{"router":v.router,"colValue":scope.row[v.id].code1,"rowData":scope.row},on:{"click":_vm.rolRouterClickHandler}})],1):_c('ct-span',{key:scope.row[v.id].rowKey+_vm.itemKey,ref:"FieldsLabel",refInFor:true,attrs:{"vmodel":scope.row[v.id],"rowNum":scope.row.$sourceIndex,"rowData":scope.row}})]}}])}):_vm._e()}),_vm._v(" "),(_vm.model.rowActionRoutersAlign !== 1)?[(_vm.model.rows[0].edit || _vm.model.rows[0].delete || (_vm.model.buttons.length > 0 && _vm.model.buttonsShow.length > 0))?_c('el-table-column',{attrs:{"label":"操作","fixed":_vm.fixedButtons,"width":'100%',"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.model.tableDisabled)?[(scope.row.edit || scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,true)}}},[_vm._v("\n "+_vm._s(scope.row.isSet?'保存':"修改")+"\n ")]):_vm._e(),_vm._v(" "),(scope.row.delete && !scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--danger el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.deleteRow(scope.$index, scope.row.$sourceIndex)}}},[_vm._v("\n 删除\n ")]):(scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,false)}}},[_vm._v("\n 取消\n ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.model.buttons),function(v,i){return (!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 ))?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.buttonClick(scope.row, v)}}},[_vm._v("\n "+_vm._s(v.label)+"\n ")]):_vm._e()})]:_vm._e()]}}])}):_vm._e()]:_vm._e()],2)],1)],1)],1),_vm._v(" "),(_vm.model.description)?_c('div',{domProps:{"innerHTML":_vm._s(_vm.model.description)}}):_vm._e()])],2)],1):[(_vm.model.title)?_c('div',{staticClass:"list-title"},[_c('h5',[_vm._v(_vm._s(_vm.model.title))])]):(_vm.model.create || (_vm.model.selectRouter && _vm.model.selectRouter.id) || _vm.model.toolButtonsShow.length>0)?_c('div',{staticClass:"list-title"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"list-button"},[(!_vm.model.tableDisabled)?[_c('ul',[_vm._l((_vm.model.toolButtonsShow),function(v,i){return _c('li',[_c(v.is,{tag:"component",attrs:{"vmodel":v,"parentModel":_vm.model},on:{"click":_vm.toolButtonsClick,"importComplete":_vm.importComplete,"change":function($event){_vm.toolButtonsChangeHandler(v,$event)}}})],1)}),_vm._v(" "),(_vm.model.selectRouter!==null)?_c('li',[_c(_vm.model.selectRouter.is,{tag:"component",attrs:{"vmodel":_vm.model.selectRouter},on:{"click":_vm.popupSearchListHandle}})],1):_vm._e(),_vm._v(" "),(_vm.model.create)?_c('li',[_c('el-button',{staticClass:"max-btn-add",staticStyle:{"width":"auto"},attrs:{"disabled":_vm.model.disabled,"type":"success","size":"mini","icon":"el-icon-circle-plus-outline"},on:{"click":_vm.addRow}},[_vm._v("\n "+_vm._s(_vm.model.createText)+"\n ")])],1):_vm._e()],2)]:_vm._e()],2),_vm._v(" "),_c('div',{attrs:{"id":"listTable"}},[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('el-table',{staticClass:"max-table--border",staticStyle:{"width":"100%"},attrs:{"size":"mini","data":_vm.model.tableData,"border":"","highlight-current-row":"","show-summary":_vm.model.showSummary,"summary-method":_vm.getSummaries}},[(_vm.model.rowActionRoutersAlign === 1)?[(_vm.model.rows[0].edit || _vm.model.rows[0].delete || (_vm.model.buttons.length > 0 && _vm.model.buttonsShow.length > 0))?_c('el-table-column',{attrs:{"label":"操作","fixed":_vm.fixedButtons,"width":'100%',"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.model.tableDisabled)?[(scope.row.edit || scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,true)}}},[_vm._v("\n "+_vm._s(scope.row.isSet?'保存':"修改")+"\n ")]):_vm._e(),_vm._v(" "),(scope.row.delete && !scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--danger el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.deleteRow(scope.$index, scope.row.$sourceIndex)}}},[_vm._v("\n 删除\n ")]):(scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,false)}}},[_vm._v("\n 取消\n ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.model.buttons),function(v,i){return (!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 ))?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.buttonClick(scope.row, v)}}},[_vm._v("\n "+_vm._s(v.label)+"\n ")]):_vm._e()})]:_vm._e()]}}])}):_vm._e()]:_vm._e(),_vm._v(" "),_vm._l((_vm.model.rows[0].field),function(v,i){return (v.show !== false && v.type!==13)?_c('el-table-column',{key:i,attrs:{"prop":v.id,"label":v.label,"width":v.width,"fixed":_vm.model.frozenColumns.includes(v.id),"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [_c('div',{class:[{'ct-table-required':v.required&&_vm.model.rows[0].edit&& _vm.model.rows[0].delete&&!_vm.model.tableDisabled},_vm.getHeadClass(v)]},[_vm._v("\n "+_vm._s(v.label)+"\n ")])]}},{key:"default",fn:function(scope){return [(scope.row.isSet)?_c('span',[_c(_vm.model.currentRow.data[v.id].locked || _vm.model.currentRow.data[v.id].is!==v.is?_vm.model.currentRow.data[v.id].is:v.is,{key:_vm.model.currentRow.data[v.id].rowKey+_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":_vm.model.currentRow.data[v.id],"api":_vm.model.OptApi},on:{"change":function($event){_vm.changeHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)},"input":function($event){_vm.inputHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)}}})],1):(v.is=='ct-sensitiveeye')?_c('span',[_c(v.is,{key:_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":scope.row[v.id],"vrowmodel":scope.row,"api":_vm.model.OptApi}})],1):(v.router)?_c('span',{class:'cell',staticStyle:{"display":"flex"}},[_c('ct-tablecurrency',{attrs:{"router":v.router,"colValue":scope.row[v.id].code1,"rowData":scope.row},on:{"click":_vm.rolRouterClickHandler}})],1):_c('ct-span',{key:scope.row[v.id].rowKey+_vm.itemKey,ref:"FieldsLabel",refInFor:true,attrs:{"vmodel":scope.row[v.id],"rowNum":scope.row.$sourceIndex,"rowData":scope.row}})]}}])}):_vm._e()}),_vm._v(" "),(_vm.model.rowActionRoutersAlign !== 1)?[(_vm.model.rows[0].edit || _vm.model.rows[0].delete || (_vm.model.buttons.length > 0 && _vm.model.buttonsShow.length > 0))?_c('el-table-column',{attrs:{"label":"操作","fixed":_vm.fixedButtons,"width":'100%',"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(!_vm.model.tableDisabled)?[(scope.row.edit || scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,true)}}},[_vm._v("\n "+_vm._s(scope.row.isSet?'保存':"修改")+"\n ")]):_vm._e(),_vm._v(" "),(scope.row.delete && !scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--danger el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.deleteRow(scope.$index, scope.row.$sourceIndex)}}},[_vm._v("\n 删除\n ")]):(scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,false)}}},[_vm._v("\n 取消\n ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.model.buttons),function(v,i){return (!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 ))?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.buttonClick(scope.row, v)}}},[_vm._v("\n "+_vm._s(v.label)+"\n ")]):_vm._e()})]:_vm._e()]}}])}):_vm._e()]:_vm._e()],2)],1)],1)],1),_vm._v(" "),(_vm.model.description)?_c('div',{domProps:{"innerHTML":_vm._s(_vm.model.description)}}):_vm._e()]],2)}
|
|
81547
81677
|
var staticRenderFns = []
|
|
81548
81678
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
81549
81679
|
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|