vue2-client 1.15.120 → 1.15.122

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": "vue2-client",
3
- "version": "1.15.120",
3
+ "version": "1.15.122",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -209,6 +209,9 @@
209
209
  <span v-else-if="item.slotType === 'ellipsis'" :key="'ellipsis-' + c_index">
210
210
  <ellipsis :length="item.slotValue" tooltip>{{ text === '' ? '--' : text }}</ellipsis>
211
211
  </span>
212
+ <span v-else-if="item.slotType === 'progress'" :key="'progress-' + c_index">
213
+ <a-progress :percent="text" status="active" style="padding-right: 20px;" />
214
+ </span>
212
215
  <span v-else-if="item.slotType === 'badge'" :key="'badge-' + c_index">
213
216
  <x-badge
214
217
  :service-name="tableContext.serviceName"
@@ -138,7 +138,8 @@ export default {
138
138
  /** 读取excle导入模板 */
139
139
  async readTemplateConfig () {
140
140
  try {
141
- const config = await getNativeConfig(this.queryParamsName, 'af-his', false)
141
+ const isProd = process.env.NODE_ENV === 'production'
142
+ const config = await getNativeConfig(this.queryParamsName, 'af-his', !isProd)
142
143
  if (config != null && config != undefined) {
143
144
  this.excelImportTemplate = config.column.filter(item =>
144
145
  item.dataModeArray && item.dataModeArray.includes('excelImportItem')
@@ -189,7 +190,8 @@ export default {
189
190
  formData.append('queryParamsName', this.queryParamsName)
190
191
  formData.append('userData', JSON.stringify(userData))
191
192
  formData.append('otherParams', JSON.stringify(this.extraData))
192
- importData(formData, this.serviceName, false).then(res => {
193
+ const isProd = process.env.NODE_ENV === 'production'
194
+ importData(formData, this.serviceName, !isProd).then(res => {
193
195
  this.fileList = []
194
196
  const msg = res.msg || '导入成功'
195
197
  if (res?.successLen && !res?.msg) {