@zscreate/form-component 1.1.678 → 1.1.680
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/form-component.css +14 -14
- package/dist/form-component.umd.js +711 -671
- package/package.json +1 -1
|
@@ -6820,7 +6820,7 @@ if (Uint8Array) $({ target: 'Uint8Array', proto: true, forced: INCORRECT_BEHAVIO
|
|
|
6820
6820
|
/***/ ((module) => {
|
|
6821
6821
|
|
|
6822
6822
|
"use strict";
|
|
6823
|
-
module.exports = {"rE":"1.1.
|
|
6823
|
+
module.exports = {"rE":"1.1.680"};
|
|
6824
6824
|
|
|
6825
6825
|
/***/ }),
|
|
6826
6826
|
|
|
@@ -57293,7 +57293,7 @@ var componentvue_type_template_id_7e98dcc1_scoped_true_staticRenderFns = []
|
|
|
57293
57293
|
|
|
57294
57294
|
|
|
57295
57295
|
// EXTERNAL MODULE: ./src/form/modules/common/Modals/selectUserModal.vue + 5 modules
|
|
57296
|
-
var selectUserModal = __webpack_require__(
|
|
57296
|
+
var selectUserModal = __webpack_require__(28899);
|
|
57297
57297
|
;// ./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
|
|
57298
57298
|
|
|
57299
57299
|
|
|
@@ -87795,6 +87795,704 @@ module.exports.f = function getOwnPropertyNames(it) {
|
|
|
87795
87795
|
};
|
|
87796
87796
|
|
|
87797
87797
|
|
|
87798
|
+
/***/ }),
|
|
87799
|
+
|
|
87800
|
+
/***/ 28899:
|
|
87801
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
87802
|
+
|
|
87803
|
+
"use strict";
|
|
87804
|
+
|
|
87805
|
+
// EXPORTS
|
|
87806
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
87807
|
+
A: () => (/* binding */ selectUserModal)
|
|
87808
|
+
});
|
|
87809
|
+
|
|
87810
|
+
;// ./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=4a41ae72&scoped=true
|
|
87811
|
+
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 && !_vm.accurate)?[_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,"treeDefaultExpandedKeys":_vm.defaultExpandedKeys,"getPopupContainer":function (triggerNode) {
|
|
87812
|
+
return triggerNode.parentNode || _vm.document.body;
|
|
87813
|
+
},"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) {
|
|
87814
|
+
return triggerNode.parentNode || _vm.document.body;
|
|
87815
|
+
}},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()]:[(!_vm.accurate)?_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):_vm._e()],(!_vm.accurate)?_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('a-form-item',[_c('a-input',{attrs:{"placeholder":"用户名/真实姓名查询"},model:{value:(_vm.queryParam.username),callback:function ($$v) {_vm.$set(_vm.queryParam, "username", $$v)},expression:"queryParam.username"}})],1)],1),_c('a-col',{attrs:{"md":6,"sm":6}},[_c('div',{staticClass:"table-page-search-submitButtons",staticStyle:{"overflow":"hidden","line-height":"34px"}},[_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)}
|
|
87816
|
+
var staticRenderFns = []
|
|
87817
|
+
|
|
87818
|
+
|
|
87819
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.array.push.js
|
|
87820
|
+
var es_array_push = __webpack_require__(49165);
|
|
87821
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.constructor.js
|
|
87822
|
+
var es_iterator_constructor = __webpack_require__(36252);
|
|
87823
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.filter.js
|
|
87824
|
+
var es_iterator_filter = __webpack_require__(59980);
|
|
87825
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.for-each.js
|
|
87826
|
+
var es_iterator_for_each = __webpack_require__(65713);
|
|
87827
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.map.js
|
|
87828
|
+
var es_iterator_map = __webpack_require__(29794);
|
|
87829
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.some.js
|
|
87830
|
+
var es_iterator_some = __webpack_require__(42698);
|
|
87831
|
+
// EXTERNAL MODULE: ./src/api/manage.js
|
|
87832
|
+
var manage = __webpack_require__(5335);
|
|
87833
|
+
// EXTERNAL MODULE: ./src/mixins/JeecgListMixinV2.js
|
|
87834
|
+
var JeecgListMixinV2 = __webpack_require__(80673);
|
|
87835
|
+
// EXTERNAL MODULE: ./src/api/api.js
|
|
87836
|
+
var api = __webpack_require__(68294);
|
|
87837
|
+
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
87838
|
+
var lodash = __webpack_require__(45182);
|
|
87839
|
+
;// ./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
|
|
87840
|
+
|
|
87841
|
+
|
|
87842
|
+
|
|
87843
|
+
|
|
87844
|
+
|
|
87845
|
+
|
|
87846
|
+
//
|
|
87847
|
+
//
|
|
87848
|
+
//
|
|
87849
|
+
//
|
|
87850
|
+
//
|
|
87851
|
+
//
|
|
87852
|
+
//
|
|
87853
|
+
//
|
|
87854
|
+
//
|
|
87855
|
+
//
|
|
87856
|
+
//
|
|
87857
|
+
//
|
|
87858
|
+
//
|
|
87859
|
+
//
|
|
87860
|
+
//
|
|
87861
|
+
//
|
|
87862
|
+
//
|
|
87863
|
+
//
|
|
87864
|
+
//
|
|
87865
|
+
//
|
|
87866
|
+
//
|
|
87867
|
+
//
|
|
87868
|
+
//
|
|
87869
|
+
//
|
|
87870
|
+
//
|
|
87871
|
+
//
|
|
87872
|
+
//
|
|
87873
|
+
//
|
|
87874
|
+
//
|
|
87875
|
+
//
|
|
87876
|
+
//
|
|
87877
|
+
//
|
|
87878
|
+
//
|
|
87879
|
+
//
|
|
87880
|
+
//
|
|
87881
|
+
//
|
|
87882
|
+
//
|
|
87883
|
+
//
|
|
87884
|
+
//
|
|
87885
|
+
//
|
|
87886
|
+
//
|
|
87887
|
+
//
|
|
87888
|
+
//
|
|
87889
|
+
//
|
|
87890
|
+
//
|
|
87891
|
+
//
|
|
87892
|
+
//
|
|
87893
|
+
//
|
|
87894
|
+
//
|
|
87895
|
+
//
|
|
87896
|
+
//
|
|
87897
|
+
//
|
|
87898
|
+
//
|
|
87899
|
+
//
|
|
87900
|
+
//
|
|
87901
|
+
//
|
|
87902
|
+
//
|
|
87903
|
+
//
|
|
87904
|
+
//
|
|
87905
|
+
//
|
|
87906
|
+
//
|
|
87907
|
+
//
|
|
87908
|
+
//
|
|
87909
|
+
//
|
|
87910
|
+
//
|
|
87911
|
+
//
|
|
87912
|
+
//
|
|
87913
|
+
//
|
|
87914
|
+
//
|
|
87915
|
+
//
|
|
87916
|
+
//
|
|
87917
|
+
//
|
|
87918
|
+
//
|
|
87919
|
+
//
|
|
87920
|
+
//
|
|
87921
|
+
//
|
|
87922
|
+
//
|
|
87923
|
+
//
|
|
87924
|
+
//
|
|
87925
|
+
//
|
|
87926
|
+
//
|
|
87927
|
+
//
|
|
87928
|
+
//
|
|
87929
|
+
//
|
|
87930
|
+
//
|
|
87931
|
+
//
|
|
87932
|
+
//
|
|
87933
|
+
//
|
|
87934
|
+
//
|
|
87935
|
+
//
|
|
87936
|
+
//
|
|
87937
|
+
//
|
|
87938
|
+
//
|
|
87939
|
+
//
|
|
87940
|
+
//
|
|
87941
|
+
//
|
|
87942
|
+
//
|
|
87943
|
+
//
|
|
87944
|
+
//
|
|
87945
|
+
//
|
|
87946
|
+
//
|
|
87947
|
+
//
|
|
87948
|
+
//
|
|
87949
|
+
//
|
|
87950
|
+
//
|
|
87951
|
+
//
|
|
87952
|
+
//
|
|
87953
|
+
//
|
|
87954
|
+
//
|
|
87955
|
+
//
|
|
87956
|
+
//
|
|
87957
|
+
//
|
|
87958
|
+
//
|
|
87959
|
+
//
|
|
87960
|
+
//
|
|
87961
|
+
//
|
|
87962
|
+
//
|
|
87963
|
+
//
|
|
87964
|
+
//
|
|
87965
|
+
//
|
|
87966
|
+
//
|
|
87967
|
+
|
|
87968
|
+
|
|
87969
|
+
|
|
87970
|
+
|
|
87971
|
+
|
|
87972
|
+
/* harmony default export */ const selectUserModalvue_type_script_lang_js = ({
|
|
87973
|
+
name: 'selectUserModal',
|
|
87974
|
+
props: ['modalWidth', 'multi', 'users', 'role', 'defaultDepartId', 'applyId', 'tagId'],
|
|
87975
|
+
mixins: [{
|
|
87976
|
+
...JeecgListMixinV2/* JeecgListMixin */.C,
|
|
87977
|
+
created: undefined
|
|
87978
|
+
}],
|
|
87979
|
+
// 取消minxin created
|
|
87980
|
+
data() {
|
|
87981
|
+
return {
|
|
87982
|
+
queryParam: {
|
|
87983
|
+
depId: undefined,
|
|
87984
|
+
roleId: undefined,
|
|
87985
|
+
realname: '',
|
|
87986
|
+
username: ''
|
|
87987
|
+
},
|
|
87988
|
+
showuser: false,
|
|
87989
|
+
userlist: [],
|
|
87990
|
+
visible: false,
|
|
87991
|
+
confirmLoading: false,
|
|
87992
|
+
treeData: [],
|
|
87993
|
+
autoExpandParent: true,
|
|
87994
|
+
expandedKeys: [],
|
|
87995
|
+
dataList: [],
|
|
87996
|
+
checkedKeys: [],
|
|
87997
|
+
departTreeData: [],
|
|
87998
|
+
checkedRows: [],
|
|
87999
|
+
searchValue: "",
|
|
88000
|
+
selectionRowsData: [],
|
|
88001
|
+
selectedRowKeys: [],
|
|
88002
|
+
isFilter: true,
|
|
88003
|
+
rowSelection: {
|
|
88004
|
+
selectedRowKeys: this.selectedRowKeys,
|
|
88005
|
+
// onChange: this.onSelectChange,
|
|
88006
|
+
|
|
88007
|
+
type: this.multi ? "checkbox" : "radio"
|
|
88008
|
+
},
|
|
88009
|
+
columns: [
|
|
88010
|
+
// {
|
|
88011
|
+
// title: "用户名",
|
|
88012
|
+
// dataIndex: "username",
|
|
88013
|
+
// },
|
|
88014
|
+
// {
|
|
88015
|
+
// title: "真实姓名",
|
|
88016
|
+
// dataIndex: "realname",
|
|
88017
|
+
// },
|
|
88018
|
+
// {
|
|
88019
|
+
// title: "单位",
|
|
88020
|
+
// dataIndex: "departName",
|
|
88021
|
+
// },
|
|
88022
|
+
// {
|
|
88023
|
+
// title: "职务",
|
|
88024
|
+
// dataIndex: "zw",
|
|
88025
|
+
// },
|
|
88026
|
+
// {
|
|
88027
|
+
// title: "电话",
|
|
88028
|
+
// dataIndex: "phone",
|
|
88029
|
+
// },
|
|
88030
|
+
],
|
|
88031
|
+
url: {
|
|
88032
|
+
syncUser: '/process/extActProcess/doSyncUser',
|
|
88033
|
+
list: '/workflow/queryCandidatePersonal',
|
|
88034
|
+
delete: '/sys/user/delete',
|
|
88035
|
+
deleteBatch: '/sys/user/deleteBatch',
|
|
88036
|
+
exportXlsUrl: '/sys/user/exportXls',
|
|
88037
|
+
importExcelUrl: 'sys/user/importExcel'
|
|
88038
|
+
},
|
|
88039
|
+
tagDeparts: [],
|
|
88040
|
+
deptId: '',
|
|
88041
|
+
accurate: false,
|
|
88042
|
+
// 是否精准选人
|
|
88043
|
+
defaultExpandedKeys: [] // 默认展开的节点
|
|
88044
|
+
};
|
|
88045
|
+
},
|
|
88046
|
+
created() {
|
|
88047
|
+
this.deptId = this.defaultDepartId || undefined;
|
|
88048
|
+
this.setQueryParamsVal({
|
|
88049
|
+
depId: this.deptId,
|
|
88050
|
+
applyId: this.applyId,
|
|
88051
|
+
tagId: this.tagId,
|
|
88052
|
+
roleId: this.role
|
|
88053
|
+
});
|
|
88054
|
+
// this.loadData(false, 'first')
|
|
88055
|
+
this.loadDepartTree();
|
|
88056
|
+
this.setDefaultUser();
|
|
88057
|
+
},
|
|
88058
|
+
mounted() {
|
|
88059
|
+
if (this.deptId) {
|
|
88060
|
+
this.treechange(this.deptId);
|
|
88061
|
+
}
|
|
88062
|
+
},
|
|
88063
|
+
computed: {},
|
|
88064
|
+
watch: {
|
|
88065
|
+
users(v) {
|
|
88066
|
+
if (v.length === 0) {
|
|
88067
|
+
this.setDefaultUser();
|
|
88068
|
+
}
|
|
88069
|
+
},
|
|
88070
|
+
role(val) {
|
|
88071
|
+
this.role = val;
|
|
88072
|
+
}
|
|
88073
|
+
},
|
|
88074
|
+
methods: {
|
|
88075
|
+
loadData(arg, type) {
|
|
88076
|
+
if (!this.url.list) {
|
|
88077
|
+
this.$message.error("请设置url.list属性!");
|
|
88078
|
+
return;
|
|
88079
|
+
}
|
|
88080
|
+
//加载数据 若传入参数1则加载第一页的内容
|
|
88081
|
+
if (arg === 1) {
|
|
88082
|
+
this.ipagination.current = 1;
|
|
88083
|
+
}
|
|
88084
|
+
if (this.role) {
|
|
88085
|
+
this.setQueryParamsVal({
|
|
88086
|
+
roleId: this.role
|
|
88087
|
+
});
|
|
88088
|
+
}
|
|
88089
|
+
if (this.tagId) {
|
|
88090
|
+
this.setQueryParamsVal({
|
|
88091
|
+
tagId: this.tagId
|
|
88092
|
+
});
|
|
88093
|
+
}
|
|
88094
|
+
let params = this.getQueryParams(); //查询条件
|
|
88095
|
+
this.loading = true;
|
|
88096
|
+
if (this.accurate && this.selectionRowsData && this.selectionRowsData.length > 0) {
|
|
88097
|
+
//精确查询需要带上选中的数据一起查询
|
|
88098
|
+
let username = this.selectionRowsData.map(item => item.realname).join(',');
|
|
88099
|
+
params.username = params.username ? params.username + ',' + username : username;
|
|
88100
|
+
}
|
|
88101
|
+
(0,manage/* getAction */.Th)(this.url.list, params).then(res => {
|
|
88102
|
+
if (res.success) {
|
|
88103
|
+
debugger;
|
|
88104
|
+
this.dataSource = res.result.records;
|
|
88105
|
+
this.ipagination.total = res.result.total;
|
|
88106
|
+
if (type && this.applyId) {
|
|
88107
|
+
this.deptId = res.result.params.depId;
|
|
88108
|
+
this.setQueryParamsVal({
|
|
88109
|
+
depId: this.deptId
|
|
88110
|
+
});
|
|
88111
|
+
this.treechange(this.deptId);
|
|
88112
|
+
}
|
|
88113
|
+
}
|
|
88114
|
+
if (res.code === 510) {
|
|
88115
|
+
this.$message.warning(res.message);
|
|
88116
|
+
} else if (res.code === 500) {
|
|
88117
|
+
if (res.message.length < 100) {
|
|
88118
|
+
this.$message.error(res.message);
|
|
88119
|
+
}
|
|
88120
|
+
}
|
|
88121
|
+
this.loading = false;
|
|
88122
|
+
});
|
|
88123
|
+
},
|
|
88124
|
+
getTagDepart() {
|
|
88125
|
+
this.tagDeparts = [];
|
|
88126
|
+
(0,manage/* getAction */.Th)("/zhxymatrix/user/listDepartsByTagId", {
|
|
88127
|
+
tagId: this.tagId
|
|
88128
|
+
}).then(res => {
|
|
88129
|
+
if (res.success) {
|
|
88130
|
+
this.tagDeparts = res.result || [];
|
|
88131
|
+
}
|
|
88132
|
+
});
|
|
88133
|
+
},
|
|
88134
|
+
handleCustomRow(record) {
|
|
88135
|
+
return {
|
|
88136
|
+
on: {
|
|
88137
|
+
click: () => {
|
|
88138
|
+
const selectId = record.id;
|
|
88139
|
+
const selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
88140
|
+
if (!this.multi) {
|
|
88141
|
+
this.rowSelection.selectedRowKeys = [record.id];
|
|
88142
|
+
this.selectionRowsData = [record];
|
|
88143
|
+
return;
|
|
88144
|
+
}
|
|
88145
|
+
if (selectedRowKeys.includes(selectId)) {
|
|
88146
|
+
this.selectionRowsData = this.selectionRowsData.filter(item => item.id !== selectId);
|
|
88147
|
+
this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== selectId);
|
|
88148
|
+
return;
|
|
88149
|
+
}
|
|
88150
|
+
this.rowSelection.selectedRowKeys.push(record.id);
|
|
88151
|
+
this.selectionRowsData.push(record);
|
|
88152
|
+
}
|
|
88153
|
+
}
|
|
88154
|
+
};
|
|
88155
|
+
},
|
|
88156
|
+
setZindex() {
|
|
88157
|
+
return () => document.getElementById("speca");
|
|
88158
|
+
},
|
|
88159
|
+
//获取部门
|
|
88160
|
+
getTreedata() {
|
|
88161
|
+
this.treeData = [];
|
|
88162
|
+
(0,manage/* getAction */.Th)("formApi/queryTreeList").then(res => {
|
|
88163
|
+
if (res.success) {
|
|
88164
|
+
for (let i = 0; i < res.result.length; i++) {
|
|
88165
|
+
let temp = res.result[i];
|
|
88166
|
+
this.treeData.push(temp);
|
|
88167
|
+
}
|
|
88168
|
+
// let ob = { value: "", title: "请选择" };
|
|
88169
|
+
// this.treeData.unshift(ob);
|
|
88170
|
+
|
|
88171
|
+
// 设置默认展开二级节点
|
|
88172
|
+
this.setDefaultExpandedKeys();
|
|
88173
|
+
}
|
|
88174
|
+
});
|
|
88175
|
+
},
|
|
88176
|
+
// 设置默认展开的节点(只展开到二级)
|
|
88177
|
+
setDefaultExpandedKeys() {
|
|
88178
|
+
const keys = [];
|
|
88179
|
+
// 只收集一级节点的key,这样就只展开到二级
|
|
88180
|
+
this.treeData.forEach(node => {
|
|
88181
|
+
keys.push(node.value || node.key);
|
|
88182
|
+
});
|
|
88183
|
+
this.defaultExpandedKeys = keys;
|
|
88184
|
+
},
|
|
88185
|
+
treechange(e) {
|
|
88186
|
+
this.queryParam.roleId = undefined;
|
|
88187
|
+
let params = {
|
|
88188
|
+
depId: e
|
|
88189
|
+
};
|
|
88190
|
+
(0,manage/* getAction */.Th)("/sys/role/listWorkFlowDepRole", params).then(res => {
|
|
88191
|
+
if (res.success) {
|
|
88192
|
+
this.userlist = res.result;
|
|
88193
|
+
this.showuser = true;
|
|
88194
|
+
}
|
|
88195
|
+
});
|
|
88196
|
+
},
|
|
88197
|
+
setDefaultUser() {
|
|
88198
|
+
var selectedRowKeys = [];
|
|
88199
|
+
if (Array.isArray(this.users) && this.users.length > 0) {
|
|
88200
|
+
selectedRowKeys = this.users.map(item => {
|
|
88201
|
+
return item.id;
|
|
88202
|
+
});
|
|
88203
|
+
this.selectionRowsData = this.users.map(item => {
|
|
88204
|
+
return {
|
|
88205
|
+
...item,
|
|
88206
|
+
id: item.id,
|
|
88207
|
+
realname: item.realname || item.username
|
|
88208
|
+
};
|
|
88209
|
+
});
|
|
88210
|
+
} else {
|
|
88211
|
+
this.selectionRowsData = [];
|
|
88212
|
+
}
|
|
88213
|
+
// console.log(selectedRowKeys)
|
|
88214
|
+
this.rowSelection = {
|
|
88215
|
+
// onChange: this.onSelectChange,
|
|
88216
|
+
type: this.multi ? "checkbox" : "radio",
|
|
88217
|
+
selectedRowKeys: selectedRowKeys,
|
|
88218
|
+
onSelect: (record, selected, selectedRows, nativeEvent) => {
|
|
88219
|
+
// console.log(record, selected, selectedRows, nativeEvent)
|
|
88220
|
+
const list = this.selectionRowsData;
|
|
88221
|
+
const selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
88222
|
+
if (!selected) {
|
|
88223
|
+
// 这里是取消勾选,删除对应的数组项
|
|
88224
|
+
// selectedRowKeys.map((x,item) => {
|
|
88225
|
+
// if(x === record.id){
|
|
88226
|
+
// selectedRowKeys.splice(item,1)
|
|
88227
|
+
// }
|
|
88228
|
+
// })
|
|
88229
|
+
// list.map((x,item) => {
|
|
88230
|
+
// if(x === record.id){
|
|
88231
|
+
// list.splice(item,1)
|
|
88232
|
+
// }
|
|
88233
|
+
// })
|
|
88234
|
+
this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== record.id);
|
|
88235
|
+
this.selectionRowsData = list.filter(item => item.id !== record.id);
|
|
88236
|
+
console.log(this.rowSelection.selectedRowKeys);
|
|
88237
|
+
}
|
|
88238
|
+
if (selected) {
|
|
88239
|
+
if (!this.multi) {
|
|
88240
|
+
this.rowSelection.selectedRowKeys = [record.id];
|
|
88241
|
+
this.selectionRowsData = [record];
|
|
88242
|
+
return;
|
|
88243
|
+
}
|
|
88244
|
+
|
|
88245
|
+
// 这里是点击勾选,添加workerId字段到selectedRowKeys数组里
|
|
88246
|
+
this.rowSelection.selectedRowKeys.push(record.id);
|
|
88247
|
+
console.log(this.rowSelection.selectedRowKeys);
|
|
88248
|
+
list.push(record);
|
|
88249
|
+
}
|
|
88250
|
+
},
|
|
88251
|
+
//全选
|
|
88252
|
+
onSelectAll: (selected, selectedRows, changeRows) => {
|
|
88253
|
+
if (selected) {
|
|
88254
|
+
changeRows.map(x => {
|
|
88255
|
+
if (!this.rowSelection.selectedRowKeys.includes(x.id)) {
|
|
88256
|
+
this.rowSelection.selectedRowKeys.push(x.id);
|
|
88257
|
+
this.selectedRowKeys.push(x.id);
|
|
88258
|
+
this.selectionRowsData.push(x);
|
|
88259
|
+
}
|
|
88260
|
+
});
|
|
88261
|
+
}
|
|
88262
|
+
if (!selected) {
|
|
88263
|
+
const removeKey = changeRows.map(item => item.id);
|
|
88264
|
+
this.selectedRowKeys = this.selectedRowKeys.filter(item => !removeKey.includes(item));
|
|
88265
|
+
this.selectionRowsData = this.selectionRowsData.filter(item => !removeKey.includes(item.id));
|
|
88266
|
+
this.$set(this.rowSelection, 'selectedRowKeys', this.selectedRowKeys);
|
|
88267
|
+
}
|
|
88268
|
+
}
|
|
88269
|
+
// getCheckboxProps: (record) => {
|
|
88270
|
+
// return {
|
|
88271
|
+
// props: {
|
|
88272
|
+
// defaultChecked: selectedRowKeys.includes(record.id),
|
|
88273
|
+
// },
|
|
88274
|
+
// };
|
|
88275
|
+
// },
|
|
88276
|
+
};
|
|
88277
|
+
},
|
|
88278
|
+
loadDepartTree() {
|
|
88279
|
+
const that = this;
|
|
88280
|
+
(0,api/* queryDepartTreeList */.vv)().then(res => {
|
|
88281
|
+
if (res.success) {
|
|
88282
|
+
that.departTreeData = [];
|
|
88283
|
+
for (let i = 0; i < res.result.length; i++) {
|
|
88284
|
+
let temp = res.result[i];
|
|
88285
|
+
that.departTreeData.push(temp);
|
|
88286
|
+
}
|
|
88287
|
+
that.loading = false;
|
|
88288
|
+
}
|
|
88289
|
+
});
|
|
88290
|
+
},
|
|
88291
|
+
show(select, item, selectedUserIds = undefined, userSelectByMyself = '1', accurate = false) {
|
|
88292
|
+
this.accurate = accurate;
|
|
88293
|
+
this.dataSource = [];
|
|
88294
|
+
if (accurate) {
|
|
88295
|
+
this.url.list = '/workflow/queryCandidatePersonalByName';
|
|
88296
|
+
this.columns = [{
|
|
88297
|
+
title: "单位",
|
|
88298
|
+
dataIndex: "departName"
|
|
88299
|
+
}, {
|
|
88300
|
+
title: "姓名",
|
|
88301
|
+
dataIndex: "realname"
|
|
88302
|
+
}, {
|
|
88303
|
+
title: "工号",
|
|
88304
|
+
dataIndex: "username"
|
|
88305
|
+
}];
|
|
88306
|
+
} else {
|
|
88307
|
+
this.url.list = '/workflow/queryCandidatePersonal';
|
|
88308
|
+
this.columns = [{
|
|
88309
|
+
title: "用户名",
|
|
88310
|
+
dataIndex: "username"
|
|
88311
|
+
}, {
|
|
88312
|
+
title: "真实姓名",
|
|
88313
|
+
dataIndex: "realname",
|
|
88314
|
+
customRender: (text, record) => {
|
|
88315
|
+
return {
|
|
88316
|
+
children: this.renderUserInfo(text, record)
|
|
88317
|
+
};
|
|
88318
|
+
}
|
|
88319
|
+
}, {
|
|
88320
|
+
title: "单位",
|
|
88321
|
+
dataIndex: "departName"
|
|
88322
|
+
}];
|
|
88323
|
+
}
|
|
88324
|
+
console.log(select);
|
|
88325
|
+
if (this.tagId) this.getTagDepart();
|
|
88326
|
+
if (this.deptId) {
|
|
88327
|
+
this.treechange(this.deptId);
|
|
88328
|
+
}
|
|
88329
|
+
this.setQueryParamsVal({
|
|
88330
|
+
tagId: this.tagId,
|
|
88331
|
+
roleId: this.role,
|
|
88332
|
+
depId: this.deptId,
|
|
88333
|
+
applyId: this.applyId,
|
|
88334
|
+
selectedUserIds: selectedUserIds,
|
|
88335
|
+
userSelectByMyself: userSelectByMyself
|
|
88336
|
+
});
|
|
88337
|
+
|
|
88338
|
+
//this.loadDepartTree();
|
|
88339
|
+
this.checkedRows = [];
|
|
88340
|
+
this.rowSelection.selectedRowKeys = select;
|
|
88341
|
+
this.selectionRowsData = item;
|
|
88342
|
+
this.getTreedata();
|
|
88343
|
+
this.loadData();
|
|
88344
|
+
this.setDefaultUser();
|
|
88345
|
+
this.visible = true;
|
|
88346
|
+
},
|
|
88347
|
+
onCheck(checkedKeys, info) {
|
|
88348
|
+
if (!this.multi) {
|
|
88349
|
+
let arr = checkedKeys.checked.filter(item => {
|
|
88350
|
+
return this.checkedKeys.indexOf(item) < 0;
|
|
88351
|
+
});
|
|
88352
|
+
this.checkedKeys = [...arr];
|
|
88353
|
+
this.checkedRows = [info.node.dataRef];
|
|
88354
|
+
} else {
|
|
88355
|
+
this.checkedKeys = checkedKeys.checked;
|
|
88356
|
+
this.checkedRows.push(info.node.dataRef);
|
|
88357
|
+
}
|
|
88358
|
+
//this.$emit("input",this.checkedKeys.join(","))
|
|
88359
|
+
//console.log(this.checkedKeys.join(","))
|
|
88360
|
+
},
|
|
88361
|
+
handleSubmit() {
|
|
88362
|
+
this.selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
88363
|
+
if (!this.selectedRowKeys || this.selectedRowKeys.length == 0) {
|
|
88364
|
+
this.$emit("ok", "");
|
|
88365
|
+
} else {
|
|
88366
|
+
this.$emit("ok", this.selectionRowsData, this.selectedRowKeys.join(","));
|
|
88367
|
+
}
|
|
88368
|
+
this.handleClear();
|
|
88369
|
+
},
|
|
88370
|
+
//onSelectChange
|
|
88371
|
+
// onSelectChange(selectedRowKeys, selectionRows) {
|
|
88372
|
+
// this.rowSelection.selectedRowKeys = Array.from(new Set(selectedRowKeys));
|
|
88373
|
+
// this.selectionRowsData = this.selectionRows = [...selectionRows];
|
|
88374
|
+
// },
|
|
88375
|
+
// //选中或者取消某一项时
|
|
88376
|
+
// onSelectOption(record, selected, selectedRows, nativeEvent) {
|
|
88377
|
+
// if (selected) {
|
|
88378
|
+
// this.selectionRowsData.push(record);
|
|
88379
|
+
// } else {
|
|
88380
|
+
// this.selectionRowsData = this.selectionRowsData.filter((item) => {
|
|
88381
|
+
// return item.id != record.id;
|
|
88382
|
+
// });
|
|
88383
|
+
// }
|
|
88384
|
+
// },
|
|
88385
|
+
handleCancel() {
|
|
88386
|
+
this.handleClear();
|
|
88387
|
+
},
|
|
88388
|
+
afterClose() {
|
|
88389
|
+
this.showuser = false;
|
|
88390
|
+
this.ipagination.current = 1;
|
|
88391
|
+
this.ipagination.pageSize = 10;
|
|
88392
|
+
this.ipagination.total = 0;
|
|
88393
|
+
},
|
|
88394
|
+
handleClear() {
|
|
88395
|
+
this.visible = false;
|
|
88396
|
+
this.modalCancel();
|
|
88397
|
+
this.checkedKeys = [];
|
|
88398
|
+
},
|
|
88399
|
+
getParentKey(currKey, treeData) {
|
|
88400
|
+
let parentKey;
|
|
88401
|
+
for (let i = 0; i < treeData.length; i++) {
|
|
88402
|
+
const node = treeData[i];
|
|
88403
|
+
if (node.children) {
|
|
88404
|
+
if (node.children.some(item => item.key === currKey)) {
|
|
88405
|
+
parentKey = node.key;
|
|
88406
|
+
} else if (this.getParentKey(currKey, node.children)) {
|
|
88407
|
+
parentKey = this.getParentKey(currKey, node.children);
|
|
88408
|
+
}
|
|
88409
|
+
}
|
|
88410
|
+
}
|
|
88411
|
+
return parentKey;
|
|
88412
|
+
},
|
|
88413
|
+
onSearch(value) {
|
|
88414
|
+
const expandedKeys = this.dataList.map(item => {
|
|
88415
|
+
if (item.title.indexOf(value) > -1) {
|
|
88416
|
+
return this.getParentKey(item.key, this.treeData);
|
|
88417
|
+
}
|
|
88418
|
+
return null;
|
|
88419
|
+
}).filter((item, i, self) => item && self.indexOf(item) === i);
|
|
88420
|
+
Object.assign(this, {
|
|
88421
|
+
expandedKeys,
|
|
88422
|
+
searchValue: value,
|
|
88423
|
+
autoExpandParent: true
|
|
88424
|
+
});
|
|
88425
|
+
},
|
|
88426
|
+
initDictConfig() {
|
|
88427
|
+
this.loadDepartTree();
|
|
88428
|
+
},
|
|
88429
|
+
// 渲染用户信息(头像+姓名)
|
|
88430
|
+
renderUserInfo(text, record) {
|
|
88431
|
+
var _window$_CONFIG;
|
|
88432
|
+
const h = this.$createElement;
|
|
88433
|
+
|
|
88434
|
+
// 检查是否启用头像功能
|
|
88435
|
+
const userSelectAvatarType = (_window$_CONFIG = window._CONFIG) === null || _window$_CONFIG === void 0 ? void 0 : _window$_CONFIG.userSelectAvatarType;
|
|
88436
|
+
|
|
88437
|
+
// 如果配置了userSelectAvatarType且有头像字段,显示头像+姓名
|
|
88438
|
+
if (userSelectAvatarType && record.avatar) {
|
|
88439
|
+
const imgUrl = window._CONFIG.imgDomainURL || window._CONFIG.imgUrl || '';
|
|
88440
|
+
return h('div', {
|
|
88441
|
+
style: {
|
|
88442
|
+
display: 'flex',
|
|
88443
|
+
alignItems: 'center',
|
|
88444
|
+
gap: '8px'
|
|
88445
|
+
}
|
|
88446
|
+
}, [h('img', {
|
|
88447
|
+
attrs: {
|
|
88448
|
+
src: imgUrl + record.avatar,
|
|
88449
|
+
alt: text
|
|
88450
|
+
},
|
|
88451
|
+
style: {
|
|
88452
|
+
width: '32px',
|
|
88453
|
+
height: '32px',
|
|
88454
|
+
borderRadius: '50%',
|
|
88455
|
+
objectFit: 'cover'
|
|
88456
|
+
}
|
|
88457
|
+
}), h('span', text)]);
|
|
88458
|
+
}
|
|
88459
|
+
|
|
88460
|
+
// 没有配置或没有头像,只显示姓名
|
|
88461
|
+
return h('span', text);
|
|
88462
|
+
}
|
|
88463
|
+
}
|
|
88464
|
+
});
|
|
88465
|
+
;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js
|
|
88466
|
+
/* harmony default export */ const Modals_selectUserModalvue_type_script_lang_js = (selectUserModalvue_type_script_lang_js);
|
|
88467
|
+
;// ./node_modules/_mini-css-extract-plugin@2.9.4@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=4a41ae72&prod&scoped=true&lang=css
|
|
88468
|
+
// extracted by mini-css-extract-plugin
|
|
88469
|
+
|
|
88470
|
+
;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=4a41ae72&prod&scoped=true&lang=css
|
|
88471
|
+
|
|
88472
|
+
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
88473
|
+
var componentNormalizer = __webpack_require__(64008);
|
|
88474
|
+
;// ./src/form/modules/common/Modals/selectUserModal.vue
|
|
88475
|
+
|
|
88476
|
+
|
|
88477
|
+
|
|
88478
|
+
;
|
|
88479
|
+
|
|
88480
|
+
|
|
88481
|
+
/* normalize component */
|
|
88482
|
+
|
|
88483
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
88484
|
+
Modals_selectUserModalvue_type_script_lang_js,
|
|
88485
|
+
render,
|
|
88486
|
+
staticRenderFns,
|
|
88487
|
+
false,
|
|
88488
|
+
null,
|
|
88489
|
+
"4a41ae72",
|
|
88490
|
+
null
|
|
88491
|
+
|
|
88492
|
+
)
|
|
88493
|
+
|
|
88494
|
+
/* harmony default export */ const selectUserModal = (component.exports);
|
|
88495
|
+
|
|
87798
88496
|
/***/ }),
|
|
87799
88497
|
|
|
87800
88498
|
/***/ 29162:
|
|
@@ -152524,664 +153222,6 @@ var global = module.exports = typeof window != 'undefined' && window.Math == Mat
|
|
|
152524
153222
|
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
|
|
152525
153223
|
|
|
152526
153224
|
|
|
152527
|
-
/***/ }),
|
|
152528
|
-
|
|
152529
|
-
/***/ 83782:
|
|
152530
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
152531
|
-
|
|
152532
|
-
"use strict";
|
|
152533
|
-
|
|
152534
|
-
// EXPORTS
|
|
152535
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
152536
|
-
A: () => (/* binding */ selectUserModal)
|
|
152537
|
-
});
|
|
152538
|
-
|
|
152539
|
-
;// ./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=6e0a220e&scoped=true
|
|
152540
|
-
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 && !_vm.accurate)?[_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,"treeDefaultExpandedKeys":_vm.defaultExpandedKeys,"getPopupContainer":function (triggerNode) {
|
|
152541
|
-
return triggerNode.parentNode || _vm.document.body;
|
|
152542
|
-
},"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) {
|
|
152543
|
-
return triggerNode.parentNode || _vm.document.body;
|
|
152544
|
-
}},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()]:[(!_vm.accurate)?_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):_vm._e()],(!_vm.accurate)?_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('a-form-item',[_c('a-input',{attrs:{"placeholder":"用户名/真实姓名查询"},model:{value:(_vm.queryParam.username),callback:function ($$v) {_vm.$set(_vm.queryParam, "username", $$v)},expression:"queryParam.username"}})],1)],1),_c('a-col',{attrs:{"md":6,"sm":6}},[_c('div',{staticClass:"table-page-search-submitButtons",staticStyle:{"overflow":"hidden","line-height":"34px"}},[_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)}
|
|
152545
|
-
var staticRenderFns = []
|
|
152546
|
-
|
|
152547
|
-
|
|
152548
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.array.push.js
|
|
152549
|
-
var es_array_push = __webpack_require__(49165);
|
|
152550
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.constructor.js
|
|
152551
|
-
var es_iterator_constructor = __webpack_require__(36252);
|
|
152552
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.filter.js
|
|
152553
|
-
var es_iterator_filter = __webpack_require__(59980);
|
|
152554
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.for-each.js
|
|
152555
|
-
var es_iterator_for_each = __webpack_require__(65713);
|
|
152556
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.map.js
|
|
152557
|
-
var es_iterator_map = __webpack_require__(29794);
|
|
152558
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.46.0@core-js/modules/es.iterator.some.js
|
|
152559
|
-
var es_iterator_some = __webpack_require__(42698);
|
|
152560
|
-
// EXTERNAL MODULE: ./src/api/manage.js
|
|
152561
|
-
var manage = __webpack_require__(5335);
|
|
152562
|
-
// EXTERNAL MODULE: ./src/mixins/JeecgListMixinV2.js
|
|
152563
|
-
var JeecgListMixinV2 = __webpack_require__(80673);
|
|
152564
|
-
// EXTERNAL MODULE: ./src/api/api.js
|
|
152565
|
-
var api = __webpack_require__(68294);
|
|
152566
|
-
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
152567
|
-
var lodash = __webpack_require__(45182);
|
|
152568
|
-
;// ./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
|
|
152569
|
-
|
|
152570
|
-
|
|
152571
|
-
|
|
152572
|
-
|
|
152573
|
-
|
|
152574
|
-
|
|
152575
|
-
//
|
|
152576
|
-
//
|
|
152577
|
-
//
|
|
152578
|
-
//
|
|
152579
|
-
//
|
|
152580
|
-
//
|
|
152581
|
-
//
|
|
152582
|
-
//
|
|
152583
|
-
//
|
|
152584
|
-
//
|
|
152585
|
-
//
|
|
152586
|
-
//
|
|
152587
|
-
//
|
|
152588
|
-
//
|
|
152589
|
-
//
|
|
152590
|
-
//
|
|
152591
|
-
//
|
|
152592
|
-
//
|
|
152593
|
-
//
|
|
152594
|
-
//
|
|
152595
|
-
//
|
|
152596
|
-
//
|
|
152597
|
-
//
|
|
152598
|
-
//
|
|
152599
|
-
//
|
|
152600
|
-
//
|
|
152601
|
-
//
|
|
152602
|
-
//
|
|
152603
|
-
//
|
|
152604
|
-
//
|
|
152605
|
-
//
|
|
152606
|
-
//
|
|
152607
|
-
//
|
|
152608
|
-
//
|
|
152609
|
-
//
|
|
152610
|
-
//
|
|
152611
|
-
//
|
|
152612
|
-
//
|
|
152613
|
-
//
|
|
152614
|
-
//
|
|
152615
|
-
//
|
|
152616
|
-
//
|
|
152617
|
-
//
|
|
152618
|
-
//
|
|
152619
|
-
//
|
|
152620
|
-
//
|
|
152621
|
-
//
|
|
152622
|
-
//
|
|
152623
|
-
//
|
|
152624
|
-
//
|
|
152625
|
-
//
|
|
152626
|
-
//
|
|
152627
|
-
//
|
|
152628
|
-
//
|
|
152629
|
-
//
|
|
152630
|
-
//
|
|
152631
|
-
//
|
|
152632
|
-
//
|
|
152633
|
-
//
|
|
152634
|
-
//
|
|
152635
|
-
//
|
|
152636
|
-
//
|
|
152637
|
-
//
|
|
152638
|
-
//
|
|
152639
|
-
//
|
|
152640
|
-
//
|
|
152641
|
-
//
|
|
152642
|
-
//
|
|
152643
|
-
//
|
|
152644
|
-
//
|
|
152645
|
-
//
|
|
152646
|
-
//
|
|
152647
|
-
//
|
|
152648
|
-
//
|
|
152649
|
-
//
|
|
152650
|
-
//
|
|
152651
|
-
//
|
|
152652
|
-
//
|
|
152653
|
-
//
|
|
152654
|
-
//
|
|
152655
|
-
//
|
|
152656
|
-
//
|
|
152657
|
-
//
|
|
152658
|
-
//
|
|
152659
|
-
//
|
|
152660
|
-
//
|
|
152661
|
-
//
|
|
152662
|
-
//
|
|
152663
|
-
//
|
|
152664
|
-
//
|
|
152665
|
-
//
|
|
152666
|
-
//
|
|
152667
|
-
//
|
|
152668
|
-
//
|
|
152669
|
-
//
|
|
152670
|
-
//
|
|
152671
|
-
//
|
|
152672
|
-
//
|
|
152673
|
-
//
|
|
152674
|
-
//
|
|
152675
|
-
//
|
|
152676
|
-
//
|
|
152677
|
-
//
|
|
152678
|
-
//
|
|
152679
|
-
//
|
|
152680
|
-
//
|
|
152681
|
-
//
|
|
152682
|
-
//
|
|
152683
|
-
//
|
|
152684
|
-
//
|
|
152685
|
-
//
|
|
152686
|
-
//
|
|
152687
|
-
//
|
|
152688
|
-
//
|
|
152689
|
-
//
|
|
152690
|
-
//
|
|
152691
|
-
//
|
|
152692
|
-
//
|
|
152693
|
-
//
|
|
152694
|
-
//
|
|
152695
|
-
//
|
|
152696
|
-
|
|
152697
|
-
|
|
152698
|
-
|
|
152699
|
-
|
|
152700
|
-
|
|
152701
|
-
/* harmony default export */ const selectUserModalvue_type_script_lang_js = ({
|
|
152702
|
-
name: 'selectUserModal',
|
|
152703
|
-
props: ['modalWidth', 'multi', 'users', 'role', 'defaultDepartId', 'applyId', 'tagId'],
|
|
152704
|
-
mixins: [{
|
|
152705
|
-
...JeecgListMixinV2/* JeecgListMixin */.C,
|
|
152706
|
-
created: undefined
|
|
152707
|
-
}],
|
|
152708
|
-
// 取消minxin created
|
|
152709
|
-
data() {
|
|
152710
|
-
return {
|
|
152711
|
-
queryParam: {
|
|
152712
|
-
depId: undefined,
|
|
152713
|
-
roleId: undefined,
|
|
152714
|
-
realname: '',
|
|
152715
|
-
username: ''
|
|
152716
|
-
},
|
|
152717
|
-
showuser: false,
|
|
152718
|
-
userlist: [],
|
|
152719
|
-
visible: false,
|
|
152720
|
-
confirmLoading: false,
|
|
152721
|
-
treeData: [],
|
|
152722
|
-
autoExpandParent: true,
|
|
152723
|
-
expandedKeys: [],
|
|
152724
|
-
dataList: [],
|
|
152725
|
-
checkedKeys: [],
|
|
152726
|
-
departTreeData: [],
|
|
152727
|
-
checkedRows: [],
|
|
152728
|
-
searchValue: "",
|
|
152729
|
-
selectionRowsData: [],
|
|
152730
|
-
selectedRowKeys: [],
|
|
152731
|
-
isFilter: true,
|
|
152732
|
-
rowSelection: {
|
|
152733
|
-
selectedRowKeys: this.selectedRowKeys,
|
|
152734
|
-
// onChange: this.onSelectChange,
|
|
152735
|
-
|
|
152736
|
-
type: this.multi ? "checkbox" : "radio"
|
|
152737
|
-
},
|
|
152738
|
-
columns: [
|
|
152739
|
-
// {
|
|
152740
|
-
// title: "用户名",
|
|
152741
|
-
// dataIndex: "username",
|
|
152742
|
-
// },
|
|
152743
|
-
// {
|
|
152744
|
-
// title: "真实姓名",
|
|
152745
|
-
// dataIndex: "realname",
|
|
152746
|
-
// },
|
|
152747
|
-
// {
|
|
152748
|
-
// title: "单位",
|
|
152749
|
-
// dataIndex: "departName",
|
|
152750
|
-
// },
|
|
152751
|
-
// {
|
|
152752
|
-
// title: "职务",
|
|
152753
|
-
// dataIndex: "zw",
|
|
152754
|
-
// },
|
|
152755
|
-
// {
|
|
152756
|
-
// title: "电话",
|
|
152757
|
-
// dataIndex: "phone",
|
|
152758
|
-
// },
|
|
152759
|
-
],
|
|
152760
|
-
url: {
|
|
152761
|
-
syncUser: '/process/extActProcess/doSyncUser',
|
|
152762
|
-
list: '/workflow/queryCandidatePersonal',
|
|
152763
|
-
delete: '/sys/user/delete',
|
|
152764
|
-
deleteBatch: '/sys/user/deleteBatch',
|
|
152765
|
-
exportXlsUrl: '/sys/user/exportXls',
|
|
152766
|
-
importExcelUrl: 'sys/user/importExcel'
|
|
152767
|
-
},
|
|
152768
|
-
tagDeparts: [],
|
|
152769
|
-
deptId: '',
|
|
152770
|
-
accurate: false,
|
|
152771
|
-
// 是否精准选人
|
|
152772
|
-
defaultExpandedKeys: [] // 默认展开的节点
|
|
152773
|
-
};
|
|
152774
|
-
},
|
|
152775
|
-
created() {
|
|
152776
|
-
this.deptId = this.defaultDepartId || undefined;
|
|
152777
|
-
this.setQueryParamsVal({
|
|
152778
|
-
depId: this.deptId,
|
|
152779
|
-
applyId: this.applyId,
|
|
152780
|
-
tagId: this.tagId,
|
|
152781
|
-
roleId: this.role
|
|
152782
|
-
});
|
|
152783
|
-
// this.loadData(false, 'first')
|
|
152784
|
-
this.loadDepartTree();
|
|
152785
|
-
this.setDefaultUser();
|
|
152786
|
-
},
|
|
152787
|
-
mounted() {
|
|
152788
|
-
if (this.deptId) {
|
|
152789
|
-
this.treechange(this.deptId);
|
|
152790
|
-
}
|
|
152791
|
-
},
|
|
152792
|
-
computed: {},
|
|
152793
|
-
watch: {
|
|
152794
|
-
users(v) {
|
|
152795
|
-
if (v.length === 0) {
|
|
152796
|
-
this.setDefaultUser();
|
|
152797
|
-
}
|
|
152798
|
-
},
|
|
152799
|
-
role(val) {
|
|
152800
|
-
this.role = val;
|
|
152801
|
-
}
|
|
152802
|
-
},
|
|
152803
|
-
methods: {
|
|
152804
|
-
loadData(arg, type) {
|
|
152805
|
-
if (!this.url.list) {
|
|
152806
|
-
this.$message.error("请设置url.list属性!");
|
|
152807
|
-
return;
|
|
152808
|
-
}
|
|
152809
|
-
//加载数据 若传入参数1则加载第一页的内容
|
|
152810
|
-
if (arg === 1) {
|
|
152811
|
-
this.ipagination.current = 1;
|
|
152812
|
-
}
|
|
152813
|
-
if (this.role) {
|
|
152814
|
-
this.setQueryParamsVal({
|
|
152815
|
-
roleId: this.role
|
|
152816
|
-
});
|
|
152817
|
-
}
|
|
152818
|
-
if (this.tagId) {
|
|
152819
|
-
this.setQueryParamsVal({
|
|
152820
|
-
tagId: this.tagId
|
|
152821
|
-
});
|
|
152822
|
-
}
|
|
152823
|
-
let params = this.getQueryParams(); //查询条件
|
|
152824
|
-
this.loading = true;
|
|
152825
|
-
if (this.accurate && this.selectionRowsData && this.selectionRowsData.length > 0) {
|
|
152826
|
-
//精确查询需要带上选中的数据一起查询
|
|
152827
|
-
let username = this.selectionRowsData.map(item => item.realname).join(',');
|
|
152828
|
-
params.username = params.username ? params.username + ',' + username : username;
|
|
152829
|
-
}
|
|
152830
|
-
(0,manage/* getAction */.Th)(this.url.list, params).then(res => {
|
|
152831
|
-
if (res.success) {
|
|
152832
|
-
this.dataSource = res.result.records;
|
|
152833
|
-
this.ipagination.total = res.result.total;
|
|
152834
|
-
if (type && this.applyId) {
|
|
152835
|
-
this.deptId = res.result.params.depId;
|
|
152836
|
-
this.setQueryParamsVal({
|
|
152837
|
-
depId: this.deptId
|
|
152838
|
-
});
|
|
152839
|
-
this.treechange(this.deptId);
|
|
152840
|
-
}
|
|
152841
|
-
}
|
|
152842
|
-
if (res.code === 510) {
|
|
152843
|
-
this.$message.warning(res.message);
|
|
152844
|
-
} else if (res.code === 500) {
|
|
152845
|
-
if (res.message.length < 100) {
|
|
152846
|
-
this.$message.error(res.message);
|
|
152847
|
-
}
|
|
152848
|
-
}
|
|
152849
|
-
this.loading = false;
|
|
152850
|
-
});
|
|
152851
|
-
},
|
|
152852
|
-
getTagDepart() {
|
|
152853
|
-
this.tagDeparts = [];
|
|
152854
|
-
(0,manage/* getAction */.Th)("/zhxymatrix/user/listDepartsByTagId", {
|
|
152855
|
-
tagId: this.tagId
|
|
152856
|
-
}).then(res => {
|
|
152857
|
-
if (res.success) {
|
|
152858
|
-
this.tagDeparts = res.result || [];
|
|
152859
|
-
}
|
|
152860
|
-
});
|
|
152861
|
-
},
|
|
152862
|
-
handleCustomRow(record) {
|
|
152863
|
-
return {
|
|
152864
|
-
on: {
|
|
152865
|
-
click: () => {
|
|
152866
|
-
const selectId = record.id;
|
|
152867
|
-
const selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
152868
|
-
if (!this.multi) {
|
|
152869
|
-
this.rowSelection.selectedRowKeys = [record.id];
|
|
152870
|
-
this.selectionRowsData = [record];
|
|
152871
|
-
return;
|
|
152872
|
-
}
|
|
152873
|
-
if (selectedRowKeys.includes(selectId)) {
|
|
152874
|
-
this.selectionRowsData = this.selectionRowsData.filter(item => item.id !== selectId);
|
|
152875
|
-
this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== selectId);
|
|
152876
|
-
return;
|
|
152877
|
-
}
|
|
152878
|
-
this.rowSelection.selectedRowKeys.push(record.id);
|
|
152879
|
-
this.selectionRowsData.push(record);
|
|
152880
|
-
}
|
|
152881
|
-
}
|
|
152882
|
-
};
|
|
152883
|
-
},
|
|
152884
|
-
setZindex() {
|
|
152885
|
-
return () => document.getElementById("speca");
|
|
152886
|
-
},
|
|
152887
|
-
//获取部门
|
|
152888
|
-
getTreedata() {
|
|
152889
|
-
this.treeData = [];
|
|
152890
|
-
(0,manage/* getAction */.Th)("formApi/queryTreeList").then(res => {
|
|
152891
|
-
if (res.success) {
|
|
152892
|
-
for (let i = 0; i < res.result.length; i++) {
|
|
152893
|
-
let temp = res.result[i];
|
|
152894
|
-
this.treeData.push(temp);
|
|
152895
|
-
}
|
|
152896
|
-
// let ob = { value: "", title: "请选择" };
|
|
152897
|
-
// this.treeData.unshift(ob);
|
|
152898
|
-
|
|
152899
|
-
// 设置默认展开二级节点
|
|
152900
|
-
this.setDefaultExpandedKeys();
|
|
152901
|
-
}
|
|
152902
|
-
});
|
|
152903
|
-
},
|
|
152904
|
-
// 设置默认展开的节点(只展开到二级)
|
|
152905
|
-
setDefaultExpandedKeys() {
|
|
152906
|
-
const keys = [];
|
|
152907
|
-
// 只收集一级节点的key,这样就只展开到二级
|
|
152908
|
-
this.treeData.forEach(node => {
|
|
152909
|
-
keys.push(node.value || node.key);
|
|
152910
|
-
});
|
|
152911
|
-
this.defaultExpandedKeys = keys;
|
|
152912
|
-
},
|
|
152913
|
-
treechange(e) {
|
|
152914
|
-
this.queryParam.roleId = undefined;
|
|
152915
|
-
let params = {
|
|
152916
|
-
depId: e
|
|
152917
|
-
};
|
|
152918
|
-
(0,manage/* getAction */.Th)("/sys/role/listWorkFlowDepRole", params).then(res => {
|
|
152919
|
-
if (res.success) {
|
|
152920
|
-
this.userlist = res.result;
|
|
152921
|
-
this.showuser = true;
|
|
152922
|
-
}
|
|
152923
|
-
});
|
|
152924
|
-
},
|
|
152925
|
-
setDefaultUser() {
|
|
152926
|
-
var selectedRowKeys = [];
|
|
152927
|
-
if (Array.isArray(this.users) && this.users.length > 0) {
|
|
152928
|
-
selectedRowKeys = this.users.map(item => {
|
|
152929
|
-
return item.id;
|
|
152930
|
-
});
|
|
152931
|
-
this.selectionRowsData = this.users.map(item => {
|
|
152932
|
-
return {
|
|
152933
|
-
...item,
|
|
152934
|
-
id: item.id,
|
|
152935
|
-
realname: item.realname || item.username
|
|
152936
|
-
};
|
|
152937
|
-
});
|
|
152938
|
-
} else {
|
|
152939
|
-
this.selectionRowsData = [];
|
|
152940
|
-
}
|
|
152941
|
-
// console.log(selectedRowKeys)
|
|
152942
|
-
this.rowSelection = {
|
|
152943
|
-
// onChange: this.onSelectChange,
|
|
152944
|
-
type: this.multi ? "checkbox" : "radio",
|
|
152945
|
-
selectedRowKeys: selectedRowKeys,
|
|
152946
|
-
onSelect: (record, selected, selectedRows, nativeEvent) => {
|
|
152947
|
-
// console.log(record, selected, selectedRows, nativeEvent)
|
|
152948
|
-
const list = this.selectionRowsData;
|
|
152949
|
-
const selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
152950
|
-
if (!selected) {
|
|
152951
|
-
// 这里是取消勾选,删除对应的数组项
|
|
152952
|
-
// selectedRowKeys.map((x,item) => {
|
|
152953
|
-
// if(x === record.id){
|
|
152954
|
-
// selectedRowKeys.splice(item,1)
|
|
152955
|
-
// }
|
|
152956
|
-
// })
|
|
152957
|
-
// list.map((x,item) => {
|
|
152958
|
-
// if(x === record.id){
|
|
152959
|
-
// list.splice(item,1)
|
|
152960
|
-
// }
|
|
152961
|
-
// })
|
|
152962
|
-
this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== record.id);
|
|
152963
|
-
this.selectionRowsData = list.filter(item => item.id !== record.id);
|
|
152964
|
-
console.log(this.rowSelection.selectedRowKeys);
|
|
152965
|
-
}
|
|
152966
|
-
if (selected) {
|
|
152967
|
-
if (!this.multi) {
|
|
152968
|
-
this.rowSelection.selectedRowKeys = [record.id];
|
|
152969
|
-
this.selectionRowsData = [record];
|
|
152970
|
-
return;
|
|
152971
|
-
}
|
|
152972
|
-
|
|
152973
|
-
// 这里是点击勾选,添加workerId字段到selectedRowKeys数组里
|
|
152974
|
-
this.rowSelection.selectedRowKeys.push(record.id);
|
|
152975
|
-
console.log(this.rowSelection.selectedRowKeys);
|
|
152976
|
-
list.push(record);
|
|
152977
|
-
}
|
|
152978
|
-
},
|
|
152979
|
-
//全选
|
|
152980
|
-
onSelectAll: (selected, selectedRows, changeRows) => {
|
|
152981
|
-
if (selected) {
|
|
152982
|
-
changeRows.map(x => {
|
|
152983
|
-
if (!this.rowSelection.selectedRowKeys.includes(x.id)) {
|
|
152984
|
-
this.rowSelection.selectedRowKeys.push(x.id);
|
|
152985
|
-
this.selectedRowKeys.push(x.id);
|
|
152986
|
-
this.selectionRowsData.push(x);
|
|
152987
|
-
}
|
|
152988
|
-
});
|
|
152989
|
-
}
|
|
152990
|
-
if (!selected) {
|
|
152991
|
-
const removeKey = changeRows.map(item => item.id);
|
|
152992
|
-
this.selectedRowKeys = this.selectedRowKeys.filter(item => !removeKey.includes(item));
|
|
152993
|
-
this.selectionRowsData = this.selectionRowsData.filter(item => !removeKey.includes(item.id));
|
|
152994
|
-
this.$set(this.rowSelection, 'selectedRowKeys', this.selectedRowKeys);
|
|
152995
|
-
}
|
|
152996
|
-
}
|
|
152997
|
-
// getCheckboxProps: (record) => {
|
|
152998
|
-
// return {
|
|
152999
|
-
// props: {
|
|
153000
|
-
// defaultChecked: selectedRowKeys.includes(record.id),
|
|
153001
|
-
// },
|
|
153002
|
-
// };
|
|
153003
|
-
// },
|
|
153004
|
-
};
|
|
153005
|
-
},
|
|
153006
|
-
loadDepartTree() {
|
|
153007
|
-
const that = this;
|
|
153008
|
-
(0,api/* queryDepartTreeList */.vv)().then(res => {
|
|
153009
|
-
if (res.success) {
|
|
153010
|
-
that.departTreeData = [];
|
|
153011
|
-
for (let i = 0; i < res.result.length; i++) {
|
|
153012
|
-
let temp = res.result[i];
|
|
153013
|
-
that.departTreeData.push(temp);
|
|
153014
|
-
}
|
|
153015
|
-
that.loading = false;
|
|
153016
|
-
}
|
|
153017
|
-
});
|
|
153018
|
-
},
|
|
153019
|
-
show(select, item, selectedUserIds = undefined, userSelectByMyself = '1', accurate = false) {
|
|
153020
|
-
this.accurate = accurate;
|
|
153021
|
-
this.dataSource = [];
|
|
153022
|
-
if (accurate) {
|
|
153023
|
-
this.url.list = '/workflow/queryCandidatePersonalByName';
|
|
153024
|
-
this.columns = [{
|
|
153025
|
-
title: "单位",
|
|
153026
|
-
dataIndex: "departName"
|
|
153027
|
-
}, {
|
|
153028
|
-
title: "姓名",
|
|
153029
|
-
dataIndex: "realname"
|
|
153030
|
-
}, {
|
|
153031
|
-
title: "工号",
|
|
153032
|
-
dataIndex: "username"
|
|
153033
|
-
}];
|
|
153034
|
-
} else {
|
|
153035
|
-
this.url.list = '/workflow/queryCandidatePersonal';
|
|
153036
|
-
this.columns = [{
|
|
153037
|
-
title: "用户名",
|
|
153038
|
-
dataIndex: "username"
|
|
153039
|
-
}, {
|
|
153040
|
-
title: "真实姓名",
|
|
153041
|
-
dataIndex: "realname"
|
|
153042
|
-
}, {
|
|
153043
|
-
title: "单位",
|
|
153044
|
-
dataIndex: "departName"
|
|
153045
|
-
}];
|
|
153046
|
-
}
|
|
153047
|
-
console.log(select);
|
|
153048
|
-
if (this.tagId) this.getTagDepart();
|
|
153049
|
-
if (this.deptId) {
|
|
153050
|
-
this.treechange(this.deptId);
|
|
153051
|
-
}
|
|
153052
|
-
this.setQueryParamsVal({
|
|
153053
|
-
tagId: this.tagId,
|
|
153054
|
-
roleId: this.role,
|
|
153055
|
-
depId: this.deptId,
|
|
153056
|
-
applyId: this.applyId,
|
|
153057
|
-
selectedUserIds: selectedUserIds,
|
|
153058
|
-
userSelectByMyself: userSelectByMyself
|
|
153059
|
-
});
|
|
153060
|
-
|
|
153061
|
-
//this.loadDepartTree();
|
|
153062
|
-
this.checkedRows = [];
|
|
153063
|
-
this.rowSelection.selectedRowKeys = select;
|
|
153064
|
-
this.selectionRowsData = item;
|
|
153065
|
-
this.getTreedata();
|
|
153066
|
-
this.loadData();
|
|
153067
|
-
this.setDefaultUser();
|
|
153068
|
-
this.visible = true;
|
|
153069
|
-
},
|
|
153070
|
-
onCheck(checkedKeys, info) {
|
|
153071
|
-
if (!this.multi) {
|
|
153072
|
-
let arr = checkedKeys.checked.filter(item => {
|
|
153073
|
-
return this.checkedKeys.indexOf(item) < 0;
|
|
153074
|
-
});
|
|
153075
|
-
this.checkedKeys = [...arr];
|
|
153076
|
-
this.checkedRows = [info.node.dataRef];
|
|
153077
|
-
} else {
|
|
153078
|
-
this.checkedKeys = checkedKeys.checked;
|
|
153079
|
-
this.checkedRows.push(info.node.dataRef);
|
|
153080
|
-
}
|
|
153081
|
-
//this.$emit("input",this.checkedKeys.join(","))
|
|
153082
|
-
//console.log(this.checkedKeys.join(","))
|
|
153083
|
-
},
|
|
153084
|
-
handleSubmit() {
|
|
153085
|
-
this.selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
153086
|
-
if (!this.selectedRowKeys || this.selectedRowKeys.length == 0) {
|
|
153087
|
-
this.$emit("ok", "");
|
|
153088
|
-
} else {
|
|
153089
|
-
this.$emit("ok", this.selectionRowsData, this.selectedRowKeys.join(","));
|
|
153090
|
-
}
|
|
153091
|
-
this.handleClear();
|
|
153092
|
-
},
|
|
153093
|
-
//onSelectChange
|
|
153094
|
-
// onSelectChange(selectedRowKeys, selectionRows) {
|
|
153095
|
-
// this.rowSelection.selectedRowKeys = Array.from(new Set(selectedRowKeys));
|
|
153096
|
-
// this.selectionRowsData = this.selectionRows = [...selectionRows];
|
|
153097
|
-
// },
|
|
153098
|
-
// //选中或者取消某一项时
|
|
153099
|
-
// onSelectOption(record, selected, selectedRows, nativeEvent) {
|
|
153100
|
-
// if (selected) {
|
|
153101
|
-
// this.selectionRowsData.push(record);
|
|
153102
|
-
// } else {
|
|
153103
|
-
// this.selectionRowsData = this.selectionRowsData.filter((item) => {
|
|
153104
|
-
// return item.id != record.id;
|
|
153105
|
-
// });
|
|
153106
|
-
// }
|
|
153107
|
-
// },
|
|
153108
|
-
handleCancel() {
|
|
153109
|
-
this.handleClear();
|
|
153110
|
-
},
|
|
153111
|
-
afterClose() {
|
|
153112
|
-
this.showuser = false;
|
|
153113
|
-
this.ipagination.current = 1;
|
|
153114
|
-
this.ipagination.pageSize = 10;
|
|
153115
|
-
this.ipagination.total = 0;
|
|
153116
|
-
},
|
|
153117
|
-
handleClear() {
|
|
153118
|
-
this.visible = false;
|
|
153119
|
-
this.modalCancel();
|
|
153120
|
-
this.checkedKeys = [];
|
|
153121
|
-
},
|
|
153122
|
-
getParentKey(currKey, treeData) {
|
|
153123
|
-
let parentKey;
|
|
153124
|
-
for (let i = 0; i < treeData.length; i++) {
|
|
153125
|
-
const node = treeData[i];
|
|
153126
|
-
if (node.children) {
|
|
153127
|
-
if (node.children.some(item => item.key === currKey)) {
|
|
153128
|
-
parentKey = node.key;
|
|
153129
|
-
} else if (this.getParentKey(currKey, node.children)) {
|
|
153130
|
-
parentKey = this.getParentKey(currKey, node.children);
|
|
153131
|
-
}
|
|
153132
|
-
}
|
|
153133
|
-
}
|
|
153134
|
-
return parentKey;
|
|
153135
|
-
},
|
|
153136
|
-
onSearch(value) {
|
|
153137
|
-
const expandedKeys = this.dataList.map(item => {
|
|
153138
|
-
if (item.title.indexOf(value) > -1) {
|
|
153139
|
-
return this.getParentKey(item.key, this.treeData);
|
|
153140
|
-
}
|
|
153141
|
-
return null;
|
|
153142
|
-
}).filter((item, i, self) => item && self.indexOf(item) === i);
|
|
153143
|
-
Object.assign(this, {
|
|
153144
|
-
expandedKeys,
|
|
153145
|
-
searchValue: value,
|
|
153146
|
-
autoExpandParent: true
|
|
153147
|
-
});
|
|
153148
|
-
},
|
|
153149
|
-
initDictConfig() {
|
|
153150
|
-
this.loadDepartTree();
|
|
153151
|
-
}
|
|
153152
|
-
}
|
|
153153
|
-
});
|
|
153154
|
-
;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js
|
|
153155
|
-
/* harmony default export */ const Modals_selectUserModalvue_type_script_lang_js = (selectUserModalvue_type_script_lang_js);
|
|
153156
|
-
;// ./node_modules/_mini-css-extract-plugin@2.9.4@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=6e0a220e&prod&scoped=true&lang=css
|
|
153157
|
-
// extracted by mini-css-extract-plugin
|
|
153158
|
-
|
|
153159
|
-
;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=6e0a220e&prod&scoped=true&lang=css
|
|
153160
|
-
|
|
153161
|
-
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
153162
|
-
var componentNormalizer = __webpack_require__(64008);
|
|
153163
|
-
;// ./src/form/modules/common/Modals/selectUserModal.vue
|
|
153164
|
-
|
|
153165
|
-
|
|
153166
|
-
|
|
153167
|
-
;
|
|
153168
|
-
|
|
153169
|
-
|
|
153170
|
-
/* normalize component */
|
|
153171
|
-
|
|
153172
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
153173
|
-
Modals_selectUserModalvue_type_script_lang_js,
|
|
153174
|
-
render,
|
|
153175
|
-
staticRenderFns,
|
|
153176
|
-
false,
|
|
153177
|
-
null,
|
|
153178
|
-
"6e0a220e",
|
|
153179
|
-
null
|
|
153180
|
-
|
|
153181
|
-
)
|
|
153182
|
-
|
|
153183
|
-
/* harmony default export */ const selectUserModal = (component.exports);
|
|
153184
|
-
|
|
153185
153225
|
/***/ }),
|
|
153186
153226
|
|
|
153187
153227
|
/***/ 83998:
|
|
@@ -179889,7 +179929,7 @@ var toLinkageWidget_component = (0,componentNormalizer/* default */.A)(
|
|
|
179889
179929
|
// EXTERNAL MODULE: ./src/form/modules/common/querySelectDict.vue + 3 modules
|
|
179890
179930
|
var querySelectDict = __webpack_require__(92967);
|
|
179891
179931
|
// EXTERNAL MODULE: ./src/form/modules/common/Modals/selectUserModal.vue + 5 modules
|
|
179892
|
-
var selectUserModal = __webpack_require__(
|
|
179932
|
+
var selectUserModal = __webpack_require__(28899);
|
|
179893
179933
|
;// ./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
|
|
179894
179934
|
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)}
|
|
179895
179935
|
var linkageSelectUservue_type_template_id_7fd8ad34_scoped_true_staticRenderFns = []
|
|
@@ -186967,9 +187007,9 @@ function useSsoStatus(options) {
|
|
|
186967
187007
|
}
|
|
186968
187008
|
};
|
|
186969
187009
|
}
|
|
186970
|
-
;// ./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/components/AIAutoFillForm/AIAutoFillForm.vue?vue&type=template&id=
|
|
186971
|
-
var
|
|
186972
|
-
var
|
|
187010
|
+
;// ./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/components/AIAutoFillForm/AIAutoFillForm.vue?vue&type=template&id=0ff35be0&scoped=true
|
|
187011
|
+
var AIAutoFillFormvue_type_template_id_0ff35be0_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{directives:[{name:"drag-modal",rawName:"v-drag-modal"}],attrs:{"width":"800px","title":"AI填表","ok-text":"确认","cancel-text":"取消","maskClosable":!_vm.loading,"closable":!_vm.loading,"keyboard":!_vm.loading,"footer":null},on:{"ok":_vm.handleOk,"cancel":_vm.handleCancel},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('a-spin',{attrs:{"spinning":_vm.loading,"tip":_vm.tips}},[_c('div',{staticClass:"ai-fill-form"},[_c('div',{staticClass:"form-item"},[_c('div',{staticClass:"label"},[_vm._v("请输入或粘贴内容:")]),_c('a-textarea',{attrs:{"rows":6,"placeholder":"请输入或粘贴需要识别的内容,例如:张三 男 合肥大学","disabled":_vm.loading},model:{value:(_vm.contentText),callback:function ($$v) {_vm.contentText=$$v},expression:"contentText"}})],1),(_vm.recognizeProgress.total > 0)?_c('div',{staticClass:"progress-info"},[_c('a-progress',{attrs:{"percent":_vm.progressPercent,"status":_vm.recognizeProgress.current === _vm.recognizeProgress.total ? 'success' : 'active'}})],1):_vm._e(),(_vm.resultList.length > 0)?_c('div',{staticClass:"result-list"},[_c('div',{staticClass:"result-title"},[_vm._v("识别结果:")]),_vm._l((_vm.resultList),function(item,index){return _c('div',{key:index,staticClass:"result-item"},[_c('span',{staticClass:"field-name"},[_vm._v(_vm._s(item.fieldName)+":")]),_c('span',{staticClass:"field-value",class:{ 'empty-value': item.value === undefined }},[_vm._v(" "+_vm._s(item.value === undefined ? '未识别成功' : item.value)+" ")])])})],2):_vm._e(),_c('div',{staticClass:"footer-btns"},[_c('a-button',{attrs:{"disabled":_vm.loading},on:{"click":_vm.handleCancel}},[_vm._v("取消")]),_c('a-button',{attrs:{"type":"primary","loading":_vm.loading,"disabled":!_vm.contentText.trim()},on:{"click":_vm.startRecognize}},[_vm._v(" 开始识别 ")]),(_vm.resultList.length > 0)?_c('a-button',{attrs:{"type":"primary","disabled":_vm.loading || _vm.resultList.length === 0 || !_vm.hasSuccessResult},on:{"click":_vm.handleOk}},[_vm._v(" 确认填入 ")]):_vm._e()],1)])])],1)}
|
|
187012
|
+
var AIAutoFillFormvue_type_template_id_0ff35be0_scoped_true_staticRenderFns = []
|
|
186973
187013
|
|
|
186974
187014
|
|
|
186975
187015
|
;// ./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/components/AIAutoFillForm/AIAutoFillForm.vue?vue&type=script&lang=js
|
|
@@ -187094,8 +187134,8 @@ var AIAutoFillFormvue_type_template_id_f25b50a8_scoped_true_staticRenderFns = []
|
|
|
187094
187134
|
this.formList = [];
|
|
187095
187135
|
this.formData = formData; // 表单配置
|
|
187096
187136
|
this.formData.list.forEach(item => {
|
|
187097
|
-
if (['grid'].includes(item.type)) {
|
|
187098
|
-
|
|
187137
|
+
if (['grid', 'grid-lay-out', 'all-lay-out'].includes(item.type)) {
|
|
187138
|
+
//栅格或表格或特殊组件
|
|
187099
187139
|
item.columns.forEach(el => {
|
|
187100
187140
|
if (el.list && el.list.length) {
|
|
187101
187141
|
el.list.forEach(el2 => {
|
|
@@ -187257,10 +187297,10 @@ var AIAutoFillFormvue_type_template_id_f25b50a8_scoped_true_staticRenderFns = []
|
|
|
187257
187297
|
});
|
|
187258
187298
|
;// ./src/components/AIAutoFillForm/AIAutoFillForm.vue?vue&type=script&lang=js
|
|
187259
187299
|
/* harmony default export */ const AIAutoFillForm_AIAutoFillFormvue_type_script_lang_js = (AIAutoFillFormvue_type_script_lang_js);
|
|
187260
|
-
;// ./node_modules/_mini-css-extract-plugin@2.9.4@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.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-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/components/AIAutoFillForm/AIAutoFillForm.vue?vue&type=style&index=0&id=
|
|
187300
|
+
;// ./node_modules/_mini-css-extract-plugin@2.9.4@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.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-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/components/AIAutoFillForm/AIAutoFillForm.vue?vue&type=style&index=0&id=0ff35be0&prod&lang=less&scoped=true
|
|
187261
187301
|
// extracted by mini-css-extract-plugin
|
|
187262
187302
|
|
|
187263
|
-
;// ./src/components/AIAutoFillForm/AIAutoFillForm.vue?vue&type=style&index=0&id=
|
|
187303
|
+
;// ./src/components/AIAutoFillForm/AIAutoFillForm.vue?vue&type=style&index=0&id=0ff35be0&prod&lang=less&scoped=true
|
|
187264
187304
|
|
|
187265
187305
|
;// ./src/components/AIAutoFillForm/AIAutoFillForm.vue
|
|
187266
187306
|
|
|
@@ -187273,11 +187313,11 @@ var AIAutoFillFormvue_type_template_id_f25b50a8_scoped_true_staticRenderFns = []
|
|
|
187273
187313
|
|
|
187274
187314
|
var AIAutoFillForm_component = (0,componentNormalizer/* default */.A)(
|
|
187275
187315
|
AIAutoFillForm_AIAutoFillFormvue_type_script_lang_js,
|
|
187276
|
-
|
|
187277
|
-
|
|
187316
|
+
AIAutoFillFormvue_type_template_id_0ff35be0_scoped_true_render,
|
|
187317
|
+
AIAutoFillFormvue_type_template_id_0ff35be0_scoped_true_staticRenderFns,
|
|
187278
187318
|
false,
|
|
187279
187319
|
null,
|
|
187280
|
-
"
|
|
187320
|
+
"0ff35be0",
|
|
187281
187321
|
null
|
|
187282
187322
|
|
|
187283
187323
|
)
|