@zscreate/form-component 1.1.221-test.52 → 1.1.221-test.53
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/dist/form-component.umd.js +15 -8
- package/package.json +1 -1
|
@@ -76923,7 +76923,7 @@ const API = '/form/formdesiger/countLeaveDays';
|
|
|
76923
76923
|
m_subscribe(key, val) {
|
|
76924
76924
|
if (!(pubsub_js__WEBPACK_IMPORTED_MODULE_5___default().calc_record)) (pubsub_js__WEBPACK_IMPORTED_MODULE_5___default().calc_record) = {};
|
|
76925
76925
|
},
|
|
76926
|
-
calc_run(isFirstRun) {
|
|
76926
|
+
calc_run(isFirstRun, msgData) {
|
|
76927
76927
|
let invalids = false;
|
|
76928
76928
|
let {
|
|
76929
76929
|
formula,
|
|
@@ -76932,6 +76932,7 @@ const API = '/form/formdesiger/countLeaveDays';
|
|
|
76932
76932
|
relyWidgets.forEach(item => {
|
|
76933
76933
|
formula = formula.replaceAll(`\$${item}\#`, item);
|
|
76934
76934
|
});
|
|
76935
|
+
if (msgData.tableKey && msgData.tableKey === this.widget.tableKey && this.tableIndex != msgData.tableIndex) return;
|
|
76935
76936
|
const tableArr = relyWidgets.filter(item => item.includes(".")).map(item => item.split("."));
|
|
76936
76937
|
const models = this.models;
|
|
76937
76938
|
const keys = Object.keys(models);
|
|
@@ -76942,6 +76943,9 @@ const API = '/form/formdesiger/countLeaveDays';
|
|
|
76942
76943
|
if (tableData && Array.isArray(models[curr])) {
|
|
76943
76944
|
prev[key] = JSON.parse(JSON.stringify(models[curr]));
|
|
76944
76945
|
prev[key][tableData[1]] = prev[key].map(item => item[tableData[1]]);
|
|
76946
|
+
if ([msgData.tableKey, curr].every(item => this.widget.tableKey === item)) {
|
|
76947
|
+
prev[key][tableData[1]] = prev[key][tableData[1]][msgData.tableIndex];
|
|
76948
|
+
}
|
|
76945
76949
|
}
|
|
76946
76950
|
if (relyWidgets.includes(key) && isFirstRun && models[curr] === '') {
|
|
76947
76951
|
invalids = true;
|
|
@@ -76978,7 +76982,7 @@ const API = '/form/formdesiger/countLeaveDays';
|
|
|
76978
76982
|
if (item.includes('.')) item = item.split('.').slice(-1)[0];
|
|
76979
76983
|
pubsub_js__WEBPACK_IMPORTED_MODULE_5___default().subscribe('calc_' + item.replace('_widget_', ''), (key, data) => {
|
|
76980
76984
|
setTimeout(() => {
|
|
76981
|
-
this.calc_run();
|
|
76985
|
+
this.calc_run(false, data);
|
|
76982
76986
|
console.log(this, key, data);
|
|
76983
76987
|
}, 100);
|
|
76984
76988
|
});
|
|
@@ -147362,7 +147366,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
147362
147366
|
/***/ ((module) => {
|
|
147363
147367
|
|
|
147364
147368
|
"use strict";
|
|
147365
|
-
module.exports = JSON.parse('{"i8":"1.1.221-test.
|
|
147369
|
+
module.exports = JSON.parse('{"i8":"1.1.221-test.53"}');
|
|
147366
147370
|
|
|
147367
147371
|
/***/ })
|
|
147368
147372
|
|
|
@@ -158322,9 +158326,9 @@ const watermark = __webpack_require__(2206);
|
|
|
158322
158326
|
};
|
|
158323
158327
|
}
|
|
158324
158328
|
});
|
|
158325
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/formula/warpFormulaEdit.vue?vue&type=template&id=
|
|
158326
|
-
var
|
|
158327
|
-
var
|
|
158329
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/formula/warpFormulaEdit.vue?vue&type=template&id=6829e348&
|
|
158330
|
+
var warpFormulaEditvue_type_template_id_6829e348_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a-button',{attrs:{"type":_vm.hasInValid ? '': 'primary'},on:{"click":function($event){return _vm.init(_vm.widget)}}},[_c('span',{style:({ color: _vm.hasInValid ? 'red': 'inherit'})},[_vm._v(" "+_vm._s(_vm.hasInValid ? '存在已删除字段,请重新设置' : '公式编辑')+" ")])]),_c('formula-edit',{attrs:{"visible":_vm.visible,"widgetName":_vm.widget.name,"bo-data":_vm.widgetsData,"data":_vm.formula},on:{"update:data":function($event){_vm.formula=$event},"callback":_vm.setFormulaValue,"debug":_vm.handleDebug,"close":function (_visible) { return _vm.visible = false; }}}),_c('a-modal',{attrs:{"title":"公式调试","footer":null,"width":"900px"},model:{value:(_vm.debugVisible),callback:function ($$v) {_vm.debugVisible=$$v},expression:"debugVisible"}},[_c('div',{staticStyle:{"display":"flex","justify-content":"center","overflow":"auto"}},[(_vm.debugVisible)?_c('layout-for-paper',{ref:"layoutForPaper",staticStyle:{"min-height":"initial!important"},attrs:{"insite":"true","data":_vm.warpDebugForm,"value":{}}}):_vm._e()],1)])],1)}
|
|
158331
|
+
var warpFormulaEditvue_type_template_id_6829e348_staticRenderFns = []
|
|
158328
158332
|
|
|
158329
158333
|
|
|
158330
158334
|
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.2@vue-loader/lib/index.js??vue-loader-options!./src/form/formula/formula-edit.vue?vue&type=template&id=23a01ed0&
|
|
@@ -160117,6 +160121,9 @@ var formula_edit_component = (0,componentNormalizer/* default */.Z)(
|
|
|
160117
160121
|
const tableArr = [];
|
|
160118
160122
|
const formulaComponents = this.widgetList.filter(item => {
|
|
160119
160123
|
if (item.model === this.widget.model) return false;
|
|
160124
|
+
// if (this.widget.tableKey) {
|
|
160125
|
+
// return item.tableKey !== this.widget.tableKey
|
|
160126
|
+
// }
|
|
160120
160127
|
return ['input', 'textarea', 'number', 'date'].includes(item.type);
|
|
160121
160128
|
});
|
|
160122
160129
|
return formulaComponents.map(item => {
|
|
@@ -160170,8 +160177,8 @@ var formula_edit_component = (0,componentNormalizer/* default */.Z)(
|
|
|
160170
160177
|
;
|
|
160171
160178
|
var warpFormulaEdit_component = (0,componentNormalizer/* default */.Z)(
|
|
160172
160179
|
formula_warpFormulaEditvue_type_script_lang_js_,
|
|
160173
|
-
|
|
160174
|
-
|
|
160180
|
+
warpFormulaEditvue_type_template_id_6829e348_render,
|
|
160181
|
+
warpFormulaEditvue_type_template_id_6829e348_staticRenderFns,
|
|
160175
160182
|
false,
|
|
160176
160183
|
null,
|
|
160177
160184
|
null,
|