@zscreate/form-component 1.1.646 → 1.1.647
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 +5 -5
- package/dist/form-component.umd.js +651 -629
- package/package.json +1 -1
|
@@ -26926,7 +26926,7 @@ var componentvue_type_template_id_7e98dcc1_scoped_true_staticRenderFns = []
|
|
|
26926
26926
|
|
|
26927
26927
|
|
|
26928
26928
|
// EXTERNAL MODULE: ./src/form/modules/common/Modals/selectUserModal.vue + 5 modules
|
|
26929
|
-
var selectUserModal = __webpack_require__(
|
|
26929
|
+
var selectUserModal = __webpack_require__(4412);
|
|
26930
26930
|
;// ./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
|
|
26931
26931
|
|
|
26932
26932
|
|
|
@@ -63792,624 +63792,6 @@ CryptoJS.pad.ZeroPadding = {
|
|
|
63792
63792
|
|
|
63793
63793
|
/***/ }),
|
|
63794
63794
|
|
|
63795
|
-
/***/ 2506:
|
|
63796
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
63797
|
-
|
|
63798
|
-
"use strict";
|
|
63799
|
-
|
|
63800
|
-
// EXPORTS
|
|
63801
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
63802
|
-
A: () => (/* binding */ selectUserModal)
|
|
63803
|
-
});
|
|
63804
|
-
|
|
63805
|
-
;// ./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=2d4c6164&scoped=true
|
|
63806
|
-
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,"getPopupContainer":function (triggerNode) {
|
|
63807
|
-
return triggerNode.parentNode || _vm.document.body;
|
|
63808
|
-
},"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) {
|
|
63809
|
-
return triggerNode.parentNode || _vm.document.body;
|
|
63810
|
-
}},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)}
|
|
63811
|
-
var staticRenderFns = []
|
|
63812
|
-
|
|
63813
|
-
|
|
63814
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.array.push.js
|
|
63815
|
-
var es_array_push = __webpack_require__(7284);
|
|
63816
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.constructor.js
|
|
63817
|
-
var es_iterator_constructor = __webpack_require__(4473);
|
|
63818
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.filter.js
|
|
63819
|
-
var es_iterator_filter = __webpack_require__(3135);
|
|
63820
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.map.js
|
|
63821
|
-
var es_iterator_map = __webpack_require__(5759);
|
|
63822
|
-
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.some.js
|
|
63823
|
-
var es_iterator_some = __webpack_require__(3977);
|
|
63824
|
-
// EXTERNAL MODULE: ./src/api/manage.js
|
|
63825
|
-
var manage = __webpack_require__(5335);
|
|
63826
|
-
// EXTERNAL MODULE: ./src/mixins/JeecgListMixinV2.js
|
|
63827
|
-
var JeecgListMixinV2 = __webpack_require__(673);
|
|
63828
|
-
// EXTERNAL MODULE: ./src/api/api.js
|
|
63829
|
-
var api = __webpack_require__(8294);
|
|
63830
|
-
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
63831
|
-
var lodash = __webpack_require__(5182);
|
|
63832
|
-
;// ./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
|
|
63833
|
-
|
|
63834
|
-
|
|
63835
|
-
|
|
63836
|
-
|
|
63837
|
-
|
|
63838
|
-
//
|
|
63839
|
-
//
|
|
63840
|
-
//
|
|
63841
|
-
//
|
|
63842
|
-
//
|
|
63843
|
-
//
|
|
63844
|
-
//
|
|
63845
|
-
//
|
|
63846
|
-
//
|
|
63847
|
-
//
|
|
63848
|
-
//
|
|
63849
|
-
//
|
|
63850
|
-
//
|
|
63851
|
-
//
|
|
63852
|
-
//
|
|
63853
|
-
//
|
|
63854
|
-
//
|
|
63855
|
-
//
|
|
63856
|
-
//
|
|
63857
|
-
//
|
|
63858
|
-
//
|
|
63859
|
-
//
|
|
63860
|
-
//
|
|
63861
|
-
//
|
|
63862
|
-
//
|
|
63863
|
-
//
|
|
63864
|
-
//
|
|
63865
|
-
//
|
|
63866
|
-
//
|
|
63867
|
-
//
|
|
63868
|
-
//
|
|
63869
|
-
//
|
|
63870
|
-
//
|
|
63871
|
-
//
|
|
63872
|
-
//
|
|
63873
|
-
//
|
|
63874
|
-
//
|
|
63875
|
-
//
|
|
63876
|
-
//
|
|
63877
|
-
//
|
|
63878
|
-
//
|
|
63879
|
-
//
|
|
63880
|
-
//
|
|
63881
|
-
//
|
|
63882
|
-
//
|
|
63883
|
-
//
|
|
63884
|
-
//
|
|
63885
|
-
//
|
|
63886
|
-
//
|
|
63887
|
-
//
|
|
63888
|
-
//
|
|
63889
|
-
//
|
|
63890
|
-
//
|
|
63891
|
-
//
|
|
63892
|
-
//
|
|
63893
|
-
//
|
|
63894
|
-
//
|
|
63895
|
-
//
|
|
63896
|
-
//
|
|
63897
|
-
//
|
|
63898
|
-
//
|
|
63899
|
-
//
|
|
63900
|
-
//
|
|
63901
|
-
//
|
|
63902
|
-
//
|
|
63903
|
-
//
|
|
63904
|
-
//
|
|
63905
|
-
//
|
|
63906
|
-
//
|
|
63907
|
-
//
|
|
63908
|
-
//
|
|
63909
|
-
//
|
|
63910
|
-
//
|
|
63911
|
-
//
|
|
63912
|
-
//
|
|
63913
|
-
//
|
|
63914
|
-
//
|
|
63915
|
-
//
|
|
63916
|
-
//
|
|
63917
|
-
//
|
|
63918
|
-
//
|
|
63919
|
-
//
|
|
63920
|
-
//
|
|
63921
|
-
//
|
|
63922
|
-
//
|
|
63923
|
-
//
|
|
63924
|
-
//
|
|
63925
|
-
//
|
|
63926
|
-
//
|
|
63927
|
-
//
|
|
63928
|
-
//
|
|
63929
|
-
//
|
|
63930
|
-
//
|
|
63931
|
-
//
|
|
63932
|
-
//
|
|
63933
|
-
//
|
|
63934
|
-
//
|
|
63935
|
-
//
|
|
63936
|
-
//
|
|
63937
|
-
//
|
|
63938
|
-
//
|
|
63939
|
-
//
|
|
63940
|
-
//
|
|
63941
|
-
//
|
|
63942
|
-
//
|
|
63943
|
-
//
|
|
63944
|
-
//
|
|
63945
|
-
//
|
|
63946
|
-
//
|
|
63947
|
-
//
|
|
63948
|
-
//
|
|
63949
|
-
//
|
|
63950
|
-
//
|
|
63951
|
-
//
|
|
63952
|
-
//
|
|
63953
|
-
//
|
|
63954
|
-
//
|
|
63955
|
-
//
|
|
63956
|
-
//
|
|
63957
|
-
//
|
|
63958
|
-
|
|
63959
|
-
|
|
63960
|
-
|
|
63961
|
-
|
|
63962
|
-
|
|
63963
|
-
/* harmony default export */ const selectUserModalvue_type_script_lang_js = ({
|
|
63964
|
-
name: 'selectUserModal',
|
|
63965
|
-
props: ['modalWidth', 'multi', 'users', 'role', 'defaultDepartId', 'applyId', 'tagId'],
|
|
63966
|
-
mixins: [{
|
|
63967
|
-
...JeecgListMixinV2/* JeecgListMixin */.C,
|
|
63968
|
-
created: undefined
|
|
63969
|
-
}],
|
|
63970
|
-
// 取消minxin created
|
|
63971
|
-
data() {
|
|
63972
|
-
return {
|
|
63973
|
-
queryParam: {
|
|
63974
|
-
depId: undefined,
|
|
63975
|
-
roleId: undefined,
|
|
63976
|
-
realname: '',
|
|
63977
|
-
username: ''
|
|
63978
|
-
},
|
|
63979
|
-
showuser: false,
|
|
63980
|
-
userlist: [],
|
|
63981
|
-
visible: false,
|
|
63982
|
-
confirmLoading: false,
|
|
63983
|
-
treeData: [],
|
|
63984
|
-
autoExpandParent: true,
|
|
63985
|
-
expandedKeys: [],
|
|
63986
|
-
dataList: [],
|
|
63987
|
-
checkedKeys: [],
|
|
63988
|
-
departTreeData: [],
|
|
63989
|
-
checkedRows: [],
|
|
63990
|
-
searchValue: "",
|
|
63991
|
-
selectionRowsData: [],
|
|
63992
|
-
selectedRowKeys: [],
|
|
63993
|
-
isFilter: true,
|
|
63994
|
-
rowSelection: {
|
|
63995
|
-
selectedRowKeys: this.selectedRowKeys,
|
|
63996
|
-
// onChange: this.onSelectChange,
|
|
63997
|
-
|
|
63998
|
-
type: this.multi ? "checkbox" : "radio"
|
|
63999
|
-
},
|
|
64000
|
-
columns: [{
|
|
64001
|
-
title: "用户名",
|
|
64002
|
-
dataIndex: "username"
|
|
64003
|
-
}, {
|
|
64004
|
-
title: "真实姓名",
|
|
64005
|
-
dataIndex: "realname"
|
|
64006
|
-
}, {
|
|
64007
|
-
title: "单位",
|
|
64008
|
-
dataIndex: "departName"
|
|
64009
|
-
}
|
|
64010
|
-
// {
|
|
64011
|
-
// title: "职务",
|
|
64012
|
-
// dataIndex: "zw",
|
|
64013
|
-
// },
|
|
64014
|
-
// {
|
|
64015
|
-
// title: "电话",
|
|
64016
|
-
// dataIndex: "phone",
|
|
64017
|
-
// },
|
|
64018
|
-
],
|
|
64019
|
-
url: {
|
|
64020
|
-
syncUser: '/process/extActProcess/doSyncUser',
|
|
64021
|
-
list: '/workflow/queryCandidatePersonal',
|
|
64022
|
-
delete: '/sys/user/delete',
|
|
64023
|
-
deleteBatch: '/sys/user/deleteBatch',
|
|
64024
|
-
exportXlsUrl: '/sys/user/exportXls',
|
|
64025
|
-
importExcelUrl: 'sys/user/importExcel'
|
|
64026
|
-
},
|
|
64027
|
-
tagDeparts: [],
|
|
64028
|
-
deptId: '',
|
|
64029
|
-
accurate: false // 是否精准选人
|
|
64030
|
-
};
|
|
64031
|
-
},
|
|
64032
|
-
created() {
|
|
64033
|
-
this.deptId = this.defaultDepartId || undefined;
|
|
64034
|
-
this.setQueryParamsVal({
|
|
64035
|
-
depId: this.deptId,
|
|
64036
|
-
applyId: this.applyId,
|
|
64037
|
-
tagId: this.tagId,
|
|
64038
|
-
roleId: this.role
|
|
64039
|
-
});
|
|
64040
|
-
// this.loadData(false, 'first')
|
|
64041
|
-
this.loadDepartTree();
|
|
64042
|
-
this.setDefaultUser();
|
|
64043
|
-
},
|
|
64044
|
-
mounted() {
|
|
64045
|
-
if (this.deptId) {
|
|
64046
|
-
this.treechange(this.deptId);
|
|
64047
|
-
}
|
|
64048
|
-
},
|
|
64049
|
-
computed: {},
|
|
64050
|
-
watch: {
|
|
64051
|
-
users(v) {
|
|
64052
|
-
if (v.length === 0) {
|
|
64053
|
-
this.setDefaultUser();
|
|
64054
|
-
}
|
|
64055
|
-
},
|
|
64056
|
-
role(val) {
|
|
64057
|
-
this.role = val;
|
|
64058
|
-
}
|
|
64059
|
-
},
|
|
64060
|
-
methods: {
|
|
64061
|
-
loadData(arg, type) {
|
|
64062
|
-
debugger;
|
|
64063
|
-
if (!this.url.list) {
|
|
64064
|
-
this.$message.error("请设置url.list属性!");
|
|
64065
|
-
return;
|
|
64066
|
-
}
|
|
64067
|
-
//加载数据 若传入参数1则加载第一页的内容
|
|
64068
|
-
if (arg === 1) {
|
|
64069
|
-
this.ipagination.current = 1;
|
|
64070
|
-
}
|
|
64071
|
-
if (this.role) {
|
|
64072
|
-
this.setQueryParamsVal({
|
|
64073
|
-
roleId: this.role
|
|
64074
|
-
});
|
|
64075
|
-
}
|
|
64076
|
-
if (this.tagId) {
|
|
64077
|
-
this.setQueryParamsVal({
|
|
64078
|
-
tagId: this.tagId
|
|
64079
|
-
});
|
|
64080
|
-
}
|
|
64081
|
-
let params = this.getQueryParams(); //查询条件
|
|
64082
|
-
this.loading = true;
|
|
64083
|
-
if (this.accurate && this.selectionRowsData && this.selectionRowsData.length > 0) {
|
|
64084
|
-
//精确查询需要带上选中的数据一起查询
|
|
64085
|
-
let username = this.selectionRowsData.map(item => item.realname).join(',');
|
|
64086
|
-
params.username = params.username ? params.username + ',' + username : username;
|
|
64087
|
-
}
|
|
64088
|
-
(0,manage/* getAction */.Th)(this.url.list, params).then(res => {
|
|
64089
|
-
if (res.success) {
|
|
64090
|
-
this.dataSource = res.result.records;
|
|
64091
|
-
this.ipagination.total = res.result.total;
|
|
64092
|
-
if (type && this.applyId) {
|
|
64093
|
-
this.deptId = res.result.params.depId;
|
|
64094
|
-
this.setQueryParamsVal({
|
|
64095
|
-
depId: this.deptId
|
|
64096
|
-
});
|
|
64097
|
-
this.treechange(this.deptId);
|
|
64098
|
-
}
|
|
64099
|
-
}
|
|
64100
|
-
if (res.code === 510) {
|
|
64101
|
-
this.$message.warning(res.message);
|
|
64102
|
-
} else if (res.code === 500) {
|
|
64103
|
-
if (res.message.length < 100) {
|
|
64104
|
-
this.$message.error(res.message);
|
|
64105
|
-
}
|
|
64106
|
-
}
|
|
64107
|
-
this.loading = false;
|
|
64108
|
-
});
|
|
64109
|
-
},
|
|
64110
|
-
getTagDepart() {
|
|
64111
|
-
this.tagDeparts = [];
|
|
64112
|
-
(0,manage/* getAction */.Th)("/zhxymatrix/user/listDepartsByTagId", {
|
|
64113
|
-
tagId: this.tagId
|
|
64114
|
-
}).then(res => {
|
|
64115
|
-
if (res.success) {
|
|
64116
|
-
this.tagDeparts = res.result || [];
|
|
64117
|
-
}
|
|
64118
|
-
});
|
|
64119
|
-
},
|
|
64120
|
-
handleCustomRow(record) {
|
|
64121
|
-
return {
|
|
64122
|
-
on: {
|
|
64123
|
-
click: () => {
|
|
64124
|
-
const selectId = record.id;
|
|
64125
|
-
const selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
64126
|
-
if (!this.multi) {
|
|
64127
|
-
this.rowSelection.selectedRowKeys = [record.id];
|
|
64128
|
-
this.selectionRowsData = [record];
|
|
64129
|
-
return;
|
|
64130
|
-
}
|
|
64131
|
-
if (selectedRowKeys.includes(selectId)) {
|
|
64132
|
-
this.selectionRowsData = this.selectionRowsData.filter(item => item.id !== selectId);
|
|
64133
|
-
this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== selectId);
|
|
64134
|
-
return;
|
|
64135
|
-
}
|
|
64136
|
-
this.rowSelection.selectedRowKeys.push(record.id);
|
|
64137
|
-
this.selectionRowsData.push(record);
|
|
64138
|
-
}
|
|
64139
|
-
}
|
|
64140
|
-
};
|
|
64141
|
-
},
|
|
64142
|
-
setZindex() {
|
|
64143
|
-
return () => document.getElementById("speca");
|
|
64144
|
-
},
|
|
64145
|
-
//获取部门
|
|
64146
|
-
getTreedata() {
|
|
64147
|
-
this.treeData = [];
|
|
64148
|
-
(0,manage/* getAction */.Th)("formApi/queryTreeList").then(res => {
|
|
64149
|
-
if (res.success) {
|
|
64150
|
-
for (let i = 0; i < res.result.length; i++) {
|
|
64151
|
-
let temp = res.result[i];
|
|
64152
|
-
this.treeData.push(temp);
|
|
64153
|
-
}
|
|
64154
|
-
// let ob = { value: "", title: "请选择" };
|
|
64155
|
-
// this.treeData.unshift(ob);
|
|
64156
|
-
}
|
|
64157
|
-
});
|
|
64158
|
-
},
|
|
64159
|
-
treechange(e) {
|
|
64160
|
-
this.queryParam.roleId = undefined;
|
|
64161
|
-
let params = {
|
|
64162
|
-
depId: e
|
|
64163
|
-
};
|
|
64164
|
-
(0,manage/* getAction */.Th)("/sys/role/listWorkFlowDepRole", params).then(res => {
|
|
64165
|
-
if (res.success) {
|
|
64166
|
-
this.userlist = res.result;
|
|
64167
|
-
this.showuser = true;
|
|
64168
|
-
}
|
|
64169
|
-
});
|
|
64170
|
-
},
|
|
64171
|
-
setDefaultUser() {
|
|
64172
|
-
var selectedRowKeys = [];
|
|
64173
|
-
if (Array.isArray(this.users) && this.users.length > 0) {
|
|
64174
|
-
selectedRowKeys = this.users.map(item => {
|
|
64175
|
-
return item.id;
|
|
64176
|
-
});
|
|
64177
|
-
this.selectionRowsData = this.users.map(item => {
|
|
64178
|
-
return {
|
|
64179
|
-
...item,
|
|
64180
|
-
id: item.id,
|
|
64181
|
-
realname: item.realname || item.username
|
|
64182
|
-
};
|
|
64183
|
-
});
|
|
64184
|
-
} else {
|
|
64185
|
-
this.selectionRowsData = [];
|
|
64186
|
-
}
|
|
64187
|
-
// console.log(selectedRowKeys)
|
|
64188
|
-
this.rowSelection = {
|
|
64189
|
-
// onChange: this.onSelectChange,
|
|
64190
|
-
type: this.multi ? "checkbox" : "radio",
|
|
64191
|
-
selectedRowKeys: selectedRowKeys,
|
|
64192
|
-
onSelect: (record, selected, selectedRows, nativeEvent) => {
|
|
64193
|
-
// console.log(record, selected, selectedRows, nativeEvent)
|
|
64194
|
-
const list = this.selectionRowsData;
|
|
64195
|
-
const selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
64196
|
-
if (!selected) {
|
|
64197
|
-
// 这里是取消勾选,删除对应的数组项
|
|
64198
|
-
// selectedRowKeys.map((x,item) => {
|
|
64199
|
-
// if(x === record.id){
|
|
64200
|
-
// selectedRowKeys.splice(item,1)
|
|
64201
|
-
// }
|
|
64202
|
-
// })
|
|
64203
|
-
// list.map((x,item) => {
|
|
64204
|
-
// if(x === record.id){
|
|
64205
|
-
// list.splice(item,1)
|
|
64206
|
-
// }
|
|
64207
|
-
// })
|
|
64208
|
-
this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== record.id);
|
|
64209
|
-
this.selectionRowsData = list.filter(item => item.id !== record.id);
|
|
64210
|
-
console.log(this.rowSelection.selectedRowKeys);
|
|
64211
|
-
}
|
|
64212
|
-
if (selected) {
|
|
64213
|
-
if (!this.multi) {
|
|
64214
|
-
this.rowSelection.selectedRowKeys = [record.id];
|
|
64215
|
-
this.selectionRowsData = [record];
|
|
64216
|
-
return;
|
|
64217
|
-
}
|
|
64218
|
-
|
|
64219
|
-
// 这里是点击勾选,添加workerId字段到selectedRowKeys数组里
|
|
64220
|
-
this.rowSelection.selectedRowKeys.push(record.id);
|
|
64221
|
-
console.log(this.rowSelection.selectedRowKeys);
|
|
64222
|
-
list.push(record);
|
|
64223
|
-
}
|
|
64224
|
-
},
|
|
64225
|
-
//全选
|
|
64226
|
-
onSelectAll: (selected, selectedRows, changeRows) => {
|
|
64227
|
-
if (selected) {
|
|
64228
|
-
changeRows.map(x => {
|
|
64229
|
-
if (!this.rowSelection.selectedRowKeys.includes(x.id)) {
|
|
64230
|
-
this.rowSelection.selectedRowKeys.push(x.id);
|
|
64231
|
-
this.selectedRowKeys.push(x.id);
|
|
64232
|
-
this.selectionRowsData.push(x);
|
|
64233
|
-
}
|
|
64234
|
-
});
|
|
64235
|
-
}
|
|
64236
|
-
if (!selected) {
|
|
64237
|
-
const removeKey = changeRows.map(item => item.id);
|
|
64238
|
-
this.selectedRowKeys = this.selectedRowKeys.filter(item => !removeKey.includes(item));
|
|
64239
|
-
this.selectionRowsData = this.selectionRowsData.filter(item => !removeKey.includes(item.id));
|
|
64240
|
-
this.$set(this.rowSelection, 'selectedRowKeys', this.selectedRowKeys);
|
|
64241
|
-
}
|
|
64242
|
-
}
|
|
64243
|
-
// getCheckboxProps: (record) => {
|
|
64244
|
-
// return {
|
|
64245
|
-
// props: {
|
|
64246
|
-
// defaultChecked: selectedRowKeys.includes(record.id),
|
|
64247
|
-
// },
|
|
64248
|
-
// };
|
|
64249
|
-
// },
|
|
64250
|
-
};
|
|
64251
|
-
},
|
|
64252
|
-
loadDepartTree() {
|
|
64253
|
-
const that = this;
|
|
64254
|
-
(0,api/* queryDepartTreeList */.vv)().then(res => {
|
|
64255
|
-
if (res.success) {
|
|
64256
|
-
that.departTreeData = [];
|
|
64257
|
-
for (let i = 0; i < res.result.length; i++) {
|
|
64258
|
-
let temp = res.result[i];
|
|
64259
|
-
that.departTreeData.push(temp);
|
|
64260
|
-
}
|
|
64261
|
-
that.loading = false;
|
|
64262
|
-
}
|
|
64263
|
-
});
|
|
64264
|
-
},
|
|
64265
|
-
show(select, item, selectedUserIds = undefined, userSelectByMyself = '1', accurate = false) {
|
|
64266
|
-
this.accurate = accurate;
|
|
64267
|
-
this.dataSource = [];
|
|
64268
|
-
if (accurate) {
|
|
64269
|
-
this.url.list = '/workflow/queryCandidatePersonalByName';
|
|
64270
|
-
} else {
|
|
64271
|
-
this.url.list = '/workflow/queryCandidatePersonal';
|
|
64272
|
-
}
|
|
64273
|
-
console.log(select);
|
|
64274
|
-
if (this.tagId) this.getTagDepart();
|
|
64275
|
-
if (this.deptId) {
|
|
64276
|
-
this.treechange(this.deptId);
|
|
64277
|
-
}
|
|
64278
|
-
this.setQueryParamsVal({
|
|
64279
|
-
tagId: this.tagId,
|
|
64280
|
-
roleId: this.role,
|
|
64281
|
-
depId: this.deptId,
|
|
64282
|
-
applyId: this.applyId,
|
|
64283
|
-
selectedUserIds: selectedUserIds,
|
|
64284
|
-
userSelectByMyself: userSelectByMyself
|
|
64285
|
-
});
|
|
64286
|
-
|
|
64287
|
-
//this.loadDepartTree();
|
|
64288
|
-
this.checkedRows = [];
|
|
64289
|
-
this.rowSelection.selectedRowKeys = select;
|
|
64290
|
-
this.selectionRowsData = item;
|
|
64291
|
-
this.getTreedata();
|
|
64292
|
-
this.loadData();
|
|
64293
|
-
this.setDefaultUser();
|
|
64294
|
-
this.visible = true;
|
|
64295
|
-
},
|
|
64296
|
-
onCheck(checkedKeys, info) {
|
|
64297
|
-
if (!this.multi) {
|
|
64298
|
-
let arr = checkedKeys.checked.filter(item => {
|
|
64299
|
-
return this.checkedKeys.indexOf(item) < 0;
|
|
64300
|
-
});
|
|
64301
|
-
this.checkedKeys = [...arr];
|
|
64302
|
-
this.checkedRows = [info.node.dataRef];
|
|
64303
|
-
} else {
|
|
64304
|
-
this.checkedKeys = checkedKeys.checked;
|
|
64305
|
-
this.checkedRows.push(info.node.dataRef);
|
|
64306
|
-
}
|
|
64307
|
-
//this.$emit("input",this.checkedKeys.join(","))
|
|
64308
|
-
//console.log(this.checkedKeys.join(","))
|
|
64309
|
-
},
|
|
64310
|
-
handleSubmit() {
|
|
64311
|
-
this.selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
64312
|
-
if (!this.selectedRowKeys || this.selectedRowKeys.length == 0) {
|
|
64313
|
-
this.$emit("ok", "");
|
|
64314
|
-
} else {
|
|
64315
|
-
this.$emit("ok", this.selectionRowsData, this.selectedRowKeys.join(","));
|
|
64316
|
-
}
|
|
64317
|
-
this.handleClear();
|
|
64318
|
-
},
|
|
64319
|
-
//onSelectChange
|
|
64320
|
-
// onSelectChange(selectedRowKeys, selectionRows) {
|
|
64321
|
-
// this.rowSelection.selectedRowKeys = Array.from(new Set(selectedRowKeys));
|
|
64322
|
-
// this.selectionRowsData = this.selectionRows = [...selectionRows];
|
|
64323
|
-
// },
|
|
64324
|
-
// //选中或者取消某一项时
|
|
64325
|
-
// onSelectOption(record, selected, selectedRows, nativeEvent) {
|
|
64326
|
-
// if (selected) {
|
|
64327
|
-
// this.selectionRowsData.push(record);
|
|
64328
|
-
// } else {
|
|
64329
|
-
// this.selectionRowsData = this.selectionRowsData.filter((item) => {
|
|
64330
|
-
// return item.id != record.id;
|
|
64331
|
-
// });
|
|
64332
|
-
// }
|
|
64333
|
-
// },
|
|
64334
|
-
handleCancel() {
|
|
64335
|
-
this.handleClear();
|
|
64336
|
-
},
|
|
64337
|
-
afterClose() {
|
|
64338
|
-
this.showuser = false;
|
|
64339
|
-
this.ipagination.current = 1;
|
|
64340
|
-
this.ipagination.pageSize = 10;
|
|
64341
|
-
this.ipagination.total = 0;
|
|
64342
|
-
},
|
|
64343
|
-
handleClear() {
|
|
64344
|
-
this.visible = false;
|
|
64345
|
-
this.modalCancel();
|
|
64346
|
-
this.checkedKeys = [];
|
|
64347
|
-
},
|
|
64348
|
-
getParentKey(currKey, treeData) {
|
|
64349
|
-
let parentKey;
|
|
64350
|
-
for (let i = 0; i < treeData.length; i++) {
|
|
64351
|
-
const node = treeData[i];
|
|
64352
|
-
if (node.children) {
|
|
64353
|
-
if (node.children.some(item => item.key === currKey)) {
|
|
64354
|
-
parentKey = node.key;
|
|
64355
|
-
} else if (this.getParentKey(currKey, node.children)) {
|
|
64356
|
-
parentKey = this.getParentKey(currKey, node.children);
|
|
64357
|
-
}
|
|
64358
|
-
}
|
|
64359
|
-
}
|
|
64360
|
-
return parentKey;
|
|
64361
|
-
},
|
|
64362
|
-
onSearch(value) {
|
|
64363
|
-
const expandedKeys = this.dataList.map(item => {
|
|
64364
|
-
if (item.title.indexOf(value) > -1) {
|
|
64365
|
-
return this.getParentKey(item.key, this.treeData);
|
|
64366
|
-
}
|
|
64367
|
-
return null;
|
|
64368
|
-
}).filter((item, i, self) => item && self.indexOf(item) === i);
|
|
64369
|
-
Object.assign(this, {
|
|
64370
|
-
expandedKeys,
|
|
64371
|
-
searchValue: value,
|
|
64372
|
-
autoExpandParent: true
|
|
64373
|
-
});
|
|
64374
|
-
},
|
|
64375
|
-
initDictConfig() {
|
|
64376
|
-
this.loadDepartTree();
|
|
64377
|
-
}
|
|
64378
|
-
}
|
|
64379
|
-
});
|
|
64380
|
-
;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js
|
|
64381
|
-
/* harmony default export */ const Modals_selectUserModalvue_type_script_lang_js = (selectUserModalvue_type_script_lang_js);
|
|
64382
|
-
;// ./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=2d4c6164&prod&scoped=true&lang=css
|
|
64383
|
-
// extracted by mini-css-extract-plugin
|
|
64384
|
-
|
|
64385
|
-
;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=2d4c6164&prod&scoped=true&lang=css
|
|
64386
|
-
|
|
64387
|
-
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
64388
|
-
var componentNormalizer = __webpack_require__(4008);
|
|
64389
|
-
;// ./src/form/modules/common/Modals/selectUserModal.vue
|
|
64390
|
-
|
|
64391
|
-
|
|
64392
|
-
|
|
64393
|
-
;
|
|
64394
|
-
|
|
64395
|
-
|
|
64396
|
-
/* normalize component */
|
|
64397
|
-
|
|
64398
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
64399
|
-
Modals_selectUserModalvue_type_script_lang_js,
|
|
64400
|
-
render,
|
|
64401
|
-
staticRenderFns,
|
|
64402
|
-
false,
|
|
64403
|
-
null,
|
|
64404
|
-
"2d4c6164",
|
|
64405
|
-
null
|
|
64406
|
-
|
|
64407
|
-
)
|
|
64408
|
-
|
|
64409
|
-
/* harmony default export */ const selectUserModal = (component.exports);
|
|
64410
|
-
|
|
64411
|
-
/***/ }),
|
|
64412
|
-
|
|
64413
63795
|
/***/ 2511:
|
|
64414
63796
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
64415
63797
|
|
|
@@ -85872,6 +85254,646 @@ if (PROPER_STRUCTURED_CLONE_TRANSFER) {
|
|
|
85872
85254
|
module.exports = detach;
|
|
85873
85255
|
|
|
85874
85256
|
|
|
85257
|
+
/***/ }),
|
|
85258
|
+
|
|
85259
|
+
/***/ 4412:
|
|
85260
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
85261
|
+
|
|
85262
|
+
"use strict";
|
|
85263
|
+
|
|
85264
|
+
// EXPORTS
|
|
85265
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
85266
|
+
A: () => (/* binding */ selectUserModal)
|
|
85267
|
+
});
|
|
85268
|
+
|
|
85269
|
+
;// ./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=73e84290&scoped=true
|
|
85270
|
+
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,"getPopupContainer":function (triggerNode) {
|
|
85271
|
+
return triggerNode.parentNode || _vm.document.body;
|
|
85272
|
+
},"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) {
|
|
85273
|
+
return triggerNode.parentNode || _vm.document.body;
|
|
85274
|
+
}},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)}
|
|
85275
|
+
var staticRenderFns = []
|
|
85276
|
+
|
|
85277
|
+
|
|
85278
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.array.push.js
|
|
85279
|
+
var es_array_push = __webpack_require__(7284);
|
|
85280
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.constructor.js
|
|
85281
|
+
var es_iterator_constructor = __webpack_require__(4473);
|
|
85282
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.filter.js
|
|
85283
|
+
var es_iterator_filter = __webpack_require__(3135);
|
|
85284
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.map.js
|
|
85285
|
+
var es_iterator_map = __webpack_require__(5759);
|
|
85286
|
+
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.iterator.some.js
|
|
85287
|
+
var es_iterator_some = __webpack_require__(3977);
|
|
85288
|
+
// EXTERNAL MODULE: ./src/api/manage.js
|
|
85289
|
+
var manage = __webpack_require__(5335);
|
|
85290
|
+
// EXTERNAL MODULE: ./src/mixins/JeecgListMixinV2.js
|
|
85291
|
+
var JeecgListMixinV2 = __webpack_require__(673);
|
|
85292
|
+
// EXTERNAL MODULE: ./src/api/api.js
|
|
85293
|
+
var api = __webpack_require__(8294);
|
|
85294
|
+
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
85295
|
+
var lodash = __webpack_require__(5182);
|
|
85296
|
+
;// ./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
|
|
85297
|
+
|
|
85298
|
+
|
|
85299
|
+
|
|
85300
|
+
|
|
85301
|
+
|
|
85302
|
+
//
|
|
85303
|
+
//
|
|
85304
|
+
//
|
|
85305
|
+
//
|
|
85306
|
+
//
|
|
85307
|
+
//
|
|
85308
|
+
//
|
|
85309
|
+
//
|
|
85310
|
+
//
|
|
85311
|
+
//
|
|
85312
|
+
//
|
|
85313
|
+
//
|
|
85314
|
+
//
|
|
85315
|
+
//
|
|
85316
|
+
//
|
|
85317
|
+
//
|
|
85318
|
+
//
|
|
85319
|
+
//
|
|
85320
|
+
//
|
|
85321
|
+
//
|
|
85322
|
+
//
|
|
85323
|
+
//
|
|
85324
|
+
//
|
|
85325
|
+
//
|
|
85326
|
+
//
|
|
85327
|
+
//
|
|
85328
|
+
//
|
|
85329
|
+
//
|
|
85330
|
+
//
|
|
85331
|
+
//
|
|
85332
|
+
//
|
|
85333
|
+
//
|
|
85334
|
+
//
|
|
85335
|
+
//
|
|
85336
|
+
//
|
|
85337
|
+
//
|
|
85338
|
+
//
|
|
85339
|
+
//
|
|
85340
|
+
//
|
|
85341
|
+
//
|
|
85342
|
+
//
|
|
85343
|
+
//
|
|
85344
|
+
//
|
|
85345
|
+
//
|
|
85346
|
+
//
|
|
85347
|
+
//
|
|
85348
|
+
//
|
|
85349
|
+
//
|
|
85350
|
+
//
|
|
85351
|
+
//
|
|
85352
|
+
//
|
|
85353
|
+
//
|
|
85354
|
+
//
|
|
85355
|
+
//
|
|
85356
|
+
//
|
|
85357
|
+
//
|
|
85358
|
+
//
|
|
85359
|
+
//
|
|
85360
|
+
//
|
|
85361
|
+
//
|
|
85362
|
+
//
|
|
85363
|
+
//
|
|
85364
|
+
//
|
|
85365
|
+
//
|
|
85366
|
+
//
|
|
85367
|
+
//
|
|
85368
|
+
//
|
|
85369
|
+
//
|
|
85370
|
+
//
|
|
85371
|
+
//
|
|
85372
|
+
//
|
|
85373
|
+
//
|
|
85374
|
+
//
|
|
85375
|
+
//
|
|
85376
|
+
//
|
|
85377
|
+
//
|
|
85378
|
+
//
|
|
85379
|
+
//
|
|
85380
|
+
//
|
|
85381
|
+
//
|
|
85382
|
+
//
|
|
85383
|
+
//
|
|
85384
|
+
//
|
|
85385
|
+
//
|
|
85386
|
+
//
|
|
85387
|
+
//
|
|
85388
|
+
//
|
|
85389
|
+
//
|
|
85390
|
+
//
|
|
85391
|
+
//
|
|
85392
|
+
//
|
|
85393
|
+
//
|
|
85394
|
+
//
|
|
85395
|
+
//
|
|
85396
|
+
//
|
|
85397
|
+
//
|
|
85398
|
+
//
|
|
85399
|
+
//
|
|
85400
|
+
//
|
|
85401
|
+
//
|
|
85402
|
+
//
|
|
85403
|
+
//
|
|
85404
|
+
//
|
|
85405
|
+
//
|
|
85406
|
+
//
|
|
85407
|
+
//
|
|
85408
|
+
//
|
|
85409
|
+
//
|
|
85410
|
+
//
|
|
85411
|
+
//
|
|
85412
|
+
//
|
|
85413
|
+
//
|
|
85414
|
+
//
|
|
85415
|
+
//
|
|
85416
|
+
//
|
|
85417
|
+
//
|
|
85418
|
+
//
|
|
85419
|
+
//
|
|
85420
|
+
//
|
|
85421
|
+
//
|
|
85422
|
+
|
|
85423
|
+
|
|
85424
|
+
|
|
85425
|
+
|
|
85426
|
+
|
|
85427
|
+
/* harmony default export */ const selectUserModalvue_type_script_lang_js = ({
|
|
85428
|
+
name: 'selectUserModal',
|
|
85429
|
+
props: ['modalWidth', 'multi', 'users', 'role', 'defaultDepartId', 'applyId', 'tagId'],
|
|
85430
|
+
mixins: [{
|
|
85431
|
+
...JeecgListMixinV2/* JeecgListMixin */.C,
|
|
85432
|
+
created: undefined
|
|
85433
|
+
}],
|
|
85434
|
+
// 取消minxin created
|
|
85435
|
+
data() {
|
|
85436
|
+
return {
|
|
85437
|
+
queryParam: {
|
|
85438
|
+
depId: undefined,
|
|
85439
|
+
roleId: undefined,
|
|
85440
|
+
realname: '',
|
|
85441
|
+
username: ''
|
|
85442
|
+
},
|
|
85443
|
+
showuser: false,
|
|
85444
|
+
userlist: [],
|
|
85445
|
+
visible: false,
|
|
85446
|
+
confirmLoading: false,
|
|
85447
|
+
treeData: [],
|
|
85448
|
+
autoExpandParent: true,
|
|
85449
|
+
expandedKeys: [],
|
|
85450
|
+
dataList: [],
|
|
85451
|
+
checkedKeys: [],
|
|
85452
|
+
departTreeData: [],
|
|
85453
|
+
checkedRows: [],
|
|
85454
|
+
searchValue: "",
|
|
85455
|
+
selectionRowsData: [],
|
|
85456
|
+
selectedRowKeys: [],
|
|
85457
|
+
isFilter: true,
|
|
85458
|
+
rowSelection: {
|
|
85459
|
+
selectedRowKeys: this.selectedRowKeys,
|
|
85460
|
+
// onChange: this.onSelectChange,
|
|
85461
|
+
|
|
85462
|
+
type: this.multi ? "checkbox" : "radio"
|
|
85463
|
+
},
|
|
85464
|
+
columns: [
|
|
85465
|
+
// {
|
|
85466
|
+
// title: "用户名",
|
|
85467
|
+
// dataIndex: "username",
|
|
85468
|
+
// },
|
|
85469
|
+
// {
|
|
85470
|
+
// title: "真实姓名",
|
|
85471
|
+
// dataIndex: "realname",
|
|
85472
|
+
// },
|
|
85473
|
+
// {
|
|
85474
|
+
// title: "单位",
|
|
85475
|
+
// dataIndex: "departName",
|
|
85476
|
+
// },
|
|
85477
|
+
// {
|
|
85478
|
+
// title: "职务",
|
|
85479
|
+
// dataIndex: "zw",
|
|
85480
|
+
// },
|
|
85481
|
+
// {
|
|
85482
|
+
// title: "电话",
|
|
85483
|
+
// dataIndex: "phone",
|
|
85484
|
+
// },
|
|
85485
|
+
],
|
|
85486
|
+
url: {
|
|
85487
|
+
syncUser: '/process/extActProcess/doSyncUser',
|
|
85488
|
+
list: '/workflow/queryCandidatePersonal',
|
|
85489
|
+
delete: '/sys/user/delete',
|
|
85490
|
+
deleteBatch: '/sys/user/deleteBatch',
|
|
85491
|
+
exportXlsUrl: '/sys/user/exportXls',
|
|
85492
|
+
importExcelUrl: 'sys/user/importExcel'
|
|
85493
|
+
},
|
|
85494
|
+
tagDeparts: [],
|
|
85495
|
+
deptId: '',
|
|
85496
|
+
accurate: false // 是否精准选人
|
|
85497
|
+
};
|
|
85498
|
+
},
|
|
85499
|
+
created() {
|
|
85500
|
+
this.deptId = this.defaultDepartId || undefined;
|
|
85501
|
+
this.setQueryParamsVal({
|
|
85502
|
+
depId: this.deptId,
|
|
85503
|
+
applyId: this.applyId,
|
|
85504
|
+
tagId: this.tagId,
|
|
85505
|
+
roleId: this.role
|
|
85506
|
+
});
|
|
85507
|
+
// this.loadData(false, 'first')
|
|
85508
|
+
this.loadDepartTree();
|
|
85509
|
+
this.setDefaultUser();
|
|
85510
|
+
},
|
|
85511
|
+
mounted() {
|
|
85512
|
+
if (this.deptId) {
|
|
85513
|
+
this.treechange(this.deptId);
|
|
85514
|
+
}
|
|
85515
|
+
},
|
|
85516
|
+
computed: {},
|
|
85517
|
+
watch: {
|
|
85518
|
+
users(v) {
|
|
85519
|
+
if (v.length === 0) {
|
|
85520
|
+
this.setDefaultUser();
|
|
85521
|
+
}
|
|
85522
|
+
},
|
|
85523
|
+
role(val) {
|
|
85524
|
+
this.role = val;
|
|
85525
|
+
}
|
|
85526
|
+
},
|
|
85527
|
+
methods: {
|
|
85528
|
+
loadData(arg, type) {
|
|
85529
|
+
if (!this.url.list) {
|
|
85530
|
+
this.$message.error("请设置url.list属性!");
|
|
85531
|
+
return;
|
|
85532
|
+
}
|
|
85533
|
+
//加载数据 若传入参数1则加载第一页的内容
|
|
85534
|
+
if (arg === 1) {
|
|
85535
|
+
this.ipagination.current = 1;
|
|
85536
|
+
}
|
|
85537
|
+
if (this.role) {
|
|
85538
|
+
this.setQueryParamsVal({
|
|
85539
|
+
roleId: this.role
|
|
85540
|
+
});
|
|
85541
|
+
}
|
|
85542
|
+
if (this.tagId) {
|
|
85543
|
+
this.setQueryParamsVal({
|
|
85544
|
+
tagId: this.tagId
|
|
85545
|
+
});
|
|
85546
|
+
}
|
|
85547
|
+
let params = this.getQueryParams(); //查询条件
|
|
85548
|
+
this.loading = true;
|
|
85549
|
+
if (this.accurate && this.selectionRowsData && this.selectionRowsData.length > 0) {
|
|
85550
|
+
//精确查询需要带上选中的数据一起查询
|
|
85551
|
+
let username = this.selectionRowsData.map(item => item.realname).join(',');
|
|
85552
|
+
params.username = params.username ? params.username + ',' + username : username;
|
|
85553
|
+
}
|
|
85554
|
+
(0,manage/* getAction */.Th)(this.url.list, params).then(res => {
|
|
85555
|
+
if (res.success) {
|
|
85556
|
+
this.dataSource = res.result.records;
|
|
85557
|
+
this.ipagination.total = res.result.total;
|
|
85558
|
+
if (type && this.applyId) {
|
|
85559
|
+
this.deptId = res.result.params.depId;
|
|
85560
|
+
this.setQueryParamsVal({
|
|
85561
|
+
depId: this.deptId
|
|
85562
|
+
});
|
|
85563
|
+
this.treechange(this.deptId);
|
|
85564
|
+
}
|
|
85565
|
+
}
|
|
85566
|
+
if (res.code === 510) {
|
|
85567
|
+
this.$message.warning(res.message);
|
|
85568
|
+
} else if (res.code === 500) {
|
|
85569
|
+
if (res.message.length < 100) {
|
|
85570
|
+
this.$message.error(res.message);
|
|
85571
|
+
}
|
|
85572
|
+
}
|
|
85573
|
+
this.loading = false;
|
|
85574
|
+
});
|
|
85575
|
+
},
|
|
85576
|
+
getTagDepart() {
|
|
85577
|
+
this.tagDeparts = [];
|
|
85578
|
+
(0,manage/* getAction */.Th)("/zhxymatrix/user/listDepartsByTagId", {
|
|
85579
|
+
tagId: this.tagId
|
|
85580
|
+
}).then(res => {
|
|
85581
|
+
if (res.success) {
|
|
85582
|
+
this.tagDeparts = res.result || [];
|
|
85583
|
+
}
|
|
85584
|
+
});
|
|
85585
|
+
},
|
|
85586
|
+
handleCustomRow(record) {
|
|
85587
|
+
return {
|
|
85588
|
+
on: {
|
|
85589
|
+
click: () => {
|
|
85590
|
+
const selectId = record.id;
|
|
85591
|
+
const selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
85592
|
+
if (!this.multi) {
|
|
85593
|
+
this.rowSelection.selectedRowKeys = [record.id];
|
|
85594
|
+
this.selectionRowsData = [record];
|
|
85595
|
+
return;
|
|
85596
|
+
}
|
|
85597
|
+
if (selectedRowKeys.includes(selectId)) {
|
|
85598
|
+
this.selectionRowsData = this.selectionRowsData.filter(item => item.id !== selectId);
|
|
85599
|
+
this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== selectId);
|
|
85600
|
+
return;
|
|
85601
|
+
}
|
|
85602
|
+
this.rowSelection.selectedRowKeys.push(record.id);
|
|
85603
|
+
this.selectionRowsData.push(record);
|
|
85604
|
+
}
|
|
85605
|
+
}
|
|
85606
|
+
};
|
|
85607
|
+
},
|
|
85608
|
+
setZindex() {
|
|
85609
|
+
return () => document.getElementById("speca");
|
|
85610
|
+
},
|
|
85611
|
+
//获取部门
|
|
85612
|
+
getTreedata() {
|
|
85613
|
+
this.treeData = [];
|
|
85614
|
+
(0,manage/* getAction */.Th)("formApi/queryTreeList").then(res => {
|
|
85615
|
+
if (res.success) {
|
|
85616
|
+
for (let i = 0; i < res.result.length; i++) {
|
|
85617
|
+
let temp = res.result[i];
|
|
85618
|
+
this.treeData.push(temp);
|
|
85619
|
+
}
|
|
85620
|
+
// let ob = { value: "", title: "请选择" };
|
|
85621
|
+
// this.treeData.unshift(ob);
|
|
85622
|
+
}
|
|
85623
|
+
});
|
|
85624
|
+
},
|
|
85625
|
+
treechange(e) {
|
|
85626
|
+
this.queryParam.roleId = undefined;
|
|
85627
|
+
let params = {
|
|
85628
|
+
depId: e
|
|
85629
|
+
};
|
|
85630
|
+
(0,manage/* getAction */.Th)("/sys/role/listWorkFlowDepRole", params).then(res => {
|
|
85631
|
+
if (res.success) {
|
|
85632
|
+
this.userlist = res.result;
|
|
85633
|
+
this.showuser = true;
|
|
85634
|
+
}
|
|
85635
|
+
});
|
|
85636
|
+
},
|
|
85637
|
+
setDefaultUser() {
|
|
85638
|
+
var selectedRowKeys = [];
|
|
85639
|
+
if (Array.isArray(this.users) && this.users.length > 0) {
|
|
85640
|
+
selectedRowKeys = this.users.map(item => {
|
|
85641
|
+
return item.id;
|
|
85642
|
+
});
|
|
85643
|
+
this.selectionRowsData = this.users.map(item => {
|
|
85644
|
+
return {
|
|
85645
|
+
...item,
|
|
85646
|
+
id: item.id,
|
|
85647
|
+
realname: item.realname || item.username
|
|
85648
|
+
};
|
|
85649
|
+
});
|
|
85650
|
+
} else {
|
|
85651
|
+
this.selectionRowsData = [];
|
|
85652
|
+
}
|
|
85653
|
+
// console.log(selectedRowKeys)
|
|
85654
|
+
this.rowSelection = {
|
|
85655
|
+
// onChange: this.onSelectChange,
|
|
85656
|
+
type: this.multi ? "checkbox" : "radio",
|
|
85657
|
+
selectedRowKeys: selectedRowKeys,
|
|
85658
|
+
onSelect: (record, selected, selectedRows, nativeEvent) => {
|
|
85659
|
+
// console.log(record, selected, selectedRows, nativeEvent)
|
|
85660
|
+
const list = this.selectionRowsData;
|
|
85661
|
+
const selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
85662
|
+
if (!selected) {
|
|
85663
|
+
// 这里是取消勾选,删除对应的数组项
|
|
85664
|
+
// selectedRowKeys.map((x,item) => {
|
|
85665
|
+
// if(x === record.id){
|
|
85666
|
+
// selectedRowKeys.splice(item,1)
|
|
85667
|
+
// }
|
|
85668
|
+
// })
|
|
85669
|
+
// list.map((x,item) => {
|
|
85670
|
+
// if(x === record.id){
|
|
85671
|
+
// list.splice(item,1)
|
|
85672
|
+
// }
|
|
85673
|
+
// })
|
|
85674
|
+
this.rowSelection.selectedRowKeys = selectedRowKeys.filter(item => item !== record.id);
|
|
85675
|
+
this.selectionRowsData = list.filter(item => item.id !== record.id);
|
|
85676
|
+
console.log(this.rowSelection.selectedRowKeys);
|
|
85677
|
+
}
|
|
85678
|
+
if (selected) {
|
|
85679
|
+
if (!this.multi) {
|
|
85680
|
+
this.rowSelection.selectedRowKeys = [record.id];
|
|
85681
|
+
this.selectionRowsData = [record];
|
|
85682
|
+
return;
|
|
85683
|
+
}
|
|
85684
|
+
|
|
85685
|
+
// 这里是点击勾选,添加workerId字段到selectedRowKeys数组里
|
|
85686
|
+
this.rowSelection.selectedRowKeys.push(record.id);
|
|
85687
|
+
console.log(this.rowSelection.selectedRowKeys);
|
|
85688
|
+
list.push(record);
|
|
85689
|
+
}
|
|
85690
|
+
},
|
|
85691
|
+
//全选
|
|
85692
|
+
onSelectAll: (selected, selectedRows, changeRows) => {
|
|
85693
|
+
if (selected) {
|
|
85694
|
+
changeRows.map(x => {
|
|
85695
|
+
if (!this.rowSelection.selectedRowKeys.includes(x.id)) {
|
|
85696
|
+
this.rowSelection.selectedRowKeys.push(x.id);
|
|
85697
|
+
this.selectedRowKeys.push(x.id);
|
|
85698
|
+
this.selectionRowsData.push(x);
|
|
85699
|
+
}
|
|
85700
|
+
});
|
|
85701
|
+
}
|
|
85702
|
+
if (!selected) {
|
|
85703
|
+
const removeKey = changeRows.map(item => item.id);
|
|
85704
|
+
this.selectedRowKeys = this.selectedRowKeys.filter(item => !removeKey.includes(item));
|
|
85705
|
+
this.selectionRowsData = this.selectionRowsData.filter(item => !removeKey.includes(item.id));
|
|
85706
|
+
this.$set(this.rowSelection, 'selectedRowKeys', this.selectedRowKeys);
|
|
85707
|
+
}
|
|
85708
|
+
}
|
|
85709
|
+
// getCheckboxProps: (record) => {
|
|
85710
|
+
// return {
|
|
85711
|
+
// props: {
|
|
85712
|
+
// defaultChecked: selectedRowKeys.includes(record.id),
|
|
85713
|
+
// },
|
|
85714
|
+
// };
|
|
85715
|
+
// },
|
|
85716
|
+
};
|
|
85717
|
+
},
|
|
85718
|
+
loadDepartTree() {
|
|
85719
|
+
const that = this;
|
|
85720
|
+
(0,api/* queryDepartTreeList */.vv)().then(res => {
|
|
85721
|
+
if (res.success) {
|
|
85722
|
+
that.departTreeData = [];
|
|
85723
|
+
for (let i = 0; i < res.result.length; i++) {
|
|
85724
|
+
let temp = res.result[i];
|
|
85725
|
+
that.departTreeData.push(temp);
|
|
85726
|
+
}
|
|
85727
|
+
that.loading = false;
|
|
85728
|
+
}
|
|
85729
|
+
});
|
|
85730
|
+
},
|
|
85731
|
+
show(select, item, selectedUserIds = undefined, userSelectByMyself = '1', accurate = false) {
|
|
85732
|
+
this.accurate = accurate;
|
|
85733
|
+
this.dataSource = [];
|
|
85734
|
+
if (accurate) {
|
|
85735
|
+
this.url.list = '/workflow/queryCandidatePersonalByName';
|
|
85736
|
+
this.columns = [{
|
|
85737
|
+
title: "单位",
|
|
85738
|
+
dataIndex: "departName"
|
|
85739
|
+
}, {
|
|
85740
|
+
title: "姓名",
|
|
85741
|
+
dataIndex: "realname"
|
|
85742
|
+
}, {
|
|
85743
|
+
title: "工号",
|
|
85744
|
+
dataIndex: "username"
|
|
85745
|
+
}];
|
|
85746
|
+
} else {
|
|
85747
|
+
this.url.list = '/workflow/queryCandidatePersonal';
|
|
85748
|
+
this.columns = [{
|
|
85749
|
+
title: "用户名",
|
|
85750
|
+
dataIndex: "username"
|
|
85751
|
+
}, {
|
|
85752
|
+
title: "真实姓名",
|
|
85753
|
+
dataIndex: "realname"
|
|
85754
|
+
}, {
|
|
85755
|
+
title: "单位",
|
|
85756
|
+
dataIndex: "departName"
|
|
85757
|
+
}];
|
|
85758
|
+
}
|
|
85759
|
+
console.log(select);
|
|
85760
|
+
if (this.tagId) this.getTagDepart();
|
|
85761
|
+
if (this.deptId) {
|
|
85762
|
+
this.treechange(this.deptId);
|
|
85763
|
+
}
|
|
85764
|
+
this.setQueryParamsVal({
|
|
85765
|
+
tagId: this.tagId,
|
|
85766
|
+
roleId: this.role,
|
|
85767
|
+
depId: this.deptId,
|
|
85768
|
+
applyId: this.applyId,
|
|
85769
|
+
selectedUserIds: selectedUserIds,
|
|
85770
|
+
userSelectByMyself: userSelectByMyself
|
|
85771
|
+
});
|
|
85772
|
+
|
|
85773
|
+
//this.loadDepartTree();
|
|
85774
|
+
this.checkedRows = [];
|
|
85775
|
+
this.rowSelection.selectedRowKeys = select;
|
|
85776
|
+
this.selectionRowsData = item;
|
|
85777
|
+
this.getTreedata();
|
|
85778
|
+
this.loadData();
|
|
85779
|
+
this.setDefaultUser();
|
|
85780
|
+
this.visible = true;
|
|
85781
|
+
},
|
|
85782
|
+
onCheck(checkedKeys, info) {
|
|
85783
|
+
if (!this.multi) {
|
|
85784
|
+
let arr = checkedKeys.checked.filter(item => {
|
|
85785
|
+
return this.checkedKeys.indexOf(item) < 0;
|
|
85786
|
+
});
|
|
85787
|
+
this.checkedKeys = [...arr];
|
|
85788
|
+
this.checkedRows = [info.node.dataRef];
|
|
85789
|
+
} else {
|
|
85790
|
+
this.checkedKeys = checkedKeys.checked;
|
|
85791
|
+
this.checkedRows.push(info.node.dataRef);
|
|
85792
|
+
}
|
|
85793
|
+
//this.$emit("input",this.checkedKeys.join(","))
|
|
85794
|
+
//console.log(this.checkedKeys.join(","))
|
|
85795
|
+
},
|
|
85796
|
+
handleSubmit() {
|
|
85797
|
+
this.selectedRowKeys = this.rowSelection.selectedRowKeys;
|
|
85798
|
+
if (!this.selectedRowKeys || this.selectedRowKeys.length == 0) {
|
|
85799
|
+
this.$emit("ok", "");
|
|
85800
|
+
} else {
|
|
85801
|
+
this.$emit("ok", this.selectionRowsData, this.selectedRowKeys.join(","));
|
|
85802
|
+
}
|
|
85803
|
+
this.handleClear();
|
|
85804
|
+
},
|
|
85805
|
+
//onSelectChange
|
|
85806
|
+
// onSelectChange(selectedRowKeys, selectionRows) {
|
|
85807
|
+
// this.rowSelection.selectedRowKeys = Array.from(new Set(selectedRowKeys));
|
|
85808
|
+
// this.selectionRowsData = this.selectionRows = [...selectionRows];
|
|
85809
|
+
// },
|
|
85810
|
+
// //选中或者取消某一项时
|
|
85811
|
+
// onSelectOption(record, selected, selectedRows, nativeEvent) {
|
|
85812
|
+
// if (selected) {
|
|
85813
|
+
// this.selectionRowsData.push(record);
|
|
85814
|
+
// } else {
|
|
85815
|
+
// this.selectionRowsData = this.selectionRowsData.filter((item) => {
|
|
85816
|
+
// return item.id != record.id;
|
|
85817
|
+
// });
|
|
85818
|
+
// }
|
|
85819
|
+
// },
|
|
85820
|
+
handleCancel() {
|
|
85821
|
+
this.handleClear();
|
|
85822
|
+
},
|
|
85823
|
+
afterClose() {
|
|
85824
|
+
this.showuser = false;
|
|
85825
|
+
this.ipagination.current = 1;
|
|
85826
|
+
this.ipagination.pageSize = 10;
|
|
85827
|
+
this.ipagination.total = 0;
|
|
85828
|
+
},
|
|
85829
|
+
handleClear() {
|
|
85830
|
+
this.visible = false;
|
|
85831
|
+
this.modalCancel();
|
|
85832
|
+
this.checkedKeys = [];
|
|
85833
|
+
},
|
|
85834
|
+
getParentKey(currKey, treeData) {
|
|
85835
|
+
let parentKey;
|
|
85836
|
+
for (let i = 0; i < treeData.length; i++) {
|
|
85837
|
+
const node = treeData[i];
|
|
85838
|
+
if (node.children) {
|
|
85839
|
+
if (node.children.some(item => item.key === currKey)) {
|
|
85840
|
+
parentKey = node.key;
|
|
85841
|
+
} else if (this.getParentKey(currKey, node.children)) {
|
|
85842
|
+
parentKey = this.getParentKey(currKey, node.children);
|
|
85843
|
+
}
|
|
85844
|
+
}
|
|
85845
|
+
}
|
|
85846
|
+
return parentKey;
|
|
85847
|
+
},
|
|
85848
|
+
onSearch(value) {
|
|
85849
|
+
const expandedKeys = this.dataList.map(item => {
|
|
85850
|
+
if (item.title.indexOf(value) > -1) {
|
|
85851
|
+
return this.getParentKey(item.key, this.treeData);
|
|
85852
|
+
}
|
|
85853
|
+
return null;
|
|
85854
|
+
}).filter((item, i, self) => item && self.indexOf(item) === i);
|
|
85855
|
+
Object.assign(this, {
|
|
85856
|
+
expandedKeys,
|
|
85857
|
+
searchValue: value,
|
|
85858
|
+
autoExpandParent: true
|
|
85859
|
+
});
|
|
85860
|
+
},
|
|
85861
|
+
initDictConfig() {
|
|
85862
|
+
this.loadDepartTree();
|
|
85863
|
+
}
|
|
85864
|
+
}
|
|
85865
|
+
});
|
|
85866
|
+
;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=script&lang=js
|
|
85867
|
+
/* harmony default export */ const Modals_selectUserModalvue_type_script_lang_js = (selectUserModalvue_type_script_lang_js);
|
|
85868
|
+
;// ./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=73e84290&prod&scoped=true&lang=css
|
|
85869
|
+
// extracted by mini-css-extract-plugin
|
|
85870
|
+
|
|
85871
|
+
;// ./src/form/modules/common/Modals/selectUserModal.vue?vue&type=style&index=0&id=73e84290&prod&scoped=true&lang=css
|
|
85872
|
+
|
|
85873
|
+
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
85874
|
+
var componentNormalizer = __webpack_require__(4008);
|
|
85875
|
+
;// ./src/form/modules/common/Modals/selectUserModal.vue
|
|
85876
|
+
|
|
85877
|
+
|
|
85878
|
+
|
|
85879
|
+
;
|
|
85880
|
+
|
|
85881
|
+
|
|
85882
|
+
/* normalize component */
|
|
85883
|
+
|
|
85884
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
85885
|
+
Modals_selectUserModalvue_type_script_lang_js,
|
|
85886
|
+
render,
|
|
85887
|
+
staticRenderFns,
|
|
85888
|
+
false,
|
|
85889
|
+
null,
|
|
85890
|
+
"73e84290",
|
|
85891
|
+
null
|
|
85892
|
+
|
|
85893
|
+
)
|
|
85894
|
+
|
|
85895
|
+
/* harmony default export */ const selectUserModal = (component.exports);
|
|
85896
|
+
|
|
85875
85897
|
/***/ }),
|
|
85876
85898
|
|
|
85877
85899
|
/***/ 4473:
|
|
@@ -120525,7 +120547,7 @@ const getSignature = params => (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
120525
120547
|
/***/ ((module) => {
|
|
120526
120548
|
|
|
120527
120549
|
"use strict";
|
|
120528
|
-
module.exports = {"rE":"1.1.
|
|
120550
|
+
module.exports = {"rE":"1.1.647"};
|
|
120529
120551
|
|
|
120530
120552
|
/***/ }),
|
|
120531
120553
|
|
|
@@ -174837,8 +174859,8 @@ var widgetConfigvue_type_template_id_0b66aa74_scoped_true_render = function () {
|
|
|
174837
174859
|
var widgetConfigvue_type_template_id_0b66aa74_scoped_true_staticRenderFns = []
|
|
174838
174860
|
|
|
174839
174861
|
|
|
174840
|
-
;// ./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/widgetPublicConfig.vue?vue&type=template&id=
|
|
174841
|
-
var
|
|
174862
|
+
;// ./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/widgetPublicConfig.vue?vue&type=template&id=3657ce48&scoped=true
|
|
174863
|
+
var widgetPublicConfigvue_type_template_id_3657ce48_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form"},[_c('a-form-model',[_c('a-form-model-item',{ref:"title",attrs:{"label":"标题"}},[_c('a-input',{model:{value:(_vm.widget.name),callback:function ($$v) {_vm.$set(_vm.widget, "name", $$v)},expression:"widget.name"}})],1),_c('a-form-model-item',{attrs:{"label":"标签宽度","prop":"title"}},[_c('a-input-number',{attrs:{"placeholder":"auto"},model:{value:(_vm.widget.options.labelWidth),callback:function ($$v) {_vm.$set(_vm.widget.options, "labelWidth", $$v)},expression:"widget.options.labelWidth"}})],1),(_vm.hasAutoHeight)?_c('a-form-model-item',{attrs:{"label":"自适应高度:"}},[_c('a-switch',{model:{value:(_vm.widget.options.autoHeight),callback:function ($$v) {_vm.$set(_vm.widget.options, "autoHeight", $$v)},expression:"widget.options.autoHeight"}})],1):_vm._e(),(!_vm.widget.options.autoHeight)?_c('a-form-model-item',{attrs:{"label":"高度","prop":"title"}},[_c('a-input-number',{attrs:{"placeholder":"auto"},model:{value:(_vm.widget.options.height),callback:function ($$v) {_vm.$set(_vm.widget.options, "height", $$v)},expression:"widget.options.height"}})],1):_vm._e(),(_vm.widget.type === 'select')?_c('a-form-model-item',{ref:"bg_bgc",attrs:{"label":"背景颜色","prop":"bgcolor"}},[_c('colorPicker',{attrs:{"defaultColor":"#FFFFFF"},model:{value:(_vm.widget.options.bgColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "bgColor", $$v)},expression:"widget.options.bgColor"}})],1):_vm._e(),(!['placeholder', 'responsibility', 'fileupload', 'number', 'radio', 'checkbox', 'rate', 'switch', 'slider', 'superLink', 'codeControl', 'imgupload', 'fileupload', 'uploadModel', 'signatureWrite', 'location', 'imgCode', 'publicSign', 'responsibility', 'grid', 'editorAirt', 'hnkj-richEditor', 'hnkj-nameSignature', 'hnkj-sealSignature', 'conferenceRoom', 'all-lay-out', 'grid-lay-out', 'table' ].includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"组件无边框","prop":"title"}},[_c('a-switch',{model:{value:(_vm.widget.options.noBorder),callback:function ($$v) {_vm.$set(_vm.widget.options, "noBorder", $$v)},expression:"widget.options.noBorder"}})],1):_vm._e(),(['input', 'textarea'].includes(_vm.widget.type))?_c('div',[_c('a-form-model-item',{ref:"bgc",attrs:{"label":"字体颜色","prop":"labelwordcolor"}},[_c('colorPicker',{staticStyle:{"z-index":"3"},attrs:{"defaultColor":"#000000"},model:{value:(_vm.widget.options.fontColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "fontColor", $$v)},expression:"widget.options.fontColor"}})],1),_c('a-form-model-item',{ref:"bg_bgc",attrs:{"label":"背景颜色","prop":"bgcolor"}},[_c('colorPicker',{attrs:{"defaultColor":"#FFFFFF"},model:{value:(_vm.widget.options.bgColor),callback:function ($$v) {_vm.$set(_vm.widget.options, "bgColor", $$v)},expression:"widget.options.bgColor"}})],1),_c('a-form-model-item',{attrs:{"label":"字体类型","prop":"title"}},[_c('a-select',{attrs:{"placeholder":"请选择字体"},model:{value:(_vm.widget.options.fontFamily),callback:function ($$v) {_vm.$set(_vm.widget.options, "fontFamily", $$v)},expression:"widget.options.fontFamily"}},_vm._l((_vm.fontNames),function(item,idx){return _c('a-select-option',{key:idx,attrs:{"value":item}},[_vm._v(" "+_vm._s(item)+" ")])}),1)],1)],1):_vm._e(),(_vm.widget.type == 'codeControl')?_c('a-form-model-item',{attrs:{"label":"默认值"}},[_c('a-input',{attrs:{"disabled":""},model:{value:(_vm.widget.key),callback:function ($$v) {_vm.$set(_vm.widget, "key", $$v)},expression:"widget.key"}})],1):_vm._e(),(['imgupload', 'fileupload'].includes(_vm.widget.type) && _vm.widget.options.placeholder_1 !== undefined)?[(!_vm.seatList.includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"PC占位内容"}},[_c('a-input',{model:{value:(_vm.widget.options.placeholder_1),callback:function ($$v) {_vm.$set(_vm.widget.options, "placeholder_1", $$v)},expression:"widget.options.placeholder_1"}})],1):_vm._e()]:(!_vm.seatList.includes(_vm.widget.type))?_c('a-form-model-item',{attrs:{"label":"占位内容"}},[_c('a-input',{model:{value:(_vm.widget.options.placeholder),callback:function ($$v) {_vm.$set(_vm.widget.options, "placeholder", $$v)},expression:"widget.options.placeholder"}})],1):_vm._e(),(_vm.widget.type == 'superLink')?_c('a-form-model-item',{attrs:{"label":"超链接名称"}},[_c('a-input',{model:{value:(_vm.widget.options.title),callback:function ($$v) {_vm.$set(_vm.widget.options, "title", $$v)},expression:"widget.options.title"}})],1):_vm._e(),_vm._t("default"),(['input', 'textarea', 'number', 'date'].includes(_vm.widget.type) && !_vm.widget.form_table_index )?[_c('a-form-model-item',{attrs:{"label":"公式联动"}},[_c('warp-formula-edit',{attrs:{"datalist":_vm.datalist,"widget":_vm.widget}})],1)]:_vm._e(),(!['dataTable', 'workflowApp', 'cascaderSelect', 'hnkj-confirm', 'conferenceRoom'].includes(_vm.widget.type) && !_vm.widget.options.accurate)?_c('a-form-model-item',{attrs:{"label":"数据操作类型"}},[_c('a-select',{attrs:{"placeholder":"默认覆盖"},model:{value:(_vm.widget.options.zhuijiaType),callback:function ($$v) {_vm.$set(_vm.widget.options, "zhuijiaType", $$v)},expression:"widget.options.zhuijiaType"}},[_c('a-select-option',{attrs:{"value":"1"}},[_vm._v("覆盖")]),_c('a-select-option',{attrs:{"value":"2"}},[_vm._v("追加")])],1)],1):_vm._e(),(_vm.$route.query.jghsj === '1')?_c('a-form-model-item',{attrs:{"label":"选择入库唯一key"}},[_c('a-switch',{model:{value:(_vm.widget.isJghsjKey),callback:function ($$v) {_vm.$set(_vm.widget, "isJghsjKey", $$v)},expression:"widget.isJghsjKey"}})],1):_vm._e(),(_vm.$route.query.jghsj === '1' && _vm.widget.isJghsjKey)?_c('a-form-model-item',{attrs:{"label":"唯一key"}},[_c('a-select',{model:{value:(_vm.widget.model),callback:function ($$v) {_vm.$set(_vm.widget, "model", $$v)},expression:"widget.model"}},_vm._l((_vm.filedNameList),function(item){return _c('a-select-option',{key:item.field_name,attrs:{"value":item.field_name,"title":item.field_name_value}},[_vm._v(" "+_vm._s(item.field_name_value)+" ")])}),1)],1):_c('a-form-model-item',{attrs:{"label":"唯一key"}},[_c('a-input',{model:{value:(_vm.widget.model),callback:function ($$v) {_vm.$set(_vm.widget, "model", $$v)},expression:"widget.model"}})],1),(
|
|
174842
174864
|
_vm.widget.options && Object.keys(_vm.widget.options).indexOf('multiple') >= 0 && !_vm.excludeMultipleList.includes(_vm.widget.type) && !_vm.widget.options.accurate
|
|
174843
174865
|
)?_c('a-form-model-item',{attrs:{"label":"是否多选"}},[_c('a-switch',{on:{"change":_vm.changeMutiple},model:{value:(_vm.widget.options.multiple),callback:function ($$v) {_vm.$set(_vm.widget.options, "multiple", $$v)},expression:"widget.options.multiple"}})],1):_vm._e(),(_vm.widget.options && (['checkbox'].includes(_vm.widget.type) || (['select'].includes(_vm.widget.type) && _vm.widget.options.multiple) ))?_c('a-form-model-item',{attrs:{"label":"选择区间限制"}},[_c('a-input-number',{attrs:{"id":"minValue","precision":0,"min":1,"placeholder":"最少选"},model:{value:(_vm.widget.options.minValue),callback:function ($$v) {_vm.$set(_vm.widget.options, "minValue", $$v)},expression:"widget.options.minValue"}}),_vm._v(" - "),_c('a-input-number',{attrs:{"id":"maxValue","precision":0,"min":Number(_vm.widget.options.minValue),"placeholder":"最多选"},model:{value:(_vm.widget.options.maxValue),callback:function ($$v) {_vm.$set(_vm.widget.options, "maxValue", $$v)},expression:"widget.options.maxValue"}})],1):_vm._e(),(
|
|
174844
174866
|
!_vm.widget.form_table_index &&
|
|
@@ -174861,7 +174883,7 @@ var widgetPublicConfigvue_type_template_id_48850556_scoped_true_render = functio
|
|
|
174861
174883
|
)?_c('a-select',{staticStyle:{"width":"100%"},attrs:{"show-search":"","filter-option":_vm.searchDataType,"placeholder":"请选择数据类型"},model:{value:(_vm.widget.options.dataType),callback:function ($$v) {_vm.$set(_vm.widget.options, "dataType", $$v)},expression:"widget.options.dataType"}},[_c('a-select-option',{attrs:{"name":"字符串","value":"string"}},[_vm._v("字符串")]),_c('a-select-option',{attrs:{"name":"URL地址","value":"url"}},[_vm._v("URL地址")]),_c('a-select-option',{attrs:{"name":"邮箱地址","value":"email"}},[_vm._v("邮箱地址")]),(_vm.regularCheckDicts.length > 0)?_vm._l((_vm.regularCheckDicts),function(regular,idx){return _c('a-select-option',{key:idx,attrs:{"name":regular.title,"value":'regular__' + regular.value}},[_vm._v(_vm._s(regular.title))])}):_vm._e()],2):_vm._e(),(
|
|
174862
174884
|
['input', 'textarea'].includes(_vm.widget.type)
|
|
174863
174885
|
)?_c('div',[(_vm.widget.type !== 'dataTable' && _vm.widget.type != 'hnkj-verify')?_c('a-input',{staticStyle:{"width":"100%"},attrs:{"disabled":String(_vm.widget.options.dataType).startsWith('regular__'),"placeholder":"填写正则表达式"},model:{value:(_vm.widget.options.pattern),callback:function ($$v) {_vm.$set(_vm.widget.options, "pattern", $$v)},expression:"widget.options.pattern"}}):_vm._e(),_c('a-input',{directives:[{name:"show",rawName:"v-show",value:(_vm.widget.options.pattern),expression:"widget.options.pattern"}],staticStyle:{"width":"100%"},attrs:{"placeholder":"请填写错误提示"},on:{"blur":_vm.valideError},model:{value:(_vm.widget.options.patternError),callback:function ($$v) {_vm.$set(_vm.widget.options, "patternError", $$v)},expression:"widget.options.patternError"}})],1):_vm._e()]:_vm._e()],2):_vm._e()],2)],1)}
|
|
174864
|
-
var
|
|
174886
|
+
var widgetPublicConfigvue_type_template_id_3657ce48_scoped_true_staticRenderFns = []
|
|
174865
174887
|
|
|
174866
174888
|
|
|
174867
174889
|
// EXTERNAL MODULE: ./node_modules/_core-js@3.41.0@core-js/modules/es.symbol.description.js
|
|
@@ -175588,10 +175610,10 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
175588
175610
|
});
|
|
175589
175611
|
;// ./src/form/modules/widgetPublicConfig.vue?vue&type=script&lang=js
|
|
175590
175612
|
/* harmony default export */ const modules_widgetPublicConfigvue_type_script_lang_js = (widgetPublicConfigvue_type_script_lang_js);
|
|
175591
|
-
;// ./node_modules/_mini-css-extract-plugin@2.9.2@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/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=
|
|
175613
|
+
;// ./node_modules/_mini-css-extract-plugin@2.9.2@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/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=3657ce48&prod&lang=less&scoped=true
|
|
175592
175614
|
// extracted by mini-css-extract-plugin
|
|
175593
175615
|
|
|
175594
|
-
;// ./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=
|
|
175616
|
+
;// ./src/form/modules/widgetPublicConfig.vue?vue&type=style&index=0&id=3657ce48&prod&lang=less&scoped=true
|
|
175595
175617
|
|
|
175596
175618
|
;// ./src/form/modules/widgetPublicConfig.vue
|
|
175597
175619
|
|
|
@@ -175604,11 +175626,11 @@ const fontNames = ["黑体", "仿宋", "楷体", "标楷体", "华文仿宋", "
|
|
|
175604
175626
|
|
|
175605
175627
|
var widgetPublicConfig_component = (0,componentNormalizer/* default */.A)(
|
|
175606
175628
|
modules_widgetPublicConfigvue_type_script_lang_js,
|
|
175607
|
-
|
|
175608
|
-
|
|
175629
|
+
widgetPublicConfigvue_type_template_id_3657ce48_scoped_true_render,
|
|
175630
|
+
widgetPublicConfigvue_type_template_id_3657ce48_scoped_true_staticRenderFns,
|
|
175609
175631
|
false,
|
|
175610
175632
|
null,
|
|
175611
|
-
"
|
|
175633
|
+
"3657ce48",
|
|
175612
175634
|
null
|
|
175613
175635
|
|
|
175614
175636
|
)
|
|
@@ -176512,7 +176534,7 @@ var toLinkageWidget_component = (0,componentNormalizer/* default */.A)(
|
|
|
176512
176534
|
// EXTERNAL MODULE: ./src/form/modules/common/querySelectDict.vue + 3 modules
|
|
176513
176535
|
var querySelectDict = __webpack_require__(2967);
|
|
176514
176536
|
// EXTERNAL MODULE: ./src/form/modules/common/Modals/selectUserModal.vue + 5 modules
|
|
176515
|
-
var selectUserModal = __webpack_require__(
|
|
176537
|
+
var selectUserModal = __webpack_require__(4412);
|
|
176516
176538
|
;// ./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
|
|
176517
176539
|
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)}
|
|
176518
176540
|
var linkageSelectUservue_type_template_id_7fd8ad34_scoped_true_staticRenderFns = []
|