twmodule 0.0.97 → 0.0.99
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/lib/twComp.common.js +59 -41
- package/lib/twComp.css +1 -1
- package/lib/twComp.umd.js +59 -41
- package/lib/twComp.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/twComp.common.js
CHANGED
@@ -448,6 +448,13 @@ if (typeof store.inspectSource != 'function') {
|
|
448
448
|
module.exports = store.inspectSource;
|
449
449
|
|
450
450
|
|
451
|
+
/***/ }),
|
452
|
+
|
453
|
+
/***/ "1332":
|
454
|
+
/***/ (function(module, exports, __webpack_require__) {
|
455
|
+
|
456
|
+
// extracted by mini-css-extract-plugin
|
457
|
+
|
451
458
|
/***/ }),
|
452
459
|
|
453
460
|
/***/ "1784":
|
@@ -3014,6 +3021,17 @@ module.exports = function (namespace, method) {
|
|
3014
3021
|
};
|
3015
3022
|
|
3016
3023
|
|
3024
|
+
/***/ }),
|
3025
|
+
|
3026
|
+
/***/ "6eb1":
|
3027
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3028
|
+
|
3029
|
+
"use strict";
|
3030
|
+
/* 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_bcc60336_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1332");
|
3031
|
+
/* 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_bcc60336_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_bcc60336_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
3032
|
+
/* unused harmony reexport * */
|
3033
|
+
/* 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_bcc60336_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
3034
|
+
|
3017
3035
|
/***/ }),
|
3018
3036
|
|
3019
3037
|
/***/ "6fdf":
|
@@ -5113,17 +5131,6 @@ $({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
|
|
5113
5131
|
addToUnscopables('includes');
|
5114
5132
|
|
5115
5133
|
|
5116
|
-
/***/ }),
|
5117
|
-
|
5118
|
-
/***/ "b294":
|
5119
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5120
|
-
|
5121
|
-
"use strict";
|
5122
|
-
/* 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_c628d85e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d1df");
|
5123
|
-
/* 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_c628d85e_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_c628d85e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
5124
|
-
/* unused harmony reexport * */
|
5125
|
-
/* 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_c628d85e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
|
5126
|
-
|
5127
5134
|
/***/ }),
|
5128
5135
|
|
5129
5136
|
/***/ "b2a2":
|
@@ -5807,13 +5814,6 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgCAYAAAFs
|
|
5807
5814
|
|
5808
5815
|
/***/ }),
|
5809
5816
|
|
5810
|
-
/***/ "d1df":
|
5811
|
-
/***/ (function(module, exports, __webpack_require__) {
|
5812
|
-
|
5813
|
-
// extracted by mini-css-extract-plugin
|
5814
|
-
|
5815
|
-
/***/ }),
|
5816
|
-
|
5817
5817
|
/***/ "d1fd":
|
5818
5818
|
/***/ (function(module, exports, __webpack_require__) {
|
5819
5819
|
|
@@ -9652,24 +9652,24 @@ var mainvue_type_template_id_27fed567_staticRenderFns = []
|
|
9652
9652
|
|
9653
9653
|
// CONCATENATED MODULE: ./packages/twTable/src/main.vue?vue&type=template&id=27fed567&
|
9654
9654
|
|
9655
|
-
// 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=
|
9656
|
-
var
|
9655
|
+
// 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=bcc60336&scoped=true&
|
9656
|
+
var twTablevue_type_template_id_bcc60336_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,"bordered":_vm.tableInit.border,"rowKey":function (record) { return record.tableItemKey },"pagination":false,"size":_vm.tableInit.size?_vm.tableInit.size:'small',"customRow":_vm.customRow,"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,onChange: _vm.onSelectChange,getCheckboxProps:_vm.getCheckboxProps }:null,"rowClassName":_vm.rowClassName,"showHeader":!_vm.tableInit.hideHeader},scopedSlots:_vm._u([{key:"filterDropdown",fn:function(ref){
|
9657
9657
|
var setSelectedKeys = ref.setSelectedKeys;
|
9658
9658
|
var selectedKeys = ref.selectedKeys;
|
9659
9659
|
var confirm = ref.confirm;
|
9660
9660
|
var clearFilters = ref.clearFilters;
|
9661
9661
|
var column = ref.column;
|
9662
|
-
return _c('div',{staticStyle:{"padding":"8px"}},[_c('a-input',{directives:[{name:"ant-ref",rawName:"v-ant-ref",value:(function (c) { return (_vm.searchInput = c); }),expression:"c => (searchInput = c)"}],staticStyle:{"width":"188px","margin-bottom":"8px","display":"block"},attrs:{"placeholder":("搜索 " + (column.title)),"value":selectedKeys[0]},on:{"change":function (e) { return setSelectedKeys(e.target.value ? [e.target.value] : []); },"pressEnter":function () { return _vm.handleSearch(selectedKeys, confirm, column.dataIndex); }}}),_c('a-button',{staticStyle:{"width":"80px","margin-right":"8px","padding-top":"1px"},attrs:{"type":"primary","icon":"search","size":"small"},on:{"click":function () { return _vm.handleSearch(selectedKeys, confirm, column.dataIndex); }}},[_vm._v(" 查询 ")]),_c('a-button',{staticStyle:{"width":"80px","padding-top":"1px"},attrs:{"size":"small"},on:{"click":function () { return _vm.handleReset(clearFilters); }}},[_vm._v(" 重置 ")])],1)}},{key:"filterIcon",fn:function(filtered){return _c('a-icon',{style:({ color: filtered ? '#108ee9' : undefined }),attrs:{"type":"search"}})}},{key:"customRender",fn:function(text, record, index, column){return [(_vm.searchText && _vm.searchedColumn === column.dataIndex)?_c('span',[_vm._l((text.toString().split(new RegExp(("(?<=" + _vm.searchText + ")|(?=" + _vm.searchText + ")"), 'i'))),function(fragment,foreachIndex){return [(fragment.toLowerCase() === _vm.searchText.toLowerCase())?_c('mark',{staticClass:"highlight"},[_vm._v(_vm._s(fragment))]):[_vm._v(_vm._s(fragment))]]})],2):[_vm._v(" "+_vm._s(text)+" ")]]}},_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',[(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,"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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,"readonly":!!item.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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,"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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,"readonly":!!item.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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":"300","trigger":"click"}},[_c('el-input',{staticClass:"cellTextarea",attrs:{"type":"textarea","size":"mini","rows":3,"disabled":!!item.isEdit.disabled,"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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,"readonly":!!item.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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,"readonly":!!item.isEdit.readonly},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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,"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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,"readonly":!!item.isEdit.readonly,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请输入'},on:{"focus":function($event){return _vm.onCellFBC('focus',record,item)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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',
|
9663
|
-
|
9664
|
-
|
9665
|
-
|
9666
|
-
|
9667
|
-
|
9668
|
-
}},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},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},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},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,"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,"placeholder":item.isEdit.placeholder?item.isEdit.placeholder:'请选择',"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()])}}}),_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.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,"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,"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,"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,"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,"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,"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,"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,"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,"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},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},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},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,"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()],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()])}}})],null,true)}),(_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,"defaultPageSize":_vm.tableInit.pagination.pageSize,"currPage":_vm.tableInit.pagination.currPage,"pageSizes":[10,20,30,50,100]},on:{"paginaFunc":_vm.paginaFunc}}):_vm._e()],1)}
|
9669
|
-
var
|
9662
|
+
return _c('div',{staticStyle:{"padding":"8px"}},[_c('a-input',{directives:[{name:"ant-ref",rawName:"v-ant-ref",value:(function (c) { return (_vm.searchInput = c); }),expression:"c => (searchInput = c)"}],staticStyle:{"width":"188px","margin-bottom":"8px","display":"block"},attrs:{"placeholder":("搜索 " + (column.title)),"value":selectedKeys[0]},on:{"change":function (e) { return setSelectedKeys(e.target.value ? [e.target.value] : []); },"pressEnter":function () { return _vm.handleSearch(selectedKeys, confirm, column.dataIndex); }}}),_c('a-button',{staticStyle:{"width":"80px","margin-right":"8px","padding-top":"1px"},attrs:{"type":"primary","icon":"search","size":"small"},on:{"click":function () { return _vm.handleSearch(selectedKeys, confirm, column.dataIndex); }}},[_vm._v(" 查询 ")]),_c('a-button',{staticStyle:{"width":"80px","padding-top":"1px"},attrs:{"size":"small"},on:{"click":function () { return _vm.handleReset(clearFilters); }}},[_vm._v(" 重置 ")])],1)}},{key:"filterIcon",fn:function(filtered){return _c('a-icon',{style:({ color: filtered ? '#108ee9' : undefined }),attrs:{"type":"search"}})}},{key:"customRender",fn:function(text, record, index, column){return [(_vm.searchText && _vm.searchedColumn === column.dataIndex)?_c('span',[_vm._l((text.toString().split(new RegExp(("(?<=" + _vm.searchText + ")|(?=" + _vm.searchText + ")"), 'i'))),function(fragment,foreachIndex){return [(fragment.toLowerCase() === _vm.searchText.toLowerCase())?_c('mark',{staticClass:"highlight"},[_vm._v(_vm._s(fragment))]):[_vm._v(_vm._s(fragment))]]})],2):[_vm._v(" "+_vm._s(text)+" ")]]}},_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)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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":"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)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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)},"input":function($event){return _vm.onCellFBC('change',record,item,$event)},"blur":function($event){return _vm.onCellFBC('blur',record,item)}},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',
|
9663
|
+
multiple:item.isEdit.isSelectMore?item.isEdit.isSelectMore:false,
|
9664
|
+
checkStrictly:item.isEdit.checkAny?item.isEdit.checkAny:false,
|
9665
|
+
label:item.isEdit.changeLabel?item.isEdit.changeLabel:'label',
|
9666
|
+
value:item.isEdit.changeValue?item.isEdit.changeValue:'value',
|
9667
|
+
children:item.isEdit.changeChildren?item.isEdit.changeChildren:'children'
|
9668
|
+
}},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:'请选择',"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()])}}}),_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()],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()])}}})],null,true)}),(_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,"defaultPageSize":_vm.tableInit.pagination.pageSize,"currPage":_vm.tableInit.pagination.currPage,"pageSizes":[10,20,30,50,100]},on:{"paginaFunc":_vm.paginaFunc}}):_vm._e()],1)}
|
9669
|
+
var twTablevue_type_template_id_bcc60336_scoped_true_staticRenderFns = []
|
9670
9670
|
|
9671
9671
|
|
9672
|
-
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=
|
9672
|
+
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=template&id=bcc60336&scoped=true&
|
9673
9673
|
|
9674
9674
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.6.5@core-js/modules/es.array.for-each.js
|
9675
9675
|
var es_array_for_each = __webpack_require__("fe59");
|
@@ -9987,6 +9987,10 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
9987
9987
|
//
|
9988
9988
|
//
|
9989
9989
|
//
|
9990
|
+
//
|
9991
|
+
//
|
9992
|
+
//
|
9993
|
+
//
|
9990
9994
|
|
9991
9995
|
/* harmony default export */ var twTablevue_type_script_lang_js_ = ({
|
9992
9996
|
components: {
|
@@ -10261,8 +10265,8 @@ var web_dom_collections_for_each = __webpack_require__("08ba");
|
|
10261
10265
|
});
|
10262
10266
|
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=script&lang=js&
|
10263
10267
|
/* harmony default export */ var twTable_twTablevue_type_script_lang_js_ = (twTablevue_type_script_lang_js_);
|
10264
|
-
// EXTERNAL MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=style&index=0&id=
|
10265
|
-
var
|
10268
|
+
// EXTERNAL MODULE: ./examples/components/comPage/twTable/twTable.vue?vue&type=style&index=0&id=bcc60336&scoped=true&lang=scss&
|
10269
|
+
var twTablevue_type_style_index_0_id_bcc60336_scoped_true_lang_scss_ = __webpack_require__("6eb1");
|
10266
10270
|
|
10267
10271
|
// CONCATENATED MODULE: ./examples/components/comPage/twTable/twTable.vue
|
10268
10272
|
|
@@ -10275,11 +10279,11 @@ var twTablevue_type_style_index_0_id_c628d85e_scoped_true_lang_scss_ = __webpack
|
|
10275
10279
|
|
10276
10280
|
var twTable_component = Object(componentNormalizer["a" /* default */])(
|
10277
10281
|
twTable_twTablevue_type_script_lang_js_,
|
10278
|
-
|
10279
|
-
|
10282
|
+
twTablevue_type_template_id_bcc60336_scoped_true_render,
|
10283
|
+
twTablevue_type_template_id_bcc60336_scoped_true_staticRenderFns,
|
10280
10284
|
false,
|
10281
10285
|
null,
|
10282
|
-
"
|
10286
|
+
"bcc60336",
|
10283
10287
|
null
|
10284
10288
|
|
10285
10289
|
)
|
@@ -10376,12 +10380,19 @@ var mainvue_type_template_id_7ea093f5_staticRenderFns = []
|
|
10376
10380
|
|
10377
10381
|
// CONCATENATED MODULE: ./packages/twFormPC/src/main.vue?vue&type=template&id=7ea093f5&
|
10378
10382
|
|
10379
|
-
// 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/twFormModule/twFormModule.vue?vue&type=template&id=
|
10380
|
-
var twFormModulevue_type_template_id_7ece0c7e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('el-form',{ref:"form",staticClass:"twFormModule",attrs:{"model":_vm.formData,"label-width":_vm.formSetting.labelWidth?_vm.formSetting.labelWidth:'91px',"size":_vm.formSetting.formSize?_vm.formSetting.formSize:'small'}},[_c('el-row',_vm._l((_vm.formModule),function(formItem,formIndex){return _c('el-col',{directives:[{name:"show",rawName:"v-show",value:(!formItem.isHidden),expression:"!formItem.isHidden"}],key:'form'+formIndex,attrs:{"span":formItem.span?formItem.span:8,"offset":formItem.offset?formItem.offset:0}},[_c('el-form-item',{staticClass:"twFormModuleItem"},[_c('span',{attrs:{"slot":"label"},slot:"label"},[(formItem.required)?_c('span',{staticStyle:{"color":"red","margin-right":"3px"}},[_vm._v("*")]):_vm._e(),_vm._v(_vm._s(formItem.label))]),(formItem.showWarning && (formItem.itemType === 'radio' || formItem.itemType === 'checkBox'))?_c('span',{staticClass:"warningText"},[_vm._v(_vm._s(formItem.warningText?formItem.warningText:'必填项!'))]):(formItem.showWarning)?_c('span',{staticClass:"warningText"},[_vm._v(_vm._s(formItem.warningText))]):_vm._e(),(formItem.itemType === 'title')?_c('div',{class:formItem.titleStyle?formItem.titleStyle+' formTitleDefaultStyle':'formTitleDefaultStyle'},[_c('span',{style:({left:_vm.formSetting.labelWidth?'-'+_vm.formSetting.labelWidth:'-91px'})},[_vm._v(_vm._s(formItem.itemValue))])]):_vm._e(),(formItem.itemType === 'text' || formItem.itemType === 'number' || formItem.itemType === 'textarea')?_c('el-input',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.itemType?formItem.itemType:'text',"readonly":formItem.readonly,"disabled":formItem.disabled,"clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请输入'+formItem.label},on:{"input":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)},"focus":function($event){return _vm.formFBC('focus',formItem,_vm.formData)},"blur":function($event){return _vm.formFBC('blur',formItem,_vm.formData)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}):_vm._e(),(formItem.itemType === 'date')?_c('el-date-picker',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.dateType?formItem.dateType:'date',"format":formItem.dateFormat,"disabled":formItem.disabled,"placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"picker-options":_vm.processDate(formItem)},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}):_vm._e(),(formItem.itemType === 'dateRange')?_c('el-date-picker',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.dateType?formItem.dateType+'range':'daterange',"format":formItem.dateFormat,"placeholder":formItem.placeholder?formItem.placeholder:formItem.label,"range-separator":formItem.separator?formItem.separator:'至',"picker-options":_vm.processDate(formItem),"start-placeholder":formItem.startPlaceholder?formItem.startPlaceholder:'开始日期',"end-placeholder":formItem.endPlaceholder?formItem.endPlaceholder:'结束日期',"disabled":formItem.disabled},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}):_vm._e(),(formItem.itemType === 'select')?_c('el-select',{class:formItem.showWarning?'redBorder':'',attrs:{"placeholder":"请选择","disabled":formItem.disabled,"placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"clearable":"","filterable":formItem.filterable},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}},_vm._l((formItem.selectList),function(selectItem){return _c('el-option',{key:selectItem.value,attrs:{"label":selectItem.name,"value":selectItem.value}})}),1):_vm._e(),(formItem.itemType === 'selectMore')?_c('el-select',{class:formItem.showWarning?'redBorder':'',attrs:{"clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"multiple":"","disabled":formItem.disabled,"collapse-tags":formItem.showAllName !== 'showAll',"filterable":formItem.selectSearch?formItem.selectSearch:true},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}},_vm._l((formItem.selectList),function(selectItem){return _c('el-option',{key:selectItem.value,attrs:{"label":selectItem.name,"value":selectItem.value}})}),1):_vm._e(),(formItem.itemType === 'selectCascade')?_c('el-cascader',{class:formItem.showWarning?'redBorder':'',attrs:{"filterable":formItem.selectSearch?formItem.selectSearch:true,"options":formItem.selectList,"collapse-tags":formItem.showAllName !== 'showAll',"disabled":formItem.disabled,"show-all-levels":formItem.showAllLevel?formItem.showAllLevel:false,"placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"clearable":"","props":{ expandTrigger: formItem.trigger?formItem.trigger:'hover',multiple:formItem.isSelectMore?formItem.isSelectMore:false}},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}):_vm._e(),(formItem.itemType === 'radio')?_c('el-radio-group',{staticClass:"twSearchRadio",model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}},_vm._l((formItem.radioList),function(itemChild,index){return _c('el-radio',{key:'radio'+index,attrs:{"label":itemChild.value,"disabled":itemChild.disabled},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}}},[_vm._v(_vm._s(itemChild.name))])}),1):_vm._e(),(formItem.itemType === 'checkBox')?_c('el-checkbox-group',{staticClass:"twSearchCheckbox",model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}},_vm._l((formItem.checkBoxList),function(itemChild,index){return _c('el-checkbox',{key:'checkBox'+index,attrs:{"label":itemChild.value,"disabled":itemChild.disabled,"data-a":_vm.checkBoxState},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}}},[_vm._v(_vm._s(itemChild.name))])}),1):_vm._e(),(formItem.itemType === 'selectTree')?_c('section',{staticClass:"popTree"},[_c('el-popover',{attrs:{"placement":"bottom-start"},model:{value:(formItem.popTreeBox),callback:function ($$v) {_vm.$set(formItem, "popTreeBox", $$v)},expression:"formItem.popTreeBox"}},[_c('section',{staticStyle:{"text-align":"center","border-bottom":"1px solid #ddd","padding-bottom":"10px"}},[_c('div',{staticStyle:{"display":"flex"}},[_c('el-input',{attrs:{"placeholder":"输入关键字进行过滤","size":"mini","clearable":""},on:{"input":function($event){return _vm.filterInput($event,formItem)}},model:{value:(formItem.popTreeInput),callback:function ($$v) {_vm.$set(formItem, "popTreeInput", $$v)},expression:"formItem.popTreeInput"}}),_c('el-button',{staticStyle:{"margin-left":"10px"},attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.chooseOrg(formItem.itemValue,formItem)}}},[_vm._v("确定选择")])],1)]),_c('el-tree',{ref:formItem.popTreeRef,refInFor:true,staticClass:"selectTree",attrs:{"data":formItem.treeList.length>0?formItem.treeList:[],"props":formItem.defaultProps,"filter-node-method":_vm.filterNode,"highlight-current":true},on:{"node-click":_vm.handleNodeClick}}),_c('el-input',{class:formItem.showWarning?'redBorder':'',attrs:{"slot":"reference","size":"small","clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"disabled":formItem.disabled},on:{"clear":function($event){return _vm.clearText(formItem)}},slot:"reference",model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}})],1)],1):_vm._e(),(formItem.itemType === 'valueRange')?_c('section',{staticClass:"valueRangeStyle"},[_c('el-input',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.isNumber?'number':'text',"clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请输入'+formItem.label,"disabled":formItem.disabled,"clearable":""},on:{"input":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)},"focus":function($event){return _vm.formFBC('focus',formItem,_vm.formData)},"blur":function($event){return _vm.formFBC('blur',formItem,_vm.formData)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}),_c('span',{staticStyle:{"margin":"0 5px"}},[_vm._v("-")]),_c('el-input',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.isNumber?'number':'text',"clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请输入'+formItem.label,"disabled":formItem.disabled,"clearable":""},on:{"input":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)},"focus":function($event){return _vm.formFBC('focus',formItem,_vm.formData)},"blur":function($event){return _vm.formFBC('blur',formItem,_vm.formData)}},model:{value:(_vm.formData[formItem.itemValueSec]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValueSec, $$v)},expression:"formData[formItem.itemValueSec]"}})],1):_vm._e()],1)],1)}),1)],1)],1)}
|
10381
|
-
|
10383
|
+
// 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/twFormModule/twFormModule.vue?vue&type=template&id=25f24324&scoped=true&
|
10384
|
+
var twFormModulevue_type_template_id_25f24324_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('el-form',{ref:"form",staticClass:"twFormModule",attrs:{"model":_vm.formData,"label-width":_vm.formSetting.labelWidth?_vm.formSetting.labelWidth:'91px',"size":_vm.formSetting.formSize?_vm.formSetting.formSize:'small'}},[_c('el-row',_vm._l((_vm.formModule),function(formItem,formIndex){return _c('el-col',{directives:[{name:"show",rawName:"v-show",value:(!formItem.isHidden),expression:"!formItem.isHidden"}],key:'form'+formIndex,attrs:{"span":formItem.span?formItem.span:8,"offset":formItem.offset?formItem.offset:0}},[_c('el-form-item',{staticClass:"twFormModuleItem"},[_c('span',{attrs:{"slot":"label"},slot:"label"},[(formItem.required)?_c('span',{staticStyle:{"color":"red","margin-right":"3px"}},[_vm._v("*")]):_vm._e(),_vm._v(_vm._s(formItem.label))]),(formItem.showWarning && (formItem.itemType === 'radio' || formItem.itemType === 'checkBox'))?_c('span',{staticClass:"warningText"},[_vm._v(_vm._s(formItem.warningText?formItem.warningText:'必填项!'))]):(formItem.showWarning)?_c('span',{staticClass:"warningText"},[_vm._v(_vm._s(formItem.warningText))]):_vm._e(),(formItem.itemType === 'title')?_c('div',{class:formItem.titleStyle?formItem.titleStyle+' formTitleDefaultStyle':'formTitleDefaultStyle'},[_c('span',{style:({left:_vm.formSetting.labelWidth?'-'+_vm.formSetting.labelWidth:'-91px'})},[_vm._v(_vm._s(formItem.itemValue))])]):_vm._e(),(formItem.itemType === 'text' || formItem.itemType === 'number' || formItem.itemType === 'textarea')?_c('el-input',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.itemType?formItem.itemType:'text',"readonly":formItem.readonly,"disabled":formItem.disabled,"clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请输入'+formItem.label},on:{"input":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)},"focus":function($event){return _vm.formFBC('focus',formItem,_vm.formData)},"blur":function($event){return _vm.formFBC('blur',formItem,_vm.formData)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}):_vm._e(),(formItem.itemType === 'date')?_c('el-date-picker',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.dateType?formItem.dateType:'date',"format":formItem.dateFormat,"disabled":formItem.disabled,"placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"picker-options":_vm.processDate(formItem)},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}):_vm._e(),(formItem.itemType === 'dateRange')?_c('el-date-picker',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.dateType?formItem.dateType+'range':'daterange',"format":formItem.dateFormat,"placeholder":formItem.placeholder?formItem.placeholder:formItem.label,"range-separator":formItem.separator?formItem.separator:'至',"picker-options":_vm.processDate(formItem),"start-placeholder":formItem.startPlaceholder?formItem.startPlaceholder:'开始日期',"end-placeholder":formItem.endPlaceholder?formItem.endPlaceholder:'结束日期',"disabled":formItem.disabled},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}):_vm._e(),(formItem.itemType === 'select')?_c('el-select',{class:formItem.showWarning?'redBorder':'',attrs:{"placeholder":"请选择","disabled":formItem.disabled,"placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"clearable":"","filterable":formItem.filterable},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}},_vm._l((formItem.selectList),function(selectItem){return _c('el-option',{key:selectItem.value,attrs:{"label":selectItem.name,"value":selectItem.value}})}),1):_vm._e(),(formItem.itemType === 'selectMore')?_c('el-select',{class:formItem.showWarning?'redBorder':'',attrs:{"clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"multiple":"","disabled":formItem.disabled,"collapse-tags":formItem.showAllName !== 'showAll',"filterable":formItem.selectSearch?formItem.selectSearch:true},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}},_vm._l((formItem.selectList),function(selectItem){return _c('el-option',{key:selectItem.value,attrs:{"label":selectItem.name,"value":selectItem.value}})}),1):_vm._e(),(formItem.itemType === 'selectCascade')?_c('el-cascader',{class:formItem.showWarning?'redBorder':'',attrs:{"filterable":formItem.selectSearch?formItem.selectSearch:true,"options":formItem.selectList,"collapse-tags":formItem.showAllName !== 'showAll',"disabled":formItem.disabled,"show-all-levels":formItem.showAllLevel?formItem.showAllLevel:false,"placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"clearable":"","props":{
|
10385
|
+
expandTrigger: formItem.trigger?formItem.trigger:'hover',
|
10386
|
+
multiple:formItem.isSelectMore?formItem.isSelectMore:false,
|
10387
|
+
checkStrictly:formItem.checkAny?formItem.checkAny:false,
|
10388
|
+
label:formItem.changeLabel?formItem.changeLabel:'label',
|
10389
|
+
value:formItem.changeValue?formItem.changeValue:'value',
|
10390
|
+
children:formItem.changeChildren?formItem.changeChildren:'children'
|
10391
|
+
}},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}):_vm._e(),(formItem.itemType === 'radio')?_c('el-radio-group',{staticClass:"twSearchRadio",model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}},_vm._l((formItem.radioList),function(itemChild,index){return _c('el-radio',{key:'radio'+index,attrs:{"label":itemChild.value,"disabled":itemChild.disabled},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}}},[_vm._v(_vm._s(itemChild.name))])}),1):_vm._e(),(formItem.itemType === 'checkBox')?_c('el-checkbox-group',{staticClass:"twSearchCheckbox",model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}},_vm._l((formItem.checkBoxList),function(itemChild,index){return _c('el-checkbox',{key:'checkBox'+index,attrs:{"label":itemChild.value,"disabled":itemChild.disabled,"data-a":_vm.checkBoxState},on:{"change":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)}}},[_vm._v(_vm._s(itemChild.name))])}),1):_vm._e(),(formItem.itemType === 'selectTree')?_c('section',{staticClass:"popTree"},[_c('el-popover',{attrs:{"placement":"bottom-start"},model:{value:(formItem.popTreeBox),callback:function ($$v) {_vm.$set(formItem, "popTreeBox", $$v)},expression:"formItem.popTreeBox"}},[_c('section',{staticStyle:{"text-align":"center","border-bottom":"1px solid #ddd","padding-bottom":"10px"}},[_c('div',{staticStyle:{"display":"flex"}},[_c('el-input',{attrs:{"placeholder":"输入关键字进行过滤","size":"mini","clearable":""},on:{"input":function($event){return _vm.filterInput($event,formItem)}},model:{value:(formItem.popTreeInput),callback:function ($$v) {_vm.$set(formItem, "popTreeInput", $$v)},expression:"formItem.popTreeInput"}}),_c('el-button',{staticStyle:{"margin-left":"10px"},attrs:{"type":"primary","size":"mini"},on:{"click":function($event){return _vm.chooseOrg(formItem.itemValue,formItem)}}},[_vm._v("确定选择")])],1)]),_c('el-tree',{ref:formItem.popTreeRef,refInFor:true,staticClass:"selectTree",attrs:{"data":formItem.treeList.length>0?formItem.treeList:[],"props":formItem.defaultProps,"filter-node-method":_vm.filterNode,"highlight-current":true},on:{"node-click":_vm.handleNodeClick}}),_c('el-input',{class:formItem.showWarning?'redBorder':'',attrs:{"slot":"reference","size":"small","clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请选择'+formItem.label,"disabled":formItem.disabled},on:{"clear":function($event){return _vm.clearText(formItem)}},slot:"reference",model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}})],1)],1):_vm._e(),(formItem.itemType === 'valueRange')?_c('section',{staticClass:"valueRangeStyle"},[_c('el-input',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.isNumber?'number':'text',"clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请输入'+formItem.label,"disabled":formItem.disabled,"clearable":""},on:{"input":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)},"focus":function($event){return _vm.formFBC('focus',formItem,_vm.formData)},"blur":function($event){return _vm.formFBC('blur',formItem,_vm.formData)}},model:{value:(_vm.formData[formItem.itemValue]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValue, $$v)},expression:"formData[formItem.itemValue]"}}),_c('span',{staticStyle:{"margin":"0 5px"}},[_vm._v("-")]),_c('el-input',{class:formItem.showWarning?'redBorder':'',attrs:{"type":formItem.isNumber?'number':'text',"clearable":"","placeholder":formItem.placeholder?formItem.placeholder:'请输入'+formItem.label,"disabled":formItem.disabled,"clearable":""},on:{"input":function($event){return _vm.formFBC('change',formItem,_vm.formData,$event)},"focus":function($event){return _vm.formFBC('focus',formItem,_vm.formData)},"blur":function($event){return _vm.formFBC('blur',formItem,_vm.formData)}},model:{value:(_vm.formData[formItem.itemValueSec]),callback:function ($$v) {_vm.$set(_vm.formData, formItem.itemValueSec, $$v)},expression:"formData[formItem.itemValueSec]"}})],1):_vm._e()],1)],1)}),1)],1)],1)}
|
10392
|
+
var twFormModulevue_type_template_id_25f24324_scoped_true_staticRenderFns = []
|
10382
10393
|
|
10383
10394
|
|
10384
|
-
// CONCATENATED MODULE: ./examples/components/comPage/twFormModule/twFormModule.vue?vue&type=template&id=
|
10395
|
+
// CONCATENATED MODULE: ./examples/components/comPage/twFormModule/twFormModule.vue?vue&type=template&id=25f24324&scoped=true&
|
10385
10396
|
|
10386
10397
|
// CONCATENATED MODULE: ./node_modules/_cache-loader@4.1.0@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.1.0@babel-loader/lib!./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/twFormModule/twFormModule.vue?vue&type=script&lang=js&
|
10387
10398
|
|
@@ -10510,6 +10521,13 @@ var twFormModulevue_type_template_id_7ece0c7e_scoped_true_staticRenderFns = []
|
|
10510
10521
|
//
|
10511
10522
|
//
|
10512
10523
|
//
|
10524
|
+
//
|
10525
|
+
//
|
10526
|
+
//
|
10527
|
+
//
|
10528
|
+
//
|
10529
|
+
//
|
10530
|
+
//
|
10513
10531
|
/* harmony default export */ var twFormModulevue_type_script_lang_js_ = ({
|
10514
10532
|
name: "twFormModule",
|
10515
10533
|
props: ['formSettings', 'formDatas', 'formModule'],
|
@@ -10677,11 +10695,11 @@ var twFormModulevue_type_template_id_7ece0c7e_scoped_true_staticRenderFns = []
|
|
10677
10695
|
|
10678
10696
|
var twFormModule_component = Object(componentNormalizer["a" /* default */])(
|
10679
10697
|
twFormModule_twFormModulevue_type_script_lang_js_,
|
10680
|
-
|
10681
|
-
|
10698
|
+
twFormModulevue_type_template_id_25f24324_scoped_true_render,
|
10699
|
+
twFormModulevue_type_template_id_25f24324_scoped_true_staticRenderFns,
|
10682
10700
|
false,
|
10683
10701
|
null,
|
10684
|
-
"
|
10702
|
+
"25f24324",
|
10685
10703
|
null
|
10686
10704
|
|
10687
10705
|
)
|