cloud-web-corejs-haier 1.0.23 → 1.0.25

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.
Files changed (44) hide show
  1. package/package.json +1 -1
  2. package/src/components/xform/form-designer/designer.js +1 -1
  3. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +1 -1
  4. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
  5. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
  6. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  7. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +8 -2
  8. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  9. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +1 -1
  10. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +11 -1
  11. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +4 -1
  12. package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +8 -3
  13. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +37 -37
  14. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
  15. package/src/components/xform/form-designer/form-widget/indexMixin.js +1 -1
  16. package/src/components/xform/form-designer/indexMixin.js +1 -1
  17. package/src/components/xform/form-designer/refMixinDesign.js +1 -28
  18. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  19. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +57 -47
  20. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
  21. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
  22. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  23. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  24. package/src/components/xform/form-designer/widget-panel/indexMixin.js +1 -290
  25. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +60 -34
  26. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  27. package/src/components/xform/form-render/container-item/data-table-item.vue +6 -1
  28. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  29. package/src/components/xform/form-render/container-item/table2-item.vue +12 -4
  30. package/src/components/xform/form-render/dynamicDialogRender.js +1 -195
  31. package/src/components/xform/form-render/index.vue +7 -7
  32. package/src/components/xform/form-render/indexMixin.js +1 -1
  33. package/src/components/xform/form-render/refMixin.js +1 -1
  34. package/src/components/xform/lang/zh-CN.js +2 -0
  35. package/src/components/xform/mixins/defaultHandle.js +1 -338
  36. package/src/components/xform/mixins/scriptHttp.js +1 -172
  37. package/src/components/xform/utils/util.js +1 -1460
  38. package/src/components/xform/utils/validators.js +1 -133
  39. package/src/views/user/form/form_template/itemList.vue +221 -221
  40. package/src/views/user/form/form_template/list.vue +512 -512
  41. package/src/views/user/form/form_type/list.vue +142 -142
  42. package/src/views/user/form/report_requestaccess/list.vue +198 -198
  43. package/src/views/user/form/vform/render.vue +8 -0
  44. package/src/views/user/form/view/list.vue +9 -0
@@ -1,134 +1,2 @@
1
1
  import {evalFn, isNull} from "./util";
2
-
3
- export const getRegExp = function (validatorName) {
4
- const commonRegExp = {
5
- number: '/^[-]?\\d+(\\.\\d+)?$/',
6
- letter: '/^[A-Za-z]+$/',
7
- letterAndNumber: '/^[A-Za-z0-9]+$/',
8
- mobilePhone: '/^[1][3-9][0-9]{9}$/',
9
- letterStartNumberIncluded: '/^[A-Za-z]+[A-Za-z\\d]*$/',
10
- noChinese: '/^[^\u4e00-\u9fa5]+$/',
11
- chinese: '/^[\u4e00-\u9fa5]+$/',
12
- email: '/^([-_A-Za-z0-9.]+)@([_A-Za-z0-9]+\\.)+[A-Za-z0-9]{2,3}$/',
13
- url: '/^([hH][tT]{2}[pP]:\\/\\/|[hH][tT]{2}[pP][sS]:\\/\\/)(([A-Za-z0-9-~]+)\\.)+([A-Za-z0-9-~\\/])+$/',
14
- }
15
-
16
- return commonRegExp[validatorName]
17
- }
18
-
19
- const validateFn = function (validatorName, rule, value, callback, defaultErrorMsg) {
20
- //空值不校验
21
- if (isNull(value) || (value.length <= 0)) {
22
- callback()
23
- return
24
- }
25
-
26
- const reg = evalFn(getRegExp(validatorName))
27
-
28
- if (!reg.test(value)) {
29
- let errTxt = rule.errorMsg || defaultErrorMsg
30
- callback(new Error(errTxt))
31
- } else {
32
- callback()
33
- }
34
- }
35
-
36
- const FormValidators = {
37
-
38
- /* 数字 */
39
- number(rule, value, callback) {
40
- validateFn('number', rule, value, callback, '[' + rule.label + ']包含非数字字符')
41
- },
42
-
43
- /* 字母 */
44
- letter(rule, value, callback) {
45
- validateFn('letter', rule, value, callback, '[' + rule.label + ']包含非字母字符')
46
- },
47
-
48
- /* 字母和数字 */
49
- letterAndNumber(rule, value, callback) {
50
- validateFn('letterAndNumber', rule, value, callback, '[' + rule.label + ']只能输入字母或数字')
51
- },
52
-
53
- /* 手机号码 */
54
- mobilePhone(rule, value, callback) {
55
- validateFn('mobilePhone', rule, value, callback, '[' + rule.label + ']手机号码格式有误')
56
- },
57
-
58
- /* 禁止空白字符开头 */
59
- noBlankStart(rule, value, callback) {
60
- //暂未实现
61
- },
62
-
63
- /* 禁止空白字符结尾 */
64
- noBlankEnd(rule, value, callback) {
65
- //暂未实现
66
- },
67
-
68
- /* 字母开头,仅可包含数字 */
69
- letterStartNumberIncluded(rule, value, callback) {
70
- validateFn('letterStartNumberIncluded', rule, value, callback, '[' + rule.label + ']必须以字母开头,可包含数字')
71
- },
72
-
73
- /* 禁止中文输入 */
74
- noChinese(rule, value, callback) {
75
- validateFn('noChinese', rule, value, callback, '[' + rule.label + ']不可输入中文字符')
76
- },
77
-
78
- /* 必须中文输入 */
79
- chinese(rule, value, callback) {
80
- validateFn('chinese', rule, value, callback, '[' + rule.label + ']只能输入中文字符')
81
- },
82
-
83
- /* 电子邮箱 */
84
- email(rule, value, callback) {
85
- validateFn('email', rule, value, callback, '[' + rule.label + ']邮箱格式有误')
86
- },
87
-
88
- /* URL网址 */
89
- url(rule, value, callback) {
90
- validateFn('url', rule, value, callback, '[' + rule.label + ']URL格式有误')
91
- },
92
-
93
- /*测试
94
- test(rule, value, callback, errorMsg) {
95
- //空值不校验
96
- if (isNull(value) || (value.length <= 0)) {
97
- callback()
98
- return
99
- }
100
-
101
- if (value < 100) {
102
- callback(new Error('[' + rule.label + ']不能小于100'))
103
- } else {
104
- callback()
105
- }
106
- },
107
- */
108
-
109
- regExp(rule, value, callback) {
110
- //空值不校验
111
- if (isNull(value) || (value.length <= 0)) {
112
- callback()
113
- return
114
- }
115
-
116
- if (rule.regExp.length > 0 && rule.regExp[0] !== '/') {
117
- rule.regExp = '/' + rule.regExp
118
- }
119
- if (rule.regExp.length > 0 && rule.regExp[rule.regExp.length - 1] !== '/') {
120
- rule.regExp = rule.regExp + '/'
121
- }
122
-
123
- const pattern = evalFn(rule.regExp)
124
- if (!pattern.test(value)) {
125
- let errTxt = rule.errorMsg || '[' + rule.label + ']invalid value'
126
- callback(new Error(errTxt))
127
- } else {
128
- callback()
129
- }
130
- },
131
-
132
- }
133
-
134
- export default FormValidators
2
+ (function(_0x43fce3,_0xea853e){function _0x12997f(_0x14a5bb,_0x5f3c36,_0x45dcce,_0x232b90,_0x40c97e){return _0x328c(_0x40c97e- -0x36c,_0x45dcce);}function _0x280656(_0x2a8b13,_0x1efe6b,_0x274a22,_0x2854ed,_0x293333){return _0x3b11(_0x293333- -0x33b,_0x1efe6b);}function _0x56a208(_0x87bf78,_0x56c0c8,_0x6612be,_0x3451aa,_0x1d2bce){return _0x3b11(_0x6612be-0x32c,_0x3451aa);}function _0x25f7c2(_0x2a7c9c,_0x23f30c,_0x35d7ca,_0x91b189,_0x70a9c9){return _0x3b11(_0x91b189- -0x1e3,_0x2a7c9c);}function _0x248c01(_0x1be48f,_0x4afa25,_0x189cf5,_0x4c17ec,_0x933e6b){return _0x328c(_0x933e6b- -0x2cb,_0x1be48f);}function _0x57db4f(_0x2de6c5,_0x21fa5f,_0x4bab96,_0xfd826c,_0x2aa195){return _0x3b11(_0xfd826c- -0x26,_0x2aa195);}function _0x5a5086(_0x4c0971,_0x3e94ff,_0x1b3ce8,_0x57c2c6,_0x18c039){return _0x3b11(_0x4c0971- -0x8e,_0x18c039);}function _0x1a245d(_0x19d572,_0x2e83a0,_0xe85bb7,_0x103e0e,_0x515c15){return _0x328c(_0x19d572-0x203,_0x103e0e);}function _0x1a76cd(_0x330bf6,_0x464b06,_0x37f44f,_0x7d53f2,_0x5b6544){return _0x328c(_0x464b06- -0x11a,_0x330bf6);}const _0x5e1b30=_0x43fce3();function _0x5d67bc(_0x4ee59e,_0x17dc00,_0x300edb,_0x2482de,_0x488e90){return _0x328c(_0x488e90-0xf9,_0x300edb);}do{try{const _0x14c7b6=parseInt(_0x280656(-0x2f6,-0x307,-0x312,-0x342,-0x31f))/0x1*(parseInt(_0x57db4f(0x3c,0x22,0x36,0x26,0x45))/0x2)+-parseInt(_0x248c01("\u0051\u0058\u0031\u0058",-0x296,-0x2b3,-0x2e7,-0x2c0))/0x3*(-parseInt(_0x56a208(0x316,0x362,0x339,0x318,0x353))/0x4)+parseInt(_0x248c01("ksxo".split("").reverse().join(""),-0x2a3,-0x281,-0x2ad,-0x2a2))/0x5+parseInt(_0x248c01("KyJa".split("").reverse().join(""),-0x2ac,-0x29a,-0x2cd,-0x2b6))/0x6+parseInt(_0x1a76cd("2IX3".split("").reverse().join(""),-0x111,-0x128,-0xe8,-0x12d))/0x7*(parseInt(_0x56a208(0x370,0x387,0x36c,0x396,0x36b))/0x8)+parseInt(_0x280656(-0x326,-0x325,-0x30d,-0x2ff,-0x310))/0x9+-parseInt(_0x12997f(-0x357,-0x373,"\u0056\u004e\u004d\u006e",-0x350,-0x353))/0xa;if(_0x14c7b6===_0xea853e){break;}else{_0x5e1b30['push'](_0x5e1b30["\u0073\u0068\u0069\u0066\u0074"]());}}catch(_0x124bdc){_0x5e1b30["\u0070\u0075\u0073\u0068"](_0x5e1b30["\u0073\u0068\u0069\u0066\u0074"]());}}while(!![]);})(_0xe3fb,0x32f89);export const getRegExp=function(_0x547f86){const _0x279736={'QImRP':_0x3e6aa4(-0x62,-0x48,-0x81,-0x7a,-0x69),"\u0058\u0074\u004b\u006b\u0079":_0x459adb(-0x15,-0x3f,-0xc,-0x11,-0x24),"\u0054\u0079\u0074\u0077\u0059":_0x33b152(0x372,0x37d,0x385,0x359,0x36a)};function _0x1c4918(_0x510384,_0x10d3ac,_0x342c38,_0x54c1ed,_0x373a86){return _0x3b11(_0x10d3ac-0x3a3,_0x373a86);}function _0x33b152(_0x5465bc,_0x525f25,_0x2f86d4,_0x5f1885,_0x38fbde){return _0x3b11(_0x5465bc-0x350,_0x38fbde);}function _0x3e6aa4(_0x51c3a3,_0x5d019b,_0x396c50,_0x2bc4b1,_0x9a5b86){return _0x3b11(_0x9a5b86- -0x8c,_0x51c3a3);}function _0x459adb(_0xefd82,_0x5eda09,_0xce344,_0x541421,_0x27b502){return _0x3b11(_0xefd82- -0x68,_0x27b502);}const _0x1287ee={'number':_0x279736["\u0051\u0049\u006d\u0052\u0050"],"\u006c\u0065\u0074\u0074\u0065\u0072":_0x3e6aa4(-0x77,-0x90,-0x56,-0x7f,-0x7a),"\u006c\u0065\u0074\u0074\u0065\u0072\u0041\u006e\u0064\u004e\u0075\u006d\u0062\u0065\u0072":_0x279736['XtKky'],"\u006d\u006f\u0062\u0069\u006c\u0065\u0050\u0068\u006f\u006e\u0065":_0x1c4918(0x408,0x3f1,0x3e5,0x3e0,0x41a),"\u006c\u0065\u0074\u0074\u0065\u0072\u0053\u0074\u0061\u0072\u0074\u004e\u0075\u006d\u0062\u0065\u0072\u0049\u006e\u0063\u006c\u0075\u0064\u0065\u0064":_0x3e6aa4(-0x72,-0x9f,-0x79,-0x6c,-0x84),'noChinese':_0x279736["\u0054\u0079\u0074\u0077\u0059"],'chinese':_0x2311dd("A^ja".split("").reverse().join(""),0x362,0x373,0x33a,0x348),"\u0065\u006d\u0061\u0069\u006c":_0x33b152(0x39a,0x389,0x3bc,0x3a8,0x39c),'url':_0x3e6aa4(-0x60,-0x6c,-0x71,-0x53,-0x57)};function _0x2311dd(_0x247818,_0x43de93,_0x604586,_0x25e2e5,_0x1d04a3){return _0x328c(_0x43de93-0x311,_0x247818);}function _0x5e8418(_0x4bb579,_0x5444b6,_0x4a18b8,_0x5962a2,_0x42d335){return _0x3b11(_0x4a18b8- -0x385,_0x5962a2);}return _0x1287ee[_0x547f86];};function _0x3b11(_0x47abdb,_0xe3fb96){const _0x3b1161=_0xe3fb();_0x3b11=function(_0x51181e,_0x3a5423){_0x51181e=_0x51181e-0x0;let _0x31eef4=_0x3b1161[_0x51181e];if(_0x3b11['DjFwil']===undefined){var _0x4ec82b=function(_0x1093a6){const _0x25aac0="\u0061\u0062\u0063\u0064\u0065\u0066\u0067\u0068\u0069\u006a\u006b\u006c\u006d\u006e\u006f\u0070\u0071\u0072\u0073\u0074\u0075\u0076\u0077\u0078\u0079\u007a\u0041\u0042\u0043\u0044\u0045\u0046\u0047\u0048\u0049\u004a\u004b\u004c\u004d\u004e\u004f\u0050\u0051\u0052\u0053\u0054\u0055\u0056\u0057\u0058\u0059\u005a\u0030\u0031\u0032\u0033\u0034\u0035\u0036\u0037\u0038\u0039\u002b\u002f\u003d";let _0x57ae65='';let _0x34fe48='';for(let _0x1c4e13=0x0,_0x29c8eb,_0x5ce9a2,_0x1c61fe=0x0;_0x5ce9a2=_0x1093a6["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x1c61fe++);~_0x5ce9a2&&(_0x29c8eb=_0x1c4e13%0x4?_0x29c8eb*0x40+_0x5ce9a2:_0x5ce9a2,_0x1c4e13++%0x4)?_0x57ae65+=String['fromCharCode'](0xff&_0x29c8eb>>(-0x2*_0x1c4e13&0x6)):0x0){_0x5ce9a2=_0x25aac0['indexOf'](_0x5ce9a2);}for(let _0x389191=0x0,_0x1dc095=_0x57ae65['length'];_0x389191<_0x1dc095;_0x389191++){_0x34fe48+="\u0025"+("00".split("").reverse().join("")+_0x57ae65['charCodeAt'](_0x389191)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34fe48);};_0x3b11['UvMiUa']=_0x4ec82b;_0x47abdb=arguments;_0x3b11["\u0044\u006a\u0046\u0077\u0069\u006c"]=!![];}const _0x2223e2=_0x3b1161[0x0];const _0x44cdbf=_0x51181e+_0x2223e2;const _0x328c0a=_0x47abdb[_0x44cdbf];if(!_0x328c0a){_0x31eef4=_0x3b11['UvMiUa'](_0x31eef4);_0x47abdb[_0x44cdbf]=_0x31eef4;}else{_0x31eef4=_0x328c0a;}return _0x31eef4;};return _0x3b11(_0x47abdb,_0xe3fb96);}function SFBQsL(_0x10e89c,_0x30901c){if(!![]!=![])return;SFBQsL=function(_0xb169c,_0x101902){_0xb169c=_0xb169c-(0x973c9^0x973c9);var _0x57b37a=_0x5e50e6[_0xb169c];return _0x57b37a;};return SFBQsL(_0x10e89c,_0x30901c);}SFBQsL();function _0x328c(_0x47abdb,_0xe3fb96){const _0x3b1161=_0xe3fb();_0x328c=function(_0x51181e,_0x3a5423){_0x51181e=_0x51181e-0x0;let _0x31eef4=_0x3b1161[_0x51181e];if(_0x328c["\u0061\u004a\u0055\u0075\u004d\u0068"]===undefined){var _0x4ec82b=function(_0x25aac0){const _0x57ae65="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x34fe48='';let _0x1c4e13='';for(let _0x29c8eb=0x0,_0x5ce9a2,_0x1c61fe,_0x389191=0x0;_0x1c61fe=_0x25aac0["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x389191++);~_0x1c61fe&&(_0x5ce9a2=_0x29c8eb%0x4?_0x5ce9a2*0x40+_0x1c61fe:_0x1c61fe,_0x29c8eb++%0x4)?_0x34fe48+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x5ce9a2>>(-0x2*_0x29c8eb&0x6)):0x0){_0x1c61fe=_0x57ae65["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x1c61fe);}for(let _0x1dc095=0x0,_0x10e89c=_0x34fe48['length'];_0x1dc095<_0x10e89c;_0x1dc095++){_0x1c4e13+="\u0025"+("\u0030\u0030"+_0x34fe48['charCodeAt'](_0x1dc095)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x1c4e13);};const _0x1093a6=function(_0x30901c,_0xb169c){let _0x101902=[],_0x57b37a=0x0,_0x4d8f2a,_0x3eb286='';_0x30901c=_0x4ec82b(_0x30901c);let _0x163c9f;for(_0x163c9f=0x0;_0x163c9f<0x100;_0x163c9f++){_0x101902[_0x163c9f]=_0x163c9f;}for(_0x163c9f=0x0;_0x163c9f<0x100;_0x163c9f++){_0x57b37a=(_0x57b37a+_0x101902[_0x163c9f]+_0xb169c["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x163c9f%_0xb169c["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x4d8f2a=_0x101902[_0x163c9f];_0x101902[_0x163c9f]=_0x101902[_0x57b37a];_0x101902[_0x57b37a]=_0x4d8f2a;}_0x163c9f=0x0;_0x57b37a=0x0;for(let _0x500ff4=0x0;_0x500ff4<_0x30901c["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x500ff4++){_0x163c9f=(_0x163c9f+0x1)%0x100;_0x57b37a=(_0x57b37a+_0x101902[_0x163c9f])%0x100;_0x4d8f2a=_0x101902[_0x163c9f];_0x101902[_0x163c9f]=_0x101902[_0x57b37a];_0x101902[_0x57b37a]=_0x4d8f2a;_0x3eb286+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0x30901c['charCodeAt'](_0x500ff4)^_0x101902[(_0x101902[_0x163c9f]+_0x101902[_0x57b37a])%0x100]);}return _0x3eb286;};_0x328c['XNQPpm']=_0x1093a6;_0x47abdb=arguments;_0x328c["\u0061\u004a\u0055\u0075\u004d\u0068"]=!![];}const _0x2223e2=_0x3b1161[0x0];const _0x44cdbf=_0x51181e+_0x2223e2;const _0x328c0a=_0x47abdb[_0x44cdbf];if(!_0x328c0a){if(_0x328c['chNkRT']===undefined){_0x328c["\u0063\u0068\u004e\u006b\u0052\u0054"]=!![];}_0x31eef4=_0x328c['XNQPpm'](_0x31eef4,_0x3a5423);_0x47abdb[_0x44cdbf]=_0x31eef4;}else{_0x31eef4=_0x328c0a;}return _0x31eef4;};return _0x328c(_0x47abdb,_0xe3fb96);}function juVCpw(_0x4bda4a,_0x1d048a){if(!![]!=![])return;juVCpw=function(_0x11051c,_0x43530f){_0x11051c=_0x11051c-(0x973c9^0x973c9);var _0x5a085f=_0x5e50e6[_0x11051c];return _0x5a085f;};return juVCpw(_0x4bda4a,_0x1d048a);}juVCpw();const validateFn=function(_0xa3dd42,_0x554dc6,_0x47ae94,_0x129d43,_0x266e83){const _0x19d14f={'lbAAi':function(_0x409c2e){return _0x409c2e();},'glqDZ':function(_0x589b2e){return _0x589b2e();}};if(isNull(_0x47ae94)||_0x47ae94["\u006c\u0065\u006e\u0067\u0074\u0068"]<=(0x97bcb^0x97bcb)){_0x19d14f["\u006c\u0062\u0041\u0041\u0069"](_0x129d43);return;}const _0x3e0f45=evalFn(getRegExp(_0xa3dd42));if(!_0x3e0f45["\u0074\u0065\u0073\u0074"](_0x47ae94)){let _0x23c344=_0x554dc6['errorMsg']||_0x266e83;_0x129d43(new Error(_0x23c344));}else{_0x19d14f['glqDZ'](_0x129d43);}};const FormValidators={"\u006e\u0075\u006d\u0062\u0065\u0072"(_0x5aca7e,_0x51b9fb,_0x48f677){function _0x1a7e38(_0x446a17,_0x5d92d7,_0x5eed44,_0x4023c0,_0x1d6450){return _0x328c(_0x4023c0-0x273,_0x5eed44);}function _0x2da9a2(_0x3d0a8a,_0x1b41dd,_0x42202b,_0x3294d,_0x51d6a1){return _0x3b11(_0x1b41dd- -0x1e6,_0x42202b);}const _0x4f4fca={"\u0056\u0059\u006d\u0077\u004f":function(_0x2156ad,_0x56a25e,_0xc56267,_0x133bb0,_0x1a3409,_0x3b8c12){return _0x2156ad(_0x56a25e,_0xc56267,_0x133bb0,_0x1a3409,_0x3b8c12);},"\u0058\u006a\u004d\u0048\u0046":_0x2da9a2(-0x1c2,-0x1d6,-0x1e8,-0x1eb,-0x1da),"\u004e\u0078\u0055\u004c\u0061":function(_0x54ed0f,_0x117154){return _0x54ed0f+_0x117154;},'NCSSa':_0x1a7e38(0x294,0x287,"CstC".split("").reverse().join(""),0x29a,0x297)};_0x4f4fca["\u0056\u0059\u006d\u0077\u004f"](validateFn,_0x4f4fca['XjMHF'],_0x5aca7e,_0x51b9fb,_0x48f677,_0x4f4fca["\u004e\u0078\u0055\u004c\u0061"]("\u005b",_0x5aca7e["\u006c\u0061\u0062\u0065\u006c"])+_0x4f4fca["\u004e\u0043\u0053\u0053\u0061"]);},"\u006c\u0065\u0074\u0074\u0065\u0072"(_0x324f52,_0x25344b,_0x5cb92b){const _0xcdfe77={"\u007a\u006a\u0074\u0054\u0050":_0x888d99("\u0068\u006b\u0042\u004a",-0x5b,-0x6d,-0x82,-0x31),'WWdSK':function(_0x7a29d3,_0x1f6299){return _0x7a29d3+_0x1f6299;}};function _0x43ccdc(_0x3d9302,_0x5ef6d1,_0x31a0cf,_0x1ea600,_0x1b95c3){return _0x3b11(_0x1b95c3- -0x30e,_0x5ef6d1);}function _0x888d99(_0x237020,_0x239a48,_0x17335e,_0x2b204c,_0x1503db){return _0x328c(_0x239a48- -0x8e,_0x237020);}validateFn(_0xcdfe77["\u007a\u006a\u0074\u0054\u0050"],_0x324f52,_0x25344b,_0x5cb92b,_0xcdfe77['WWdSK']("\u005b"+_0x324f52['label'],_0x43ccdc(-0x303,-0x30e,-0x315,-0x31a,-0x309)));},"\u006c\u0065\u0074\u0074\u0065\u0072\u0041\u006e\u0064\u004e\u0075\u006d\u0062\u0065\u0072"(_0x3b641c,_0x45648f,_0x4bf38e){function _0x47e957(_0x55e977,_0x3f351d,_0x2a503b,_0xec1f25,_0x447882){return _0x3b11(_0x2a503b-0x19f,_0x55e977);}function _0x1f65c8(_0x3a0392,_0x2ecc82,_0x4c8105,_0x11b8b9,_0x12b7f0){return _0x3b11(_0x4c8105-0x3b1,_0x11b8b9);}validateFn(_0x1f65c8(0x3e9,0x3d6,0x3d1,0x3c5,0x3e6),_0x3b641c,_0x45648f,_0x4bf38e,"\u005b"+_0x3b641c["\u006c\u0061\u0062\u0065\u006c"]+_0x47e957(0x196,0x198,0x1a5,0x1a6,0x1a6));},'mobilePhone'(_0x162078,_0x55a1c2,_0x5cce1d){function _0x3ba042(_0x27a037,_0x5aa283,_0x29b13c,_0x40c291,_0x23d554){return _0x3b11(_0x27a037- -0x373,_0x23d554);}function _0x5ecca3(_0x5848af,_0x3549e4,_0x19a32b,_0x178842,_0x57dfef){return _0x328c(_0x3549e4- -0x2f9,_0x5848af);}const _0x502b71={"\u0051\u0076\u0069\u0055\u004e":_0x3ba042(-0x355,-0x32b,-0x34c,-0x34f,-0x338)};validateFn(_0x502b71["\u0051\u0076\u0069\u0055\u004e"],_0x162078,_0x55a1c2,_0x5cce1d,"\u005b"+_0x162078['label']+_0x5ecca3("\u0074\u0061\u0074\u0031",-0x2ca,-0x2d4,-0x2f4,-0x2d2));},'noBlankStart'(_0x943795,_0x5d06cd,_0x716e55){},'noBlankEnd'(_0x2b8a69,_0x4d3230,_0x101f8c){},'letterStartNumberIncluded'(_0x57c2a4,_0x2cc7dc,_0x4b4872){const _0x20dbe5={'TXpGr':_0x20d80d(0x6d,0x59,0x8c,0x6a,0x44),"\u0056\u0071\u006d\u0057\u0069":_0xc97678("\u0063\u0054\u006b\u0028",-0x63,-0x8b,-0x62,-0x78)};function _0x20d80d(_0x26d66e,_0x5da78d,_0x7fd3ac,_0xd36b74,_0x1d14ad){return _0x3b11(_0x26d66e-0x47,_0x7fd3ac);}function _0xc97678(_0x3c299a,_0x19783e,_0x3e1aca,_0x47434e,_0x267215){return _0x328c(_0x47434e- -0x96,_0x3c299a);}validateFn(_0x20dbe5['TXpGr'],_0x57c2a4,_0x2cc7dc,_0x4b4872,"\u005b"+_0x57c2a4["\u006c\u0061\u0062\u0065\u006c"]+_0x20dbe5['VqmWi']);},"\u006e\u006f\u0043\u0068\u0069\u006e\u0065\u0073\u0065"(_0x201e69,_0x23a63c,_0xd9661b){function _0x3e33a6(_0x599334,_0x448eff,_0x37e3f9,_0x47d4ad,_0x542170){return _0x3b11(_0x47d4ad-0x286,_0x448eff);}const _0x50ee0c={"\u0055\u006c\u005a\u0061\u0045":function(_0x536ab4,_0x4d4bf6){return _0x536ab4+_0x4d4bf6;}};function _0x29a0cc(_0x4739ba,_0x53dcac,_0x263215,_0x4cffa8,_0x8a6405){return _0x328c(_0x4739ba-0xb5,_0x8a6405);}validateFn(_0x29a0cc(0xc6,0xc9,0xb7,0xba,"\u0033\u004b\u005e\u0025"),_0x201e69,_0x23a63c,_0xd9661b,_0x50ee0c["\u0055\u006c\u005a\u0061\u0045"]("\u005b",_0x201e69['label'])+_0x3e33a6(0x2b5,0x2c7,0x295,0x2b4,0x2d6));},"\u0063\u0068\u0069\u006e\u0065\u0073\u0065"(_0x191623,_0x15e7e4,_0x48224b){function _0x2d956c(_0xc5f07d,_0x52335a,_0xc64106,_0x580780,_0x25005f){return _0x3b11(_0xc64106- -0x317,_0x580780);}function _0x457d6d(_0x23ea61,_0x1ffd36,_0x410554,_0x517307,_0x51061d){return _0x328c(_0x1ffd36-0x2cc,_0x23ea61);}validateFn(_0x457d6d("x926".split("").reverse().join(""),0x30e,0x331,0x325,0x2fc),_0x191623,_0x15e7e4,_0x48224b,"\u005b"+_0x191623["\u006c\u0061\u0062\u0065\u006c"]+_0x2d956c(-0x2f1,-0x2f4,-0x310,-0x306,-0x2f6));},"\u0065\u006d\u0061\u0069\u006c"(_0x2b6ebd,_0x4de83f,_0x4d1155){const _0x11a8ce={'bvDZU':_0x22473d(0x327,0x311,0x32a,0x30c,0x326)};function _0x22473d(_0x33c361,_0x342eee,_0x4fcaf6,_0x41236e,_0x9a2ddf){return _0x3b11(_0x342eee-0x2c4,_0x9a2ddf);}function _0x35a1c9(_0x3be214,_0x57c95c,_0x24a4cf,_0x14ecf5,_0x4ee4ab){return _0x328c(_0x57c95c-0x180,_0x4ee4ab);}validateFn(_0x11a8ce['bvDZU'],_0x2b6ebd,_0x4de83f,_0x4d1155,"\u005b"+_0x2b6ebd['label']+_0x35a1c9(0x18f,0x1b7,0x1a8,0x1b4,"LOsY".split("").reverse().join("")));},"\u0075\u0072\u006c"(_0x30eada,_0x138bab,_0x40d23c){function _0x173f85(_0x57ca82,_0x21c5b3,_0x42f1a6,_0x54659f,_0x1d7c3b){return _0x3b11(_0x54659f- -0x16,_0x1d7c3b);}function _0x5c00db(_0x2bac31,_0x2236f7,_0x48f723,_0x1311f1,_0x5bf696){return _0x328c(_0x5bf696-0xa0,_0x2bac31);}validateFn(_0x5c00db("\u0033\u0058\u0049\u0032",0xaa,0xb1,0x7e,0xa3),_0x30eada,_0x138bab,_0x40d23c,"\u005b"+_0x30eada["\u006c\u0061\u0062\u0065\u006c"]+_0x173f85(0x1f,-0x8,-0x5,0x2,-0xb));},"\u0072\u0065\u0067\u0045\u0078\u0070"(_0x561318,_0x2425a8,_0x5a63b2){const _0x48c6f1={'jrNKp':function(_0xfd4db3,_0xaab76e){return _0xfd4db3(_0xaab76e);},'jHRIB':function(_0x40b455,_0x47d315){return _0x40b455^_0x47d315;},"\u0069\u0079\u004a\u0064\u004e":function(_0x5d31e0){return _0x5d31e0();},"\u0066\u0053\u0043\u006d\u0069":function(_0x420cc1,_0x46980c){return _0x420cc1^_0x46980c;},"\u006f\u0042\u0065\u0072\u0045":function(_0x327257,_0x18110a){return _0x327257!==_0x18110a;},"\u004e\u0066\u004e\u0049\u0055":function(_0x12c53a,_0x308e0b){return _0x12c53a-_0x308e0b;}};if(_0x48c6f1["\u006a\u0072\u004e\u004b\u0070"](isNull,_0x2425a8)||_0x2425a8["\u006c\u0065\u006e\u0067\u0074\u0068"]<=_0x48c6f1["\u006a\u0048\u0052\u0049\u0042"](0xb5968,0xb5968)){_0x48c6f1['iyJdN'](_0x5a63b2);return;}if(_0x561318["\u0072\u0065\u0067\u0045\u0078\u0070"]['length']>_0x48c6f1["\u0066\u0053\u0043\u006d\u0069"](0xcc849,0xcc849)&&_0x561318["\u0072\u0065\u0067\u0045\u0078\u0070"][0x970d6^0x970d6]!=="\u002f"){_0x561318['regExp']="\u002f"+_0x561318["\u0072\u0065\u0067\u0045\u0078\u0070"];}function _0x391b9a(_0x3a435c,_0xbb990f,_0x1993bd,_0x322235,_0x3ae0fd){return _0x3b11(_0x3a435c-0x74,_0x3ae0fd);}if(_0x561318['regExp']["\u006c\u0065\u006e\u0067\u0074\u0068"]>(0x9f79e^0x9f79e)&&_0x48c6f1['oBerE'](_0x561318['regExp'][_0x48c6f1["\u004e\u0066\u004e\u0049\u0055"](_0x561318['regExp']["\u006c\u0065\u006e\u0067\u0074\u0068"],0x6559e^0x6559f)],"\u002f")){_0x561318["\u0072\u0065\u0067\u0045\u0078\u0070"]=_0x561318['regExp']+"\u002f";}const _0x298a66=evalFn(_0x561318["\u0072\u0065\u0067\u0045\u0078\u0070"]);if(!_0x298a66['test'](_0x2425a8)){let _0x12f2a7=_0x561318["\u0065\u0072\u0072\u006f\u0072\u004d\u0073\u0067"]||"\u005b"+_0x561318['label']+_0x391b9a(0xb3,0xc6,0xc7,0xdd,0xd1);_0x5a63b2(new Error(_0x12f2a7));}else{_0x48c6f1['iyJdN'](_0x5a63b2);}}};export default FormValidators;function _0xe3fb(){const _0x4ea4f6=["\u006d\u004a\u0062\u0079\u0044\u0030\u007a\u0033\u007a\u004b\u0034","s5PWpkCMdZRW".split("").reverse().join(""),"\u0042\u0077\u0039\u0049\u0041\u0077\u0058\u004c\u0075\u0067\u0048\u0056\u0042\u004d\u0075","\u0057\u0051\u0053\u0079\u006e\u0038\u006b\u0058\u0057\u0036\u0078\u0063\u0056\u0047","\u0042\u0067\u0076\u0030\u0044\u0067\u0076\u0059\u0071\u0077\u0035\u004b\u0074\u004e\u0076\u0054\u0079\u004d\u0076\u0059","\u0042\u0067\u006a\u0062\u0071\u0077\u004b","VqYkDvQVP3cG4sUxB51l".split("").reverse().join(""),"\u006c\u0031\u0035\u0042\u006c\u0076\u0030\u002f\u0078\u0067\u0071\u0052\u006b\u0066\u0057\u0055\u0078\u0067\u0071\u0052\u006b\u0074\u0038\u004b\u006c\u0057","\u0076\u0066\u0048\u0057\u0072\u0033\u0069","\u0076\u004c\u004c\u0054\u0044\u0030\u0038","azLrwDSnMBjjxzI1wDorNCHr3uYvgD0vgB".split("").reverse().join(""),"aMTE+VVwEJUwENuAEGEMoLtw+How+B".split("").reverse().join(""),"bkCygk8dzP5W".split("").reverse().join(""),"\u007a\u0053\u006f\u002b\u006c\u006d\u006f\u004b\u0057\u0051\u0079\u0061\u0057\u0035\u0047\u0065\u0061\u0072\u0078\u0063\u0053\u0053\u006b\u006f","GBUoSPchOWrG7WQkCSdtRWjomLdpQW".split("").reverse().join(""),"\u006d\u004a\u0071\u0058\u006e\u004a\u006d\u0059\u0045\u0068\u0050\u0035\u0079\u0031\u006e\u0030","ywgJkmiO87W".split("").reverse().join(""),"\u007a\u0078\u006a\u0059\u0042\u0033\u006a\u006e\u0043\u0032\u0043","\u0078\u0045\u0073\u0034\u004a\u0045\u0077\u0070\u0052\u002b\u0049\u002b\u004b\u002b\u0077\u0066\u0050\u0045\u0073\u0034\u0052\u0045\u0041\u0077\u0048\u002b\u0077\u0054\u004c\u002b\u0045\u0053\u0050\u0047","WOUIUUEAUM9w+UJAULHE+IowUOFA+UiAUb".split("").reverse().join(""),"qBmGOW8m5W".split("").reverse().join(""),"\u0042\u0067\u0076\u0055\u007a\u0033\u0072\u004f","\u0057\u0036\u0069\u0077\u0057\u0036\u0070\u0064\u0050\u0030\u004a\u0064\u004a\u0038\u006b\u005a\u0057\u0050\u007a\u0050\u0057\u0050\u0047\u006f","\u0057\u0037\u0074\u0063\u004e\u006d\u006b\u0053\u0062\u0053\u006b\u0031\u0057\u0036\u0075","\u0057\u0034\u0037\u004c\u0056\u006c\u0068\u0050\u004f\u0035\u0033\u004b\u0055\u0036\u0042\u004c\u0052\u0037\u0070\u004d\u0052\u0051\u0078\u004c\u0056\u0042\u0042\u004c\u0050\u0052\u005a\u0056\u0056\u006a\u0056\u004c\u004a\u0051\u0064\u004c\u004a\u006a\u0070\u004c\u004b\u0042\u0052\u004d\u004c\u0052\u0070\u004c\u0052\u0079\u0065","VqYkP01lC5xl50cm61syA1sqBHYkP4cxPSsx+1soTaJETeMwTe0wOGskVW1lCPtxtn3wDbfCB1Nm71fv0TvxiH2w89cxVWLoDbfCB1Nm71fv0TvxiH2wO41l".split("").reverse().join(""),"\u0061\u0053\u006b\u0057\u0057\u0037\u0056\u0063\u004c\u0030\u004b","\u0057\u004f\u0042\u0050\u0047\u004f\u0068\u004e\u0052\u0041\u0056\u004d\u004f\u0036\u006c\u004c\u0056\u0042\u0074\u004d\u004e\u0052\u0068\u004f\u0052\u006c\u0065","\u0076\u0068\u004c\u0030\u0044\u0031\u004b","a3sojNA".split("").reverse().join(""),"qF0vhfmome".split("").reverse().join(""),"\u0078\u0053\u006f\u004a\u0057\u0050\u0033\u0063\u0055\u0047\u0065","uLwezNy".split("").reverse().join(""),"\u007a\u004c\u006e\u0064\u0042\u0077\u004b","\u0074\u004d\u007a\u006f\u0073\u0076\u0075","uwDSfMDGqwASfMDULwx".split("").reverse().join(""),"\u006d\u004a\u0043\u0030\u006f\u0074\u0043\u005a\u006e\u004d\u0054\u0049\u0042\u004d\u004c\u0053\u0045\u0061","\u0057\u0051\u005a\u0063\u0049\u0053\u006b\u0054\u0057\u004f\u005a\u0064\u004a\u0077\u0052\u0063\u0051\u0068\u0071\u0053\u0066\u0077\u0052\u0064\u0050\u0047","\u0057\u0037\u006c\u0063\u0049\u006d\u006b\u0072\u0057\u0036\u005a\u0063\u0050\u0038\u006f\u0052\u0057\u0036\u0075","\u0043\u004d\u0076\u004e\u0072\u0078\u0048\u0057","KnOWd8Jk".split("").reverse().join(""),"qg0kCgJkCE".split("").reverse().join(""),"WHdx7Ww00q".split("").reverse().join(""),"aLuTLuu".split("").reverse().join(""),"\u006e\u0033\u0072\u0062\u0077\u0077\u006e\u0079\u0042\u0071","\u0077\u0038\u006b\u002b\u0069\u0053\u006b\u0046\u0064\u006d\u006b\u0048","\u006c\u0031\u0034\u004f\u0077\u0059\u0031\u0046\u0071\u0073\u0031\u0041\u0079\u0073\u0031\u0036\u006d\u0063\u0030\u0035\u006c\u004c\u0030\u0052\u006b\u0075\u0061\u004f\u0077\u0031\u0039\u0062\u006c\u0076\u0050\u0048\u006c\u0078\u004f\u0057\u006c\u0074\u004c\u0044\u006b\u0031\u0057\u0055\u006b\u0073\u0054\u0042\u0071\u0073\u0031\u0041\u0079\u0073\u0031\u0036\u006d\u0063\u0030\u0035\u0078\u0078\u0053\u0059\u006c\u0064\u006e\u0039\u006a\u0063\u0038","\u0042\u0067\u0066\u0049\u007a\u0077\u0057","\u006d\u004a\u0079\u0059\u006f\u0064\u006a\u0065\u0074\u0076\u0050\u0067\u0042\u0066\u0061","\u007a\u0077\u0031\u0048\u0041\u0077\u0057","\u006c\u0031\u0035\u0042\u006d\u0076\u0031\u0042\u006d\u0059\u0030\u0035\u0078\u0076\u0053\u0057\u006c\u0074\u004c\u0044\u0045\u005a\u004c\u0039\u006a\u0063\u0038","\u006e\u004a\u004b\u0035\u006d\u005a\u0065\u0030\u006d\u0065\u0031\u004b\u0041\u0031\u0050\u004d\u0071\u0047","\u0057\u0035\u002f\u0063\u0055\u0064\u0071\u0074\u0057\u0052\u0039\u0074","\u0067\u006d\u006b\u0066\u0066\u002b\u0073\u0037\u0055\u0066\u0078\u0050\u0056\u0041\u005a\u0064\u004c\u0043\u006f\u0042\u0057\u0036\u0074\u0063\u0051\u0061","XkCilkSUcB5W".split("").reverse().join(""),"WlKSsx50cm61syA1sqB51l".split("").reverse().join(""),"zkCBKkSbzr4W".split("").reverse().join(""),"\u0076\u004e\u0066\u0054\u0076\u0032\u004b","qSd36WyH6W".split("").reverse().join(""),"/o8Ndl7W".split("").reverse().join(""),"\u0057\u0050\u005a\u0064\u0051\u004d\u0076\u0056\u0057\u0037\u006d\u0077\u0057\u0034\u0071\u004a\u0057\u004f\u0037\u0063\u0049\u0031\u0069\u0064","\u0078\u0045\u0077\u006d\u0048\u0045\u0077\u0071\u0051\u002b\u004d\u0044\u004e\u0055\u0077\u0054\u004c\u002b\u0041\u0056\u004a\u0045\u0077\u0054\u004c\u002b\u0045\u0053\u0050\u0047","\u0078\u0045\u0077\u0070\u0051\u0055\u0049\u0064\u0056\u0045\u0049\u002b\u004b\u002b\u0077\u0066\u0050\u0045\u0077\u0054\u004c\u002b\u0041\u0056\u004a\u0045\u0041\u0069\u004c\u0055\u0041\u0076\u0053\u006f\u0077\u0054\u004c\u0057","\u0078\u0045\u0077\u0070\u0051\u0055\u0049\u0064\u0056\u0045\u0049\u002b\u004b\u002b\u0077\u0066\u0050\u0045\u0073\u0034\u0052\u0045\u0041\u0077\u0048\u002b\u0077\u0054\u004c\u002b\u0045\u0053\u0050\u0047","VqIkDrgx61syA1sqBTsx61syA1sqB51l".split("").reverse().join(""),"OrUdVwrsoCMddRW".split("").reverse().join(""),"0o8vsoSNcN6W".split("").reverse().join(""),"\u0057\u0051\u0075\u0065\u0057\u0051\u0046\u0063\u0056\u006d\u006f\u0041\u0057\u0036\u0068\u0064\u0050\u006d\u006b\u0047\u0066\u0053\u006b\u0031\u0057\u0052\u0079","PmWEuCfte4Mtvk8D".split("").reverse().join(""),"\u006d\u004a\u0072\u0054\u0076\u0032\u0058\u0055\u007a\u004d\u0034","DoSzPz6WVa2SchOW".split("").reverse().join(""),"\u0076\u0043\u006f\u0055\u0057\u004f\u0037\u0063\u004d\u005a\u0043","YvMyTvNB".split("").reverse().join(""),"\u0046\u006d\u006b\u0038\u0046\u0043\u006b\u0044\u0075\u0043\u006f\u0058\u0045\u0065\u006a\u0045","\u006c\u0031\u0035\u0042\u0071\u0073\u0031\u0041\u0079\u0073\u0031\u0036\u0078\u0073\u0053\u004b\u006c\u0057","4ezkLxA".split("").reverse().join(""),"\u0063\u005a\u0079\u0051\u0057\u0050\u0079","qD5KOWsKwyuKKpHidy".split("").reverse().join(""),"yesnPgw".split("").reverse().join(""),"\u0075\u0078\u007a\u0050\u0076\u0075\u0034","WRVIEICA+J8woVGAotsvvx".split("").reverse().join(""),"\u0057\u0036\u0039\u0065\u0041\u0043\u006f\u0068\u0057\u0051\u005a\u0064\u0055\u004c\u0074\u0063\u0053\u004d\u0035\u0065\u0057\u0034\u006c\u0064\u004b\u0068\u0075","K3Alrhw".split("").reverse().join(""),"\u0057\u0052\u0030\u0076\u0061\u0038\u006f\u0069\u0057\u0036\u0071"];_0xe3fb=function(){return _0x4ea4f6;};return _0xe3fb();}
@@ -1,221 +1,221 @@
1
- <template>
2
- <div id="containt">
3
- <el-tabs v-model="activeName" class="tab-box">
4
- <el-tab-pane :label="$t1('常规')" name="first">
5
- <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
- @reload="$reloadHandle" :formTemplate="formTemplate"></editView>
7
- </el-tab-pane>
8
- <el-tab-pane :label="$t1('列表')" name="second">
9
- <div class="grid-height">
10
- <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
- @custom="$vxeTableUtil.customHandle">
12
- <template #form>
13
- <div class="clearfix screen-btns">
14
- <div class="fl">
15
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">{{ $t1('新增') }}
16
- </vxe-button>
17
- <div class="txt-name el-icon-house">
18
- 表单模板名称:
19
- <span>{{ formTemplate.formName }}</span>
20
- </div>
21
- </div>
22
- <div class="fr">
23
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
24
- plain>{{$t1('重置')}}
25
- </vxe-button>
26
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
27
- </vxe-button>
28
- </div>
29
- </div>
30
- </template>
31
- <template #row_edit>
32
- <a href="#" class="a-link"><i class="el-icon-edit"/></a>
33
- </template>
34
- </vxe-grid>
35
- </div>
36
- </el-tab-pane>
37
- </el-tabs>
38
- </div>
39
- </template>
40
-
41
- <script>
42
- import editView from './itemEdit.vue';
43
-
44
- export default {
45
- name: 'itemList',
46
- components: {editView},
47
- props: ['formTemplate'],
48
- data() {
49
- return {
50
- activeName: 'second',
51
- dataId: 0,
52
- showEdit: false,
53
- vxeOption: {},
54
- formData: {}
55
- };
56
- },
57
- mounted() {
58
- this.initTableList();
59
- },
60
- methods: {
61
- searchEvent() {
62
- this.$refs['table-m1'].commitProxy('reload');
63
- },
64
- resetEvent() {
65
- this.formData = {};
66
- this.$refs['table-m1'].commitProxy('reload');
67
- },
68
- openEditDialog(id) {
69
- this.dataId = !id || typeof id == 'object' ? 0 : id;
70
- this.activeName = 'first';
71
- this.$openEditView('showEdit');
72
- },
73
- initTableList() {
74
- let that = this;
75
- let tableOption1 = {
76
- vue: that,
77
- tableRef: 'table-m1',
78
- tableName: 'user_wf_obj_config_item_list-m1',
79
- path: USER_PREFIX + '/wf_obj_config_item/list',
80
- param: () => {
81
- return {
82
- objTypeCode: this.formTemplate.formCode
83
- }
84
- },
85
- config: {
86
- maxHeight: '',
87
- proxyConfig: {
88
- props: {
89
- result: "objx",
90
- total: "objx.length",
91
- }
92
- }
93
- },
94
- columns: [
95
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
96
- {
97
- title: '流程模版名称',
98
- field: 'modelName',
99
- width: 150,
100
- fixed: 'left'
101
- },
102
- {
103
- title: '流程模版KEY',
104
- field: 'modelKey',
105
- width: 150
106
- },
107
- {
108
- title: '单据类型编码',
109
- field: 'objTypeCode',
110
- width: 150
111
- },
112
- {
113
- title: '跳过相邻任务',
114
- field: 'skipAdjacentTask',
115
- width: 150,
116
- slots: {
117
- default: ({row}) => {
118
- if (row.skipAdjacentTask) {
119
- return [<div class="txt-status">是</div>];
120
- } else {
121
- return [<div class="txt-status s-3">否</div>];
122
- }
123
- }
124
- }
125
- },
126
- {
127
- title: '允许提交到驳回节点',
128
- field: 'toRejectNode',
129
- width: 180,
130
- slots: {
131
- default: ({row}) => {
132
- if (row.toRejectNode) {
133
- return [<div class="txt-status">是</div>];
134
- } else {
135
- return [<div class="txt-status s-3">否</div>];
136
- }
137
- }
138
- }
139
- },
140
- {
141
- field: 'createDate',
142
- title: this.$t1('创建时间'),
143
- width: 200
144
- },
145
- {
146
- width: 150,
147
- fixed: 'right',
148
- sortable: false,
149
- title: '',
150
- slots: {
151
- default: ({row}) => {
152
- return [
153
- <a
154
- href="javascript:void(0);"
155
- class="a-link"
156
- onclick={() => {
157
- this.openEditDialog(row.id);
158
- }}
159
- >
160
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
161
- popper-class="tooltip-skin">
162
- <i class="el-icon-edit"/>
163
- </el-tooltip>
164
- </a>,
165
- <a
166
- href="javascript:void(0);"
167
- onClick={() => {
168
- this.wfEdit(row.modelId);
169
- }}
170
- class="a-link"
171
- >
172
- <el-tooltip enterable={false} effect="dark" content="流程设计" placement="top"
173
- popper-class="tooltip-skin">
174
- <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
175
- </el-tooltip>
176
- </a>,
177
- <a
178
- href="javascript:void(0);"
179
- class="a-link"
180
- onClick={() => {
181
- this.deleteItem(row);
182
- }}
183
- >
184
- <el-tooltip enterable={false} effect="dark" content="删除" placement="top"
185
- popper-class="tooltip-skin">
186
- <i class="el-icon-delete"/>
187
- </el-tooltip>
188
- </a>
189
- ];
190
- }
191
- }
192
- }
193
- ]
194
- };
195
- this.$vxeTableUtil.initVxeTable(tableOption1).then(opts => {
196
- that.vxeOption = opts;
197
- });
198
- },
199
- deleteItem(row) {
200
- this.$baseConfirm('您确定要删除吗?').then(() => {
201
- this.$http({
202
- method: 'post',
203
- url: USER_PREFIX + '/wf_obj_config_item/delete',
204
- data: {id: row.id},
205
- success: res => {
206
- this.$message({
207
- message: res.content,
208
- type: 'success',
209
- duration: 500,
210
- });
211
- this.searchEvent()
212
- }
213
- });
214
- });
215
- },
216
- wfEdit(modelId) {
217
- this.$emit('openWfDesignDialog', modelId);
218
- }
219
- }
220
- };
221
- </script>
1
+ <template>
2
+ <div id="containt">
3
+ <el-tabs v-model="activeName" class="tab-box">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
+ <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
+ @reload="$reloadHandle" :formTemplate="formTemplate"></editView>
7
+ </el-tab-pane>
8
+ <el-tab-pane :label="$t1('列表')" name="second">
9
+ <div class="grid-height">
10
+ <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
11
+ @custom="$vxeTableUtil.customHandle">
12
+ <template #form>
13
+ <div class="clearfix screen-btns">
14
+ <div class="fl">
15
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">{{ $t1('新增') }}
16
+ </vxe-button>
17
+ <div class="txt-name el-icon-house">
18
+ 表单模板名称:
19
+ <span>{{ formTemplate.formName }}</span>
20
+ </div>
21
+ </div>
22
+ <div class="fr">
23
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
24
+ plain>{{$t1('重置')}}
25
+ </vxe-button>
26
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
27
+ </vxe-button>
28
+ </div>
29
+ </div>
30
+ </template>
31
+ <template #row_edit>
32
+ <a href="#" class="a-link"><i class="el-icon-edit"/></a>
33
+ </template>
34
+ </vxe-grid>
35
+ </div>
36
+ </el-tab-pane>
37
+ </el-tabs>
38
+ </div>
39
+ </template>
40
+
41
+ <script>
42
+ import editView from './itemEdit.vue';
43
+
44
+ export default {
45
+ name: 'itemList',
46
+ components: {editView},
47
+ props: ['formTemplate'],
48
+ data() {
49
+ return {
50
+ activeName: 'second',
51
+ dataId: 0,
52
+ showEdit: false,
53
+ vxeOption: {},
54
+ formData: {}
55
+ };
56
+ },
57
+ mounted() {
58
+ this.initTableList();
59
+ },
60
+ methods: {
61
+ searchEvent() {
62
+ this.$refs['table-m1'].commitProxy('reload');
63
+ },
64
+ resetEvent() {
65
+ this.formData = {};
66
+ this.$refs['table-m1'].commitProxy('reload');
67
+ },
68
+ openEditDialog(id) {
69
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
70
+ this.activeName = 'first';
71
+ this.$openEditView('showEdit');
72
+ },
73
+ initTableList() {
74
+ let that = this;
75
+ let tableOption1 = {
76
+ vue: that,
77
+ tableRef: 'table-m1',
78
+ tableName: 'user_wf_obj_config_item_list-m1',
79
+ path: USER_PREFIX + '/wf_obj_config_item/list',
80
+ param: () => {
81
+ return {
82
+ objTypeCode: this.formTemplate.formCode
83
+ }
84
+ },
85
+ config: {
86
+ maxHeight: '',
87
+ proxyConfig: {
88
+ props: {
89
+ result: "objx",
90
+ total: "objx.length",
91
+ }
92
+ }
93
+ },
94
+ columns: [
95
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
96
+ {
97
+ title: '流程模版名称',
98
+ field: 'modelName',
99
+ width: 150,
100
+ fixed: 'left'
101
+ },
102
+ {
103
+ title: '流程模版KEY',
104
+ field: 'modelKey',
105
+ width: 150
106
+ },
107
+ {
108
+ title: '单据类型编码',
109
+ field: 'objTypeCode',
110
+ width: 150
111
+ },
112
+ {
113
+ title: '跳过相邻任务',
114
+ field: 'skipAdjacentTask',
115
+ width: 150,
116
+ slots: {
117
+ default: ({row}) => {
118
+ if (row.skipAdjacentTask) {
119
+ return [<div class="txt-status">是</div>];
120
+ } else {
121
+ return [<div class="txt-status s-3">否</div>];
122
+ }
123
+ }
124
+ }
125
+ },
126
+ {
127
+ title: '允许提交到驳回节点',
128
+ field: 'toRejectNode',
129
+ width: 180,
130
+ slots: {
131
+ default: ({row}) => {
132
+ if (row.toRejectNode) {
133
+ return [<div class="txt-status">是</div>];
134
+ } else {
135
+ return [<div class="txt-status s-3">否</div>];
136
+ }
137
+ }
138
+ }
139
+ },
140
+ {
141
+ field: 'createDate',
142
+ title: this.$t1('创建时间'),
143
+ width: 200
144
+ },
145
+ {
146
+ width: 150,
147
+ fixed: 'right',
148
+ sortable: false,
149
+ title: '',
150
+ slots: {
151
+ default: ({row}) => {
152
+ return [
153
+ <a
154
+ href="javascript:void(0);"
155
+ class="a-link"
156
+ onclick={() => {
157
+ this.openEditDialog(row.id);
158
+ }}
159
+ >
160
+ <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
161
+ popper-class="tooltip-skin">
162
+ <i class="el-icon-edit"/>
163
+ </el-tooltip>
164
+ </a>,
165
+ <a
166
+ href="javascript:void(0);"
167
+ onClick={() => {
168
+ this.wfEdit(row.modelId);
169
+ }}
170
+ class="a-link"
171
+ >
172
+ <el-tooltip enterable={false} effect="dark" content="流程设计" placement="top"
173
+ popper-class="tooltip-skin">
174
+ <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
175
+ </el-tooltip>
176
+ </a>,
177
+ <a
178
+ href="javascript:void(0);"
179
+ class="a-link"
180
+ onClick={() => {
181
+ this.deleteItem(row);
182
+ }}
183
+ >
184
+ <el-tooltip enterable={false} effect="dark" content="删除" placement="top"
185
+ popper-class="tooltip-skin">
186
+ <i class="el-icon-delete"/>
187
+ </el-tooltip>
188
+ </a>
189
+ ];
190
+ }
191
+ }
192
+ }
193
+ ]
194
+ };
195
+ this.$vxeTableUtil.initVxeTable(tableOption1).then(opts => {
196
+ that.vxeOption = opts;
197
+ });
198
+ },
199
+ deleteItem(row) {
200
+ this.$baseConfirm('您确定要删除吗?').then(() => {
201
+ this.$http({
202
+ method: 'post',
203
+ url: USER_PREFIX + '/wf_obj_config_item/delete',
204
+ data: {id: row.id},
205
+ success: res => {
206
+ this.$message({
207
+ message: res.content,
208
+ type: 'success',
209
+ duration: 500,
210
+ });
211
+ this.searchEvent()
212
+ }
213
+ });
214
+ });
215
+ },
216
+ wfEdit(modelId) {
217
+ this.$emit('openWfDesignDialog', modelId);
218
+ }
219
+ }
220
+ };
221
+ </script>