twmodule 0.1.16 → 0.1.17
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/README.md +22 -0
- package/lib/twComp.common.js +46 -31
- package/lib/twComp.css +1 -1
- package/lib/twComp.umd.js +46 -31
- package/lib/twComp.umd.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -548,6 +548,7 @@ stepData:{
|
|
548
548
|
|
549
549
|
//表格整体设置
|
550
550
|
tableInit = {
|
551
|
+
headAlign:'center',//left center right 默认center
|
551
552
|
tableClassName:'tableClass',//给表格添加样式名(内置默认样式名:twTableStyle,自带样式,注意覆盖情况)
|
552
553
|
tableHeadClass:'twTableHeadClass',//给表头添加样式名(内置默认样式名:tableHeadClass,自带样式,注意覆盖情况)
|
553
554
|
size:'small',//表格大小:middle 默认small,
|
@@ -597,6 +598,27 @@ stepData:{
|
|
597
598
|
}
|
598
599
|
}
|
599
600
|
columns = [
|
601
|
+
{
|
602
|
+
title: '<span style="color: red;">changeNum</span><br/><span style="color: green;">(1111)</span>',
|
603
|
+
isHtmlHead:true,//开启表头顶定义样式
|
604
|
+
mention:{//开启表头叹号提示
|
605
|
+
text:'12312111111113',
|
606
|
+
icon:'el-icon-question',
|
607
|
+
width:'300',
|
608
|
+
trigger:'click',
|
609
|
+
iconStyle:{color:'blue',fontSize:'18px'},
|
610
|
+
textStyle:{color:'blue',fontSize:'18px'}
|
611
|
+
},
|
612
|
+
dataIndex: 'changeImgList',
|
613
|
+
isSpecial:{//是否开启字段样式特殊处理
|
614
|
+
class:'changeImg',
|
615
|
+
type:'imgList',//图片类型,与img数组配合使用,根据不同的状态值显示不同的图片
|
616
|
+
imgList:[
|
617
|
+
{value:'img1',img:require("../assets/logo.png")},
|
618
|
+
{value:'img2',img:require("../assets/gou.png")},
|
619
|
+
]
|
620
|
+
}
|
621
|
+
},
|
600
622
|
{
|
601
623
|
title: 'changeImg',
|
602
624
|
dataIndex: 'changeImgList',
|
package/lib/twComp.common.js
CHANGED
@@ -2206,10 +2206,14 @@ module.exports = String(test) === '[object z]';
|
|
2206
2206
|
|
2207
2207
|
/***/ }),
|
2208
2208
|
|
2209
|
-
/***/ "
|
2210
|
-
/***/ (function(module,
|
2209
|
+
/***/ "4aa3":
|
2210
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2211
2211
|
|
2212
|
-
|
2212
|
+
"use strict";
|
2213
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_38c3c46c_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e4ea");
|
2214
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_38c3c46c_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_38c3c46c_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
2215
|
+
/* unused harmony reexport * */
|
2216
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_38c3c46c_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
2213
2217
|
|
2214
2218
|
/***/ }),
|
2215
2219
|
|
@@ -2801,17 +2805,6 @@ module.exports = !fails(function () {
|
|
2801
2805
|
});
|
2802
2806
|
|
2803
2807
|
|
2804
|
-
/***/ }),
|
2805
|
-
|
2806
|
-
/***/ "659f":
|
2807
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2808
|
-
|
2809
|
-
"use strict";
|
2810
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_623ece2c_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4a8c");
|
2811
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_623ece2c_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_623ece2c_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
2812
|
-
/* unused harmony reexport * */
|
2813
|
-
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_0_9_0_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_3_6_0_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_3_0_0_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_8_0_2_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_4_1_0_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_15_9_3_vue_loader_lib_index_js_vue_loader_options_twTable_vue_vue_type_style_index_0_id_623ece2c_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
2814
|
-
|
2815
2808
|
/***/ }),
|
2816
2809
|
|
2817
2810
|
/***/ "692f":
|
@@ -6190,6 +6183,13 @@ module.exports = function (key, value) {
|
|
6190
6183
|
};
|
6191
6184
|
|
6192
6185
|
|
6186
|
+
/***/ }),
|
6187
|
+
|
6188
|
+
/***/ "e4ea":
|
6189
|
+
/***/ (function(module, exports, __webpack_require__) {
|
6190
|
+
|
6191
|
+
// extracted by mini-css-extract-plugin
|
6192
|
+
|
6193
6193
|
/***/ }),
|
6194
6194
|
|
6195
6195
|
/***/ "e62b":
|
@@ -9711,19 +9711,19 @@ var mainvue_type_template_id_61236700_staticRenderFns = []
|
|
9711
9711
|
|
9712
9712
|
// CONCATENATED MODULE: ./packages/twTable/src/main.vue?vue&type=template&id=61236700&
|
9713
9713
|
|
9714
|
-
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9b9f7194-vue-loader-template"}!./node_modules/_vue-loader@15.9.3@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.3@vue-loader/lib??vue-loader-options!./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=
|
9715
|
-
var
|
9714
|
+
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9b9f7194-vue-loader-template"}!./node_modules/_vue-loader@15.9.3@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.9.3@vue-loader/lib??vue-loader-options!./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=38c3c46c&scoped=true&
|
9715
|
+
var twTablevue_type_template_id_38c3c46c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{style:({position:'relative','padding-bottom':(_vm.tableInit.addNewRow || _vm.tableInit.pagination)?'70px':'0'})},[_c('a-table',{class:_vm.tableInit.tableClassName?_vm.tableInit.tableClassName+' twTableStyle':'twTableStyle',attrs:{"columns":_vm.columns.filter(function (v) { return !v.rowHide; }),"data-source":_vm.tableData,"pagination":false,"size":_vm.tableInit.size?_vm.tableInit.size:'small',"customRow":_vm.customRow,"bordered":_vm.tableInit.border,"rowKey":function (record) { return _vm.tableInit.rowId?record[_vm.tableInit.rowId]:record.tableItemKey },"customHeaderRow":_vm.customHeaderRow,"scroll":{y:_vm.tableInit.height?_vm.tableInit.height:'',x:_vm.tableInit.width?_vm.tableInit.width:''},"row-selection":_vm.tableInit.select?{ selectedRowKeys: _vm.selectedRowKeys,getCheckboxProps:_vm.getCheckboxProps,
|
9716
9716
|
onChange: _vm.onSelectChange,onSelect: _vm.onSelect,onSelectAll: _vm.onSelectAll,onSelectInvert: _vm.onSelectInvert }:null,"rowClassName":_vm.rowClassName,"showHeader":!_vm.tableInit.hideHeader},scopedSlots:_vm._u([_vm._l((_vm.columns),function(item,foreachIndex){return {key:item.dataIndex,fn:function(text, record, index){return _c('div',{key:foreachIndex+'w'},[(item.isEdit)?_c('span',{staticClass:"twFlex-start"},[(item.isEdit.required)?_c('span',{staticStyle:{"color":"red","margin-right":"5px"}},[_vm._v("*")]):_vm._e(),_c('span',{staticStyle:{"width":"90%"}},[(item.isEdit.type === 'textBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[item.dataIndex]?record[item.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item,index)},"input":function($event){return _vm.onCellFBC('change',record,item,index,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入',"size":"mini","clearable":"","disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"readonly":!!item.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item,index)},"input":function($event){return _vm.onCellFBC('change',record,item,index,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item,index)}},slot:"reference",model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}})],1)],1)],1):_vm._e(),(item.isEdit.type === 'numberBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[item.dataIndex]?record[item.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item,index)},"input":function($event){return _vm.onCellFBC('change',record,item,index,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入',"size":"mini","type":"number","clearable":"","disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"readonly":!!item.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item,index)},"input":function($event){return _vm.onCellFBC('change',record,item,index,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item,index)}},slot:"reference",model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}})],1)],1)],1):_vm._e(),(item.isEdit.type === 'textareaBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[item.dataIndex]?record[item.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":item.isEdit.boxWidth?item.isEdit.boxWidth:300,"trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item,index)},"input":function($event){return _vm.onCellFBC('change',record,item,index,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入',"size":"mini","type":"textarea","disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"readonly":!!item.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item,index)},"input":function($event){return _vm.onCellFBC('change',record,item,index,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item,index)}},slot:"reference",model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}})],1)],1)],1):_vm._e(),(item.isEdit.type === 'text')?_c('el-input',{attrs:{"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入',"size":"mini","clearable":"","disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"readonly":!!item.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item,index)},"input":function($event){return _vm.onCellFBC('change',record,item,index,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'number')?_c('el-input',{attrs:{"type":"number","size":"mini","clearable":"","disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item,index)},"input":function($event){return _vm.onCellFBC('change',record,item,index,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'textarea')?_c('el-input',{attrs:{"type":"textarea","size":"mini","disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item,index)},"input":function($event){return _vm.onCellFBC('change',record,item,index,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'selectCascade')?_c('el-cascader',{attrs:{"filterable":item.isEdit.selectSearch?item.isEdit.selectSearch:true,"options":item.isEdit.dataList,"size":"mini","collapse-tags":item.isEdit.showAllName !== 'showAll',"disabled":item.isEdit.disabled,"show-all-levels":item.isEdit.showAllLevel?item.isEdit.showAllLevel:false,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请选择',"clearable":"","props":{ expandTrigger: item.isEdit.trigger?item.isEdit.trigger:'hover',
|
9717
9717
|
multiple:item.isEdit.isSelectMore?item.isEdit.isSelectMore:false,
|
9718
9718
|
checkStrictly:item.isEdit.checkAny?item.isEdit.checkAny:false,
|
9719
9719
|
label:item.isEdit.changeLabel?item.isEdit.changeLabel:'label',
|
9720
9720
|
value:item.isEdit.changeValue?item.isEdit.changeValue:'value',
|
9721
9721
|
children:item.isEdit.changeChildren?item.isEdit.changeChildren:'children'
|
9722
|
-
}},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'select')?_c('el-select',{attrs:{"size":"mini","clearable":"","filterable":!!item.isEdit.selectSearch,"multiple":!!item.isEdit.isSelectMore,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请选择',"collapse-tags":item.isEdit.showAllName !== 'showAll',"disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(item){return _c('el-option',{key:item.value+Math.ceil(Math.random()*1000),attrs:{"label":item.name,"value":item.value}})}),1):_vm._e(),(item.isEdit.type === 'radio')?_c('el-radio-group',{attrs:{"disabled":!!item.isEdit.disabled || record.twRadioDisabled || record[item.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(radioItem,foreachIndex){return _c('el-radio',{key:foreachIndex+'e',attrs:{"label":radioItem.value}},[_vm._v(_vm._s(radioItem.name))])}),1):_vm._e(),(item.isEdit.type === 'checkBox')?_c('el-checkbox-group',{attrs:{"disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(checkItem,foreachIndex){return _c('el-checkbox',{key:foreachIndex+'r',attrs:{"label":checkItem.value}},[_vm._v(_vm._s(checkItem.name))])}),1):_vm._e(),(item.isEdit.type === 'switch')?_c('el-switch',{attrs:{"disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"active-color":item.isEdit.activeColor?item.isEdit.activeColor:'',"inactive-color":item.isEdit.defaultColor?item.isEdit.defaultColor:''},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'date')?_c('el-date-picker',{attrs:{"size":"mini","type":item.isEdit.dateType?item.isEdit.dateType:'date',"clearable":"","disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请选择',"value-format":item.isEdit.valueFormat,"format":item.isEdit.dateFormat,"picker-options":_vm.processDate(item)},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e()],1)]):_vm._e(),(item.isBtn)?_c('span',_vm._l((item.isBtn.btnList),function(itemBtn,foreachIndex){return ((itemBtn.isShowBtn && record[itemBtn.isShowBtn]) || !itemBtn.isShowBtn)?_c('el-button',{key:foreachIndex+'b',style:({'color':itemBtn.color?itemBtn.color:''}),attrs:{"type":"text","icon":itemBtn.icon},on:{"click":function($event){return _vm.clickBtn(record,itemBtn,index)}}},[_vm._v(_vm._s(itemBtn.name))]):_vm._e()}),1):_vm._e(),(item.isFiles)?_c('span',[(record[item.dataIndex] && record[item.dataIndex].length>0)?_c('span',[_c('el-popover',{attrs:{"placement":"bottom","width":"200","trigger":item.isFiles.trigger?item.isFiles.trigger:'hover'}},[_vm._l((record[item.dataIndex]),function(itemBtn,foreachIndex){return _c('section',{key:foreachIndex+'c'},[_c('div',{staticClass:"twFlex-between",staticStyle:{"margin-bottom":"10px","color":"#39f"}},[_c('span',{staticClass:"twEllipsis",staticStyle:{"max-width":"90%","cursor":"pointer"},attrs:{"title":itemBtn.fileName}},[_vm._v(_vm._s(itemBtn.fileName))]),_c('span',{staticStyle:{"color":"red","cursor":"pointer"},on:{"click":function($event){$event.stopPropagation();return _vm.clickBtn(record,item,index,{name:'删除',index:foreachIndex,childItem:itemBtn,list:record[item.dataIndex]})}}},[_c('i',{staticClass:"el-icon-delete"})])])])}),_c('el-button',{attrs:{"type":"primary","plain":"","size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.clickBtn(record,item,index)}}},[_vm._v("附件上传")]),_c('div',{staticClass:"twEllipsis",staticStyle:{"cursor":"pointer"},attrs:{"slot":"reference"},slot:"reference"},_vm._l((record[item.dataIndex]),function(itemBtn,foreachIndex){return _c('span',{key:foreachIndex+'v',staticStyle:{"color":"#39f"}},[_vm._v(" "+_vm._s(itemBtn.fileName)+", ")])}),0)],2)],1):_c('span',{style:({'color':item.isFiles.color?item.isFiles.color:'#39f','cursor':'pointer'}),on:{"click":function($event){return _vm.clickBtn(record,item,index)}}},[_vm._v(" "+_vm._s(item.isFiles.placeholder?item.isFiles.placeholder:'上传附件')+" ")])]):_vm._e(),(item.isSpecial)?_c('span',[(item.isSpecial.type === 'num')?_c('span',{class:item.isSpecial.class,on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(_vm.changeNum(text,item.isSpecial.numType)))]):_vm._e(),(item.isSpecial.type === 'img')?_c('img',{class:item.isSpecial.class,attrs:{"src":item.isSpecial.img},on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}}):_vm._e(),_vm._l((item.isSpecial.imgList),function(imgItem,foreachIndex){return (item.isSpecial.type === 'imgList' && imgItem.value === text)?_c('img',{key:foreachIndex+'t',class:item.isSpecial.class,attrs:{"src":imgItem.img},on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}}):_vm._e()}),(item.isSpecial.type === 'style')?_c('span',{class:item.isSpecial.class,style:(item.isSpecial.textStyle),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(text))]):_vm._e(),_vm._l((item.isSpecial.textStyleList),function(styleItem,foreachIndex){return (item.isSpecial.type === 'styleList' && styleItem.value === text)?_c('span',{key:foreachIndex+'y',class:item.isSpecial.class,style:(styleItem.style),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(text))]):_vm._e()})],2):_vm._e(),(item.twEllipsis)?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":text,"placement":"top-start"}},[_c('div',{class:item.twEllipsis===1?'twEllipsis':'twEllipsis2'},[_vm._v(_vm._s(text))])])],1):_vm._e(),(item.isState)?_c('span',_vm._l((item.isState.stateList),function(stateItem,foreachIndex){return (text === stateItem.value)?_c('span',{key:foreachIndex+'s',class:stateItem.class?stateItem.class+' cellSateStyle':'cellSateStyle',style:(stateItem.styles),on:{"click":function($event){item.isState.isClick?_vm.clickBtn(record,item,index):''}}},[_c('span',{staticStyle:{"display":"flex","align-items":"center","justify-content":"center"}},[(stateItem.icon)?_c('i',{class:stateItem.icon}):_vm._e(),(stateItem.img)?_c('img',{class:stateItem.imgClass,attrs:{"src":stateItem.img}}):_vm._e(),_c('span',[_vm._v(_vm._s(stateItem.name || text))])])]):_vm._e()}),0):_vm._e(),(item.isHtml)?_c('div',_vm._l((item.isHtml),function(htmlItem,foreachIndex){return (text === htmlItem.value)?_c('div',{key:foreachIndex+'d',domProps:{"innerHTML":_vm._s(htmlItem.html)}}):_vm._e()}),0):_vm._e(),(item.mention && !item.isSpecial && !item.isState && !item.isEdit && !item.isFiles && !item.isHtml && !item.isBtn)?_c('div',[_vm._v(" "+_vm._s(record[item.dataIndex])+" ")]):_vm._e()])}}}),_vm._l((_vm.columnsChild),function(itemChild,foreachIndex){return {key:itemChild.dataIndex,fn:function(text, record, index){return _c('div',{key:foreachIndex+'u'},[(itemChild.isEdit)?_c('span',[(itemChild.isEdit.required)?_c('span',{staticStyle:{"color":"red"}},[_vm._v("*")]):_vm._e(),(itemChild.isEdit.type === 'textBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入',"size":"mini","clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'numberBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入',"size":"mini","type":"number","clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'textareaBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入',"size":"mini","type":"textarea","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'text')?_c('el-input',{attrs:{"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入',"size":"mini","clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'number')?_c('el-input',{attrs:{"type":"number","size":"mini","clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'textarea')?_c('el-input',{attrs:{"type":"textarea","size":"mini","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'select')?_c('el-select',{attrs:{"size":"mini","clearable":"","filterable":!!itemChild.isEdit.selectSearch,"multiple":!!itemChild.isEdit.isSelectMore,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请选择',"collapse-tags":itemChild.isEdit.showAllName !== 'showAll',"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(item){return _c('el-option',{key:item.value+Math.ceil(Math.random()*1000),attrs:{"label":item.name,"value":item.value}})}),1):_vm._e(),(itemChild.isEdit.type === 'radio')?_c('el-radio-group',{attrs:{"disabled":!!itemChild.isEdit.disabled || record.twRadioDisabled || record[itemChild.dataIndex+'RadioDisabled']},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(radioItem,foreachIndex){return _c('el-radio',{key:foreachIndex+'i',attrs:{"label":radioItem.value}},[_vm._v(_vm._s(radioItem.name))])}),1):_vm._e(),(itemChild.isEdit.type === 'checkBox')?_c('el-checkbox-group',{attrs:{"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(checkItem,foreachIndex){return _c('el-checkbox',{key:foreachIndex+'o',attrs:{"label":checkItem.value}},[_vm._v(_vm._s(checkItem.name))])}),1):_vm._e(),(itemChild.isEdit.type === 'switch')?_c('el-switch',{attrs:{"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"active-color":itemChild.isEdit.activeColor?itemChild.isEdit.activeColor:'',"inactive-color":itemChild.isEdit.defaultColor?itemChild.isEdit.defaultColor:''},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'date')?_c('el-date-picker',{attrs:{"size":"mini","type":itemChild.isEdit.dateType?itemChild.isEdit.dateType:'date',"clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请选择',"value-format":itemChild.isEdit.valueFormat,"format":itemChild.isEdit.dateFormat,"picker-options":_vm.processDate(itemChild)},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e()],1):_vm._e(),(itemChild.isBtn)?_c('span',_vm._l((itemChild.isBtn.btnList),function(itemBtn,foreachIndex){return ((itemBtn.isShowBtn && record[itemBtn.isShowBtn]) || !itemBtn.isShowBtn)?_c('el-button',{key:foreachIndex+'p',style:({'color':itemBtn.color?itemBtn.color:''}),attrs:{"type":"text","icon":itemBtn.icon},on:{"click":function($event){return _vm.clickBtn(record,itemBtn,index)}}},[_vm._v(_vm._s(itemBtn.name))]):_vm._e()}),1):_vm._e(),(itemChild.isSpecial)?_c('span',[(itemChild.isSpecial.type === 'num')?_c('span',{class:itemChild.isSpecial.class,on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(_vm.changeNum(text,itemChild.isSpecial.numType)))]):_vm._e(),(itemChild.isSpecial.type === 'img')?_c('img',{class:itemChild.isSpecial.class,attrs:{"src":itemChild.isSpecial.img},on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}}):_vm._e(),_vm._l((itemChild.isSpecial.imgList),function(imgItem,foreachIndex){return (itemChild.isSpecial.type === 'imgList' && imgItem.value === text)?_c('img',{key:foreachIndex+'f',class:itemChild.isSpecial.class,attrs:{"src":imgItem.img},on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}}):_vm._e()}),(itemChild.isSpecial.type === 'style')?_c('span',{class:itemChild.isSpecial.class,style:(itemChild.isSpecial.textStyle),on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(text))]):_vm._e(),_vm._l((itemChild.isSpecial.textStyleList),function(styleItem,foreachIndex){return (itemChild.isSpecial.type === 'styleList' && styleItem.value === text)?_c('span',{key:foreachIndex+'p',class:itemChild.isSpecial.class,style:(styleItem.style),on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(text))]):_vm._e()})],2):_vm._e(),(itemChild.twEllipsis)?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":text,"placement":"top-start"}},[_c('div',{class:itemChild.twEllipsis===1?'twEllipsis':'twEllipsis2'},[_vm._v(_vm._s(text))])])],1):_vm._e(),(itemChild.isState)?_c('span',_vm._l((itemChild.isState.stateList),function(stateItem,foreachIndex){return (text === stateItem.value)?_c('span',{key:foreachIndex+'a',class:stateItem.class?stateItem.class+' cellSateStyle':'cellSateStyle',style:(stateItem.styles),on:{"click":function($event){itemChild.isState.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_c('span',{staticStyle:{"display":"flex","align-items":"center"}},[(stateItem.icon)?_c('i',{class:stateItem.icon}):_vm._e(),(stateItem.img)?_c('img',{attrs:{"src":stateItem.img}}):_vm._e(),_c('span',[_vm._v(_vm._s(stateItem.name || text))])])]):_vm._e()}),0):_vm._e(),(itemChild.isHtml)?_c('div',_vm._l((itemChild.isHtml),function(htmlItem,foreachIndex){return (text === htmlItem.value)?_c('div',{key:foreachIndex+'a',domProps:{"innerHTML":_vm._s(htmlItem.html)}}):_vm._e()}),0):_vm._e(),(itemChild.mention && !itemChild.isSpecial && !itemChild.isState && !itemChild.isEdit && !itemChild.isFiles && !itemChild.isHtml && !itemChild.isBtn)?_c('div',[_vm._v(" "+_vm._s(record[itemChild.dataIndex])+" ")]):_vm._e()])}}})],null,true)},[_vm._l((_vm.columns),function(headItem,headIndex){return _c('template',{slot:headItem.iconName},[_c('div',{staticClass:"twFlex-start"},[_c('span',[_vm._v(_vm._s(headItem.iconName))]),(headItem.mention)?_c('el-popover',{attrs:{"placement":headItem.mention.direct?headItem.mention.direct:'left',"width":headItem.mention.width?headItem.mention.width:'250',"trigger":headItem.mention.trigger?headItem.mention.trigger:'hover'}},[_c('section',{staticClass:"mentionText",style:(headItem.mention.textStyle)},[_vm._v(_vm._s(headItem.mention.text))]),(headItem.mention)?_c('i',{class:headItem.mention.icon?headItem.mention.icon+' inputMention':'el-icon-warning-outline inputMention',style:(headItem.mention.iconStyle),attrs:{"slot":"reference"},slot:"reference"}):_vm._e()]):_vm._e()],1)])})],2),(_vm.tableInit.addNewRow)?_c('div',{staticClass:"addLine"},[_c('el-button',{attrs:{"type":"text","icon":"el-icon-plus"},on:{"click":_vm.addLine}},[_vm._v("添加")])],1):_vm._e(),(_vm.tableInit.pagination)?_c('PaginationAnt',{staticStyle:{"float":"right"},attrs:{"total":_vm.tableInit.pagination.total,"showJumper":_vm.tableInit.pagination.showJumper,"hideTotal":_vm.tableInit.pagination.hideTotal,"defaultPageSize":_vm.tableInit.pagination.pageSize,"currPage":_vm.tableInit.pagination.currPage,"pageSizes":_vm.tableInit.pagination.sizeList?_vm.tableInit.pagination.sizeList:['10','20','30','50','100']},on:{"paginaFunc":_vm.paginaFunc}}):_vm._e()],1)}
|
9723
|
-
var
|
9722
|
+
}},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'select')?_c('el-select',{attrs:{"size":"mini","clearable":"","filterable":!!item.isEdit.selectSearch,"multiple":!!item.isEdit.isSelectMore,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请选择',"collapse-tags":item.isEdit.showAllName !== 'showAll',"disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(item){return _c('el-option',{key:item.value+Math.ceil(Math.random()*1000),attrs:{"label":item.name,"value":item.value}})}),1):_vm._e(),(item.isEdit.type === 'radio')?_c('el-radio-group',{attrs:{"disabled":!!item.isEdit.disabled || record.twRadioDisabled || record[item.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(radioItem,foreachIndex){return _c('el-radio',{key:foreachIndex+'e',attrs:{"label":radioItem.value}},[_vm._v(_vm._s(radioItem.name))])}),1):_vm._e(),(item.isEdit.type === 'checkBox')?_c('el-checkbox-group',{attrs:{"disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}},_vm._l((item.isEdit.dataList),function(checkItem,foreachIndex){return _c('el-checkbox',{key:foreachIndex+'r',attrs:{"label":checkItem.value}},[_vm._v(_vm._s(checkItem.name))])}),1):_vm._e(),(item.isEdit.type === 'switch')?_c('el-switch',{attrs:{"disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"active-color":item.isEdit.activeColor?item.isEdit.activeColor:'',"inactive-color":item.isEdit.defaultColor?item.isEdit.defaultColor:''},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e(),(item.isEdit.type === 'date')?_c('el-date-picker',{attrs:{"size":"mini","type":item.isEdit.dateType?item.isEdit.dateType:'date',"clearable":"","disabled":!!item.isEdit.disabled || record[item.dataIndex+'Disabled'],"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请选择',"value-format":item.isEdit.valueFormat,"format":item.isEdit.dateFormat,"picker-options":_vm.processDate(item)},on:{"change":function($event){return _vm.clickBtn(record,item,index)}},model:{value:(record[item.dataIndex]),callback:function ($$v) {_vm.$set(record, item.dataIndex, $$v)},expression:"record[item.dataIndex]"}}):_vm._e()],1)]):_vm._e(),(item.isBtn)?_c('span',_vm._l((item.isBtn.btnList),function(itemBtn,foreachIndex){return ((itemBtn.isShowBtn && record[itemBtn.isShowBtn]) || !itemBtn.isShowBtn)?_c('el-button',{key:foreachIndex+'b',style:({'color':itemBtn.color?itemBtn.color:''}),attrs:{"type":"text","icon":itemBtn.icon},on:{"click":function($event){return _vm.clickBtn(record,itemBtn,index)}}},[_vm._v(_vm._s(itemBtn.name))]):_vm._e()}),1):_vm._e(),(item.isFiles)?_c('span',[(record[item.dataIndex] && record[item.dataIndex].length>0)?_c('span',[_c('el-popover',{attrs:{"placement":"bottom","width":"200","trigger":item.isFiles.trigger?item.isFiles.trigger:'hover'}},[_vm._l((record[item.dataIndex]),function(itemBtn,foreachIndex){return _c('section',{key:foreachIndex+'c'},[_c('div',{staticClass:"twFlex-between",staticStyle:{"margin-bottom":"10px","color":"#39f"}},[_c('span',{staticClass:"twEllipsis",staticStyle:{"max-width":"90%","cursor":"pointer"},attrs:{"title":itemBtn.fileName}},[_vm._v(_vm._s(itemBtn.fileName))]),_c('span',{staticStyle:{"color":"red","cursor":"pointer"},on:{"click":function($event){$event.stopPropagation();return _vm.clickBtn(record,item,index,{name:'删除',index:foreachIndex,childItem:itemBtn,list:record[item.dataIndex]})}}},[_c('i',{staticClass:"el-icon-delete"})])])])}),_c('el-button',{attrs:{"type":"primary","plain":"","size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.clickBtn(record,item,index)}}},[_vm._v("附件上传")]),_c('div',{staticClass:"twEllipsis",staticStyle:{"cursor":"pointer"},attrs:{"slot":"reference"},slot:"reference"},_vm._l((record[item.dataIndex]),function(itemBtn,foreachIndex){return _c('span',{key:foreachIndex+'v',staticStyle:{"color":"#39f"}},[_vm._v(" "+_vm._s(itemBtn.fileName)+", ")])}),0)],2)],1):_c('span',{style:({'color':item.isFiles.color?item.isFiles.color:'#39f','cursor':'pointer'}),on:{"click":function($event){return _vm.clickBtn(record,item,index)}}},[_vm._v(" "+_vm._s(item.isFiles.placeholder?item.isFiles.placeholder:'上传附件')+" ")])]):_vm._e(),(item.isSpecial)?_c('span',[(item.isSpecial.type === 'num')?_c('span',{class:item.isSpecial.class,on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(_vm.changeNum(text,item.isSpecial.numType)))]):_vm._e(),(item.isSpecial.type === 'img')?_c('img',{class:item.isSpecial.class,attrs:{"src":item.isSpecial.img},on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}}):_vm._e(),_vm._l((item.isSpecial.imgList),function(imgItem,foreachIndex){return (item.isSpecial.type === 'imgList' && imgItem.value === text)?_c('img',{key:foreachIndex+'t',class:item.isSpecial.class,attrs:{"src":imgItem.img},on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}}):_vm._e()}),(item.isSpecial.type === 'style')?_c('span',{class:item.isSpecial.class,style:(item.isSpecial.textStyle),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(text))]):_vm._e(),_vm._l((item.isSpecial.textStyleList),function(styleItem,foreachIndex){return (item.isSpecial.type === 'styleList' && styleItem.value === text)?_c('span',{key:foreachIndex+'y',class:item.isSpecial.class,style:(styleItem.style),on:{"click":function($event){item.isSpecial.isClick?_vm.clickBtn(record,item,index):''}}},[_vm._v(_vm._s(text))]):_vm._e()})],2):_vm._e(),(item.twEllipsis)?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":text,"placement":"top-start"}},[_c('div',{class:item.twEllipsis===1?'twEllipsis':'twEllipsis2'},[_vm._v(_vm._s(text))])])],1):_vm._e(),(item.isState)?_c('span',_vm._l((item.isState.stateList),function(stateItem,foreachIndex){return (text === stateItem.value)?_c('span',{key:foreachIndex+'s',class:stateItem.class?stateItem.class+' cellSateStyle':'cellSateStyle',style:(stateItem.styles),on:{"click":function($event){item.isState.isClick?_vm.clickBtn(record,item,index):''}}},[_c('span',{staticStyle:{"display":"flex","align-items":"center","justify-content":"center"}},[(stateItem.icon)?_c('i',{class:stateItem.icon}):_vm._e(),(stateItem.img)?_c('img',{class:stateItem.imgClass,attrs:{"src":stateItem.img}}):_vm._e(),_c('span',[_vm._v(_vm._s(stateItem.name || text))])])]):_vm._e()}),0):_vm._e(),(item.isHtml)?_c('div',_vm._l((item.isHtml),function(htmlItem,foreachIndex){return (text === htmlItem.value)?_c('div',{key:foreachIndex+'d',domProps:{"innerHTML":_vm._s(htmlItem.html)}}):_vm._e()}),0):_vm._e(),(item.mention && !item.isSpecial && !item.isState && !item.isEdit && !item.isFiles && !item.isHtml && !item.isBtn)?_c('div',[_vm._v(" "+_vm._s(record[item.dataIndex])+" ")]):_vm._e()])}}}),_vm._l((_vm.columnsChild),function(itemChild,foreachIndex){return {key:itemChild.dataIndex,fn:function(text, record, index){return _c('div',{key:foreachIndex+'u'},[(itemChild.isEdit)?_c('span',[(itemChild.isEdit.required)?_c('span',{staticStyle:{"color":"red"}},[_vm._v("*")]):_vm._e(),(itemChild.isEdit.type === 'textBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入',"size":"mini","clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'numberBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入',"size":"mini","type":"number","clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'textareaBox')?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":record[itemChild.dataIndex]?record[itemChild.dataIndex]+'':'',"placement":"top-start"}},[_c('el-popover',{attrs:{"placement":"bottom","width":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}),_c('el-input',{attrs:{"slot":"reference","placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入',"size":"mini","type":"textarea","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},slot:"reference",model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}})],1)],1)],1):_vm._e(),(itemChild.isEdit.type === 'text')?_c('el-input',{attrs:{"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入',"size":"mini","clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'number')?_c('el-input',{attrs:{"type":"number","size":"mini","clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'textarea')?_c('el-input',{attrs:{"type":"textarea","size":"mini","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"readonly":!!itemChild.isEdit.readonly,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,itemChild)},"input":function($event){return _vm.onCellFBC('change',record,itemChild,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,itemChild)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'select')?_c('el-select',{attrs:{"size":"mini","clearable":"","filterable":!!itemChild.isEdit.selectSearch,"multiple":!!itemChild.isEdit.isSelectMore,"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请选择',"collapse-tags":itemChild.isEdit.showAllName !== 'showAll',"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(item){return _c('el-option',{key:item.value+Math.ceil(Math.random()*1000),attrs:{"label":item.name,"value":item.value}})}),1):_vm._e(),(itemChild.isEdit.type === 'radio')?_c('el-radio-group',{attrs:{"disabled":!!itemChild.isEdit.disabled || record.twRadioDisabled || record[itemChild.dataIndex+'RadioDisabled']},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(radioItem,foreachIndex){return _c('el-radio',{key:foreachIndex+'i',attrs:{"label":radioItem.value}},[_vm._v(_vm._s(radioItem.name))])}),1):_vm._e(),(itemChild.isEdit.type === 'checkBox')?_c('el-checkbox-group',{attrs:{"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled']},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}},_vm._l((itemChild.isEdit.dataList),function(checkItem,foreachIndex){return _c('el-checkbox',{key:foreachIndex+'o',attrs:{"label":checkItem.value}},[_vm._v(_vm._s(checkItem.name))])}),1):_vm._e(),(itemChild.isEdit.type === 'switch')?_c('el-switch',{attrs:{"disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"active-color":itemChild.isEdit.activeColor?itemChild.isEdit.activeColor:'',"inactive-color":itemChild.isEdit.defaultColor?itemChild.isEdit.defaultColor:''},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e(),(itemChild.isEdit.type === 'date')?_c('el-date-picker',{attrs:{"size":"mini","type":itemChild.isEdit.dateType?itemChild.isEdit.dateType:'date',"clearable":"","disabled":!!itemChild.isEdit.disabled || record[itemChild.dataIndex+'Disabled'],"placeholder":itemChild.isEdit.placeholder?itemChild.isEdit.placeholder:'请选择',"value-format":itemChild.isEdit.valueFormat,"format":itemChild.isEdit.dateFormat,"picker-options":_vm.processDate(itemChild)},on:{"change":function($event){return _vm.clickBtn(record,itemChild,index)}},model:{value:(record[itemChild.dataIndex]),callback:function ($$v) {_vm.$set(record, itemChild.dataIndex, $$v)},expression:"record[itemChild.dataIndex]"}}):_vm._e()],1):_vm._e(),(itemChild.isBtn)?_c('span',_vm._l((itemChild.isBtn.btnList),function(itemBtn,foreachIndex){return ((itemBtn.isShowBtn && record[itemBtn.isShowBtn]) || !itemBtn.isShowBtn)?_c('el-button',{key:foreachIndex+'p',style:({'color':itemBtn.color?itemBtn.color:''}),attrs:{"type":"text","icon":itemBtn.icon},on:{"click":function($event){return _vm.clickBtn(record,itemBtn,index)}}},[_vm._v(_vm._s(itemBtn.name))]):_vm._e()}),1):_vm._e(),(itemChild.isSpecial)?_c('span',[(itemChild.isSpecial.type === 'num')?_c('span',{class:itemChild.isSpecial.class,on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(_vm.changeNum(text,itemChild.isSpecial.numType)))]):_vm._e(),(itemChild.isSpecial.type === 'img')?_c('img',{class:itemChild.isSpecial.class,attrs:{"src":itemChild.isSpecial.img},on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}}):_vm._e(),_vm._l((itemChild.isSpecial.imgList),function(imgItem,foreachIndex){return (itemChild.isSpecial.type === 'imgList' && imgItem.value === text)?_c('img',{key:foreachIndex+'f',class:itemChild.isSpecial.class,attrs:{"src":imgItem.img},on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}}):_vm._e()}),(itemChild.isSpecial.type === 'style')?_c('span',{class:itemChild.isSpecial.class,style:(itemChild.isSpecial.textStyle),on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(text))]):_vm._e(),_vm._l((itemChild.isSpecial.textStyleList),function(styleItem,foreachIndex){return (itemChild.isSpecial.type === 'styleList' && styleItem.value === text)?_c('span',{key:foreachIndex+'p',class:itemChild.isSpecial.class,style:(styleItem.style),on:{"click":function($event){itemChild.isSpecial.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_vm._v(_vm._s(text))]):_vm._e()})],2):_vm._e(),(itemChild.twEllipsis)?_c('span',[_c('el-tooltip',{staticClass:"item",attrs:{"effect":"dark","content":text,"placement":"top-start"}},[_c('div',{class:itemChild.twEllipsis===1?'twEllipsis':'twEllipsis2'},[_vm._v(_vm._s(text))])])],1):_vm._e(),(itemChild.isState)?_c('span',_vm._l((itemChild.isState.stateList),function(stateItem,foreachIndex){return (text === stateItem.value)?_c('span',{key:foreachIndex+'a',class:stateItem.class?stateItem.class+' cellSateStyle':'cellSateStyle',style:(stateItem.styles),on:{"click":function($event){itemChild.isState.isClick?_vm.clickBtn(record,itemChild,index):''}}},[_c('span',{staticStyle:{"display":"flex","align-items":"center"}},[(stateItem.icon)?_c('i',{class:stateItem.icon}):_vm._e(),(stateItem.img)?_c('img',{attrs:{"src":stateItem.img}}):_vm._e(),_c('span',[_vm._v(_vm._s(stateItem.name || text))])])]):_vm._e()}),0):_vm._e(),(itemChild.isHtml)?_c('div',_vm._l((itemChild.isHtml),function(htmlItem,foreachIndex){return (text === htmlItem.value)?_c('div',{key:foreachIndex+'a',domProps:{"innerHTML":_vm._s(htmlItem.html)}}):_vm._e()}),0):_vm._e(),(itemChild.mention && !itemChild.isSpecial && !itemChild.isState && !itemChild.isEdit && !itemChild.isFiles && !itemChild.isHtml && !itemChild.isBtn)?_c('div',[_vm._v(" "+_vm._s(record[itemChild.dataIndex])+" ")]):_vm._e()])}}})],null,true)},[_vm._l((_vm.columns),function(headItem,headIndex){return _c('template',{slot:headItem.iconName},[_c('div',{staticClass:"twFlex-start"},[(headItem.isHtmlHead)?_c('div',{domProps:{"innerHTML":_vm._s(headItem.iconName)}}):_c('div',[_vm._v(_vm._s(headItem.iconName))]),(headItem.mention)?_c('el-popover',{attrs:{"placement":headItem.mention.direct?headItem.mention.direct:'left',"width":headItem.mention.width?headItem.mention.width:'250',"trigger":headItem.mention.trigger?headItem.mention.trigger:'hover'}},[_c('section',{staticClass:"mentionText",style:(headItem.mention.textStyle)},[_vm._v(_vm._s(headItem.mention.text))]),(headItem.mention)?_c('i',{class:headItem.mention.icon?headItem.mention.icon+' inputMention':'el-icon-warning-outline inputMention',style:(headItem.mention.iconStyle),attrs:{"slot":"reference"},slot:"reference"}):_vm._e()]):_vm._e()],1)])}),_vm._l((_vm.columns),function(headItem,headIndex){return _c('template',{slot:headItem.htmlName},[_c('div',{domProps:{"innerHTML":_vm._s(headItem.htmlName)}})])})],2),(_vm.tableInit.addNewRow)?_c('div',{staticClass:"addLine"},[_c('el-button',{attrs:{"type":"text","icon":"el-icon-plus"},on:{"click":_vm.addLine}},[_vm._v("添加")])],1):_vm._e(),(_vm.tableInit.pagination)?_c('PaginationAnt',{staticStyle:{"float":"right"},attrs:{"total":_vm.tableInit.pagination.total,"showJumper":_vm.tableInit.pagination.showJumper,"hideTotal":_vm.tableInit.pagination.hideTotal,"defaultPageSize":_vm.tableInit.pagination.pageSize,"currPage":_vm.tableInit.pagination.currPage,"pageSizes":_vm.tableInit.pagination.sizeList?_vm.tableInit.pagination.sizeList:['10','20','30','50','100']},on:{"paginaFunc":_vm.paginaFunc}}):_vm._e()],1)}
|
9723
|
+
var twTablevue_type_template_id_38c3c46c_scoped_true_staticRenderFns = []
|
9724
9724
|
|
9725
9725
|
|
9726
|
-
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=
|
9726
|
+
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=38c3c46c&scoped=true&
|
9727
9727
|
|
9728
9728
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.6.5@core-js/modules/es.array.for-each.js
|
9729
9729
|
var es_array_for_each = __webpack_require__("fe59");
|
@@ -10080,6 +10080,11 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10080
10080
|
//
|
10081
10081
|
//
|
10082
10082
|
//
|
10083
|
+
//
|
10084
|
+
//
|
10085
|
+
//
|
10086
|
+
//
|
10087
|
+
//
|
10083
10088
|
|
10084
10089
|
/* harmony default export */ var twTablevue_type_script_lang_js_ = ({
|
10085
10090
|
components: {
|
@@ -10225,13 +10230,16 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10225
10230
|
}
|
10226
10231
|
},
|
10227
10232
|
customHeaderRow: function customHeaderRow(column) {
|
10233
|
+
var _this2 = this;
|
10234
|
+
|
10228
10235
|
var headerClassName = this.tableInit.tableHeadClass ? this.tableInit.tableHeadClass + ' tableHeadClass' : 'tableHeadClass';
|
10229
10236
|
column.forEach(function (e, index) {
|
10230
10237
|
column[index].className = headerClassName;
|
10238
|
+
column[index].align = _this2.tableInit.headAlign || 'center';
|
10231
10239
|
});
|
10232
10240
|
},
|
10233
10241
|
initTableData: function initTableData(list) {
|
10234
|
-
var
|
10242
|
+
var _this3 = this;
|
10235
10243
|
|
10236
10244
|
//表单数据初始化
|
10237
10245
|
list.map(function (i, j) {
|
@@ -10247,7 +10255,7 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10247
10255
|
};
|
10248
10256
|
};
|
10249
10257
|
|
10250
|
-
|
10258
|
+
_this3.combineRow(i.dataIndex); //行合并
|
10251
10259
|
|
10252
10260
|
}
|
10253
10261
|
|
@@ -10266,7 +10274,7 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10266
10274
|
i.onFilterDropdownVisibleChange = function (visible) {
|
10267
10275
|
if (visible) {
|
10268
10276
|
setTimeout(function () {
|
10269
|
-
|
10277
|
+
_this3.searchInput.focus();
|
10270
10278
|
}, 0);
|
10271
10279
|
}
|
10272
10280
|
};
|
@@ -10279,7 +10287,7 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10279
10287
|
};
|
10280
10288
|
}
|
10281
10289
|
|
10282
|
-
if (i.isEdit || i.isFiles || i.isBtn || i.isSpecial || i.isState || i.twEllipsis || i.isHtml || i.mention) {
|
10290
|
+
if (i.isEdit || i.isFiles || i.isBtn || i.isSpecial || i.isState || i.twEllipsis || i.isHtml || i.mention || i.isHtmlHead) {
|
10283
10291
|
if (i.mention) {
|
10284
10292
|
i.iconName = JSON.parse(JSON.stringify(i.title));
|
10285
10293
|
i.scopedSlots = {
|
@@ -10287,6 +10295,13 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10287
10295
|
title: i.iconName
|
10288
10296
|
};
|
10289
10297
|
delete i.title;
|
10298
|
+
} else if (i.isHtmlHead) {
|
10299
|
+
i.htmlName = JSON.parse(JSON.stringify(i.title));
|
10300
|
+
i.scopedSlots = {
|
10301
|
+
customRender: i.dataIndex,
|
10302
|
+
title: i.htmlName
|
10303
|
+
};
|
10304
|
+
delete i.title;
|
10290
10305
|
} else {
|
10291
10306
|
i.scopedSlots = {
|
10292
10307
|
customRender: i.dataIndex
|
@@ -10296,7 +10311,7 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10296
10311
|
|
10297
10312
|
if (i.isEdit && i.isEdit.type === 'checkBox') {
|
10298
10313
|
//列是checkBox的时候,需要预制个空数组
|
10299
|
-
|
10314
|
+
_this3.tableData.map(function (j) {
|
10300
10315
|
if (j[i.dataIndex] && Object.prototype.toString.call(j[i.dataIndex]) !== '[object Array]') {
|
10301
10316
|
j[i.dataIndex] = [];
|
10302
10317
|
}
|
@@ -10305,9 +10320,9 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10305
10320
|
|
10306
10321
|
if (i.children && i.children.length > 0) {
|
10307
10322
|
//递归
|
10308
|
-
|
10323
|
+
_this3.initTableData(i.children);
|
10309
10324
|
|
10310
|
-
|
10325
|
+
_this3.columnsChild = _this3.columnsChild.concat(i.children);
|
10311
10326
|
}
|
10312
10327
|
});
|
10313
10328
|
},
|
@@ -10400,8 +10415,8 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10400
10415
|
});
|
10401
10416
|
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=script&lang=js&
|
10402
10417
|
/* harmony default export */ var twTable_twTablevue_type_script_lang_js_ = (twTablevue_type_script_lang_js_);
|
10403
|
-
// EXTERNAL MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=style&index=0&id=
|
10404
|
-
var
|
10418
|
+
// EXTERNAL MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=style&index=0&id=38c3c46c&scoped=true&lang=scss&
|
10419
|
+
var twTablevue_type_style_index_0_id_38c3c46c_scoped_true_lang_scss_ = __webpack_require__("4aa3");
|
10405
10420
|
|
10406
10421
|
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue
|
10407
10422
|
|
@@ -10414,11 +10429,11 @@ var twTablevue_type_style_index_0_id_623ece2c_scoped_true_lang_scss_ = __webpack
|
|
10414
10429
|
|
10415
10430
|
var twTable_component = Object(componentNormalizer["a" /* default */])(
|
10416
10431
|
twTable_twTablevue_type_script_lang_js_,
|
10417
|
-
|
10418
|
-
|
10432
|
+
twTablevue_type_template_id_38c3c46c_scoped_true_render,
|
10433
|
+
twTablevue_type_template_id_38c3c46c_scoped_true_staticRenderFns,
|
10419
10434
|
false,
|
10420
10435
|
null,
|
10421
|
-
"
|
10436
|
+
"38c3c46c",
|
10422
10437
|
null
|
10423
10438
|
|
10424
10439
|
)
|