@zscreate/form-component 1.1.624 → 1.1.625

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.
@@ -3496,10 +3496,10 @@ span.CodeMirror-selectedtext { background: none; }
3496
3496
 
3497
3497
 
3498
3498
 
3499
- .table-page-search-wrapper[data-v-62da4c48] {
3499
+ .table-page-search-wrapper[data-v-06e7be51] {
3500
3500
  margin-bottom: 20px;
3501
3501
  }
3502
- [data-v-62da4c48] .ant-col.ant-form-item-control-wrapper {
3502
+ [data-v-06e7be51] .ant-col.ant-form-item-control-wrapper {
3503
3503
  width: 100%;
3504
3504
  }
3505
3505
 
@@ -11264,6 +11264,604 @@ var component = (0,componentNormalizer/* default */.A)(
11264
11264
 
11265
11265
  /***/ }),
11266
11266
 
11267
+ /***/ 1888:
11268
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11269
+
11270
+ "use strict";
11271
+
11272
+ // EXPORTS
11273
+ __webpack_require__.d(__webpack_exports__, {
11274
+ A: () => (/* binding */ selectUserModal)
11275
+ });
11276
+
11277
+ ;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=template&id=06e7be51&scoped=true
11278
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{attrs:{"title":"选择用户","width":_vm.modalWidth,"visible":_vm.visible,"confirmLoading":_vm.confirmLoading,"afterClose":_vm.afterClose,"cancelText":"关闭","zIndex":1100000},on:{"ok":_vm.handleSubmit,"cancel":_vm.handleCancel}},[_c('a-spin',{attrs:{"tip":"Loading...","spinning":false}},[_c('a-card',{attrs:{"bordered":false}},[_c('div',{staticClass:"table-page-search-wrapper"},[_c('a-form',{attrs:{"layout":"inline","label-col":{ span: 0 },"wrapper-col":{ span: 24 }}},[_c('a-row',{attrs:{"gutter":24}},[(!_vm.tagId)?[_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-tree-select',{staticStyle:{"width":"100%"},attrs:{"id":"speca","dropdown-style":{ maxHeight: '400px', overflow: 'auto' },"placeholder":"请选择部门","tree-data":_vm.treeData,"getPopupContainer":function (triggerNode) {
11279
+ return triggerNode.parentNode || _vm.document.body;
11280
+ },"disabled":_vm.applyId ? true : false,"allow-clear":""},on:{"change":_vm.treechange},model:{value:(_vm.queryParam.depId),callback:function ($$v) {_vm.$set(_vm.queryParam, "depId", $$v)},expression:"queryParam.depId"}})],1)],1),(_vm.showuser && !this.role)?_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-select',{attrs:{"placeholder":"请选择角色","getPopupContainer":function (triggerNode) {
11281
+ return triggerNode.parentNode || _vm.document.body;
11282
+ }},model:{value:(_vm.queryParam.roleId),callback:function ($$v) {_vm.$set(_vm.queryParam, "roleId", $$v)},expression:"queryParam.roleId"}},_vm._l((_vm.userlist),function(item){return _c('a-select-option',{key:item.id,attrs:{"value":item.id}},[_vm._v(_vm._s(item.roleName))])}),1)],1)],1):_vm._e()]:[_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-select',{staticStyle:{"width":"100%"},attrs:{"placeholder":"请选择部门","allow-clear":"","dropdown-style":{ maxHeight: '400px',zIndex: 1100000 }},model:{value:(_vm.queryParam.depId),callback:function ($$v) {_vm.$set(_vm.queryParam, "depId", $$v)},expression:"queryParam.depId"}},_vm._l((_vm.tagDeparts),function(depart){return _c('a-select-option',{attrs:{"value":depart.departId,"title":depart.departName}},[_vm._v(_vm._s(depart.departName))])}),1)],1)],1)],_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',[_c('a-input',{attrs:{"placeholder":"用户名/真实姓名查询"},model:{value:(_vm.queryParam.realname),callback:function ($$v) {_vm.$set(_vm.queryParam, "realname", $$v)},expression:"queryParam.realname"}})],1)],1),_c('a-col',{attrs:{"md":6,"sm":6}},[_c('div',{staticClass:"table-page-search-submitButtons",staticStyle:{"height":"40px","overflow":"hidden"}},[_c('a-button',{attrs:{"type":"primary","icon":"search"},on:{"click":_vm.searchQuery}},[_vm._v("查询")])],1)])],2)],1)],1),_c('div',[_c('a-table',{ref:"table",attrs:{"bordered":"","size":"middle","rowKey":"id","columns":_vm.columns,"dataSource":_vm.dataSource,"pagination":_vm.ipagination,"loading":_vm.loading,"rowSelection":_vm.rowSelection,"customRow":_vm.handleCustomRow},on:{"change":_vm.handleTableChange}})],1)])],1)],1)}
11283
+ var staticRenderFns = []
11284
+
11285
+
11286
+ // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.array.push.js
11287
+ var es_array_push = __webpack_require__(7284);
11288
+ // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.constructor.js
11289
+ var es_iterator_constructor = __webpack_require__(4473);
11290
+ // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.filter.js
11291
+ var es_iterator_filter = __webpack_require__(3135);
11292
+ // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.map.js
11293
+ var es_iterator_map = __webpack_require__(5759);
11294
+ // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.some.js
11295
+ var es_iterator_some = __webpack_require__(3977);
11296
+ // EXTERNAL MODULE: ./src/api/manage.js
11297
+ var manage = __webpack_require__(5335);
11298
+ // EXTERNAL MODULE: ./src/mixins/JeecgListMixinV2.js
11299
+ var JeecgListMixinV2 = __webpack_require__(673);
11300
+ // EXTERNAL MODULE: ./src/api/api.js
11301
+ var api = __webpack_require__(8294);
11302
+ // EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
11303
+ var lodash = __webpack_require__(5182);
11304
+ ;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js
11305
+
11306
+
11307
+
11308
+
11309
+
11310
+ //
11311
+ //
11312
+ //
11313
+ //
11314
+ //
11315
+ //
11316
+ //
11317
+ //
11318
+ //
11319
+ //
11320
+ //
11321
+ //
11322
+ //
11323
+ //
11324
+ //
11325
+ //
11326
+ //
11327
+ //
11328
+ //
11329
+ //
11330
+ //
11331
+ //
11332
+ //
11333
+ //
11334
+ //
11335
+ //
11336
+ //
11337
+ //
11338
+ //
11339
+ //
11340
+ //
11341
+ //
11342
+ //
11343
+ //
11344
+ //
11345
+ //
11346
+ //
11347
+ //
11348
+ //
11349
+ //
11350
+ //
11351
+ //
11352
+ //
11353
+ //
11354
+ //
11355
+ //
11356
+ //
11357
+ //
11358
+ //
11359
+ //
11360
+ //
11361
+ //
11362
+ //
11363
+ //
11364
+ //
11365
+ //
11366
+ //
11367
+ //
11368
+ //
11369
+ //
11370
+ //
11371
+ //
11372
+ //
11373
+ //
11374
+ //
11375
+ //
11376
+ //
11377
+ //
11378
+ //
11379
+ //
11380
+ //
11381
+ //
11382
+ //
11383
+ //
11384
+ //
11385
+ //
11386
+ //
11387
+ //
11388
+ //
11389
+ //
11390
+ //
11391
+ //
11392
+ //
11393
+ //
11394
+ //
11395
+ //
11396
+ //
11397
+ //
11398
+ //
11399
+ //
11400
+ //
11401
+ //
11402
+ //
11403
+ //
11404
+ //
11405
+ //
11406
+ //
11407
+ //
11408
+ //
11409
+ //
11410
+ //
11411
+ //
11412
+ //
11413
+ //
11414
+ //
11415
+ //
11416
+ //
11417
+ //
11418
+ //
11419
+ //
11420
+ //
11421
+ //
11422
+ //
11423
+ //
11424
+ //
11425
+
11426
+
11427
+
11428
+
11429
+
11430
+ /* harmony default export */ const selectUserModalvue_type_script_lang_js = ({
11431
+ name: 'selectUserModal',
11432
+ props: ['modalWidth', 'multi', 'users', 'role', 'defaultDepartId', 'applyId', 'tagId'],
11433
+ mixins: [{
11434
+ ...JeecgListMixinV2/* JeecgListMixin */.C,
11435
+ created: undefined
11436
+ }],
11437
+ // 取消minxin created
11438
+ data() {
11439
+ return {
11440
+ queryParam: {
11441
+ depId: undefined,
11442
+ roleId: undefined,
11443
+ realname: ''
11444
+ },
11445
+ showuser: false,
11446
+ userlist: [],
11447
+ visible: false,
11448
+ confirmLoading: false,
11449
+ treeData: [],
11450
+ autoExpandParent: true,
11451
+ expandedKeys: [],
11452
+ dataList: [],
11453
+ checkedKeys: [],
11454
+ departTreeData: [],
11455
+ checkedRows: [],
11456
+ searchValue: "",
11457
+ selectionRowsData: [],
11458
+ selectedRowKeys: [],
11459
+ isFilter: true,
11460
+ rowSelection: {
11461
+ selectedRowKeys: this.selectedRowKeys,
11462
+ // onChange: this.onSelectChange,
11463
+
11464
+ type: this.multi ? "checkbox" : "radio"
11465
+ },
11466
+ columns: [{
11467
+ title: "用户名",
11468
+ dataIndex: "username"
11469
+ }, {
11470
+ title: "真实姓名",
11471
+ dataIndex: "realname"
11472
+ }, {
11473
+ title: "单位",
11474
+ dataIndex: "departName"
11475
+ }
11476
+ // {
11477
+ // title: "职务",
11478
+ // dataIndex: "zw",
11479
+ // },
11480
+ // {
11481
+ // title: "电话",
11482
+ // dataIndex: "phone",
11483
+ // },
11484
+ ],
11485
+ url: {
11486
+ syncUser: '/process/extActProcess/doSyncUser',
11487
+ list: '/workflow/queryCandidatePersonal',
11488
+ delete: '/sys/user/delete',
11489
+ deleteBatch: '/sys/user/deleteBatch',
11490
+ exportXlsUrl: '/sys/user/exportXls',
11491
+ importExcelUrl: 'sys/user/importExcel'
11492
+ },
11493
+ tagDeparts: [],
11494
+ deptId: ''
11495
+ };
11496
+ },
11497
+ created() {
11498
+ this.deptId = this.defaultDepartId || undefined;
11499
+ this.setQueryParamsVal({
11500
+ depId: this.deptId,
11501
+ applyId: this.applyId,
11502
+ tagId: this.tagId,
11503
+ roleId: this.role
11504
+ });
11505
+ this.loadData(false, 'first');
11506
+ this.loadDepartTree();
11507
+ this.setDefaultUser();
11508
+ },
11509
+ mounted() {
11510
+ if (this.deptId) {
11511
+ this.treechange(this.deptId);
11512
+ }
11513
+ },
11514
+ computed: {},
11515
+ watch: {
11516
+ users(v) {
11517
+ if (v.length === 0) {
11518
+ this.setDefaultUser();
11519
+ }
11520
+ },
11521
+ role(val) {
11522
+ this.role = val;
11523
+ }
11524
+ },
11525
+ methods: {
11526
+ loadData(arg, type) {
11527
+ if (!this.url.list) {
11528
+ this.$message.error("请设置url.list属性!");
11529
+ return;
11530
+ }
11531
+ //加载数据 若传入参数1则加载第一页的内容
11532
+ if (arg === 1) {
11533
+ this.ipagination.current = 1;
11534
+ }
11535
+ if (this.role) {
11536
+ this.setQueryParamsVal({
11537
+ roleId: this.role
11538
+ });
11539
+ }
11540
+ if (this.tagId) {
11541
+ this.setQueryParamsVal({
11542
+ tagId: this.tagId
11543
+ });
11544
+ }
11545
+ let params = this.getQueryParams(); //查询条件
11546
+ this.loading = true;
11547
+ (0,manage/* getAction */.Th)(this.url.list, params).then(res => {
11548
+ if (res.success) {
11549
+ this.dataSource = res.result.records;
11550
+ this.ipagination.total = res.result.total;
11551
+ if (type && this.applyId) {
11552
+ this.deptId = res.result.params.depId;
11553
+ this.setQueryParamsVal({
11554
+ depId: this.deptId
11555
+ });
11556
+ this.treechange(this.deptId);
11557
+ }
11558
+ }
11559
+ if (res.code === 510) {
11560
+ this.$message.warning(res.message);
11561
+ } else if (res.code === 500) {
11562
+ if (res.message.length < 100) {
11563
+ this.$message.error(res.message);
11564
+ }
11565
+ }
11566
+ this.loading = false;
11567
+ });
11568
+ },
11569
+ getTagDepart() {
11570
+ this.tagDeparts = [];
11571
+ (0,manage/* getAction */.Th)("/zhxymatrix/user/listDepartsByTagId", {
11572
+ tagId: this.tagId
11573
+ }).then(res => {
11574
+ if (res.success) {
11575
+ this.tagDeparts = res.result || [];
11576
+ }
11577
+ });
11578
+ },
11579
+ handleCustomRow(record) {
11580
+ return {
11581
+ on: {
11582
+ click: () => {
11583
+ const selectId = record.id;
11584
+ const selectedRowKeys = this.rowSelection.selectedRowKeys;
11585
+ if (!this.multi) {
11586
+ this.rowSelection.selectedRowKeys = [record.id];
11587
+ this.selectionRowsData = [record];
11588
+ return;
11589
+ }
11590
+ if (selectedRowKeys.includes(selectId)) {
11591
+ this.selectionRowsData = this.selectionRowsData.filter(item => item.id !== selectId);
11592
+ this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== selectId);
11593
+ return;
11594
+ }
11595
+ this.rowSelection.selectedRowKeys.push(record.id);
11596
+ this.selectionRowsData.push(record);
11597
+ }
11598
+ }
11599
+ };
11600
+ },
11601
+ setZindex() {
11602
+ return () => document.getElementById("speca");
11603
+ },
11604
+ //获取部门
11605
+ getTreedata() {
11606
+ this.treeData = [];
11607
+ (0,manage/* getAction */.Th)("formApi/queryTreeList").then(res => {
11608
+ if (res.success) {
11609
+ for (let i = 0; i < res.result.length; i++) {
11610
+ let temp = res.result[i];
11611
+ this.treeData.push(temp);
11612
+ }
11613
+ // let ob = { value: "", title: "请选择" };
11614
+ // this.treeData.unshift(ob);
11615
+ }
11616
+ });
11617
+ },
11618
+ treechange(e) {
11619
+ this.queryParam.roleId = undefined;
11620
+ let params = {
11621
+ depId: e
11622
+ };
11623
+ (0,manage/* getAction */.Th)("/sys/role/listWorkFlowDepRole", params).then(res => {
11624
+ if (res.success) {
11625
+ this.userlist = res.result;
11626
+ this.showuser = true;
11627
+ }
11628
+ });
11629
+ },
11630
+ setDefaultUser() {
11631
+ var selectedRowKeys = [];
11632
+ if (Array.isArray(this.users) && this.users.length > 0) {
11633
+ selectedRowKeys = this.users.map(item => {
11634
+ return item.id;
11635
+ });
11636
+ this.selectionRowsData = this.users.map(item => {
11637
+ return {
11638
+ ...item,
11639
+ id: item.id,
11640
+ realname: item.realname || item.username
11641
+ };
11642
+ });
11643
+ } else {
11644
+ this.selectionRowsData = [];
11645
+ }
11646
+ // console.log(selectedRowKeys)
11647
+ this.rowSelection = {
11648
+ // onChange: this.onSelectChange,
11649
+ type: this.multi ? "checkbox" : "radio",
11650
+ selectedRowKeys: selectedRowKeys,
11651
+ onSelect: (record, selected, selectedRows, nativeEvent) => {
11652
+ // console.log(record, selected, selectedRows, nativeEvent)
11653
+ const list = this.selectionRowsData;
11654
+ const selectedRowKeys = this.rowSelection.selectedRowKeys;
11655
+ if (!selected) {
11656
+ // 这里是取消勾选,删除对应的数组项
11657
+ // selectedRowKeys.map((x,item) => {
11658
+ // if(x === record.id){
11659
+ // selectedRowKeys.splice(item,1)
11660
+ // }
11661
+ // })
11662
+ // list.map((x,item) => {
11663
+ // if(x === record.id){
11664
+ // list.splice(item,1)
11665
+ // }
11666
+ // })
11667
+ this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== record.id);
11668
+ this.selectionRowsData = list.filter(item => item.id !== record.id);
11669
+ console.log(this.rowSelection.selectedRowKeys);
11670
+ }
11671
+ if (selected) {
11672
+ if (!this.multi) {
11673
+ this.rowSelection.selectedRowKeys = [record.id];
11674
+ this.selectionRowsData = [record];
11675
+ return;
11676
+ }
11677
+
11678
+ // 这里是点击勾选,添加workerId字段到selectedRowKeys数组里
11679
+ this.rowSelection.selectedRowKeys.push(record.id);
11680
+ console.log(this.rowSelection.selectedRowKeys);
11681
+ list.push(record);
11682
+ }
11683
+ },
11684
+ //全选
11685
+ onSelectAll: (selected, selectedRows, changeRows) => {
11686
+ if (selected) {
11687
+ changeRows.map(x => {
11688
+ if (!this.rowSelection.selectedRowKeys.includes(x.id)) {
11689
+ this.rowSelection.selectedRowKeys.push(x.id);
11690
+ this.selectedRowKeys.push(x.id);
11691
+ this.selectionRowsData.push(x);
11692
+ }
11693
+ });
11694
+ }
11695
+ if (!selected) {
11696
+ const removeKey = changeRows.map(item => item.id);
11697
+ this.selectedRowKeys = this.selectedRowKeys.filter(item => !removeKey.includes(item));
11698
+ this.selectionRowsData = this.selectionRowsData.filter(item => !removeKey.includes(item.id));
11699
+ this.$set(this.rowSelection, 'selectedRowKeys', this.selectedRowKeys);
11700
+ }
11701
+ }
11702
+ // getCheckboxProps: (record) => {
11703
+ // return {
11704
+ // props: {
11705
+ // defaultChecked: selectedRowKeys.includes(record.id),
11706
+ // },
11707
+ // };
11708
+ // },
11709
+ };
11710
+ },
11711
+ loadDepartTree() {
11712
+ const that = this;
11713
+ (0,api/* queryDepartTreeList */.vv)().then(res => {
11714
+ if (res.success) {
11715
+ that.departTreeData = [];
11716
+ for (let i = 0; i < res.result.length; i++) {
11717
+ let temp = res.result[i];
11718
+ that.departTreeData.push(temp);
11719
+ }
11720
+ that.loading = false;
11721
+ }
11722
+ });
11723
+ },
11724
+ show(select, item, selectedUserIds = undefined, userSelectByMyself = '1') {
11725
+ console.log(select);
11726
+ if (this.tagId) this.getTagDepart();
11727
+ if (this.deptId) {
11728
+ this.treechange(this.deptId);
11729
+ }
11730
+ this.setQueryParamsVal({
11731
+ tagId: this.tagId,
11732
+ roleId: this.role,
11733
+ depId: this.deptId,
11734
+ applyId: this.applyId,
11735
+ selectedUserIds: selectedUserIds,
11736
+ userSelectByMyself: userSelectByMyself
11737
+ });
11738
+
11739
+ //this.loadDepartTree();
11740
+ this.checkedRows = [];
11741
+ this.rowSelection.selectedRowKeys = select;
11742
+ this.selectionRowsData = item;
11743
+ this.getTreedata();
11744
+ this.loadData();
11745
+ this.setDefaultUser();
11746
+ this.visible = true;
11747
+ },
11748
+ onCheck(checkedKeys, info) {
11749
+ if (!this.multi) {
11750
+ let arr = checkedKeys.checked.filter(item => {
11751
+ return this.checkedKeys.indexOf(item) < 0;
11752
+ });
11753
+ this.checkedKeys = [...arr];
11754
+ this.checkedRows = [info.node.dataRef];
11755
+ } else {
11756
+ this.checkedKeys = checkedKeys.checked;
11757
+ this.checkedRows.push(info.node.dataRef);
11758
+ }
11759
+ //this.$emit("input",this.checkedKeys.join(","))
11760
+ //console.log(this.checkedKeys.join(","))
11761
+ },
11762
+ handleSubmit() {
11763
+ this.selectedRowKeys = this.rowSelection.selectedRowKeys;
11764
+ if (!this.selectedRowKeys || this.selectedRowKeys.length == 0) {
11765
+ this.$emit("ok", "");
11766
+ } else {
11767
+ this.$emit("ok", this.selectionRowsData, this.selectedRowKeys.join(","));
11768
+ }
11769
+ this.handleClear();
11770
+ },
11771
+ //onSelectChange
11772
+ // onSelectChange(selectedRowKeys, selectionRows) {
11773
+ // this.rowSelection.selectedRowKeys = Array.from(new Set(selectedRowKeys));
11774
+ // this.selectionRowsData = this.selectionRows = [...selectionRows];
11775
+ // },
11776
+ // //选中或者取消某一项时
11777
+ // onSelectOption(record, selected, selectedRows, nativeEvent) {
11778
+ // if (selected) {
11779
+ // this.selectionRowsData.push(record);
11780
+ // } else {
11781
+ // this.selectionRowsData = this.selectionRowsData.filter((item) => {
11782
+ // return item.id != record.id;
11783
+ // });
11784
+ // }
11785
+ // },
11786
+ handleCancel() {
11787
+ this.handleClear();
11788
+ },
11789
+ afterClose() {
11790
+ this.showuser = false;
11791
+ this.ipagination.current = 1;
11792
+ this.ipagination.pageSize = 10;
11793
+ this.ipagination.total = 0;
11794
+ },
11795
+ handleClear() {
11796
+ this.visible = false;
11797
+ this.modalCancel();
11798
+ this.checkedKeys = [];
11799
+ },
11800
+ getParentKey(currKey, treeData) {
11801
+ let parentKey;
11802
+ for (let i = 0; i < treeData.length; i++) {
11803
+ const node = treeData[i];
11804
+ if (node.children) {
11805
+ if (node.children.some(item => item.key === currKey)) {
11806
+ parentKey = node.key;
11807
+ } else if (this.getParentKey(currKey, node.children)) {
11808
+ parentKey = this.getParentKey(currKey, node.children);
11809
+ }
11810
+ }
11811
+ }
11812
+ return parentKey;
11813
+ },
11814
+ onSearch(value) {
11815
+ const expandedKeys = this.dataList.map(item => {
11816
+ if (item.title.indexOf(value) > -1) {
11817
+ return this.getParentKey(item.key, this.treeData);
11818
+ }
11819
+ return null;
11820
+ }).filter((item, i, self) => item && self.indexOf(item) === i);
11821
+ Object.assign(this, {
11822
+ expandedKeys,
11823
+ searchValue: value,
11824
+ autoExpandParent: true
11825
+ });
11826
+ },
11827
+ initDictConfig() {
11828
+ this.loadDepartTree();
11829
+ }
11830
+ }
11831
+ });
11832
+ ;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js
11833
+ /* harmony default export */ const Modals_selectUserModalvue_type_script_lang_js = (selectUserModalvue_type_script_lang_js);
11834
+ ;// ./node_modules/_mini-css-extract-plugin@2.9.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=06e7be51&prod&scoped=true&lang=css
11835
+ // extracted by mini-css-extract-plugin
11836
+
11837
+ ;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=06e7be51&prod&scoped=true&lang=css
11838
+
11839
+ // EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
11840
+ var componentNormalizer = __webpack_require__(4008);
11841
+ ;// ./src/form/modules/common/Modals/selectUserModal.vue
11842
+
11843
+
11844
+
11845
+ ;
11846
+
11847
+
11848
+ /* normalize component */
11849
+
11850
+ var component = (0,componentNormalizer/* default */.A)(
11851
+ Modals_selectUserModalvue_type_script_lang_js,
11852
+ render,
11853
+ staticRenderFns,
11854
+ false,
11855
+ null,
11856
+ "06e7be51",
11857
+ null
11858
+
11859
+ )
11860
+
11861
+ /* harmony default export */ const selectUserModal = (component.exports);
11862
+
11863
+ /***/ }),
11864
+
11267
11865
  /***/ 1895:
11268
11866
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11269
11867
 
@@ -18929,603 +19527,6 @@ module.exports = function (fn, that) {
18929
19527
  };
18930
19528
 
18931
19529
 
18932
- /***/ }),
18933
-
18934
- /***/ 2709:
18935
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
18936
-
18937
- "use strict";
18938
-
18939
- // EXPORTS
18940
- __webpack_require__.d(__webpack_exports__, {
18941
- A: () => (/* binding */ selectUserModal)
18942
- });
18943
-
18944
- ;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=template&id=62da4c48&scoped=true
18945
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{attrs:{"title":"选择用户","width":_vm.modalWidth,"visible":_vm.visible,"confirmLoading":_vm.confirmLoading,"afterClose":_vm.afterClose,"cancelText":"关闭","zIndex":1100000},on:{"ok":_vm.handleSubmit,"cancel":_vm.handleCancel}},[_c('a-spin',{attrs:{"tip":"Loading...","spinning":false}},[_c('a-card',{attrs:{"bordered":false}},[_c('div',{staticClass:"table-page-search-wrapper"},[_c('a-form',{attrs:{"layout":"inline","label-col":{ span: 0 },"wrapper-col":{ span: 24 }}},[_c('a-row',{attrs:{"gutter":24}},[(!_vm.tagId)?[_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-tree-select',{staticStyle:{"width":"100%"},attrs:{"id":"speca","dropdown-style":{ maxHeight: '400px', overflow: 'auto' },"placeholder":"请选择部门","tree-data":_vm.treeData,"getPopupContainer":function (triggerNode) {
18946
- return triggerNode.parentNode || _vm.document.body;
18947
- },"disabled":_vm.applyId ? true : false,"allow-clear":""},on:{"change":_vm.treechange},model:{value:(_vm.queryParam.depId),callback:function ($$v) {_vm.$set(_vm.queryParam, "depId", $$v)},expression:"queryParam.depId"}})],1)],1),(_vm.showuser && !this.role)?_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-select',{attrs:{"placeholder":"请选择角色","getPopupContainer":function (triggerNode) {
18948
- return triggerNode.parentNode || _vm.document.body;
18949
- }},model:{value:(_vm.queryParam.roleId),callback:function ($$v) {_vm.$set(_vm.queryParam, "roleId", $$v)},expression:"queryParam.roleId"}},_vm._l((_vm.userlist),function(item){return _c('a-select-option',{key:item.id,attrs:{"value":item.id}},[_vm._v(_vm._s(item.roleName))])}),1)],1)],1):_vm._e()]:[_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',{staticStyle:{"width":"100%"}},[_c('a-select',{staticStyle:{"width":"100%"},attrs:{"placeholder":"请选择部门","allow-clear":"","dropdown-style":{ maxHeight: '400px',zIndex: 1100000 }},model:{value:(_vm.queryParam.depId),callback:function ($$v) {_vm.$set(_vm.queryParam, "depId", $$v)},expression:"queryParam.depId"}},_vm._l((_vm.tagDeparts),function(depart){return _c('a-select-option',{attrs:{"value":depart.departId,"title":depart.departName}},[_vm._v(_vm._s(depart.departName))])}),1)],1)],1)],_c('a-col',{attrs:{"md":6,"sm":6}},[_c('a-form-item',[_c('a-input',{attrs:{"placeholder":"用户名/真实姓名查询"},model:{value:(_vm.queryParam.realname),callback:function ($$v) {_vm.$set(_vm.queryParam, "realname", $$v)},expression:"queryParam.realname"}})],1)],1),_c('a-col',{attrs:{"md":6,"sm":6}},[_c('div',{staticClass:"table-page-search-submitButtons",staticStyle:{"height":"40px","overflow":"hidden"}},[_c('a-button',{attrs:{"type":"primary","icon":"search"},on:{"click":_vm.searchQuery}},[_vm._v("查询")])],1)])],2)],1)],1),_c('div',[_c('a-table',{ref:"table",attrs:{"bordered":"","size":"middle","rowKey":"id","columns":_vm.columns,"dataSource":_vm.dataSource,"pagination":_vm.ipagination,"loading":_vm.loading,"rowSelection":_vm.rowSelection,"customRow":_vm.handleCustomRow},on:{"change":_vm.handleTableChange}})],1)])],1)],1)}
18950
- var staticRenderFns = []
18951
-
18952
-
18953
- // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.array.push.js
18954
- var es_array_push = __webpack_require__(7284);
18955
- // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.constructor.js
18956
- var es_iterator_constructor = __webpack_require__(4473);
18957
- // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.filter.js
18958
- var es_iterator_filter = __webpack_require__(3135);
18959
- // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.map.js
18960
- var es_iterator_map = __webpack_require__(5759);
18961
- // EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.some.js
18962
- var es_iterator_some = __webpack_require__(3977);
18963
- // EXTERNAL MODULE: ./src/api/manage.js
18964
- var manage = __webpack_require__(5335);
18965
- // EXTERNAL MODULE: ./src/mixins/JeecgListMixinV2.js
18966
- var JeecgListMixinV2 = __webpack_require__(673);
18967
- // EXTERNAL MODULE: ./src/api/api.js
18968
- var api = __webpack_require__(8294);
18969
- // EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
18970
- var lodash = __webpack_require__(5182);
18971
- ;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js
18972
-
18973
-
18974
-
18975
-
18976
-
18977
- //
18978
- //
18979
- //
18980
- //
18981
- //
18982
- //
18983
- //
18984
- //
18985
- //
18986
- //
18987
- //
18988
- //
18989
- //
18990
- //
18991
- //
18992
- //
18993
- //
18994
- //
18995
- //
18996
- //
18997
- //
18998
- //
18999
- //
19000
- //
19001
- //
19002
- //
19003
- //
19004
- //
19005
- //
19006
- //
19007
- //
19008
- //
19009
- //
19010
- //
19011
- //
19012
- //
19013
- //
19014
- //
19015
- //
19016
- //
19017
- //
19018
- //
19019
- //
19020
- //
19021
- //
19022
- //
19023
- //
19024
- //
19025
- //
19026
- //
19027
- //
19028
- //
19029
- //
19030
- //
19031
- //
19032
- //
19033
- //
19034
- //
19035
- //
19036
- //
19037
- //
19038
- //
19039
- //
19040
- //
19041
- //
19042
- //
19043
- //
19044
- //
19045
- //
19046
- //
19047
- //
19048
- //
19049
- //
19050
- //
19051
- //
19052
- //
19053
- //
19054
- //
19055
- //
19056
- //
19057
- //
19058
- //
19059
- //
19060
- //
19061
- //
19062
- //
19063
- //
19064
- //
19065
- //
19066
- //
19067
- //
19068
- //
19069
- //
19070
- //
19071
- //
19072
- //
19073
- //
19074
- //
19075
- //
19076
- //
19077
- //
19078
- //
19079
- //
19080
- //
19081
- //
19082
- //
19083
- //
19084
- //
19085
- //
19086
- //
19087
- //
19088
- //
19089
- //
19090
- //
19091
- //
19092
-
19093
-
19094
-
19095
-
19096
-
19097
- /* harmony default export */ const selectUserModalvue_type_script_lang_js = ({
19098
- name: 'selectUserModal',
19099
- props: ['modalWidth', 'multi', 'users', 'role', 'defaultDepartId', 'applyId', 'tagId'],
19100
- mixins: [{
19101
- ...JeecgListMixinV2/* JeecgListMixin */.C,
19102
- created: undefined
19103
- }],
19104
- // 取消minxin created
19105
- data() {
19106
- return {
19107
- queryParam: {
19108
- depId: undefined,
19109
- roleId: undefined,
19110
- realname: ''
19111
- },
19112
- showuser: false,
19113
- userlist: [],
19114
- visible: false,
19115
- confirmLoading: false,
19116
- treeData: [],
19117
- autoExpandParent: true,
19118
- expandedKeys: [],
19119
- dataList: [],
19120
- checkedKeys: [],
19121
- departTreeData: [],
19122
- checkedRows: [],
19123
- searchValue: "",
19124
- selectionRowsData: [],
19125
- selectedRowKeys: [],
19126
- isFilter: true,
19127
- rowSelection: {
19128
- selectedRowKeys: this.selectedRowKeys,
19129
- // onChange: this.onSelectChange,
19130
-
19131
- type: this.multi ? "checkbox" : "radio"
19132
- },
19133
- columns: [{
19134
- title: "用户名",
19135
- dataIndex: "username"
19136
- }, {
19137
- title: "真实姓名",
19138
- dataIndex: "realname"
19139
- }, {
19140
- title: "单位",
19141
- dataIndex: "departName"
19142
- }
19143
- // {
19144
- // title: "职务",
19145
- // dataIndex: "zw",
19146
- // },
19147
- // {
19148
- // title: "电话",
19149
- // dataIndex: "phone",
19150
- // },
19151
- ],
19152
- url: {
19153
- syncUser: '/process/extActProcess/doSyncUser',
19154
- list: '/workflow/queryCandidatePersonal',
19155
- delete: '/sys/user/delete',
19156
- deleteBatch: '/sys/user/deleteBatch',
19157
- exportXlsUrl: '/sys/user/exportXls',
19158
- importExcelUrl: 'sys/user/importExcel'
19159
- },
19160
- tagDeparts: [],
19161
- deptId: ''
19162
- };
19163
- },
19164
- created() {
19165
- this.deptId = this.defaultDepartId || undefined;
19166
- this.setQueryParamsVal({
19167
- depId: this.deptId,
19168
- applyId: this.applyId,
19169
- tagId: this.tagId,
19170
- roleId: this.role
19171
- });
19172
- this.loadData(false, 'first');
19173
- this.loadDepartTree();
19174
- this.setDefaultUser();
19175
- },
19176
- mounted() {
19177
- if (this.deptId) {
19178
- this.treechange(this.deptId);
19179
- }
19180
- },
19181
- computed: {},
19182
- watch: {
19183
- users(v) {
19184
- if (v.length === 0) {
19185
- this.setDefaultUser();
19186
- }
19187
- },
19188
- role(val) {
19189
- this.role = val;
19190
- }
19191
- },
19192
- methods: {
19193
- loadData(arg, type) {
19194
- if (!this.url.list) {
19195
- this.$message.error("请设置url.list属性!");
19196
- return;
19197
- }
19198
- //加载数据 若传入参数1则加载第一页的内容
19199
- if (arg === 1) {
19200
- this.ipagination.current = 1;
19201
- }
19202
- if (this.role) {
19203
- this.setQueryParamsVal({
19204
- roleId: this.role
19205
- });
19206
- }
19207
- if (this.tagId) {
19208
- this.setQueryParamsVal({
19209
- tagId: this.tagId
19210
- });
19211
- }
19212
- let params = this.getQueryParams(); //查询条件
19213
- this.loading = true;
19214
- (0,manage/* getAction */.Th)(this.url.list, params).then(res => {
19215
- if (res.success) {
19216
- this.dataSource = res.result.records;
19217
- this.ipagination.total = res.result.total;
19218
- if (type && this.applyId) {
19219
- this.deptId = res.result.params.depId;
19220
- this.setQueryParamsVal({
19221
- depId: this.deptId
19222
- });
19223
- this.treechange(this.deptId);
19224
- }
19225
- }
19226
- if (res.code === 510) {
19227
- this.$message.warning(res.message);
19228
- } else if (res.code === 500) {
19229
- if (res.message.length < 100) {
19230
- this.$message.error(res.message);
19231
- }
19232
- }
19233
- this.loading = false;
19234
- });
19235
- },
19236
- getTagDepart() {
19237
- this.tagDeparts = [];
19238
- (0,manage/* getAction */.Th)("/zhxymatrix/user/listDepartsByTagId", {
19239
- tagId: this.tagId
19240
- }).then(res => {
19241
- if (res.success) {
19242
- this.tagDeparts = res.result || [];
19243
- }
19244
- });
19245
- },
19246
- handleCustomRow(record) {
19247
- return {
19248
- on: {
19249
- click: () => {
19250
- const selectId = record.id;
19251
- const selectedRowKeys = this.rowSelection.selectedRowKeys;
19252
- if (!this.multi) {
19253
- this.rowSelection.selectedRowKeys = [record.id];
19254
- this.selectionRowsData = [record];
19255
- return;
19256
- }
19257
- if (selectedRowKeys.includes(selectId)) {
19258
- this.selectionRowsData = this.selectionRowsData.filter(item => item.id !== selectId);
19259
- this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== selectId);
19260
- return;
19261
- }
19262
- this.rowSelection.selectedRowKeys.push(record.id);
19263
- this.selectionRowsData.push(record);
19264
- }
19265
- }
19266
- };
19267
- },
19268
- setZindex() {
19269
- return () => document.getElementById("speca");
19270
- },
19271
- //获取部门
19272
- getTreedata() {
19273
- this.treeData = [];
19274
- (0,manage/* getAction */.Th)("formApi/queryTreeList").then(res => {
19275
- if (res.success) {
19276
- for (let i = 0; i < res.result.length; i++) {
19277
- let temp = res.result[i];
19278
- this.treeData.push(temp);
19279
- }
19280
- // let ob = { value: "", title: "请选择" };
19281
- // this.treeData.unshift(ob);
19282
- }
19283
- });
19284
- },
19285
- treechange(e) {
19286
- this.queryParam.roleId = undefined;
19287
- let params = {
19288
- depId: e
19289
- };
19290
- (0,manage/* getAction */.Th)("/sys/role/listWorkFlowDepRole", params).then(res => {
19291
- if (res.success) {
19292
- this.userlist = res.result;
19293
- this.showuser = true;
19294
- }
19295
- });
19296
- },
19297
- setDefaultUser() {
19298
- var selectedRowKeys = [];
19299
- if (Array.isArray(this.users) && this.users.length > 0) {
19300
- selectedRowKeys = this.users.map(item => {
19301
- return item.id;
19302
- });
19303
- this.selectionRowsData = this.users.map(item => {
19304
- return {
19305
- ...item,
19306
- id: item.id,
19307
- realname: item.realname || item.username
19308
- };
19309
- });
19310
- } else {
19311
- this.selectionRowsData = [];
19312
- }
19313
- // console.log(selectedRowKeys)
19314
- this.rowSelection = {
19315
- // onChange: this.onSelectChange,
19316
- type: this.multi ? "checkbox" : "radio",
19317
- selectedRowKeys: selectedRowKeys,
19318
- onSelect: (record, selected, selectedRows, nativeEvent) => {
19319
- // console.log(record, selected, selectedRows, nativeEvent)
19320
- const list = this.selectionRowsData;
19321
- const selectedRowKeys = this.rowSelection.selectedRowKeys;
19322
- if (!selected) {
19323
- // 这里是取消勾选,删除对应的数组项
19324
- // selectedRowKeys.map((x,item) => {
19325
- // if(x === record.id){
19326
- // selectedRowKeys.splice(item,1)
19327
- // }
19328
- // })
19329
- // list.map((x,item) => {
19330
- // if(x === record.id){
19331
- // list.splice(item,1)
19332
- // }
19333
- // })
19334
- this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== record.id);
19335
- this.selectionRowsData = list.filter(item => item.id !== record.id);
19336
- console.log(this.rowSelection.selectedRowKeys);
19337
- }
19338
- if (selected) {
19339
- if (!this.multi) {
19340
- this.rowSelection.selectedRowKeys = [record.id];
19341
- this.selectionRowsData = [record];
19342
- return;
19343
- }
19344
-
19345
- // 这里是点击勾选,添加workerId字段到selectedRowKeys数组里
19346
- this.rowSelection.selectedRowKeys.push(record.id);
19347
- console.log(this.rowSelection.selectedRowKeys);
19348
- list.push(record);
19349
- }
19350
- },
19351
- //全选
19352
- onSelectAll: (selected, selectedRows, changeRows) => {
19353
- if (selected) {
19354
- changeRows.map(x => {
19355
- if (!this.rowSelection.selectedRowKeys.includes(x.id)) {
19356
- this.rowSelection.selectedRowKeys.push(x.id);
19357
- this.selectionRowsData.push(x);
19358
- }
19359
- });
19360
- }
19361
- if (!selected) {
19362
- const removeKey = changeRows.map(item => item.id);
19363
- this.selectedRowKeys = this.selectedRowKeys.filter(item => !removeKey.includes(item));
19364
- this.selectionRowsData = this.selectionRowsData.filter(item => !removeKey.includes(item.id));
19365
- this.$set(this.rowSelection, 'selectedRowKeys', this.selectedRowKeys);
19366
- }
19367
- }
19368
- // getCheckboxProps: (record) => {
19369
- // return {
19370
- // props: {
19371
- // defaultChecked: selectedRowKeys.includes(record.id),
19372
- // },
19373
- // };
19374
- // },
19375
- };
19376
- },
19377
- loadDepartTree() {
19378
- const that = this;
19379
- (0,api/* queryDepartTreeList */.vv)().then(res => {
19380
- if (res.success) {
19381
- that.departTreeData = [];
19382
- for (let i = 0; i < res.result.length; i++) {
19383
- let temp = res.result[i];
19384
- that.departTreeData.push(temp);
19385
- }
19386
- that.loading = false;
19387
- }
19388
- });
19389
- },
19390
- show(select, item, selectedUserIds = undefined, userSelectByMyself = '1') {
19391
- console.log(select);
19392
- if (this.tagId) this.getTagDepart();
19393
- if (this.deptId) {
19394
- this.treechange(this.deptId);
19395
- }
19396
- this.setQueryParamsVal({
19397
- tagId: this.tagId,
19398
- roleId: this.role,
19399
- depId: this.deptId,
19400
- applyId: this.applyId,
19401
- selectedUserIds: selectedUserIds,
19402
- userSelectByMyself: userSelectByMyself
19403
- });
19404
-
19405
- //this.loadDepartTree();
19406
- this.checkedRows = [];
19407
- this.rowSelection.selectedRowKeys = select;
19408
- this.selectionRowsData = item;
19409
- this.getTreedata();
19410
- this.loadData();
19411
- this.setDefaultUser();
19412
- this.visible = true;
19413
- },
19414
- onCheck(checkedKeys, info) {
19415
- if (!this.multi) {
19416
- let arr = checkedKeys.checked.filter(item => {
19417
- return this.checkedKeys.indexOf(item) < 0;
19418
- });
19419
- this.checkedKeys = [...arr];
19420
- this.checkedRows = [info.node.dataRef];
19421
- } else {
19422
- this.checkedKeys = checkedKeys.checked;
19423
- this.checkedRows.push(info.node.dataRef);
19424
- }
19425
- //this.$emit("input",this.checkedKeys.join(","))
19426
- //console.log(this.checkedKeys.join(","))
19427
- },
19428
- handleSubmit() {
19429
- this.selectedRowKeys = this.rowSelection.selectedRowKeys;
19430
- if (!this.selectedRowKeys || this.selectedRowKeys.length == 0) {
19431
- this.$emit("ok", "");
19432
- } else {
19433
- this.$emit("ok", this.selectionRowsData, this.selectedRowKeys.join(","));
19434
- }
19435
- this.handleClear();
19436
- },
19437
- //onSelectChange
19438
- // onSelectChange(selectedRowKeys, selectionRows) {
19439
- // this.rowSelection.selectedRowKeys = Array.from(new Set(selectedRowKeys));
19440
- // this.selectionRowsData = this.selectionRows = [...selectionRows];
19441
- // },
19442
- // //选中或者取消某一项时
19443
- // onSelectOption(record, selected, selectedRows, nativeEvent) {
19444
- // if (selected) {
19445
- // this.selectionRowsData.push(record);
19446
- // } else {
19447
- // this.selectionRowsData = this.selectionRowsData.filter((item) => {
19448
- // return item.id != record.id;
19449
- // });
19450
- // }
19451
- // },
19452
- handleCancel() {
19453
- this.handleClear();
19454
- },
19455
- afterClose() {
19456
- this.showuser = false;
19457
- this.ipagination.current = 1;
19458
- this.ipagination.pageSize = 10;
19459
- this.ipagination.total = 0;
19460
- },
19461
- handleClear() {
19462
- this.visible = false;
19463
- this.modalCancel();
19464
- this.checkedKeys = [];
19465
- },
19466
- getParentKey(currKey, treeData) {
19467
- let parentKey;
19468
- for (let i = 0; i < treeData.length; i++) {
19469
- const node = treeData[i];
19470
- if (node.children) {
19471
- if (node.children.some(item => item.key === currKey)) {
19472
- parentKey = node.key;
19473
- } else if (this.getParentKey(currKey, node.children)) {
19474
- parentKey = this.getParentKey(currKey, node.children);
19475
- }
19476
- }
19477
- }
19478
- return parentKey;
19479
- },
19480
- onSearch(value) {
19481
- const expandedKeys = this.dataList.map(item => {
19482
- if (item.title.indexOf(value) > -1) {
19483
- return this.getParentKey(item.key, this.treeData);
19484
- }
19485
- return null;
19486
- }).filter((item, i, self) => item && self.indexOf(item) === i);
19487
- Object.assign(this, {
19488
- expandedKeys,
19489
- searchValue: value,
19490
- autoExpandParent: true
19491
- });
19492
- },
19493
- initDictConfig() {
19494
- this.loadDepartTree();
19495
- }
19496
- }
19497
- });
19498
- ;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js
19499
- /* harmony default export */ const Modals_selectUserModalvue_type_script_lang_js = (selectUserModalvue_type_script_lang_js);
19500
- ;// ./node_modules/_mini-css-extract-plugin@2.9.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=62da4c48&prod&scoped=true&lang=css
19501
- // extracted by mini-css-extract-plugin
19502
-
19503
- ;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=62da4c48&prod&scoped=true&lang=css
19504
-
19505
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
19506
- var componentNormalizer = __webpack_require__(4008);
19507
- ;// ./src/form/modules/common/Modals/selectUserModal.vue
19508
-
19509
-
19510
-
19511
- ;
19512
-
19513
-
19514
- /* normalize component */
19515
-
19516
- var component = (0,componentNormalizer/* default */.A)(
19517
- Modals_selectUserModalvue_type_script_lang_js,
19518
- render,
19519
- staticRenderFns,
19520
- false,
19521
- null,
19522
- "62da4c48",
19523
- null
19524
-
19525
- )
19526
-
19527
- /* harmony default export */ const selectUserModal = (component.exports);
19528
-
19529
19530
  /***/ }),
19530
19531
 
19531
19532
  /***/ 2835:
@@ -89014,7 +89015,7 @@ var componentvue_type_template_id_0c026be2_scoped_true_staticRenderFns = []
89014
89015
 
89015
89016
 
89016
89017
  // EXTERNAL MODULE: ./src/form/modules/common/Modals/selectUserModal.vue + 5 modules
89017
- var selectUserModal = __webpack_require__(2709);
89018
+ var selectUserModal = __webpack_require__(1888);
89018
89019
  ;// ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/components/UserSelector/component.vue?vue&type=script&lang=js
89019
89020
 
89020
89021
 
@@ -120428,7 +120429,7 @@ const getSignature = params => (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_0__/
120428
120429
  /***/ ((module) => {
120429
120430
 
120430
120431
  "use strict";
120431
- module.exports = {"rE":"1.1.624"};
120432
+ module.exports = {"rE":"1.1.625"};
120432
120433
 
120433
120434
  /***/ }),
120434
120435
 
@@ -176245,7 +176246,7 @@ var toLinkageWidget_component = (0,componentNormalizer/* default */.A)(
176245
176246
  // EXTERNAL MODULE: ./src/form/modules/common/querySelectDict.vue + 3 modules
176246
176247
  var querySelectDict = __webpack_require__(3776);
176247
176248
  // EXTERNAL MODULE: ./src/form/modules/common/Modals/selectUserModal.vue + 5 modules
176248
- var selectUserModal = __webpack_require__(2709);
176249
+ var selectUserModal = __webpack_require__(1888);
176249
176250
  ;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/common/formLinkage/component/linkageSelectUser.vue?vue&type=template&id=7fd8ad34&scoped=true
176250
176251
  var linkageSelectUservue_type_template_id_7fd8ad34_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a-input',{on:{"mousedown":function($event){$event.preventDefault();return _vm.openModal.apply(null, arguments)}},model:{value:(_vm.userNames),callback:function ($$v) {_vm.userNames=$$v},expression:"userNames"}},[_c('a-icon',{attrs:{"slot":"prefix","type":"user","title":"用户选择"},slot:"prefix"}),_c('a-icon',{staticStyle:{"cursor":"pointer"},attrs:{"slot":"suffix","type":"close-circle","title":"清空"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.handleEmpty.apply(null, arguments)}},slot:"suffix"})],1),_c('select-user-modal',{ref:"selectUserModal",attrs:{"modal-width":"1000px","users":_vm.value,"multi":_vm.multiple},on:{"ok":_vm.handleOK,"initComp":_vm.initComp}})],1)}
176251
176252
  var linkageSelectUservue_type_template_id_7fd8ad34_scoped_true_staticRenderFns = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/form-component",
3
- "version": "1.1.624",
3
+ "version": "1.1.625",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/form-component.umd.js",