@zscreate/form-component 1.1.364 → 1.1.365
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.umd.js +102 -14
- package/package.json +1 -1
|
@@ -157684,7 +157684,7 @@ function toString(value) {
|
|
|
157684
157684
|
/***/ ((module) => {
|
|
157685
157685
|
|
|
157686
157686
|
"use strict";
|
|
157687
|
-
module.exports = {"i8":"1.1.
|
|
157687
|
+
module.exports = {"i8":"1.1.365"};
|
|
157688
157688
|
|
|
157689
157689
|
/***/ })
|
|
157690
157690
|
|
|
@@ -161315,8 +161315,8 @@ var sider_panelvue_type_template_id_8040a504_render = function () {var _vm=this;
|
|
|
161315
161315
|
var sider_panelvue_type_template_id_8040a504_staticRenderFns = []
|
|
161316
161316
|
|
|
161317
161317
|
|
|
161318
|
-
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/flow/select_type.vue?vue&type=template&id=
|
|
161319
|
-
var
|
|
161318
|
+
;// CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.1@vue-loader/lib/index.js??vue-loader-options!./src/flow/select_type.vue?vue&type=template&id=7da53fb8&
|
|
161319
|
+
var select_typevue_type_template_id_7da53fb8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a-modal',{attrs:{"title":"配置人员类型","width":800,"destroyOnClose":true},on:{"ok":_vm.handleOk,"cancel":_vm.handleCancel},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[_c('div',{staticClass:"table-page-search-wrapper"},[_c('a-form',{attrs:{"layout":"inline"}},[_c('a-row',{directives:[{name:"show",rawName:"v-show",value:(_vm.defaultKey !== 'CandidateFormUsers' && _vm.defaultKey !== 'Script' ),expression:"defaultKey !== 'CandidateFormUsers' && defaultKey !== 'Script' "}],attrs:{"gutter":24}},[(_vm.defaultKey !== 'relationMatrix')?_c('a-col',{attrs:{"md":8,"sm":12}},[_c('a-form-item',[_c('a-tree-select',{staticStyle:{"width":"240px"},attrs:{"dropdown-style":{ maxHeight: '400px', overflow: 'auto' },"placeholder":"请选择部门","tree-data":_vm.treeData,"allow-clear":""},on:{"change":_vm.treechange},model:{value:(_vm.query.depId),callback:function ($$v) {_vm.$set(_vm.query, "depId", $$v)},expression:"query.depId"}})],1)],1):_vm._e(),(_vm.defaultKey === 'relationMatrix')?[_c('a-col',{attrs:{"md":8,"sm":12}},[_c('a-form-item',[_c('a-input',{attrs:{"placeholder":"请输入标签"},model:{value:(_vm.m_tagQuery.tagName),callback:function ($$v) {_vm.$set(_vm.m_tagQuery, "tagName", $$v)},expression:"m_tagQuery.tagName"}})],1)],1)]:_vm._e(),(_vm.showuser && _vm.defaultKey !== 'relationMatrix')?_c('a-col',{attrs:{"md":6,"sm":12}},[_c('a-form-item',[_c('a-select',{staticStyle:{"width":"173px"},attrs:{"placeholder":"请选择角色"},on:{"change":_vm.handleChange},model:{value:(_vm.query.roleId),callback:function ($$v) {_vm.$set(_vm.query, "roleId", $$v)},expression:"query.roleId"}},_vm._l((_vm.userlist),function(item){return _c('a-select-option',{key:item.id,attrs:{"value":item.id}},[_vm._v(" "+_vm._s(item.roleName)+" ")])}),1)],1)],1):_vm._e(),_c('a-col',{directives:[{name:"show",rawName:"v-show",value:(_vm.showname),expression:"showname"}],attrs:{"md":6,"sm":12}},[_c('a-form-item',[_c('a-input',{attrs:{"placeholder":this.defaultKey == 'CandidateGroups' ? '请输入名称' : '请输入姓名'},model:{value:(_vm.query.realname),callback:function ($$v) {_vm.$set(_vm.query, "realname", $$v)},expression:"query.realname"}})],1)],1),_c('a-col',{attrs:{"md":4,"sm":8}},[_c('span',{staticClass:"table-page-search-submitButtons",staticStyle:{"float":"left","overflow":"hidden"}},[_c('a-button',{attrs:{"type":"primary","icon":"search"},on:{"click":_vm.handlesearch}},[_vm._v("查询")])],1)])],2)],1)],1),_c('a-tabs',{attrs:{"activeKey":_vm.defaultKey},on:{"change":_vm.changeTabs}},[_c('a-tab-pane',{key:"Assingee",attrs:{"tab":"个人"}},[_c('a-table',{attrs:{"rowSelection":{
|
|
161320
161320
|
type: 'radio',
|
|
161321
161321
|
selectedRowKeys: _vm.formData.assingeeValue,
|
|
161322
161322
|
onChange: _vm.onSelectPersion,
|
|
@@ -161327,7 +161327,7 @@ var select_typevue_type_template_id_695b5299_render = function () {var _vm=this;
|
|
|
161327
161327
|
onChange: _vm.onSelectPersionWait,
|
|
161328
161328
|
onSelect: _vm.onSelectUsers,
|
|
161329
161329
|
onSelectAll: _vm.onSelectAll,
|
|
161330
|
-
},"columns":_vm.columns,"dataSource":_vm.
|
|
161330
|
+
},"columns":_vm.columns,"dataSource":_vm.data1,"pagination":_vm.ipagination1,"size":"small","rowKey":"id"},on:{"change":_vm.handleTableChange1}})],1),_c('a-tab-pane',{key:"CandidateGroups",attrs:{"tab":"候选组"}},[_c('a-table',{attrs:{"rowSelection":{
|
|
161331
161331
|
type: 'checkbox',
|
|
161332
161332
|
selectedRowKeys: _vm.formData.candidateGroupsValue,
|
|
161333
161333
|
onChange: _vm.onSelectGroup,
|
|
@@ -161346,7 +161346,7 @@ var select_typevue_type_template_id_695b5299_render = function () {var _vm=this;
|
|
|
161346
161346
|
onSelect: _vm.onSelectUsers,
|
|
161347
161347
|
onSelectAll: _vm.onSelectAll
|
|
161348
161348
|
},"columns":_vm.tagColumns,"dataSource":_vm.tagData,"pagination":_vm.tagIpagination,"size":"small","rowKey":"id"},on:{"change":_vm.handleTagDataTableChange}})],1),_c('a-tab-pane',{key:"Script",attrs:{"tab":"脚本"}},[_c('a-textarea',{attrs:{"placeholder":"请输入脚本任务","rows":4},model:{value:(_vm.formData.scriptValue),callback:function ($$v) {_vm.$set(_vm.formData, "scriptValue", $$v)},expression:"formData.scriptValue"}})],1)],1)],1)],1)}
|
|
161349
|
-
var
|
|
161349
|
+
var select_typevue_type_template_id_7da53fb8_staticRenderFns = []
|
|
161350
161350
|
|
|
161351
161351
|
|
|
161352
161352
|
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.21@lodash/lodash.js
|
|
@@ -161622,6 +161622,15 @@ const tagColumns = [{
|
|
|
161622
161622
|
showQuickJumper: true,
|
|
161623
161623
|
total: 0
|
|
161624
161624
|
},
|
|
161625
|
+
ipagination1: {
|
|
161626
|
+
current: 1,
|
|
161627
|
+
pageSize: 10,
|
|
161628
|
+
showTotal: (total, range) => {
|
|
161629
|
+
return range[0] + "-" + range[1] + " 共" + total + "条";
|
|
161630
|
+
},
|
|
161631
|
+
showQuickJumper: true,
|
|
161632
|
+
total: 0
|
|
161633
|
+
},
|
|
161625
161634
|
ipagination2: {
|
|
161626
161635
|
current: 1,
|
|
161627
161636
|
pageSize: 10,
|
|
@@ -161687,6 +161696,7 @@ const tagColumns = [{
|
|
|
161687
161696
|
cacheSeletedRows: [],
|
|
161688
161697
|
val: "",
|
|
161689
161698
|
data: [],
|
|
161699
|
+
data1: [],
|
|
161690
161700
|
columns,
|
|
161691
161701
|
grpupColumns,
|
|
161692
161702
|
formUserColumns,
|
|
@@ -161697,10 +161707,15 @@ const tagColumns = [{
|
|
|
161697
161707
|
}],
|
|
161698
161708
|
url: {
|
|
161699
161709
|
userWithDepart: "/sys/user/userDepartList" // 引入为指定用户查看部门信息需要的url
|
|
161710
|
+
},
|
|
161711
|
+
|
|
161712
|
+
params: {
|
|
161713
|
+
assigneeType: '',
|
|
161714
|
+
//个人Assingee 候选人CandidateUsers 候选组CandidateGroups 表单用户CandidateFormUsers 关系矩阵relationMatrix
|
|
161715
|
+
assigneeVal: ''
|
|
161700
161716
|
}
|
|
161701
161717
|
};
|
|
161702
161718
|
},
|
|
161703
|
-
|
|
161704
161719
|
methods: {
|
|
161705
161720
|
clear() {
|
|
161706
161721
|
this.showname = false;
|
|
@@ -161714,6 +161729,7 @@ const tagColumns = [{
|
|
|
161714
161729
|
};
|
|
161715
161730
|
},
|
|
161716
161731
|
init(key, formId, taskAssignee) {
|
|
161732
|
+
debugger;
|
|
161717
161733
|
this.defaultKey = key;
|
|
161718
161734
|
this.clear();
|
|
161719
161735
|
this.formData = Object.assign(this.formData, {
|
|
@@ -161726,9 +161742,17 @@ const tagColumns = [{
|
|
|
161726
161742
|
departId: 'applyUserDepart'
|
|
161727
161743
|
}
|
|
161728
161744
|
});
|
|
161745
|
+
if (key === 'relationMatrix') {
|
|
161746
|
+
this.params.assigneeType = taskAssignee.assigneeType;
|
|
161747
|
+
this.params.assigneeVal = taskAssignee.assigneeList && taskAssignee.assigneeList.length > 0 ? taskAssignee.assigneeList.map(item => item.tagId).join(',') : '';
|
|
161748
|
+
} else {
|
|
161749
|
+
this.params.assigneeType = taskAssignee.assigneeType;
|
|
161750
|
+
this.params.assigneeVal = taskAssignee.assigneeVal;
|
|
161751
|
+
}
|
|
161729
161752
|
this.m_tagQuery.tagName = '';
|
|
161730
161753
|
this.tagQuery.tagName = '';
|
|
161731
161754
|
this.getpersonal(); //获取人员列表
|
|
161755
|
+
this.getpersonalUser();
|
|
161732
161756
|
this.getCandidateUsers();
|
|
161733
161757
|
this.getTagList();
|
|
161734
161758
|
if (key == "Assingee") {
|
|
@@ -161773,7 +161797,8 @@ const tagColumns = [{
|
|
|
161773
161797
|
this.setCacheSeletedRows(taskAssignee);
|
|
161774
161798
|
}
|
|
161775
161799
|
(0,manage/* getAction */.s7)("/workflow/getFormUserMap", {
|
|
161776
|
-
formId: formId
|
|
161800
|
+
formId: formId,
|
|
161801
|
+
...this.params
|
|
161777
161802
|
}).then(res => {
|
|
161778
161803
|
if (res.success) {
|
|
161779
161804
|
console.log(this.formData, this.cacheSeletedRows);
|
|
@@ -161806,15 +161831,33 @@ const tagColumns = [{
|
|
|
161806
161831
|
},
|
|
161807
161832
|
//获取个人列表
|
|
161808
161833
|
getpersonal() {
|
|
161809
|
-
|
|
161834
|
+
console.log(this.params);
|
|
161835
|
+
QueryCandidatePersonal({
|
|
161836
|
+
...this.query,
|
|
161837
|
+
...this.params
|
|
161838
|
+
}).then(res => {
|
|
161810
161839
|
this.data = res.result.records;
|
|
161811
161840
|
this.ipagination.total = res.result.total;
|
|
161812
161841
|
});
|
|
161813
161842
|
},
|
|
161843
|
+
getpersonalUser() {
|
|
161844
|
+
(0,manage/* getAction */.s7)("workflow/queryCandidatePersonalUsers", {
|
|
161845
|
+
...this.query,
|
|
161846
|
+
...this.params
|
|
161847
|
+
}).then(res => {
|
|
161848
|
+
if (res.success) {
|
|
161849
|
+
this.data1 = res.result.records;
|
|
161850
|
+
this.ipagination1.total = res.result.total;
|
|
161851
|
+
}
|
|
161852
|
+
});
|
|
161853
|
+
},
|
|
161814
161854
|
//获取候选组
|
|
161815
161855
|
getCandidateUsers(idx) {
|
|
161816
161856
|
this.query2.id = idx;
|
|
161817
|
-
QueryCandidateSet(
|
|
161857
|
+
QueryCandidateSet({
|
|
161858
|
+
...this.query2,
|
|
161859
|
+
...this.params
|
|
161860
|
+
}).then(res => {
|
|
161818
161861
|
this.groupData = res.result.records;
|
|
161819
161862
|
this.ipagination2.total = res.result.total;
|
|
161820
161863
|
});
|
|
@@ -161828,7 +161871,7 @@ const tagColumns = [{
|
|
|
161828
161871
|
(0,manage/* getAction */.s7)('/zhxymatrix/tags/list', Object.assign({}, this.tagQuery, {
|
|
161829
161872
|
pageNo,
|
|
161830
161873
|
pageSize
|
|
161831
|
-
})).then(res => {
|
|
161874
|
+
}, this.params)).then(res => {
|
|
161832
161875
|
this.tagData = res.result.records;
|
|
161833
161876
|
this.tagIpagination.current = res.result.current;
|
|
161834
161877
|
this.tagIpagination.total = res.result.total;
|
|
@@ -161846,6 +161889,13 @@ const tagColumns = [{
|
|
|
161846
161889
|
this.query.pageSize = pagination.pageSize;
|
|
161847
161890
|
this.getpersonal();
|
|
161848
161891
|
},
|
|
161892
|
+
handleTableChange1(pagination, filters, sorter) {
|
|
161893
|
+
//分页、排序、筛选变化时触发
|
|
161894
|
+
this.ipagination1 = pagination;
|
|
161895
|
+
this.query.pageNo = pagination.current;
|
|
161896
|
+
this.query.pageSize = pagination.pageSize;
|
|
161897
|
+
this.getpersonalUser();
|
|
161898
|
+
},
|
|
161849
161899
|
handleTableChange2(pagination, filters, sorter) {
|
|
161850
161900
|
//分页、排序、筛选变化时触发
|
|
161851
161901
|
this.ipagination2 = pagination;
|
|
@@ -161886,6 +161936,7 @@ const tagColumns = [{
|
|
|
161886
161936
|
this.query.pageNo = 1;
|
|
161887
161937
|
this.query2.pageNo = 1;
|
|
161888
161938
|
this.ipagination.current = 1;
|
|
161939
|
+
this.ipagination1.current = 1;
|
|
161889
161940
|
this.ipagination2.current = 1;
|
|
161890
161941
|
let params = {
|
|
161891
161942
|
depId: e
|
|
@@ -161897,8 +161948,10 @@ const tagColumns = [{
|
|
|
161897
161948
|
this.showuser = true;
|
|
161898
161949
|
}
|
|
161899
161950
|
});
|
|
161900
|
-
if (this.defaultKey == "Assingee"
|
|
161951
|
+
if (this.defaultKey == "Assingee") {
|
|
161901
161952
|
this.getpersonal();
|
|
161953
|
+
} else if (this.defaultKey == "CandidateUsers") {
|
|
161954
|
+
this.getpersonalUser();
|
|
161902
161955
|
} else if (this.defaultKey == "CandidateGroups") {
|
|
161903
161956
|
this.getCandidateUsers(e);
|
|
161904
161957
|
}
|
|
@@ -161915,6 +161968,8 @@ const tagColumns = [{
|
|
|
161915
161968
|
this.tagIpagination.current = 1;
|
|
161916
161969
|
this.tagQuery = Object.assign(this.tagQuery, (0,lodash.cloneDeep)(this.m_tagQuery));
|
|
161917
161970
|
this.getTagList();
|
|
161971
|
+
} else if (this.defaultKey === 'CandidateUsers') {
|
|
161972
|
+
this.getpersonalUser();
|
|
161918
161973
|
} else {
|
|
161919
161974
|
this.getpersonal();
|
|
161920
161975
|
}
|
|
@@ -161966,12 +162021,19 @@ const tagColumns = [{
|
|
|
161966
162021
|
this.clear();
|
|
161967
162022
|
this.cacheSeletedRows = [];
|
|
161968
162023
|
this.query.tagName = '';
|
|
161969
|
-
if (activeKey == "Assingee"
|
|
162024
|
+
if (activeKey == "Assingee") {
|
|
161970
162025
|
this.showname = true;
|
|
161971
162026
|
this.query.pageNo = 1;
|
|
161972
162027
|
this.ipagination.current = 1;
|
|
161973
162028
|
this.query.realname = '';
|
|
161974
162029
|
this.getpersonal();
|
|
162030
|
+
} else if (activeKey == "CandidateUsers") {
|
|
162031
|
+
this.showname = true;
|
|
162032
|
+
this.query.pageNo = 1;
|
|
162033
|
+
this.ipagination1.current = 1;
|
|
162034
|
+
this.query.realname = '';
|
|
162035
|
+
this.getpersonalUser();
|
|
162036
|
+
// this.showname = false;
|
|
161975
162037
|
} else if (activeKey == "CandidateGroups") {
|
|
161976
162038
|
this.getCandidateUsers(this.query.depId);
|
|
161977
162039
|
// this.showname = false;
|
|
@@ -162005,6 +162067,14 @@ const tagColumns = [{
|
|
|
162005
162067
|
pageNo: 1,
|
|
162006
162068
|
pageSize: 10
|
|
162007
162069
|
};
|
|
162070
|
+
this.query2 = {
|
|
162071
|
+
pageNo: 1,
|
|
162072
|
+
pageSize: 10
|
|
162073
|
+
};
|
|
162074
|
+
this.params = {
|
|
162075
|
+
assigneeType: '',
|
|
162076
|
+
assigneeVal: ''
|
|
162077
|
+
};
|
|
162008
162078
|
this.ipagination = {
|
|
162009
162079
|
current: 1,
|
|
162010
162080
|
pageSize: 10,
|
|
@@ -162014,6 +162084,24 @@ const tagColumns = [{
|
|
|
162014
162084
|
showQuickJumper: true,
|
|
162015
162085
|
total: 0
|
|
162016
162086
|
};
|
|
162087
|
+
this.ipagination1 = {
|
|
162088
|
+
current: 1,
|
|
162089
|
+
pageSize: 10,
|
|
162090
|
+
showTotal: (total, range) => {
|
|
162091
|
+
return range[0] + "-" + range[1] + " 共" + total + "条";
|
|
162092
|
+
},
|
|
162093
|
+
showQuickJumper: true,
|
|
162094
|
+
total: 0
|
|
162095
|
+
};
|
|
162096
|
+
this.ipagination2 = {
|
|
162097
|
+
current: 1,
|
|
162098
|
+
pageSize: 10,
|
|
162099
|
+
showTotal: (total, range) => {
|
|
162100
|
+
return range[0] + "-" + range[1] + " 共" + total + "条";
|
|
162101
|
+
},
|
|
162102
|
+
showQuickJumper: true,
|
|
162103
|
+
total: 0
|
|
162104
|
+
};
|
|
162017
162105
|
},
|
|
162018
162106
|
handleOk(e) {
|
|
162019
162107
|
let currentVal = "";
|
|
@@ -162072,8 +162160,8 @@ const tagColumns = [{
|
|
|
162072
162160
|
;
|
|
162073
162161
|
var select_type_component = (0,componentNormalizer/* default */.Z)(
|
|
162074
162162
|
flow_select_typevue_type_script_lang_js_,
|
|
162075
|
-
|
|
162076
|
-
|
|
162163
|
+
select_typevue_type_template_id_7da53fb8_render,
|
|
162164
|
+
select_typevue_type_template_id_7da53fb8_staticRenderFns,
|
|
162077
162165
|
false,
|
|
162078
162166
|
null,
|
|
162079
162167
|
null,
|