n20-common-lib 2.6.46 → 2.6.48

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.46",
3
+ "version": "2.6.48",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -126,7 +126,7 @@
126
126
  </template>
127
127
  <template slot-scope="{ row, $index }">
128
128
  <slot name="percent" :row="row" :[indexK]="$index">
129
- <div v-if="row['_percent'] >= 0 && !row._typeDisabled" class="flex-box flex-v">
129
+ <div v-if="row['_percent'] >= 0 && !readonly" class="flex-box flex-v">
130
130
  <el-progress
131
131
  class="n20-upload-table-progress"
132
132
  :percentage="row['_percent']"
@@ -554,6 +554,7 @@ export default {
554
554
  this.$set(row, '_percent', percent <= 99 ? Math.round(percent) : 99)
555
555
  },
556
556
  onSuccessFn(response, file, fileList, row) {
557
+ this.$set(row, '_typeDisabled', true)
557
558
  this.$set(row, '_name', file.name)
558
559
  this.$set(row, '_percent', 100)
559
560
  row[this.keys.time] = dayjs().format('YYYY-MM-DD HH:mm:ss')