cloud-web-corejs 1.0.229 → 1.0.230
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
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
>
|
|
47
47
|
<i
|
|
48
48
|
class="iconfont icon-liuchengdaiban"
|
|
49
|
-
@click="
|
|
49
|
+
@click="toWorkflowManage()"
|
|
50
50
|
/>
|
|
51
51
|
</el-tooltip>
|
|
52
52
|
</div>
|
|
@@ -264,6 +264,7 @@ import extractedCodeCreateDialog from "../extractedCode/createDialog.vue";
|
|
|
264
264
|
import extractedCodeQueryDialog from "../extractedCode/queryDialog.vue";
|
|
265
265
|
import { getBdFlag } from "@base/api/user";
|
|
266
266
|
import createCompanyDialog from "@base/layout/components/createCompany/createCompanyDialog.vue";
|
|
267
|
+
import { getLogicParamValue } from "@base/api/user";
|
|
267
268
|
|
|
268
269
|
export default {
|
|
269
270
|
props: {
|
|
@@ -312,6 +313,7 @@ export default {
|
|
|
312
313
|
showExtractedCodeQueryDialog: false,
|
|
313
314
|
isDev: false,
|
|
314
315
|
showCreateCompanyDialog: false,
|
|
316
|
+
workflowManageRoute: "",
|
|
315
317
|
};
|
|
316
318
|
},
|
|
317
319
|
computed: {
|
|
@@ -367,8 +369,23 @@ export default {
|
|
|
367
369
|
initPddLog(); //初始化拼多多日志
|
|
368
370
|
this.initIsFormDev();
|
|
369
371
|
this.getBdEnv();
|
|
372
|
+
//初始化流程待办路由
|
|
373
|
+
this.initWorkflowManageRoute();
|
|
370
374
|
},
|
|
371
375
|
methods: {
|
|
376
|
+
initWorkflowManageRoute() {
|
|
377
|
+
//初始化流程待办路由
|
|
378
|
+
getLogicParamValue({
|
|
379
|
+
data: { paramCode: "workflowManageRoute" },
|
|
380
|
+
success: (res) => {
|
|
381
|
+
let value = res?.objx;
|
|
382
|
+
this.workflowManageRoute = value || "/basic/wf/wf_manage/list";
|
|
383
|
+
},
|
|
384
|
+
});
|
|
385
|
+
},
|
|
386
|
+
toWorkflowManage() {
|
|
387
|
+
this.$router.push(this.workflowManageRoute);
|
|
388
|
+
},
|
|
372
389
|
getBdEnv() {
|
|
373
390
|
getBdFlag({
|
|
374
391
|
success: (res) => {
|
|
@@ -3,88 +3,141 @@
|
|
|
3
3
|
<el-row>
|
|
4
4
|
<el-col :span="8">
|
|
5
5
|
<div class="i-user-info">
|
|
6
|
-
<img class="img" v-if="headPhotoUrl" :src="headPhotoUrl"/>
|
|
7
|
-
<p class="name">{{ $t1(
|
|
6
|
+
<img class="img" v-if="headPhotoUrl" :src="headPhotoUrl" />
|
|
7
|
+
<p class="name">{{ $t1("您好") }},{{ userInfo.nickName }}</p>
|
|
8
8
|
<p>{{ companyInfo.companyName }}</p>
|
|
9
9
|
</div>
|
|
10
10
|
<div class="notice-box">
|
|
11
11
|
<div class="txt" @click="openMoreNotifyMessage()">
|
|
12
12
|
<i class="iconfont icon-xiaoxitongzhi"></i>
|
|
13
|
-
<span
|
|
14
|
-
|
|
13
|
+
<span
|
|
14
|
+
v-if="unreadMessageNum > 0"
|
|
15
|
+
v-html="
|
|
16
|
+
$t1('您 有{number}条 未读消息,请及时查看。', {
|
|
17
|
+
number: `<b>${
|
|
18
|
+
unreadMessageNum > 99 ? '99+' : unreadMessageNum
|
|
19
|
+
}</b>`,
|
|
20
|
+
})
|
|
21
|
+
"
|
|
22
|
+
>
|
|
15
23
|
</span>
|
|
16
|
-
<span v-else-if="unreadMessageNum==0">
|
|
17
|
-
|
|
24
|
+
<span v-else-if="unreadMessageNum == 0">
|
|
25
|
+
{{ $t1("您 暂无 未读消息。") }}
|
|
18
26
|
</span>
|
|
19
27
|
</div>
|
|
20
|
-
<el-tooltip
|
|
21
|
-
|
|
28
|
+
<el-tooltip
|
|
29
|
+
class="item"
|
|
30
|
+
effect="dark"
|
|
31
|
+
:content="$t1('刷新')"
|
|
32
|
+
placement="top"
|
|
33
|
+
>
|
|
34
|
+
<el-button type="text" @click="getUnreadMessageNum(true)"
|
|
35
|
+
><i class="el-icon-refresh"></i
|
|
36
|
+
></el-button>
|
|
22
37
|
</el-tooltip>
|
|
23
|
-
<el-tooltip
|
|
24
|
-
|
|
38
|
+
<el-tooltip
|
|
39
|
+
class="item"
|
|
40
|
+
effect="dark"
|
|
41
|
+
:content="$t1('查看更多')"
|
|
42
|
+
placement="top"
|
|
43
|
+
>
|
|
44
|
+
<el-button
|
|
45
|
+
type="text"
|
|
46
|
+
@click="openMoreNotifyMessage()"
|
|
47
|
+
class="more"
|
|
48
|
+
>
|
|
25
49
|
<i class="el-icon-news"></i>
|
|
26
50
|
</el-button>
|
|
27
51
|
</el-tooltip>
|
|
28
52
|
</div>
|
|
29
53
|
<el-card class="box-card">
|
|
30
54
|
<div slot="header" class="clearfix">
|
|
31
|
-
<span style="float:left">
|
|
55
|
+
<span style="float: left">
|
|
32
56
|
<i class="el-icon-chat-line-round ico"></i>
|
|
33
|
-
{{ $t1(
|
|
57
|
+
{{ $t1("公告") }}
|
|
34
58
|
</span>
|
|
35
|
-
<el-button type="text" @click="openSystemNoticeDialog()"
|
|
59
|
+
<el-button type="text" @click="openSystemNoticeDialog()"
|
|
60
|
+
><span class="more">MORE+</span></el-button
|
|
61
|
+
>
|
|
36
62
|
</div>
|
|
37
63
|
<div class="home-notice-list">
|
|
38
|
-
<div
|
|
39
|
-
|
|
40
|
-
|
|
64
|
+
<div
|
|
65
|
+
v-for="(systemNotice, index) in systemNotices"
|
|
66
|
+
:key="index"
|
|
67
|
+
class="item"
|
|
68
|
+
@click="openSystemNoticeDialog(systemNotice)"
|
|
69
|
+
:title="systemNotice.title"
|
|
70
|
+
>
|
|
41
71
|
{{ systemNotice.title }}
|
|
42
|
-
<span class="time">{{
|
|
72
|
+
<span class="time">{{
|
|
73
|
+
systemNotice.modifyDate.substring(0, 10)
|
|
74
|
+
}}</span>
|
|
43
75
|
</div>
|
|
44
76
|
</div>
|
|
45
77
|
</el-card>
|
|
46
78
|
</el-col>
|
|
47
|
-
<el-col :span="homeConfig.toDoSpan || 16" style="padding-left:6px
|
|
79
|
+
<el-col :span="homeConfig.toDoSpan || 16" style="padding-left: 6px">
|
|
48
80
|
<el-card class="box-card">
|
|
49
81
|
<div slot="header" class="clearfix">
|
|
50
|
-
<span style="float:left">
|
|
82
|
+
<span style="float: left">
|
|
51
83
|
<i class="el-icon-chat-line-round ico"></i>
|
|
52
|
-
{{ $t1(
|
|
84
|
+
{{ $t1("待办事项") }}
|
|
53
85
|
</span>
|
|
54
|
-
<el-tooltip
|
|
55
|
-
|
|
86
|
+
<el-tooltip
|
|
87
|
+
class="item"
|
|
88
|
+
effect="dark"
|
|
89
|
+
:content="$t1('刷新')"
|
|
90
|
+
placement="top"
|
|
91
|
+
>
|
|
92
|
+
<el-button
|
|
93
|
+
type="text"
|
|
94
|
+
@click="getWfInfoList(true)"
|
|
95
|
+
class="more"
|
|
96
|
+
style="right: 107px"
|
|
97
|
+
>
|
|
56
98
|
<i class="el-icon-refresh"></i>
|
|
57
99
|
</el-button>
|
|
58
100
|
</el-tooltip>
|
|
59
|
-
<el-button type="text" @click="
|
|
101
|
+
<el-button type="text" @click="toWorkflowManage()" class="more">
|
|
60
102
|
<i class="el-icon-news"></i>
|
|
61
|
-
<span>{{ $t1(
|
|
103
|
+
<span>{{ $t1("查看更多+") }}</span>
|
|
62
104
|
</el-button>
|
|
63
105
|
</div>
|
|
64
106
|
<div class="need-to">
|
|
65
|
-
<vxe-grid
|
|
66
|
-
|
|
67
|
-
|
|
107
|
+
<vxe-grid
|
|
108
|
+
:data="unDoWfRows"
|
|
109
|
+
ref="table-wf"
|
|
110
|
+
v-bind="wfOption"
|
|
111
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
112
|
+
@custom="$vxeTableUtil.customHandle"
|
|
113
|
+
></vxe-grid>
|
|
68
114
|
</div>
|
|
69
115
|
</el-card>
|
|
70
116
|
</el-col>
|
|
71
117
|
</el-row>
|
|
72
118
|
<el-row>
|
|
73
|
-
<el-col :span="24" v-show="homeConfig.showFastTrack!==false">
|
|
119
|
+
<el-col :span="24" v-show="homeConfig.showFastTrack !== false">
|
|
74
120
|
<el-card class="box-card">
|
|
75
121
|
<div slot="header" class="clearfix">
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<el-button type="text" @click="showCommMenuDialog = true"
|
|
122
|
+
<span style="float: left">
|
|
123
|
+
<i class="el-icon-star-off ico"></i>
|
|
124
|
+
{{ $t1("快捷通道") }}
|
|
125
|
+
</span>
|
|
126
|
+
<el-button type="text" @click="showCommMenuDialog = true"
|
|
127
|
+
><span class="more">MORE+</span></el-button
|
|
128
|
+
>
|
|
81
129
|
</div>
|
|
82
130
|
<div class="fast-box">
|
|
83
131
|
<div class="item" v-for="commMenu in commMenus" :key="commMenu.id">
|
|
84
132
|
<a href="javascript:void(0);" @click="rourteTo(commMenu)">
|
|
85
|
-
<p
|
|
86
|
-
|
|
87
|
-
|
|
133
|
+
<p>
|
|
134
|
+
<i
|
|
135
|
+
:class="
|
|
136
|
+
!!commMenu.menuImg ? 'iconfont ' + commMenu.menuImg : null
|
|
137
|
+
"
|
|
138
|
+
></i
|
|
139
|
+
><span>{{ commMenu.menuName }}</span>
|
|
140
|
+
</p>
|
|
88
141
|
</a>
|
|
89
142
|
</div>
|
|
90
143
|
</div>
|
|
@@ -131,20 +184,33 @@
|
|
|
131
184
|
</el-col> -->
|
|
132
185
|
</el-row>
|
|
133
186
|
<slot></slot>
|
|
134
|
-
<systemNoticeInfoDialog
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
187
|
+
<systemNoticeInfoDialog
|
|
188
|
+
v-if="showSystemNoticeInfoDialog"
|
|
189
|
+
:visiable.sync="showSystemNoticeInfoDialog"
|
|
190
|
+
:param="csnRow"
|
|
191
|
+
:appendToTop="true"
|
|
192
|
+
></systemNoticeInfoDialog>
|
|
193
|
+
|
|
194
|
+
<commMenuDialog
|
|
195
|
+
v-if="showCommMenuDialog"
|
|
196
|
+
:visiable.sync="showCommMenuDialog"
|
|
197
|
+
@confirm="commMenuCallBack"
|
|
198
|
+
></commMenuDialog>
|
|
199
|
+
<wfContentDialog
|
|
200
|
+
v-if="showWfDialog"
|
|
201
|
+
:visible.sync="showWfDialog"
|
|
202
|
+
@close="wfClose"
|
|
203
|
+
:option.sync="wfContentOption"
|
|
204
|
+
></wfContentDialog>
|
|
141
205
|
|
|
142
206
|
<notifyMessageDialog ref="notifyMessageDialog"></notifyMessageDialog>
|
|
143
207
|
|
|
144
|
-
<notifyMessageInfoDialog
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
208
|
+
<notifyMessageInfoDialog
|
|
209
|
+
v-if="showNoticeDialog"
|
|
210
|
+
:visiable.sync="showNoticeDialog"
|
|
211
|
+
:dataId.sync="notifyMessageInfoId"
|
|
212
|
+
@readHanlde="notifyMessageReadHanlde"
|
|
213
|
+
></notifyMessageInfoDialog>
|
|
148
214
|
|
|
149
215
|
<el-dialog
|
|
150
216
|
:title="$t1('选择分组')"
|
|
@@ -159,39 +225,40 @@
|
|
|
159
225
|
:destroy-on-close="true"
|
|
160
226
|
>
|
|
161
227
|
<div class="cont group-list">
|
|
162
|
-
<div
|
|
163
|
-
|
|
228
|
+
<div
|
|
229
|
+
class="item"
|
|
230
|
+
v-for="(notifyTemplate, index) in notifyTemplates"
|
|
231
|
+
:key="index"
|
|
232
|
+
@click="openMoreNotifyMessage(notifyTemplate.notifyType)"
|
|
233
|
+
>
|
|
164
234
|
<i class="iconfont icon-fenzu"></i>
|
|
165
235
|
<span class="name">{{ notifyTemplate.ntName }}</span>
|
|
166
236
|
<!-- <span class="nums">99+</span>-->
|
|
167
237
|
</div>
|
|
168
238
|
</div>
|
|
169
239
|
</el-dialog>
|
|
170
|
-
|
|
171
240
|
</div>
|
|
172
241
|
</template>
|
|
173
242
|
|
|
174
243
|
<script>
|
|
175
|
-
import systemNoticeInfoDialog from
|
|
176
|
-
import commMenuDialog from
|
|
177
|
-
import notifyMessageDialog from
|
|
178
|
-
import notifyMessageInfoDialog from
|
|
244
|
+
import systemNoticeInfoDialog from "@base/views/user/system_notice/infoDialog.vue";
|
|
245
|
+
import commMenuDialog from "@base/views/user/commMenu/index.vue";
|
|
246
|
+
import notifyMessageDialog from "@base/views/user/notify_message/dialog.vue";
|
|
247
|
+
import notifyMessageInfoDialog from "@base/views/user/notify_message/infoDialog";
|
|
179
248
|
|
|
180
|
-
import {getToken} from "@base/utils/auth";
|
|
249
|
+
import { getToken } from "@base/utils/auth";
|
|
181
250
|
import wfContentDialog from "@base/views/user/wf/wf_manage/wfContentDialog";
|
|
182
251
|
import corejsConfig from "@/corejsConfig";
|
|
252
|
+
import { getLogicParamValue } from "@base/api/user";
|
|
183
253
|
|
|
184
254
|
export default {
|
|
185
|
-
name:
|
|
186
|
-
props: {
|
|
187
|
-
wf_manage_url: String
|
|
188
|
-
},
|
|
255
|
+
name: "home",
|
|
189
256
|
components: {
|
|
190
257
|
systemNoticeInfoDialog,
|
|
191
258
|
commMenuDialog,
|
|
192
259
|
notifyMessageDialog,
|
|
193
260
|
notifyMessageInfoDialog,
|
|
194
|
-
wfContentDialog
|
|
261
|
+
wfContentDialog,
|
|
195
262
|
},
|
|
196
263
|
data() {
|
|
197
264
|
return {
|
|
@@ -203,7 +270,7 @@ export default {
|
|
|
203
270
|
systemNotices: [],
|
|
204
271
|
showSystemNoticeInfoDialog: false,
|
|
205
272
|
csnRow: null,
|
|
206
|
-
headPhotoUrl:
|
|
273
|
+
headPhotoUrl: "",
|
|
207
274
|
dialogVisible: true,
|
|
208
275
|
unDoWfRows: [],
|
|
209
276
|
wfOption: {},
|
|
@@ -211,7 +278,7 @@ export default {
|
|
|
211
278
|
wfContentOption: {},
|
|
212
279
|
showWfContent: true,
|
|
213
280
|
wfContent: null,
|
|
214
|
-
wfDataId:
|
|
281
|
+
wfDataId: "",
|
|
215
282
|
showCommMenuDialog: false,
|
|
216
283
|
commMenus: [],
|
|
217
284
|
notifyMessages: [],
|
|
@@ -220,7 +287,7 @@ export default {
|
|
|
220
287
|
unreadMessageNum: 0,
|
|
221
288
|
activating: true,
|
|
222
289
|
wfTimer: null,
|
|
223
|
-
homeConfig: corejsConfig.homeConfig || {}
|
|
290
|
+
homeConfig: corejsConfig.homeConfig || {},
|
|
224
291
|
};
|
|
225
292
|
},
|
|
226
293
|
activated() {
|
|
@@ -242,8 +309,23 @@ export default {
|
|
|
242
309
|
this.initNotifyMessage();
|
|
243
310
|
this.initWfParam();
|
|
244
311
|
this.initWfTimer();
|
|
312
|
+
//初始化流程待办路由
|
|
313
|
+
this.initWorkflowManageRoute();
|
|
245
314
|
},
|
|
246
315
|
methods: {
|
|
316
|
+
initWorkflowManageRoute() {
|
|
317
|
+
//初始化流程待办路由
|
|
318
|
+
getLogicParamValue({
|
|
319
|
+
data: { paramCode: "workflowManageRoute" },
|
|
320
|
+
success: (res) => {
|
|
321
|
+
let value = res?.objx;
|
|
322
|
+
this.workflowManageRoute = value || "/basic/wf/wf_manage/list";
|
|
323
|
+
},
|
|
324
|
+
});
|
|
325
|
+
},
|
|
326
|
+
toWorkflowManage() {
|
|
327
|
+
this.$router.push(this.workflowManageRoute);
|
|
328
|
+
},
|
|
247
329
|
wfClose() {
|
|
248
330
|
this.timerExcFun(true);
|
|
249
331
|
},
|
|
@@ -259,7 +341,7 @@ export default {
|
|
|
259
341
|
}
|
|
260
342
|
this.getWfInfoList(isLoading);
|
|
261
343
|
this.getUnreadMessageNum(isLoading);
|
|
262
|
-
this.$emit(
|
|
344
|
+
this.$emit("timerHandle");
|
|
263
345
|
},
|
|
264
346
|
clearTimer() {
|
|
265
347
|
clearInterval(this.wfTimer);
|
|
@@ -267,31 +349,34 @@ export default {
|
|
|
267
349
|
},
|
|
268
350
|
getUserInfo() {
|
|
269
351
|
this.$http({
|
|
270
|
-
url: USER_PREFIX +
|
|
271
|
-
method:
|
|
272
|
-
success: res => {
|
|
352
|
+
url: USER_PREFIX + "/user/currentUser",
|
|
353
|
+
method: "post",
|
|
354
|
+
success: (res) => {
|
|
273
355
|
let userInfo = res.objx;
|
|
274
|
-
this.headPhotoUrl = userInfo.headPhotoUrl
|
|
356
|
+
this.headPhotoUrl = userInfo.headPhotoUrl
|
|
357
|
+
? userInfo.headPhotoUrl
|
|
358
|
+
: require("@/resources/images" + "/default-header.png");
|
|
275
359
|
|
|
276
360
|
this.userInfo = userInfo;
|
|
277
|
-
}
|
|
361
|
+
},
|
|
278
362
|
});
|
|
279
363
|
this.$http({
|
|
280
|
-
url: USER_PREFIX +
|
|
364
|
+
url: USER_PREFIX + "/company_info/getCurrent",
|
|
281
365
|
method: `post`,
|
|
282
|
-
success: res => {
|
|
366
|
+
success: (res) => {
|
|
283
367
|
this.companyInfo = res.objx || {};
|
|
284
|
-
}
|
|
368
|
+
},
|
|
285
369
|
});
|
|
286
370
|
},
|
|
287
371
|
initSystemNotice() {
|
|
288
372
|
this.$http({
|
|
289
|
-
url: USER_PREFIX +
|
|
290
|
-
data: {publish: true, searchCount: false},
|
|
291
|
-
method:
|
|
292
|
-
success: res => {
|
|
293
|
-
this.systemNotices =
|
|
294
|
-
|
|
373
|
+
url: USER_PREFIX + "/system_notice/listPage",
|
|
374
|
+
data: { publish: true, searchCount: false },
|
|
375
|
+
method: "post",
|
|
376
|
+
success: (res) => {
|
|
377
|
+
this.systemNotices =
|
|
378
|
+
res.objx && res.objx.records ? res.objx.records : [];
|
|
379
|
+
},
|
|
295
380
|
});
|
|
296
381
|
},
|
|
297
382
|
openSystemNoticeDialog(row) {
|
|
@@ -300,72 +385,76 @@ export default {
|
|
|
300
385
|
},
|
|
301
386
|
initUnDoWfInfo() {
|
|
302
387
|
this.$http({
|
|
303
|
-
url: AGILEBPM_PREFIX +
|
|
304
|
-
data: {type: 0, searchCount: false},
|
|
305
|
-
method:
|
|
306
|
-
success: res => {
|
|
388
|
+
url: AGILEBPM_PREFIX + "/wf_manage/listPage",
|
|
389
|
+
data: { type: 0, searchCount: false },
|
|
390
|
+
method: "post",
|
|
391
|
+
success: (res) => {
|
|
307
392
|
this.unDoWfRows = res.objx.records || [];
|
|
308
|
-
}
|
|
393
|
+
},
|
|
309
394
|
});
|
|
310
395
|
},
|
|
311
396
|
initWfTableList() {
|
|
312
397
|
let that = this;
|
|
313
|
-
let paramColumns = this.wfParamDTOs.map(item => {
|
|
398
|
+
let paramColumns = this.wfParamDTOs.map((item) => {
|
|
314
399
|
return {
|
|
315
400
|
title: this.$t1(item.paramName),
|
|
316
401
|
field: item.paramKey,
|
|
317
|
-
width: 150
|
|
402
|
+
width: 150,
|
|
318
403
|
};
|
|
319
|
-
})
|
|
320
|
-
var statuses = {
|
|
404
|
+
});
|
|
405
|
+
var statuses = {
|
|
406
|
+
running: this.$t1("审核中"),
|
|
407
|
+
back: this.$t1("已驳回"),
|
|
408
|
+
end: this.$t1("已完成"),
|
|
409
|
+
};
|
|
321
410
|
let tableOption = {
|
|
322
411
|
vue: this,
|
|
323
|
-
tableRef:
|
|
324
|
-
tableName:
|
|
412
|
+
tableRef: "table-wf",
|
|
413
|
+
tableName: "home-table-wf",
|
|
325
414
|
config: {
|
|
326
|
-
height:
|
|
415
|
+
height: "auto",
|
|
327
416
|
},
|
|
328
417
|
columns: [
|
|
329
|
-
{type:
|
|
418
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
330
419
|
{
|
|
331
|
-
title: this.$t1(
|
|
332
|
-
field:
|
|
420
|
+
title: this.$t1("单据类型"),
|
|
421
|
+
field: "objTypeName",
|
|
333
422
|
width: 150,
|
|
334
|
-
fixed:
|
|
423
|
+
fixed: "left",
|
|
335
424
|
},
|
|
336
425
|
{
|
|
337
|
-
title: this.$t1(
|
|
338
|
-
field:
|
|
339
|
-
width: 150
|
|
426
|
+
title: this.$t1("流程主题"),
|
|
427
|
+
field: "name",
|
|
428
|
+
width: 150,
|
|
340
429
|
},
|
|
341
430
|
{
|
|
342
|
-
title: this.$t1(
|
|
343
|
-
field:
|
|
344
|
-
width: 150
|
|
431
|
+
title: this.$t1("启动人"),
|
|
432
|
+
field: "starterName",
|
|
433
|
+
width: 150,
|
|
345
434
|
},
|
|
346
435
|
{
|
|
347
|
-
title: this.$t1(
|
|
348
|
-
field:
|
|
349
|
-
width: 150
|
|
436
|
+
title: this.$t1("当前任务"),
|
|
437
|
+
field: "taskName",
|
|
438
|
+
width: 150,
|
|
350
439
|
},
|
|
351
440
|
{
|
|
352
|
-
title: this.$t1(
|
|
353
|
-
field:
|
|
354
|
-
width: 150
|
|
441
|
+
title: this.$t1("当前任务用户"),
|
|
442
|
+
field: "candidateNames",
|
|
443
|
+
width: 150,
|
|
355
444
|
},
|
|
356
445
|
{
|
|
357
|
-
title: this.$t1(
|
|
358
|
-
field:
|
|
359
|
-
width: 150
|
|
446
|
+
title: this.$t1("启动时间"),
|
|
447
|
+
field: "createDate",
|
|
448
|
+
width: 150,
|
|
360
449
|
},
|
|
361
450
|
...paramColumns,
|
|
362
451
|
{
|
|
363
452
|
width: 47,
|
|
364
|
-
fixed:
|
|
365
|
-
title:
|
|
453
|
+
fixed: "right",
|
|
454
|
+
title: "",
|
|
366
455
|
sortable: false,
|
|
367
456
|
slots: {
|
|
368
|
-
default: ({row}) => {
|
|
457
|
+
default: ({ row }) => {
|
|
369
458
|
return [
|
|
370
459
|
<a
|
|
371
460
|
href="javascript:void(0);"
|
|
@@ -374,18 +463,23 @@ export default {
|
|
|
374
463
|
this.openWfDialog(row);
|
|
375
464
|
}}
|
|
376
465
|
>
|
|
377
|
-
<el-tooltip
|
|
378
|
-
|
|
379
|
-
|
|
466
|
+
<el-tooltip
|
|
467
|
+
enterable={false}
|
|
468
|
+
effect="dark"
|
|
469
|
+
content={this.$t1("查看")}
|
|
470
|
+
placement="top"
|
|
471
|
+
popper-class="tooltip-skin"
|
|
472
|
+
>
|
|
473
|
+
<i class="el-icon-edit" />
|
|
380
474
|
</el-tooltip>
|
|
381
|
-
</a
|
|
475
|
+
</a>,
|
|
382
476
|
];
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
]
|
|
477
|
+
},
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
],
|
|
387
481
|
};
|
|
388
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
482
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
389
483
|
this.wfOption = opts;
|
|
390
484
|
});
|
|
391
485
|
},
|
|
@@ -394,7 +488,7 @@ export default {
|
|
|
394
488
|
objId: row.objId,
|
|
395
489
|
url: row.url,
|
|
396
490
|
objTypeCode: row.objTypeCode,
|
|
397
|
-
formCode: row.formCode
|
|
491
|
+
formCode: row.formCode,
|
|
398
492
|
};
|
|
399
493
|
this.showWfDialog = true;
|
|
400
494
|
},
|
|
@@ -403,22 +497,23 @@ export default {
|
|
|
403
497
|
},
|
|
404
498
|
initCommMenu() {
|
|
405
499
|
this.$http({
|
|
406
|
-
url: USER_PREFIX +
|
|
407
|
-
data: {longOne: 0},
|
|
408
|
-
method:
|
|
409
|
-
}).then(resultMsg => {
|
|
500
|
+
url: USER_PREFIX + "/comm_menu/currentList",
|
|
501
|
+
data: { longOne: 0 },
|
|
502
|
+
method: "POST",
|
|
503
|
+
}).then((resultMsg) => {
|
|
410
504
|
this.commMenus = resultMsg.objx || [];
|
|
411
505
|
});
|
|
412
506
|
},
|
|
413
507
|
initNotifyMessage() {
|
|
414
|
-
return
|
|
508
|
+
return;
|
|
415
509
|
this.$http({
|
|
416
|
-
url: USER_PREFIX +
|
|
417
|
-
data: {searchCount: false},
|
|
418
|
-
method:
|
|
419
|
-
success: res => {
|
|
420
|
-
this.notifyMessages =
|
|
421
|
-
|
|
510
|
+
url: USER_PREFIX + "/notify_message/listPage",
|
|
511
|
+
data: { searchCount: false },
|
|
512
|
+
method: "post",
|
|
513
|
+
success: (res) => {
|
|
514
|
+
this.notifyMessages =
|
|
515
|
+
res.objx && res.objx.records ? res.objx.records : [];
|
|
516
|
+
},
|
|
422
517
|
});
|
|
423
518
|
},
|
|
424
519
|
openNotifyMessageDialog(row) {
|
|
@@ -429,12 +524,12 @@ export default {
|
|
|
429
524
|
}
|
|
430
525
|
},
|
|
431
526
|
openMoreNotifyMessage(notifyType) {
|
|
432
|
-
let data = {notifyType:
|
|
527
|
+
let data = { notifyType: notifyType || "" };
|
|
433
528
|
let view = {
|
|
434
|
-
name:
|
|
435
|
-
query: data
|
|
529
|
+
name: "notify_message:list",
|
|
530
|
+
query: data,
|
|
436
531
|
};
|
|
437
|
-
this.$store.dispatch(
|
|
532
|
+
this.$store.dispatch("tagsView/delCachedView", view).then(() => {
|
|
438
533
|
this.$router.replace(view);
|
|
439
534
|
});
|
|
440
535
|
|
|
@@ -454,31 +549,32 @@ export default {
|
|
|
454
549
|
this.$http({
|
|
455
550
|
url: USER_PREFIX + `/notify_template/listPage`,
|
|
456
551
|
method: `post`,
|
|
457
|
-
data: {searchCount: false},
|
|
552
|
+
data: { searchCount: false },
|
|
458
553
|
isLoading: true,
|
|
459
554
|
// loadingTarget: document.body,
|
|
460
|
-
success: res => {
|
|
461
|
-
this.notifyTemplates =
|
|
555
|
+
success: (res) => {
|
|
556
|
+
this.notifyTemplates =
|
|
557
|
+
res.objx && res.objx.records ? res.objx.records : [];
|
|
462
558
|
this.showGroupDialog = true;
|
|
463
|
-
}
|
|
559
|
+
},
|
|
464
560
|
});
|
|
465
561
|
},
|
|
466
562
|
rourteTo(route) {
|
|
467
563
|
if (route.type == 4) {
|
|
468
|
-
this.jumpOutLink(route)
|
|
564
|
+
this.jumpOutLink(route);
|
|
469
565
|
} else if (route.type == 3) {
|
|
470
566
|
let menuCode = route.menuCode;
|
|
471
567
|
let path = "/user/outLink/index/" + menuCode;
|
|
472
|
-
this.$router.push({path: path, query: {url: route.url}});
|
|
568
|
+
this.$router.push({ path: path, query: { url: route.url } });
|
|
473
569
|
} else {
|
|
474
|
-
let path = this.getPath(route)
|
|
475
|
-
if (!path) return
|
|
570
|
+
let path = this.getPath(route);
|
|
571
|
+
if (!path) return;
|
|
476
572
|
this.$router.push(path);
|
|
477
573
|
}
|
|
478
574
|
},
|
|
479
575
|
getPath(route3) {
|
|
480
576
|
let item = null;
|
|
481
|
-
let path = null
|
|
577
|
+
let path = null;
|
|
482
578
|
if (route3.type == 0) {
|
|
483
579
|
//普通菜单
|
|
484
580
|
if (route3.url) {
|
|
@@ -486,7 +582,7 @@ export default {
|
|
|
486
582
|
let str = "/report/vform/render/";
|
|
487
583
|
if (path.indexOf(str) == 0) {
|
|
488
584
|
} else {
|
|
489
|
-
let pIndex = path.indexOf(
|
|
585
|
+
let pIndex = path.indexOf("?");
|
|
490
586
|
if (pIndex > 0) {
|
|
491
587
|
path = path.substring(0, pIndex);
|
|
492
588
|
}
|
|
@@ -498,31 +594,31 @@ export default {
|
|
|
498
594
|
path = url;
|
|
499
595
|
}
|
|
500
596
|
if (path && path.startsWith("@")) {
|
|
501
|
-
path = null
|
|
597
|
+
path = null;
|
|
502
598
|
}
|
|
503
599
|
return path;
|
|
504
600
|
},
|
|
505
601
|
jumpOutLink(route) {
|
|
506
602
|
let path = route.url;
|
|
507
603
|
if (route.type == 4 && path) {
|
|
508
|
-
if (path.indexOf(
|
|
509
|
-
path = path.replace(
|
|
604
|
+
if (path.indexOf("token={token}") >= 0) {
|
|
605
|
+
path = path.replace("token={token}", "token=" + getToken());
|
|
510
606
|
}
|
|
511
607
|
window.open(path);
|
|
512
608
|
}
|
|
513
609
|
},
|
|
514
610
|
initWfParam() {
|
|
515
611
|
return this.$http({
|
|
516
|
-
url: USER_PREFIX +
|
|
612
|
+
url: USER_PREFIX + "/wf_param/list",
|
|
517
613
|
method: `post`,
|
|
518
614
|
data: {},
|
|
519
615
|
isLoading: true,
|
|
520
616
|
// loadingTarget: document.body,
|
|
521
617
|
modalStrictly: true,
|
|
522
|
-
success: res => {
|
|
618
|
+
success: (res) => {
|
|
523
619
|
this.wfParamDTOs = res.objx || [];
|
|
524
620
|
this.initWfTableList();
|
|
525
|
-
}
|
|
621
|
+
},
|
|
526
622
|
});
|
|
527
623
|
},
|
|
528
624
|
getWfInfoList(isLoading) {
|
|
@@ -530,14 +626,15 @@ export default {
|
|
|
530
626
|
return;
|
|
531
627
|
}
|
|
532
628
|
this.$http({
|
|
533
|
-
url: USER_PREFIX +
|
|
534
|
-
data: {type: 0, size: 20, searchCount: false},
|
|
535
|
-
method:
|
|
629
|
+
url: USER_PREFIX + "/wf_info/listPage",
|
|
630
|
+
data: { type: 0, size: 20, searchCount: false },
|
|
631
|
+
method: "post",
|
|
536
632
|
isLoading: isLoading,
|
|
537
633
|
modal: isLoading || false,
|
|
538
634
|
// loadingTarget: document.body,
|
|
539
|
-
success: res => {
|
|
540
|
-
this.unDoWfRows =
|
|
635
|
+
success: (res) => {
|
|
636
|
+
this.unDoWfRows =
|
|
637
|
+
res.objx && res.objx.records ? res.objx.records : [];
|
|
541
638
|
},
|
|
542
639
|
failMsg: false,
|
|
543
640
|
errorMsg: false,
|
|
@@ -545,7 +642,7 @@ export default {
|
|
|
545
642
|
if (response && response.status == 200) {
|
|
546
643
|
this.$errorMsg(res);
|
|
547
644
|
}
|
|
548
|
-
}
|
|
645
|
+
},
|
|
549
646
|
});
|
|
550
647
|
},
|
|
551
648
|
getUnreadMessageNum(isLoading) {
|
|
@@ -553,13 +650,13 @@ export default {
|
|
|
553
650
|
return;
|
|
554
651
|
}
|
|
555
652
|
return this.$http({
|
|
556
|
-
url: USER_PREFIX +
|
|
653
|
+
url: USER_PREFIX + "/notify_message/countMessage",
|
|
557
654
|
method: `post`,
|
|
558
655
|
data: {},
|
|
559
656
|
isLoading: isLoading,
|
|
560
657
|
modal: isLoading || false,
|
|
561
658
|
// loadingTarget: document.body,
|
|
562
|
-
success: res => {
|
|
659
|
+
success: (res) => {
|
|
563
660
|
this.unreadMessageNum = res.objx || 0;
|
|
564
661
|
},
|
|
565
662
|
failMsg: false,
|
|
@@ -568,7 +665,7 @@ export default {
|
|
|
568
665
|
if (response && response.status == 200) {
|
|
569
666
|
this.$errorMsg(res);
|
|
570
667
|
}
|
|
571
|
-
}
|
|
668
|
+
},
|
|
572
669
|
});
|
|
573
670
|
},
|
|
574
671
|
wfhandleCallback(flag) {
|
|
@@ -577,15 +674,11 @@ export default {
|
|
|
577
674
|
this.wfClose();
|
|
578
675
|
}
|
|
579
676
|
},
|
|
580
|
-
|
|
581
|
-
let url = this.wf_manage_url || '/basic/wf/wf_manage/list'
|
|
582
|
-
this.$router.push(url)
|
|
583
|
-
}
|
|
584
|
-
}
|
|
677
|
+
},
|
|
585
678
|
};
|
|
586
679
|
</script>
|
|
587
680
|
<style lang="scss" scoped>
|
|
588
|
-
@import
|
|
681
|
+
@import "~@/styles/variables.scss";
|
|
589
682
|
|
|
590
683
|
body #app .index-home {
|
|
591
684
|
margin: 3px 10px;
|
|
@@ -600,7 +693,8 @@ body #app .index-home {
|
|
|
600
693
|
}
|
|
601
694
|
|
|
602
695
|
.i-user-info {
|
|
603
|
-
background: url(~@/resources/images/home-img.png) #2a6494 no-repeat 116%
|
|
696
|
+
background: url(~@/resources/images/home-img.png) #2a6494 no-repeat 116%
|
|
697
|
+
45px;
|
|
604
698
|
margin-bottom: 6px;
|
|
605
699
|
background-size: 181px;
|
|
606
700
|
padding: 14px 38px 11px 16px;
|
|
@@ -651,7 +745,7 @@ body #app .index-home {
|
|
|
651
745
|
background-color: transparentize($baseColor, 0.97);
|
|
652
746
|
|
|
653
747
|
.time {
|
|
654
|
-
color: $baseColor
|
|
748
|
+
color: $baseColor;
|
|
655
749
|
}
|
|
656
750
|
}
|
|
657
751
|
|
|
@@ -672,7 +766,6 @@ body #app .index-home {
|
|
|
672
766
|
overflow: auto;
|
|
673
767
|
margin: -8px -12px;
|
|
674
768
|
|
|
675
|
-
|
|
676
769
|
.item {
|
|
677
770
|
white-space: initial;
|
|
678
771
|
padding: 8px 22px 2px;
|
|
@@ -745,11 +838,11 @@ body #app .index-home {
|
|
|
745
838
|
}
|
|
746
839
|
|
|
747
840
|
&:hover .name {
|
|
748
|
-
color: $baseColor
|
|
841
|
+
color: $baseColor;
|
|
749
842
|
}
|
|
750
843
|
|
|
751
844
|
&:first-child:before {
|
|
752
|
-
border-top: none
|
|
845
|
+
border-top: none;
|
|
753
846
|
}
|
|
754
847
|
|
|
755
848
|
.btns {
|
|
@@ -767,7 +860,6 @@ body #app .index-home {
|
|
|
767
860
|
}
|
|
768
861
|
}
|
|
769
862
|
}
|
|
770
|
-
|
|
771
863
|
}
|
|
772
864
|
}
|
|
773
865
|
|
|
@@ -805,7 +897,7 @@ body #app .index-home {
|
|
|
805
897
|
}
|
|
806
898
|
|
|
807
899
|
&:before {
|
|
808
|
-
content:
|
|
900
|
+
content: "";
|
|
809
901
|
width: 4px;
|
|
810
902
|
height: 24px;
|
|
811
903
|
display: inline-block;
|
|
@@ -894,7 +986,7 @@ body #app .index-home {
|
|
|
894
986
|
&:before {
|
|
895
987
|
content: "";
|
|
896
988
|
background-color: $baseColor;
|
|
897
|
-
border-color: $baseColor
|
|
989
|
+
border-color: $baseColor;
|
|
898
990
|
}
|
|
899
991
|
|
|
900
992
|
background-color: transparentize($baseColor, 0.9);
|
|
@@ -921,7 +1013,7 @@ body #app .index-home {
|
|
|
921
1013
|
position: absolute;
|
|
922
1014
|
right: 5px;
|
|
923
1015
|
top: 6px;
|
|
924
|
-
color: #
|
|
1016
|
+
color: #fff;
|
|
925
1017
|
font-size: 12px;
|
|
926
1018
|
background-color: $red;
|
|
927
1019
|
line-height: 22px;
|
|
@@ -973,11 +1065,11 @@ body #app .index-home {
|
|
|
973
1065
|
display: inline-block;
|
|
974
1066
|
|
|
975
1067
|
b {
|
|
976
|
-
color: #
|
|
1068
|
+
color: #fff;
|
|
977
1069
|
margin: 0 4px;
|
|
978
1070
|
font-size: 16px;
|
|
979
1071
|
vertical-align: middle;
|
|
980
|
-
background: #
|
|
1072
|
+
background: #ff5615;
|
|
981
1073
|
border-radius: 50%;
|
|
982
1074
|
display: inline-block;
|
|
983
1075
|
padding: 4px;
|
|
@@ -985,7 +1077,6 @@ body #app .index-home {
|
|
|
985
1077
|
line-height: 1;
|
|
986
1078
|
}
|
|
987
1079
|
}
|
|
988
|
-
|
|
989
1080
|
}
|
|
990
1081
|
|
|
991
1082
|
.el-button {
|
|
@@ -1006,7 +1097,7 @@ body #app .index-home {
|
|
|
1006
1097
|
|
|
1007
1098
|
&:hover {
|
|
1008
1099
|
background-color: $baseColor;
|
|
1009
|
-
color: #
|
|
1100
|
+
color: #fff;
|
|
1010
1101
|
}
|
|
1011
1102
|
|
|
1012
1103
|
&.more {
|
|
@@ -1014,7 +1105,7 @@ body #app .index-home {
|
|
|
1014
1105
|
background: #f7f7f7;
|
|
1015
1106
|
|
|
1016
1107
|
&:hover {
|
|
1017
|
-
color: $baseColor
|
|
1108
|
+
color: $baseColor;
|
|
1018
1109
|
}
|
|
1019
1110
|
}
|
|
1020
1111
|
}
|