n20-common-lib 2.6.51 → 2.6.53
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
package/src/assets/realUrl.js
CHANGED
|
@@ -339,8 +339,15 @@ export default {
|
|
|
339
339
|
this.getShowApprovalTo()
|
|
340
340
|
this.getHasQueryAppOpiAndUser()
|
|
341
341
|
this.nextApproval && this.getTodoList()
|
|
342
|
+
this.getConfiguration()
|
|
342
343
|
},
|
|
343
344
|
methods: {
|
|
345
|
+
// 意见是否必填
|
|
346
|
+
getConfiguration() {
|
|
347
|
+
getJsonc('portal/server-config.jsonc').then(({ opinionRequired }) => {
|
|
348
|
+
this.required = opinionRequired ?? this.required
|
|
349
|
+
})
|
|
350
|
+
},
|
|
344
351
|
getTodoList() {
|
|
345
352
|
return new Promise((resolve, reject) => {
|
|
346
353
|
const dto = JSON.parse(sessionStorage.getItem(`approvalDto`))
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-descriptions class="n20-descriptions" :column="column" size="default" border>
|
|
3
3
|
<slot></slot>
|
|
4
|
+
<template v-if="this.$slots.default.length === 1">
|
|
5
|
+
<el-descriptions-item v-for="(item, index) in column - 1" :key="index" />
|
|
6
|
+
</template>
|
|
4
7
|
</el-descriptions>
|
|
5
8
|
</template>
|
|
6
9
|
|
|
@@ -13,6 +16,7 @@ export default {
|
|
|
13
16
|
}
|
|
14
17
|
},
|
|
15
18
|
created() {
|
|
19
|
+
console.log(this.$slots.default)
|
|
16
20
|
this.resize()
|
|
17
21
|
window.addEventListener('resize', this.resize)
|
|
18
22
|
},
|