n20-common-lib 1.3.52 → 1.3.55
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/ApprovalCard/index.vue +19 -13
- package/src/components/ApprovalRecord/approvalImg.vue +1 -1
- package/src/components/Filters/form-item-input.vue +3 -0
- package/src/components/Filters/index.vue +20 -2
- package/src/components/ShowColumn/index.vue +4 -2
- package/src/components/Table/index.vue +1 -1
package/package.json
CHANGED
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
>驳回</span
|
|
30
30
|
></template
|
|
31
31
|
>
|
|
32
|
+
<template v-else-if="item.result == status.invalid">
|
|
33
|
+
审批意见:<span class="n20-approval-reject"
|
|
34
|
+
>作废</span
|
|
35
|
+
></template
|
|
36
|
+
>
|
|
32
37
|
</div>
|
|
33
38
|
</div>
|
|
34
39
|
<div v-if="item.suggestion" class="n20-description-c">
|
|
@@ -81,7 +86,8 @@ export default {
|
|
|
81
86
|
submit: 1,
|
|
82
87
|
approval: 2,
|
|
83
88
|
reject: 3,
|
|
84
|
-
|
|
89
|
+
invalid: 4,
|
|
90
|
+
end: 5
|
|
85
91
|
})
|
|
86
92
|
},
|
|
87
93
|
approvalData: {
|
|
@@ -107,21 +113,21 @@ export default {
|
|
|
107
113
|
assignee: item.assignee,
|
|
108
114
|
suggestion: item.suggestion
|
|
109
115
|
}
|
|
110
|
-
|
|
116
|
+
|
|
117
|
+
if (item.taskName === '开始') {
|
|
118
|
+
_item.result = 1
|
|
119
|
+
} else if (item.taskName === '结束') {
|
|
120
|
+
_item.result = 5
|
|
121
|
+
} else if ('approvalState' in item) {
|
|
111
122
|
_item.result = item.approvalState
|
|
123
|
+
} else if (!item.endTime) {
|
|
124
|
+
_item.result = 0
|
|
125
|
+
} else if (item.rejectFlag === 1) {
|
|
126
|
+
_item.result = 3
|
|
112
127
|
} else {
|
|
113
|
-
|
|
114
|
-
_item.result = 1
|
|
115
|
-
} else if (item.taskName === '结束') {
|
|
116
|
-
_item.result = 4
|
|
117
|
-
} else if (!item.endTime) {
|
|
118
|
-
_item.result = 0
|
|
119
|
-
} else if (item.rejectFlag === 1) {
|
|
120
|
-
_item.result = 3
|
|
121
|
-
} else {
|
|
122
|
-
_item.result = 2
|
|
123
|
-
}
|
|
128
|
+
_item.result = 2
|
|
124
129
|
}
|
|
130
|
+
|
|
125
131
|
approvalData.push(_item)
|
|
126
132
|
})
|
|
127
133
|
this.approvalData.push(...approvalData)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-popover
|
|
3
|
+
ref="popover"
|
|
3
4
|
v-model="showPop"
|
|
4
5
|
trigger="manual"
|
|
5
6
|
:width="width"
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
<el-button
|
|
40
41
|
class="p-t-0 m-b-s color-primary"
|
|
41
42
|
type="text"
|
|
42
|
-
@click="
|
|
43
|
+
@click="moreFn"
|
|
43
44
|
><span>更多条件</span
|
|
44
45
|
><i
|
|
45
46
|
:class="showMore ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
|
|
@@ -197,6 +198,14 @@ export default {
|
|
|
197
198
|
this.showPop = false
|
|
198
199
|
}
|
|
199
200
|
},
|
|
201
|
+
moreFn() {
|
|
202
|
+
if (this.showMore) {
|
|
203
|
+
this.showMore = false
|
|
204
|
+
} else {
|
|
205
|
+
this.showMore = true
|
|
206
|
+
setTimeout(() => this.$refs['popover'].updatePopper(), 360)
|
|
207
|
+
}
|
|
208
|
+
},
|
|
200
209
|
setOptions(key, opts) {
|
|
201
210
|
let item = this.filterList.find((f) => f.value === key)
|
|
202
211
|
if (item) {
|
|
@@ -205,11 +214,20 @@ export default {
|
|
|
205
214
|
},
|
|
206
215
|
getRemote() {
|
|
207
216
|
this.$refs['setRemote'].getColumns().then((list) => {
|
|
208
|
-
|
|
217
|
+
if (list) {
|
|
218
|
+
this.remoteList = list
|
|
219
|
+
} else {
|
|
220
|
+
let defaultList = this.filterList.filter((col) => col.isDefault)
|
|
221
|
+
this.remoteList = defaultList.length
|
|
222
|
+
? defaultList
|
|
223
|
+
: this.filterList.slice(0, this.defaultShow)
|
|
224
|
+
}
|
|
225
|
+
setTimeout(() => this.$refs['popover'].updatePopper(), 360)
|
|
209
226
|
})
|
|
210
227
|
},
|
|
211
228
|
setRemoteChange(list) {
|
|
212
229
|
this.remoteList = list
|
|
230
|
+
setTimeout(() => this.$refs['popover'].updatePopper(), 360)
|
|
213
231
|
}
|
|
214
232
|
}
|
|
215
233
|
}
|
|
@@ -174,8 +174,10 @@ export default {
|
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
reset() {
|
|
177
|
-
|
|
178
|
-
this.dragList =
|
|
177
|
+
let dragList = this.columns.filter((col) => col.isDefault)
|
|
178
|
+
this.dragList = dragList.length
|
|
179
|
+
? dragList
|
|
180
|
+
: this.checkColumns.filter((col) => !col.static)
|
|
179
181
|
},
|
|
180
182
|
setChange() {
|
|
181
183
|
if (this.dragList.length < 1) {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
v-on="$listeners"
|
|
9
9
|
>
|
|
10
10
|
<template v-for="(item, i) in columns">
|
|
11
|
-
<slot v-if="item.slotName" :name="item.slotName"></slot>
|
|
11
|
+
<slot v-if="item.slotName" :name="item.slotName" :column="item"></slot>
|
|
12
12
|
<el-table-column
|
|
13
13
|
v-else-if="item.render"
|
|
14
14
|
:key="'cl-table-' + i"
|