ecinc-cloud-wappaio 9.0.131 → 9.0.132
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/index.js +2 -0
- package/lib/ecwappaio.common.js +496 -1
- package/lib/ecwappaio.umd.js +496 -1
- package/lib/ecwappaio.umd.min.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import InnerTable from '../../ecwapp/InnerTable/index'
|
|
|
15
15
|
import LRLayout from '../../ecwapp/LRLayout/index'
|
|
16
16
|
import LeftPanel from '../../ecwapp/LRLayout/src/LeftPanel'
|
|
17
17
|
import RightPanel from '../../ecwapp/LRLayout/src/RightPanel'
|
|
18
|
+
import ModifyFormTrace from '../../ecwapp/ModifyFormTrace/index'
|
|
18
19
|
import PageContent from '../../ecwapp/PageContent/index'
|
|
19
20
|
import PageHeader from '../../ecwapp/PageHeader/index'
|
|
20
21
|
import PdfTools from '../../ecwapp/PdfTools'
|
|
@@ -71,6 +72,7 @@ const components = [
|
|
|
71
72
|
LRLayout,
|
|
72
73
|
LeftPanel,
|
|
73
74
|
RightPanel,
|
|
75
|
+
ModifyFormTrace,
|
|
74
76
|
PageHeader,
|
|
75
77
|
PageContent,
|
|
76
78
|
PdfTools,
|
package/lib/ecwappaio.common.js
CHANGED
|
@@ -40499,6 +40499,27 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-8b62713c]:export{stdMenuBgcolo
|
|
|
40499
40499
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
40500
40500
|
|
|
40501
40501
|
|
|
40502
|
+
/***/ }),
|
|
40503
|
+
|
|
40504
|
+
/***/ 81945:
|
|
40505
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
40506
|
+
|
|
40507
|
+
"use strict";
|
|
40508
|
+
__webpack_require__.r(__webpack_exports__);
|
|
40509
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31601);
|
|
40510
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
40511
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76314);
|
|
40512
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
40513
|
+
// Imports
|
|
40514
|
+
|
|
40515
|
+
|
|
40516
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
40517
|
+
// Module
|
|
40518
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".el-checkbox-group label[data-v-fe090580]{margin-left:0!important}.el-checkbox-group[data-v-fe090580] .el-checkbox__label{color:#606266!important}.td-lbl[data-v-fe090580]{font-weight:600;text-align:center!important;background:#f2f5f8!important}.tdcont[data-v-fe090580]{vertical-align:top}.el-select[data-v-fe090580]{width:220px}[data-v-fe090580] .yellow{background:#fde2e2!important}[data-v-fe090580] .red{background:red!important}[data-v-fe090580] .green{background:#e1f3d8!important}", ""]);
|
|
40519
|
+
// Exports
|
|
40520
|
+
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
40521
|
+
|
|
40522
|
+
|
|
40502
40523
|
/***/ }),
|
|
40503
40524
|
|
|
40504
40525
|
/***/ 6456:
|
|
@@ -218979,6 +219000,22 @@ var update = add("10c07592", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
218979
219000
|
|
|
218980
219001
|
/***/ }),
|
|
218981
219002
|
|
|
219003
|
+
/***/ 79907:
|
|
219004
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
219005
|
+
|
|
219006
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
219007
|
+
|
|
219008
|
+
// load the styles
|
|
219009
|
+
var content = __webpack_require__(81945);
|
|
219010
|
+
if(content.__esModule) content = content.default;
|
|
219011
|
+
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
219012
|
+
if(content.locals) module.exports = content.locals;
|
|
219013
|
+
// add the styles to the DOM
|
|
219014
|
+
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
219015
|
+
var update = add("386604a0", content, true, {"sourceMap":false,"shadowMode":false});
|
|
219016
|
+
|
|
219017
|
+
/***/ }),
|
|
219018
|
+
|
|
218982
219019
|
/***/ 63194:
|
|
218983
219020
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
218984
219021
|
|
|
@@ -238488,6 +238525,463 @@ LRLayout_src.install = function (Vue) {
|
|
|
238488
238525
|
Vue.component(RightPanel.name, RightPanel);
|
|
238489
238526
|
};
|
|
238490
238527
|
/* harmony default export */ var LRLayout = (LRLayout_src);
|
|
238528
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/ModifyFormTrace/src/index.vue?vue&type=template&id=fe090580&scoped=true
|
|
238529
|
+
var srcvue_type_template_id_fe090580_scoped_true_render = function render() {
|
|
238530
|
+
var _vm = this,
|
|
238531
|
+
_c = _vm._self._c;
|
|
238532
|
+
return _vm.dialogFormVisible ? _c('el-dialog', {
|
|
238533
|
+
directives: [{
|
|
238534
|
+
name: "el-drag-dialog",
|
|
238535
|
+
rawName: "v-el-drag-dialog"
|
|
238536
|
+
}],
|
|
238537
|
+
staticClass: "busi-form-container__dialog",
|
|
238538
|
+
attrs: {
|
|
238539
|
+
"visible": _vm.dialogFormVisible,
|
|
238540
|
+
"close-on-click-modal": false,
|
|
238541
|
+
"top": '10vh',
|
|
238542
|
+
"width": _vm.winWidth + 'px',
|
|
238543
|
+
"append-to-body": true,
|
|
238544
|
+
"title": _vm.title,
|
|
238545
|
+
"fullscreen": _vm.fullscreen
|
|
238546
|
+
},
|
|
238547
|
+
on: {
|
|
238548
|
+
"update:visible": function updateVisible($event) {
|
|
238549
|
+
_vm.dialogFormVisible = $event;
|
|
238550
|
+
},
|
|
238551
|
+
"close": _vm.closeDialog
|
|
238552
|
+
}
|
|
238553
|
+
}, [_vm.loading ? _c('div', {
|
|
238554
|
+
directives: [{
|
|
238555
|
+
name: "loading",
|
|
238556
|
+
rawName: "v-loading",
|
|
238557
|
+
value: _vm.loading,
|
|
238558
|
+
expression: "loading"
|
|
238559
|
+
}],
|
|
238560
|
+
staticClass: "el-dialog__body",
|
|
238561
|
+
attrs: {
|
|
238562
|
+
"element-loading-text": "正在加载..."
|
|
238563
|
+
}
|
|
238564
|
+
}) : _vm._e(), _c('template', {
|
|
238565
|
+
slot: "title"
|
|
238566
|
+
}, [_c('div', {
|
|
238567
|
+
staticStyle: {
|
|
238568
|
+
"width": "100%"
|
|
238569
|
+
}
|
|
238570
|
+
}, [_c('span', {
|
|
238571
|
+
staticClass: "el-dialog__title"
|
|
238572
|
+
}, [_c('el-button', {
|
|
238573
|
+
attrs: {
|
|
238574
|
+
"type": "primary",
|
|
238575
|
+
"icon": 'el-icon-document',
|
|
238576
|
+
"circle": "",
|
|
238577
|
+
"size": "mini"
|
|
238578
|
+
}
|
|
238579
|
+
}), _vm._v(" " + _vm._s(_vm.title) + " ")], 1), _c('span', {
|
|
238580
|
+
staticStyle: {
|
|
238581
|
+
"float": "right",
|
|
238582
|
+
"cursor": "pointer",
|
|
238583
|
+
"margin-right": "35px",
|
|
238584
|
+
"margin-top": "6px"
|
|
238585
|
+
},
|
|
238586
|
+
on: {
|
|
238587
|
+
"click": _vm.setFullScreen
|
|
238588
|
+
}
|
|
238589
|
+
}, [_c('span', {
|
|
238590
|
+
directives: [{
|
|
238591
|
+
name: "show",
|
|
238592
|
+
rawName: "v-show",
|
|
238593
|
+
value: !_vm.fullscreen,
|
|
238594
|
+
expression: "!fullscreen"
|
|
238595
|
+
}]
|
|
238596
|
+
}, [_c('svg-icon', {
|
|
238597
|
+
staticStyle: {
|
|
238598
|
+
"color": "#909599",
|
|
238599
|
+
"font-size": "16px"
|
|
238600
|
+
},
|
|
238601
|
+
attrs: {
|
|
238602
|
+
"icon-class": "wflow-fullscreen"
|
|
238603
|
+
}
|
|
238604
|
+
})], 1), _c('span', {
|
|
238605
|
+
directives: [{
|
|
238606
|
+
name: "show",
|
|
238607
|
+
rawName: "v-show",
|
|
238608
|
+
value: _vm.fullscreen,
|
|
238609
|
+
expression: "fullscreen"
|
|
238610
|
+
}]
|
|
238611
|
+
}, [_c('svg-icon', {
|
|
238612
|
+
staticStyle: {
|
|
238613
|
+
"color": "#909599",
|
|
238614
|
+
"font-size": "16px"
|
|
238615
|
+
},
|
|
238616
|
+
attrs: {
|
|
238617
|
+
"icon-class": "wflow-outfullscreen"
|
|
238618
|
+
}
|
|
238619
|
+
})], 1)])])]), _c('el-form', {
|
|
238620
|
+
staticClass: "wflow-busiform"
|
|
238621
|
+
}, [_c('div', {
|
|
238622
|
+
staticClass: "el-table el-table--fit el-table--border"
|
|
238623
|
+
}, [_c('div', {
|
|
238624
|
+
staticClass: "el-table__body-wrapper"
|
|
238625
|
+
}, [_vm.formdataList.length > 0 ? _c('table', {
|
|
238626
|
+
staticClass: "el-table__body",
|
|
238627
|
+
attrs: {
|
|
238628
|
+
"cellspacing": "0",
|
|
238629
|
+
"cellpadding": "0",
|
|
238630
|
+
"border": "0"
|
|
238631
|
+
}
|
|
238632
|
+
}, [_c('tr', [_c('td', {
|
|
238633
|
+
staticClass: "el-table__cell td-lbl",
|
|
238634
|
+
attrs: {
|
|
238635
|
+
"width": "50%"
|
|
238636
|
+
}
|
|
238637
|
+
}, [_vm._v(" 请选择: "), _c('el-select', {
|
|
238638
|
+
attrs: {
|
|
238639
|
+
"value-key": "id",
|
|
238640
|
+
"placeholder": "请选择"
|
|
238641
|
+
},
|
|
238642
|
+
on: {
|
|
238643
|
+
"change": _vm.setOldform
|
|
238644
|
+
},
|
|
238645
|
+
model: {
|
|
238646
|
+
value: _vm.oldform,
|
|
238647
|
+
callback: function callback($$v) {
|
|
238648
|
+
_vm.oldform = $$v;
|
|
238649
|
+
},
|
|
238650
|
+
expression: "oldform"
|
|
238651
|
+
}
|
|
238652
|
+
}, _vm._l(_vm.formdataList, function (item) {
|
|
238653
|
+
return _c('el-option', {
|
|
238654
|
+
key: item.id,
|
|
238655
|
+
attrs: {
|
|
238656
|
+
"label": item.staffName + ' ' + item.saveTime,
|
|
238657
|
+
"value": item
|
|
238658
|
+
}
|
|
238659
|
+
});
|
|
238660
|
+
}), 1)], 1), _c('td', {
|
|
238661
|
+
staticClass: "el-table__cell td-lbl",
|
|
238662
|
+
attrs: {
|
|
238663
|
+
"width": "50%"
|
|
238664
|
+
}
|
|
238665
|
+
}, [_vm._v(" 请选择: "), _c('el-select', {
|
|
238666
|
+
attrs: {
|
|
238667
|
+
"value-key": "id",
|
|
238668
|
+
"placeholder": "请选择"
|
|
238669
|
+
},
|
|
238670
|
+
on: {
|
|
238671
|
+
"change": _vm.setNewform
|
|
238672
|
+
},
|
|
238673
|
+
model: {
|
|
238674
|
+
value: _vm.newform,
|
|
238675
|
+
callback: function callback($$v) {
|
|
238676
|
+
_vm.newform = $$v;
|
|
238677
|
+
},
|
|
238678
|
+
expression: "newform"
|
|
238679
|
+
}
|
|
238680
|
+
}, _vm._l(_vm.formdataList, function (item) {
|
|
238681
|
+
return _c('el-option', {
|
|
238682
|
+
key: item.id,
|
|
238683
|
+
attrs: {
|
|
238684
|
+
"label": item.staffName + ' ' + item.saveTime,
|
|
238685
|
+
"value": item
|
|
238686
|
+
}
|
|
238687
|
+
});
|
|
238688
|
+
}), 1)], 1)]), _c('tr', [_c('td', {
|
|
238689
|
+
staticClass: "el-table__cell tdcont",
|
|
238690
|
+
attrs: {
|
|
238691
|
+
"width": "50%"
|
|
238692
|
+
}
|
|
238693
|
+
}, [_c('div', {
|
|
238694
|
+
staticClass: "el-table el-table--fit el-table--border"
|
|
238695
|
+
}, [_c('div', {
|
|
238696
|
+
staticClass: "el-table__body-wrapper"
|
|
238697
|
+
}, [_vm.oldform ? _c('BusiForm', {
|
|
238698
|
+
ref: "oldBusiForm",
|
|
238699
|
+
attrs: {
|
|
238700
|
+
"wf-instance": _vm.wfInstance,
|
|
238701
|
+
"vo": _vm.oldform.busiformData,
|
|
238702
|
+
"cur-t-n": _vm.curTN,
|
|
238703
|
+
"can-edit": 0
|
|
238704
|
+
}
|
|
238705
|
+
}) : _vm._e()], 1)])]), _c('td', {
|
|
238706
|
+
staticClass: "el-table__cell tdcont",
|
|
238707
|
+
attrs: {
|
|
238708
|
+
"width": "50%"
|
|
238709
|
+
}
|
|
238710
|
+
}, [_c('div', {
|
|
238711
|
+
staticClass: "el-table el-table--fit el-table--border"
|
|
238712
|
+
}, [_c('div', {
|
|
238713
|
+
staticClass: "el-table__body-wrapper"
|
|
238714
|
+
}, [_vm.newform ? _c('BusiForm', {
|
|
238715
|
+
ref: "newBusiForm",
|
|
238716
|
+
attrs: {
|
|
238717
|
+
"wf-instance": _vm.wfInstance,
|
|
238718
|
+
"vo": _vm.newform.busiformData,
|
|
238719
|
+
"cur-t-n": _vm.curTN,
|
|
238720
|
+
"can-edit": 0
|
|
238721
|
+
}
|
|
238722
|
+
}) : _vm._e()], 1)])])])]) : _vm._e()])])])], 2) : _vm._e();
|
|
238723
|
+
};
|
|
238724
|
+
var srcvue_type_template_id_fe090580_scoped_true_staticRenderFns = [];
|
|
238725
|
+
|
|
238726
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/ModifyFormTrace/src/index.vue?vue&type=script&lang=js
|
|
238727
|
+
//import DiffTable from './DiffTable.vue'
|
|
238728
|
+
|
|
238729
|
+
/* harmony default export */ var ModifyFormTrace_srcvue_type_script_lang_js = ({
|
|
238730
|
+
name: 'ModifyFormTrace',
|
|
238731
|
+
components: {
|
|
238732
|
+
//DiffTable
|
|
238733
|
+
},
|
|
238734
|
+
data: function data() {
|
|
238735
|
+
return {
|
|
238736
|
+
dialogFormVisible: false,
|
|
238737
|
+
title: '表单修改记录',
|
|
238738
|
+
winWidth: 1200,
|
|
238739
|
+
fullscreen: false,
|
|
238740
|
+
loading: true,
|
|
238741
|
+
wfInstance: null,
|
|
238742
|
+
curTN: null,
|
|
238743
|
+
formdataList: [],
|
|
238744
|
+
oldform: null,
|
|
238745
|
+
newform: null
|
|
238746
|
+
/*curData: [
|
|
238747
|
+
{ id: 1, name: 'zhangsan1', age: 23, address: 'zxczxczxc' },
|
|
238748
|
+
{ id: 2, name: 'zhangsan2', age: 23.5, address: 'zxczxczxc' },
|
|
238749
|
+
{ id: 3, name: 'zhangsan34', age: 23, address: 'zxczxczxc' },
|
|
238750
|
+
{ id: 4, name: 'zhangsan4', age: 23, address: 'zxczxczxc' },
|
|
238751
|
+
{ id: 5, name: 'zhangsan5', age: 23, address: 'zxczxczxc' },
|
|
238752
|
+
{ id: 6, name: 'zhangsan5', age: 23, address: 'zxczxczxc' }
|
|
238753
|
+
],
|
|
238754
|
+
oldData: [
|
|
238755
|
+
{ id: 1, name: 'zhangsan1', age: 23, address: 'zxczxczxc' },
|
|
238756
|
+
{ id: 2, name: 'zhangsan2', age: 23, address: 'zxczxczxc' },
|
|
238757
|
+
{ id: 4, name: 'zhangsan4', age: 23, address: '地址地址地址' },
|
|
238758
|
+
{ id: 3, name: 'zhangsan3', age: 23, address: 'zxczxczxc' },
|
|
238759
|
+
{ id: 5, name: 'zhangsan5', age: 23, address: 'zxczxczxc' },
|
|
238760
|
+
{ id: 7, name: 'zhangsan5', age: 23, address: 'zxczxczxc' },
|
|
238761
|
+
{ id: 8, name: 'zhangsan5', age: 23, address: 'zxczxczxc' }
|
|
238762
|
+
],
|
|
238763
|
+
tableColumns: [
|
|
238764
|
+
{ label: '唯一id', prop: 'id' },
|
|
238765
|
+
{ label: '名称', prop: 'name' },
|
|
238766
|
+
{ label: '年龄', prop: 'age' },
|
|
238767
|
+
{ label: '地址', prop: 'address' }
|
|
238768
|
+
]*/
|
|
238769
|
+
};
|
|
238770
|
+
},
|
|
238771
|
+
created: function created() {
|
|
238772
|
+
this.$bus.on('btnModifyFormClick', this.btnModifyFormClick);
|
|
238773
|
+
this.$bus.on('btnModifyFormTrace', this.showModifyFormTrace);
|
|
238774
|
+
},
|
|
238775
|
+
beforeDestroy: function beforeDestroy() {
|
|
238776
|
+
this.$bus.off('btnModifyFormClick', this.btnModifyFormClick);
|
|
238777
|
+
this.$bus.off('btnModifyFormTrace', this.showModifyFormTrace);
|
|
238778
|
+
},
|
|
238779
|
+
methods: {
|
|
238780
|
+
btnModifyFormClick: function btnModifyFormClick(commandBar) {
|
|
238781
|
+
var $scope = this.$vnode.context.$vnode.context;
|
|
238782
|
+
var btnModifyForm = commandBar.filter(function (btn) {
|
|
238783
|
+
return btn.btnJavascript.indexOf('btnModifyFormClick(') !== -1;
|
|
238784
|
+
})[0];
|
|
238785
|
+
if (btnModifyForm.btnIcon === 'save.svg') {
|
|
238786
|
+
$scope.$route.query.busiCode = $scope.wfInstance.module; //设置busiCode保存成功后自动刷新
|
|
238787
|
+
$scope.btnSubmitClick('FlowAdminSave');
|
|
238788
|
+
} else {
|
|
238789
|
+
btnModifyForm.btnName = '保存表单信息';
|
|
238790
|
+
btnModifyForm.btnIcon = 'save.svg';
|
|
238791
|
+
$scope.$set($scope.curTN, 'tnCanEdit', 1);
|
|
238792
|
+
var activeName = $scope.activeName;
|
|
238793
|
+
$scope.activeName = '';
|
|
238794
|
+
this.$nextTick(function () {
|
|
238795
|
+
$scope.activeName = activeName;
|
|
238796
|
+
});
|
|
238797
|
+
}
|
|
238798
|
+
},
|
|
238799
|
+
showModifyFormTrace: function showModifyFormTrace() {
|
|
238800
|
+
var _this = this;
|
|
238801
|
+
this.loading = true;
|
|
238802
|
+
var $scope = this.$vnode.context.$vnode.context;
|
|
238803
|
+
this.wfInstance = $scope.wfInstance;
|
|
238804
|
+
this.curTN = JSON.parse(JSON.stringify($scope.curTN));
|
|
238805
|
+
this.curTN.tnCanEdit = 0;
|
|
238806
|
+
this.$options.components['BusiForm'] = $scope.$options.components['BusiForm'];
|
|
238807
|
+
this.formdataList = [];
|
|
238808
|
+
this.$http({
|
|
238809
|
+
url: 'workflow/wfBusiFormdata/querydata?orderBy=saveTime',
|
|
238810
|
+
method: 'POST',
|
|
238811
|
+
data: [{
|
|
238812
|
+
compare: '=',
|
|
238813
|
+
field: 'wfInstanceId',
|
|
238814
|
+
merge: true,
|
|
238815
|
+
value: this.wfInstance.id
|
|
238816
|
+
}]
|
|
238817
|
+
}).then(function (res) {
|
|
238818
|
+
if (res.code === 'success') {
|
|
238819
|
+
_this.loading = false;
|
|
238820
|
+
if (res.body.listdata.length < 2) {
|
|
238821
|
+
_this.$alert('暂无表单修改记录', '操作提示', {
|
|
238822
|
+
type: 'warning'
|
|
238823
|
+
});
|
|
238824
|
+
} else {
|
|
238825
|
+
res.body.listdata.forEach(function (formdata) {
|
|
238826
|
+
formdata.busiformData = JSON.parse(formdata.busiformData);
|
|
238827
|
+
});
|
|
238828
|
+
_this.formdataList = res.body.listdata;
|
|
238829
|
+
_this.oldform = _this.formdataList[0];
|
|
238830
|
+
_this.newform = _this.formdataList[1];
|
|
238831
|
+
_this.dialogFormVisible = true;
|
|
238832
|
+
_this.$nextTick(function () {
|
|
238833
|
+
_this.compareData();
|
|
238834
|
+
});
|
|
238835
|
+
}
|
|
238836
|
+
} else {
|
|
238837
|
+
_this.$alert(res.message, '操作提示', {
|
|
238838
|
+
type: 'error'
|
|
238839
|
+
});
|
|
238840
|
+
}
|
|
238841
|
+
});
|
|
238842
|
+
},
|
|
238843
|
+
compareData: function compareData() {
|
|
238844
|
+
var oldBusiForm = this.$refs['oldBusiForm'];
|
|
238845
|
+
var newBusiForm = this.$refs['newBusiForm'];
|
|
238846
|
+
for (var key in oldBusiForm.$refs) {
|
|
238847
|
+
if (oldBusiForm.$refs[key].$el) {
|
|
238848
|
+
if (!newBusiForm.$refs[key]) {
|
|
238849
|
+
//新表单被删除的字段
|
|
238850
|
+
oldBusiForm.$refs[key].$el.classList.add('red');
|
|
238851
|
+
} else if (oldBusiForm.$refs[key].$el.innerText !== newBusiForm.$refs[key].$el.innerText) {
|
|
238852
|
+
oldBusiForm.$refs[key].$el.classList.add('yellow');
|
|
238853
|
+
newBusiForm.$refs[key].$el.classList.add('yellow');
|
|
238854
|
+
} else if (this.oldform.busiformData[key] !== this.newform.busiformData[key]) {
|
|
238855
|
+
oldBusiForm.$refs[key].$el.classList.add('yellow');
|
|
238856
|
+
newBusiForm.$refs[key].$el.classList.add('yellow');
|
|
238857
|
+
}
|
|
238858
|
+
} else {
|
|
238859
|
+
if (!newBusiForm.$refs[key]) {
|
|
238860
|
+
//新表单被删除的字段
|
|
238861
|
+
oldBusiForm.$refs[key].classList.add('red');
|
|
238862
|
+
} else if (oldBusiForm.$refs[key].innerText !== newBusiForm.$refs[key].innerText) {
|
|
238863
|
+
oldBusiForm.$refs[key].classList.add('yellow');
|
|
238864
|
+
newBusiForm.$refs[key].classList.add('yellow');
|
|
238865
|
+
}
|
|
238866
|
+
}
|
|
238867
|
+
}
|
|
238868
|
+
for (var _key in newBusiForm.$refs) {
|
|
238869
|
+
if (!oldBusiForm.$refs[_key]) {
|
|
238870
|
+
//新表单增加的字段
|
|
238871
|
+
if (newBusiForm.$refs[_key].$el) {
|
|
238872
|
+
newBusiForm.$refs[_key].$el.classList.add('green');
|
|
238873
|
+
} else {
|
|
238874
|
+
newBusiForm.$refs[_key].classList.add('green');
|
|
238875
|
+
}
|
|
238876
|
+
}
|
|
238877
|
+
}
|
|
238878
|
+
//防止表单字段未添加$ref,通过doc比较行差异
|
|
238879
|
+
var oldformRows = oldBusiForm.$el.querySelectorAll('TR');
|
|
238880
|
+
var newformRows = newBusiForm.$el.querySelectorAll('TR');
|
|
238881
|
+
if (oldformRows.length !== newformRows.length) {
|
|
238882
|
+
oldformRows.forEach(function (oldformRow) {
|
|
238883
|
+
var tbl = oldformRow.querySelector('TD').innerText;
|
|
238884
|
+
var newformRow = null;
|
|
238885
|
+
for (var i = 0; i < newformRows.length; i++) {
|
|
238886
|
+
if (tbl === newformRows[i].innerText) {
|
|
238887
|
+
newformRow = newformRows[i];
|
|
238888
|
+
}
|
|
238889
|
+
}
|
|
238890
|
+
if (newformRow) {
|
|
238891
|
+
oldformRow.classList.add('red');
|
|
238892
|
+
}
|
|
238893
|
+
});
|
|
238894
|
+
newformRows.forEach(function (newformRow) {
|
|
238895
|
+
var tbl = newformRow.querySelector('TD').innerText;
|
|
238896
|
+
var oldformRow = null;
|
|
238897
|
+
for (var i = 0; i < oldformRows.length; i++) {
|
|
238898
|
+
if (tbl === oldformRows[i].innerText) {
|
|
238899
|
+
oldformRow = oldformRows[i];
|
|
238900
|
+
}
|
|
238901
|
+
}
|
|
238902
|
+
if (oldformRow) {
|
|
238903
|
+
newformRow.classList.add('green');
|
|
238904
|
+
}
|
|
238905
|
+
});
|
|
238906
|
+
}
|
|
238907
|
+
},
|
|
238908
|
+
setOldform: function setOldform(val) {
|
|
238909
|
+
var _this2 = this;
|
|
238910
|
+
var newform = this.newform;
|
|
238911
|
+
this.oldform = null;
|
|
238912
|
+
this.newform = null;
|
|
238913
|
+
this.$nextTick(function () {
|
|
238914
|
+
_this2.oldform = val;
|
|
238915
|
+
_this2.newform = newform;
|
|
238916
|
+
_this2.$nextTick(function () {
|
|
238917
|
+
_this2.compareData();
|
|
238918
|
+
});
|
|
238919
|
+
});
|
|
238920
|
+
},
|
|
238921
|
+
setNewform: function setNewform(val) {
|
|
238922
|
+
var _this3 = this;
|
|
238923
|
+
var oldform = this.oldform;
|
|
238924
|
+
this.oldform = null;
|
|
238925
|
+
this.newform = null;
|
|
238926
|
+
this.$nextTick(function () {
|
|
238927
|
+
_this3.oldform = oldform;
|
|
238928
|
+
_this3.newform = val;
|
|
238929
|
+
_this3.$nextTick(function () {
|
|
238930
|
+
_this3.compareData();
|
|
238931
|
+
});
|
|
238932
|
+
});
|
|
238933
|
+
},
|
|
238934
|
+
closeDialog: function closeDialog() {
|
|
238935
|
+
this.dialogFormVisible = false;
|
|
238936
|
+
this.oldform = null;
|
|
238937
|
+
this.newform = null;
|
|
238938
|
+
this.wfInstance = {};
|
|
238939
|
+
},
|
|
238940
|
+
// 全屏设置
|
|
238941
|
+
setFullScreen: function setFullScreen() {
|
|
238942
|
+
var _this4 = this;
|
|
238943
|
+
this.fullscreen = !this.fullscreen;
|
|
238944
|
+
this.$nextTick(function () {
|
|
238945
|
+
_this4.$bus.emit('onSetFullScreen', _this4.fullscreen);
|
|
238946
|
+
});
|
|
238947
|
+
}
|
|
238948
|
+
}
|
|
238949
|
+
});
|
|
238950
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/ModifyFormTrace/src/index.vue?vue&type=script&lang=js
|
|
238951
|
+
/* harmony default export */ var ecwapp_ModifyFormTrace_srcvue_type_script_lang_js = (ModifyFormTrace_srcvue_type_script_lang_js);
|
|
238952
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/ModifyFormTrace/src/index.vue?vue&type=style&index=0&id=fe090580&prod&lang=scss&scoped=true
|
|
238953
|
+
var srcvue_type_style_index_0_id_fe090580_prod_lang_scss_scoped_true = __webpack_require__(79907);
|
|
238954
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/ModifyFormTrace/src/index.vue?vue&type=style&index=0&id=fe090580&prod&lang=scss&scoped=true
|
|
238955
|
+
|
|
238956
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/ModifyFormTrace/src/index.vue
|
|
238957
|
+
|
|
238958
|
+
|
|
238959
|
+
|
|
238960
|
+
;
|
|
238961
|
+
|
|
238962
|
+
|
|
238963
|
+
/* normalize component */
|
|
238964
|
+
|
|
238965
|
+
var ModifyFormTrace_src_component = (0,componentNormalizer/* default */.A)(
|
|
238966
|
+
ecwapp_ModifyFormTrace_srcvue_type_script_lang_js,
|
|
238967
|
+
srcvue_type_template_id_fe090580_scoped_true_render,
|
|
238968
|
+
srcvue_type_template_id_fe090580_scoped_true_staticRenderFns,
|
|
238969
|
+
false,
|
|
238970
|
+
null,
|
|
238971
|
+
"fe090580",
|
|
238972
|
+
null
|
|
238973
|
+
|
|
238974
|
+
)
|
|
238975
|
+
|
|
238976
|
+
/* harmony default export */ var ModifyFormTrace_src = (ModifyFormTrace_src_component.exports);
|
|
238977
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/ModifyFormTrace/index.js
|
|
238978
|
+
|
|
238979
|
+
|
|
238980
|
+
// 为组件添加 install 方法,用于按需引入
|
|
238981
|
+
ModifyFormTrace_src.install = function (Vue) {
|
|
238982
|
+
Vue.component(ModifyFormTrace_src.name, ModifyFormTrace_src);
|
|
238983
|
+
};
|
|
238984
|
+
/* harmony default export */ var ModifyFormTrace = (ModifyFormTrace_src);
|
|
238491
238985
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/PageContent/src/index.vue?vue&type=template&id=faaa3f32&scoped=true
|
|
238492
238986
|
var srcvue_type_template_id_faaa3f32_scoped_true_render = function render() {
|
|
238493
238987
|
var _vm = this,
|
|
@@ -336922,10 +337416,11 @@ function wappaio_toPrimitive(t, r) { if ("object" != wappaio_typeof(t) || !t) re
|
|
|
336922
337416
|
|
|
336923
337417
|
|
|
336924
337418
|
|
|
337419
|
+
|
|
336925
337420
|
|
|
336926
337421
|
|
|
336927
337422
|
// 以数组的结构保存组件,便于遍历
|
|
336928
|
-
var components = [app, auth, eventBus, user, Basicform, BatchProcessing, BatchProcessing_TaskItemTypeTree, Basicform_DynamicForm, Basicform_FormItem, DataTable, DataTable_Toolbar, DatetimeRange, DoingDialog, InnerTable, LRLayout, LeftPanel, RightPanel, PageHeader, PageContent, PdfTools, ResRoles_ResRoles, ResRoles_RoleInfoForm, ResRoles_RolePermissionForm, Product_Product, ProductRoleMgr, Module/* ModuleIndex */.$U, Module/* SysSetup */.DY, Module/* CopyMenu */.tT, Module/* ModuleMenu */.Mq, ResRoles_PermissionMatrixMgr, Module/* FrameLoader */.vT, Organ_ImportPersonOrg, Organ_ImportWorkgroupMember, Organ_OrgPersonMgr, Organ_OrgTreeMgr, Organ_JobMatrixMgr, Organ_OrgUserList, Organ_OrgTreeLRLayout, Organ_ColumnEdit, RichtextEditor, ScrollPane, SelectDialog, SelectGroup, SidebarLogo, SvgIcon, WfNames, BusiformDesigner, FromEventEdit, ListPageDesigner, TableEntityDesigner_DbSearchPanel, TableEntityDesigner_TableEntityBatchAdd, UdmGenerator_UserModuleForm, TableEntityDesigner_TableEntityForm, TableEntityDesigner_TableFieldForm, TableEntityDesigner_TableFieldList, TableEntityDesigner_ImportModuleCode, TableEntityDesigner_ExportModuleCode, PortalPageDesigner, PortalPageDesigner_PageEvent, PortalPageDesigner_ModuleStyle, UdmGenerator, UdmGenerator_UserModuleForm, SystemDesigner, ResRoles_RoleMgr, WfdList, AdminConsole_BusiformList, AdminConsole_BusiformMgr, AdminConsole_ListpageList, AdminConsole_ListpageMgr, AdminConsole_SyncRestfulApi, AdminConsole_TableEntityList, AdminConsole_TableEntityMgr, wfengine, WorkflowDesigner, ImportWf, FlowTrace, Tester, Wflowform_Attachment, Wflowform_BodyFile, Wflowform_CommandBar, Wflowform_HandleIdea, Wflowform_IdeaInputBox, Wflowform_ModifyWflogAddUser, Wflowform_ModifyWflogSubmitFile, Wflowform_ModifyWflogIdea, Wflowform_WriteToReadIdea, Wflowform_ModifyWfNodelog, Wflowform_SelectOuterDeputy, Wflowform_SubmitHandle, Wflowform_SubmitDialog, Wflowform_WfNodelogList, Wflowform_WflowView, Wflowform_ImgView, Wflowform_IdeaSignature, Wflowform_ReplaceFile, Wflowform_ViewBodyFile, TextRecognition_PDFInjector, TextRecognition_TextRecognition];
|
|
337423
|
+
var components = [app, auth, eventBus, user, Basicform, BatchProcessing, BatchProcessing_TaskItemTypeTree, Basicform_DynamicForm, Basicform_FormItem, DataTable, DataTable_Toolbar, DatetimeRange, DoingDialog, InnerTable, LRLayout, LeftPanel, RightPanel, ModifyFormTrace, PageHeader, PageContent, PdfTools, ResRoles_ResRoles, ResRoles_RoleInfoForm, ResRoles_RolePermissionForm, Product_Product, ProductRoleMgr, Module/* ModuleIndex */.$U, Module/* SysSetup */.DY, Module/* CopyMenu */.tT, Module/* ModuleMenu */.Mq, ResRoles_PermissionMatrixMgr, Module/* FrameLoader */.vT, Organ_ImportPersonOrg, Organ_ImportWorkgroupMember, Organ_OrgPersonMgr, Organ_OrgTreeMgr, Organ_JobMatrixMgr, Organ_OrgUserList, Organ_OrgTreeLRLayout, Organ_ColumnEdit, RichtextEditor, ScrollPane, SelectDialog, SelectGroup, SidebarLogo, SvgIcon, WfNames, BusiformDesigner, FromEventEdit, ListPageDesigner, TableEntityDesigner_DbSearchPanel, TableEntityDesigner_TableEntityBatchAdd, UdmGenerator_UserModuleForm, TableEntityDesigner_TableEntityForm, TableEntityDesigner_TableFieldForm, TableEntityDesigner_TableFieldList, TableEntityDesigner_ImportModuleCode, TableEntityDesigner_ExportModuleCode, PortalPageDesigner, PortalPageDesigner_PageEvent, PortalPageDesigner_ModuleStyle, UdmGenerator, UdmGenerator_UserModuleForm, SystemDesigner, ResRoles_RoleMgr, WfdList, AdminConsole_BusiformList, AdminConsole_BusiformMgr, AdminConsole_ListpageList, AdminConsole_ListpageMgr, AdminConsole_SyncRestfulApi, AdminConsole_TableEntityList, AdminConsole_TableEntityMgr, wfengine, WorkflowDesigner, ImportWf, FlowTrace, Tester, Wflowform_Attachment, Wflowform_BodyFile, Wflowform_CommandBar, Wflowform_HandleIdea, Wflowform_IdeaInputBox, Wflowform_ModifyWflogAddUser, Wflowform_ModifyWflogSubmitFile, Wflowform_ModifyWflogIdea, Wflowform_WriteToReadIdea, Wflowform_ModifyWfNodelog, Wflowform_SelectOuterDeputy, Wflowform_SubmitHandle, Wflowform_SubmitDialog, Wflowform_WfNodelogList, Wflowform_WflowView, Wflowform_ImgView, Wflowform_IdeaSignature, Wflowform_ReplaceFile, Wflowform_ViewBodyFile, TextRecognition_PDFInjector, TextRecognition_TextRecognition];
|
|
336929
337424
|
|
|
336930
337425
|
// 定义 install 方法
|
|
336931
337426
|
var wappaio_install = function install(Vue) {
|