ui-process-h5 0.1.40 → 1.0.1
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/build/configure/README.md +83 -42
- package/build/configure/package.json +3 -2
- package/package.json +5 -2
- package/src/App.vue +87 -16
- package/src/assets/js/auth.js +36 -12
- package/src/assets/js/request.js +80 -71
- package/src/assets/js/utils.js +2 -1
- package/src/assets/status/check.png +0 -0
- package/src/assets/status/del.png +0 -0
- package/src/main.js +14 -12
- package/src/packages/attchUpload/index.js +19 -16
- package/src/packages/attchUpload/index.scss +10 -3
- package/src/packages/downSelect/index.js +25 -7
- package/src/packages/downSelect/index.scss +4 -0
- package/src/packages/downSelect/index.vue +6 -3
- package/src/packages/popup/index.js +17 -5
- package/src/packages/popup/index.scss +0 -1
- package/src/packages/popup/index.vue +1 -0
- package/src/packages/preview/index.vue +1 -1
- package/src/packages/previewImage/index.js +125 -2
- package/src/packages/previewImage/index.scss +19 -2
- package/src/packages/previewImage/index.vue +25 -4
- package/src/packages/process/index.js +299 -55
- package/src/packages/process/index.scss +12 -1
- package/src/packages/process/index.vue +114 -40
- package/src/packages/process/operation/backNode.vue +117 -25
- package/src/packages/process/operation/cancel.vue +133 -14
- package/src/packages/process/operation/ccTask.vue +46 -34
- package/src/packages/process/operation/complete.vue +729 -91
- package/src/packages/process/operation/counterSign.vue +130 -25
- package/src/packages/process/operation/delegateTask.vue +130 -23
- package/src/packages/process/operation/msgList.vue +174 -0
- package/src/packages/process/operation/restart.vue +15 -4
- package/src/packages/submitPopup/index.js +407 -59
- package/src/packages/submitPopup/index.scss +51 -46
- package/src/packages/submitPopup/index.vue +21 -5
- package/src/packages/tab/index.js +34 -5
- package/src/packages/tab/index.scss +2 -1
- package/src/packages/tab/index.vue +7 -7
- package/src/packages/tip/index.js +8 -2
- package/src/packages/tip/index.scss +39 -0
- package/src/packages/tip/index.vue +1 -1
- package/src/packages/viewAttchList/index.js +16 -14
- package/vite.config.ts +101 -72
- package/ui-process-h5/README.md +0 -171
- package/ui-process-h5/package.json +0 -27
- package/ui-process-h5/scripts/postinstall.mjs +0 -14
- package/ui-process-h5/scripts/switch-cli.mjs +0 -4
- package/ui-process-h5/scripts/utils.mjs +0 -60
- package/ui-process-h5/v2/style.css +0 -1
- package/ui-process-h5/v2/ui-process-h5.js +0 -13467
- package/ui-process-h5/v2/ui-process-h5.umd.cjs +0 -67
- package/ui-process-h5/v2.7/style.css +0 -1
- package/ui-process-h5/v2.7/ui-process-h5.js +0 -12844
- package/ui-process-h5/v2.7/ui-process-h5.umd.cjs +0 -67
- package/ui-process-h5/v3/style.css +0 -1
- package/ui-process-h5/v3/ui-process-h5.js +0 -10336
- package/ui-process-h5/v3/ui-process-h5.umd.cjs +0 -55
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="top-msg" v-if="visible">
|
|
4
|
+
<div
|
|
5
|
+
v-for="v in listData"
|
|
6
|
+
class="top-msg-items"
|
|
7
|
+
@click="handleMsg(v)"
|
|
8
|
+
>
|
|
9
|
+
<div class="top-msg-items-text">{{ v.opinionName }}</div>
|
|
10
|
+
<div class="top-msg-items-del" @click.stop="handleOpenMsg(v)">
|
|
11
|
+
<img :src="Del" />
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<!-- -->
|
|
16
|
+
</div>
|
|
17
|
+
<TopPopup
|
|
18
|
+
:isIndex="2299"
|
|
19
|
+
titleText="操作消息提示"
|
|
20
|
+
:isTips="true"
|
|
21
|
+
:context="`将常用意见'${opinion.opinionName}'删除`"
|
|
22
|
+
:cancel="handleTipsCancel"
|
|
23
|
+
:comfig="handleDel"
|
|
24
|
+
v-bind:visible="visibleListMsg"
|
|
25
|
+
v-on:update:visible="(val) => (visibleListMsg = val)"
|
|
26
|
+
>
|
|
27
|
+
</TopPopup>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
<script>
|
|
31
|
+
import TopPopup from "../../popup/index.vue";
|
|
32
|
+
import del from "@/assets/status/del.png";
|
|
33
|
+
|
|
34
|
+
export default {
|
|
35
|
+
name: "msgList",
|
|
36
|
+
components: {
|
|
37
|
+
TopPopup,
|
|
38
|
+
},
|
|
39
|
+
props: {
|
|
40
|
+
visible: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false,
|
|
43
|
+
},
|
|
44
|
+
request: {
|
|
45
|
+
default: null,
|
|
46
|
+
},
|
|
47
|
+
useInfo: {
|
|
48
|
+
type: Object,
|
|
49
|
+
default: () => {},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
listData: [],
|
|
55
|
+
visibleListMsg: false,
|
|
56
|
+
opinion: {},
|
|
57
|
+
textTips: "",
|
|
58
|
+
statusTips: false,
|
|
59
|
+
typeTips: "",
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
Del() {
|
|
64
|
+
return del;
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
watch: {
|
|
68
|
+
visible: {
|
|
69
|
+
handler(val, preVal) {
|
|
70
|
+
// console.log("当前展示:::", val);
|
|
71
|
+
if (val) {
|
|
72
|
+
this.request.get("/auth/user/opinion/my").then((res) => {
|
|
73
|
+
// console.log("当前展示:::", this.useInfo);
|
|
74
|
+
if (res.code === 200) {
|
|
75
|
+
this.listData = res.data;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
handleMsg(val) {
|
|
84
|
+
this.$emit("handleMsg", val.opinionName);
|
|
85
|
+
},
|
|
86
|
+
handleOpenMsg(val) {
|
|
87
|
+
this.opinion = val;
|
|
88
|
+
this.visibleListMsg = true;
|
|
89
|
+
},
|
|
90
|
+
handleTipsCancel() {
|
|
91
|
+
this.visibleListMsg = false;
|
|
92
|
+
},
|
|
93
|
+
async handleDel() {
|
|
94
|
+
if (this.opinion.opinionId) {
|
|
95
|
+
this.visibleListMsg = false;
|
|
96
|
+
this.$emit("handleTips", "", true, "loading");
|
|
97
|
+
await this.request
|
|
98
|
+
.get(`/auth/user/opinion/del/${this.opinion.opinionId}`)
|
|
99
|
+
.then((res) => {
|
|
100
|
+
// console.log("当前展示:::", this.useInfo);
|
|
101
|
+
if (res.code === 200) {
|
|
102
|
+
this.$emit(
|
|
103
|
+
"handleTips",
|
|
104
|
+
"删除成功",
|
|
105
|
+
true,
|
|
106
|
+
"success"
|
|
107
|
+
);
|
|
108
|
+
this.request
|
|
109
|
+
.get("/auth/user/opinion/my")
|
|
110
|
+
.then((res) => {
|
|
111
|
+
// console.log("当前展示:::", this.useInfo);
|
|
112
|
+
if (res.code === 200) {
|
|
113
|
+
this.listData = res.data;
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
} else {
|
|
117
|
+
this.$emit("handleTips", res.msg, true, "error");
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
.catch((error) => {
|
|
121
|
+
this.$emit("handleTips", error.msg, true, "error");
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
</script>
|
|
128
|
+
<style scoped>
|
|
129
|
+
.top-msg {
|
|
130
|
+
height: 100%;
|
|
131
|
+
width: 100%;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.top-msg-items {
|
|
135
|
+
width: 100%;
|
|
136
|
+
height: 44px;
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
padding: 16px 20px;
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
background-color: #fff;
|
|
142
|
+
position: relative;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.top-msg-items::after {
|
|
146
|
+
content: "";
|
|
147
|
+
width: 100%;
|
|
148
|
+
height: 1px;
|
|
149
|
+
background-color: #f2f2f2;
|
|
150
|
+
position: absolute;
|
|
151
|
+
bottom: 0;
|
|
152
|
+
left: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.top-msg-items-text {
|
|
156
|
+
font-size: 14px;
|
|
157
|
+
color: #333;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
white-space: nowrap;
|
|
160
|
+
text-overflow: ellipsis;
|
|
161
|
+
flex: 1;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.top-msg-items-del {
|
|
165
|
+
width: 20px;
|
|
166
|
+
height: 20px;
|
|
167
|
+
margin-left: 20px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.top-msg-items-del img {
|
|
171
|
+
width: 100%;
|
|
172
|
+
height: 100%;
|
|
173
|
+
}
|
|
174
|
+
</style>
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
<div class="process-popup-content">
|
|
3
3
|
<template>
|
|
4
4
|
<div class="process-pc-label">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<div>
|
|
6
|
+
{{ getFirstProcessNode.name }}
|
|
7
|
+
<br />
|
|
8
|
+
<div>审批人<span class="process-pc-label--re">*</span></div>
|
|
9
|
+
</div>
|
|
8
10
|
</div>
|
|
9
11
|
<div
|
|
10
12
|
class="process-pc-value"
|
|
@@ -49,6 +51,7 @@
|
|
|
49
51
|
:isDrawer="true"
|
|
50
52
|
>
|
|
51
53
|
<departPerson
|
|
54
|
+
:isTitle="false"
|
|
52
55
|
:visible.sync="visible"
|
|
53
56
|
:request="param.request"
|
|
54
57
|
:businessId="param.formData.businessKey"
|
|
@@ -184,6 +187,7 @@ export default {
|
|
|
184
187
|
},
|
|
185
188
|
|
|
186
189
|
handleCallback(res) {
|
|
190
|
+
this.visible = false;
|
|
187
191
|
this.multiNodeParticipant[this.partObjId] = [];
|
|
188
192
|
this.partNode[this.partObjId] = [];
|
|
189
193
|
res.map((v, i) => {
|
|
@@ -280,6 +284,7 @@ export default {
|
|
|
280
284
|
margin: 0;
|
|
281
285
|
text-decoration: inherit;
|
|
282
286
|
height: 100%;
|
|
287
|
+
font-size: 14px;
|
|
283
288
|
}
|
|
284
289
|
.process-pc-label--re {
|
|
285
290
|
color: #ee0000;
|
|
@@ -287,10 +292,11 @@ export default {
|
|
|
287
292
|
|
|
288
293
|
.process-pc-value--people {
|
|
289
294
|
width: 100%;
|
|
290
|
-
height: 43px;
|
|
295
|
+
min-height: 43px;
|
|
291
296
|
padding: 10px 26px 10px 0;
|
|
292
297
|
box-sizing: border-box;
|
|
293
298
|
position: relative;
|
|
299
|
+
font-size: 14px;
|
|
294
300
|
}
|
|
295
301
|
|
|
296
302
|
.process-pc-value--people::after {
|
|
@@ -302,4 +308,9 @@ export default {
|
|
|
302
308
|
bottom: 0;
|
|
303
309
|
left: 0;
|
|
304
310
|
}
|
|
311
|
+
|
|
312
|
+
::v-deep .departPerson-main {
|
|
313
|
+
width: 100% !important;
|
|
314
|
+
height: 100% !important;
|
|
315
|
+
}
|
|
305
316
|
</style>
|