cloud-web-corejs 1.0.54-dev.294 → 1.0.54-dev.297
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/package.json +1 -1
- package/src/components/errorMsg/mixins.js +89 -5
- package/src/components/tempStorage/index.vue +4 -2
- package/src/components/wf/content.vue +2 -1
- package/src/components/wf/mixins/setCandidateDialog.js +218 -1
- package/src/components/wf/setCandidateDialog.vue +9 -0
- package/src/components/wf/setCandidateDialog2.vue +320 -0
- package/src/components/wf/wf.js +68 -10
- package/src/components/wf/wfStartDialog.vue +70 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +136 -0
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +2 -0
- package/src/utils/index.js +575 -5
- package/src/views/user/position/edit.vue +2 -2
- package/src/views/user/wf/wf_obj_config/list.vue +1 -1
@@ -0,0 +1,136 @@
|
|
1
|
+
<template>
|
2
|
+
<el-dialog
|
3
|
+
:title="$t1('候选人列表')"
|
4
|
+
:append-to-body="true"
|
5
|
+
:modal-append-to-body="true"
|
6
|
+
:close-on-click-modal="falseValue"
|
7
|
+
:visible.sync="showDialog"
|
8
|
+
:modal="falseValue"
|
9
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
10
|
+
width="1200px"
|
11
|
+
@close="dialogClose"
|
12
|
+
v-el-drag-dialog
|
13
|
+
v-el-dialog-center
|
14
|
+
>
|
15
|
+
<div class="cont" style="height:450px">
|
16
|
+
<vxe-grid
|
17
|
+
class="is-pointer"
|
18
|
+
ref="table-m1"
|
19
|
+
:data="tableData"
|
20
|
+
v-bind="vxeOption"
|
21
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
22
|
+
@custom="$vxeTableUtil.customHandle"
|
23
|
+
@checkbox-change="addDataTable"
|
24
|
+
@checkbox-all="checkAll"
|
25
|
+
@cell-dblclick="checkWithSubmit"
|
26
|
+
></vxe-grid>
|
27
|
+
</div>
|
28
|
+
<label id="labBtn" class="transverse">
|
29
|
+
<div class="icon">
|
30
|
+
<i class="el-icon-more"></i>
|
31
|
+
<i class="el-icon-more"></i>
|
32
|
+
</div>
|
33
|
+
</label>
|
34
|
+
<div class="multipleChoice">
|
35
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('全部删除')" placement="top"><a
|
36
|
+
class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
|
37
|
+
<div class="list">
|
38
|
+
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
39
|
+
<p>{{ checkRow.nickName }}</p>
|
40
|
+
<a class="el-icon-close" @click="clearTable1Select(index)"></a>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
<span slot="footer" class="dialog-footer">
|
45
|
+
<span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
|
46
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
47
|
+
<i class="el-icon-close el-icon"></i>
|
48
|
+
{{ $t1('取 消') }}
|
49
|
+
</el-button>
|
50
|
+
<el-button type="primary" @click="dialogPrimary" class="button-sty">
|
51
|
+
<i class="el-icon-check el-icon"></i>
|
52
|
+
{{ $t1('确 定') }}
|
53
|
+
</el-button>
|
54
|
+
</span>
|
55
|
+
</el-dialog>
|
56
|
+
</template>
|
57
|
+
|
58
|
+
<script>
|
59
|
+
import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
60
|
+
|
61
|
+
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
|
+
};
|
80
|
+
},
|
81
|
+
methods: {
|
82
|
+
initTableM1() {
|
83
|
+
this.tableData = this.$baseLodash.cloneDeep(this.rangeTableDatas || []);
|
84
|
+
let that = this;
|
85
|
+
let tableOption = {
|
86
|
+
vue: that,
|
87
|
+
tableRef: 'table-m1',
|
88
|
+
tableName: 'wf_task_user_range_dialog-m1',
|
89
|
+
/*path: this.current_prefix + '/wf_task_user_range/list',
|
90
|
+
param: () => {
|
91
|
+
return {
|
92
|
+
modelId:this.modelId,
|
93
|
+
taskDefinitionKey:this.taskDefinitionKey,
|
94
|
+
}
|
95
|
+
}, */
|
96
|
+
columns: [
|
97
|
+
{type: 'checkbox', fixed: 'left', width: 48, resizable: false},
|
98
|
+
{
|
99
|
+
title: this.$t1('候选人姓名'),
|
100
|
+
field: 'nickName',
|
101
|
+
width: 250,
|
102
|
+
fixed: 'left'
|
103
|
+
},
|
104
|
+
{
|
105
|
+
field: 'userId',
|
106
|
+
title: this.$t1('候选人ID'),
|
107
|
+
width: 250
|
108
|
+
},
|
109
|
+
{
|
110
|
+
width: 47,
|
111
|
+
fixed: 'right',
|
112
|
+
title: '',
|
113
|
+
sortable: false
|
114
|
+
}
|
115
|
+
],
|
116
|
+
config: {
|
117
|
+
checkboxConfig: {
|
118
|
+
checkStrictly: true,
|
119
|
+
showHeader: this.selectMulti,
|
120
|
+
trigger: 'row'
|
121
|
+
},
|
122
|
+
/* proxyConfig: {
|
123
|
+
props: {
|
124
|
+
result: "objx",
|
125
|
+
total: "objx.length",
|
126
|
+
}
|
127
|
+
} */
|
128
|
+
}
|
129
|
+
};
|
130
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
131
|
+
that.vxeOption = opts;
|
132
|
+
});
|
133
|
+
}
|
134
|
+
}
|
135
|
+
};
|
136
|
+
</script>
|