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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.6.51",
3
+ "version": "2.6.53",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -124,4 +124,4 @@
124
124
  "last 2 versions",
125
125
  "not dead"
126
126
  ]
127
- }
127
+ }
@@ -8,7 +8,7 @@
8
8
  display: flex;
9
9
  align-items: center;
10
10
  flex: 1;
11
- padding: 8px;
11
+ padding: 8px 0;
12
12
 
13
13
  &-item.n20-advanced-filter-active {
14
14
  border-color: #b3d0ff;
@@ -6,7 +6,7 @@ export default function realUrl(url, rest = false) {
6
6
  return url
7
7
  } else if (/^\//.test(url)) {
8
8
  return prefix + url.replace(/^\//, '')
9
- } else if (!rest) {
9
+ } else if (rest) {
10
10
  return '/' + url
11
11
  } else {
12
12
  return url
@@ -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
  },