cloud-web-corejs 1.0.54-dev.325 → 1.0.54-dev.327

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.
@@ -57,84 +57,9 @@
57
57
 
58
58
  <script>
59
59
  import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
60
+ import mixin from "./mixins/wfTaskUserRangeDialog";
60
61
 
61
62
  export default {
62
- props: ['visiable', 'multi', 'rows','rangeTableDatas', 'param','current_prefix','modelId','taskDefinitionKey'],
63
- mixins: [selectDialogMixins],
64
- created() {
65
- this.initSetting();
66
- },
67
- mounted() {
68
- this.initTableM1();
69
- },
70
- data() {
71
- var that = this;
72
- return {
73
- showDialog: true,
74
- falseValue: false,
75
- selectMulti: true,
76
- formData: {},
77
- vxeOption: {},
78
- tableData: [],
79
- fieldKey:"userId"
80
- };
81
- },
82
- methods: {
83
- initTableM1() {
84
- this.tableData = this.$baseLodash.cloneDeep(this.rangeTableDatas || []);
85
- let that = this;
86
- let tableOption = {
87
- vue: that,
88
- tableRef: 'table-m1',
89
- tableName: 'wf_task_user_range_dialog-m1',
90
- /*path: this.current_prefix + '/wf_task_user_range/list',
91
- param: () => {
92
- return {
93
- modelId:this.modelId,
94
- taskDefinitionKey:this.taskDefinitionKey,
95
- }
96
- }, */
97
- columns: [
98
- {type: 'checkbox', fixed: 'left', width: 48, resizable: false},
99
- {
100
- title: this.$t1('候选人姓名'),
101
- field: 'nickName',
102
- width: 250,
103
- fixed: 'left'
104
- },
105
- {
106
- width: 47,
107
- fixed: 'right',
108
- title: '',
109
- sortable: false
110
- }
111
- ],
112
- config: {
113
- checkboxConfig: {
114
- checkStrictly: true,
115
- showHeader: this.selectMulti,
116
- trigger: 'row'
117
- },
118
- /* proxyConfig: {
119
- props: {
120
- result: "objx",
121
- total: "objx.length",
122
- }
123
- } */
124
- }
125
- };
126
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
127
- that.vxeOption = opts;
128
- });
129
- },
130
- confirmDialog(){
131
- let checkRows = this.checkRows;
132
- if(!checkRows.length){
133
- this.$baseAlert(this.$t1("请选择候选人"));
134
- return
135
- }
136
- this.dialogPrimary(checkRows)
137
- }
138
- }
63
+ mixins: [selectDialogMixins,mixin]
139
64
  };
140
65
  </script>