imatrix-ui 2.7.43 → 2.7.46

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": "imatrix-ui",
3
- "version": "2.7.43",
3
+ "version": "2.7.46",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
@@ -100,8 +100,10 @@ const cn = {
100
100
  unExport: '不导出',
101
101
  whetherToConfirmReset: '是否确认重置?',
102
102
  resetSuccessful: '重置成功',
103
- dargColumnOrderMessage: '支持拖动改变列顺序',
104
- selectAll: '全选'
103
+ dragColumnOrderMessage: '支持拖动改变列顺序',
104
+ selectAll: '全选',
105
+ viewImage: '查看图片',
106
+ previewTitleWhenNotImg: '非图片格式,使用其它方式预览'
105
107
  },
106
108
  // 部门树组件
107
109
  departmentTree: {
@@ -99,8 +99,10 @@ const en = {
99
99
  unExport: 'Not Export',
100
100
  whetherToConfirmReset: 'Are you sure you want to reset?',
101
101
  resetSuccessful: 'Reset successfully',
102
- dargColumnOrderMessage: 'Supports dragging to change column order',
103
- selectAll: 'Select All'
102
+ dragColumnOrderMessage: 'Supports dragging to change column order',
103
+ selectAll: 'Select All',
104
+ viewImage: 'View Image',
105
+ previewTitleWhenNotImg: 'Non picture format, preview in other ways'
104
106
  },
105
107
  departmentTree: {
106
108
 
@@ -159,3 +159,19 @@ export function getSystemBackendUrl(backendUrl) {
159
159
  return getRelativeBaseUrl(backendUrl)
160
160
  }
161
161
  }
162
+ /**
163
+ * 是否是平台系统
164
+ * @param {*} systemCode
165
+ * @returns
166
+ */
167
+ export function isPlateSys(systemCode) {
168
+ if (systemCode && (systemCode === 'iMatrix' || systemCode === 'portal' ||
169
+ systemCode === 'mms' || systemCode === 'task' ||
170
+ systemCode === 'wf' || systemCode === 'dc' ||
171
+ systemCode === 'mc' || systemCode === 'mobile' ||
172
+ systemCode === 'acs' || systemCode === 'bs')) {
173
+ return true
174
+ } else {
175
+ return false
176
+ }
177
+ }
@@ -1,11 +1,21 @@
1
1
  import axios from 'axios'
2
- import { Message } from 'element-ui'
3
- import { getToken, removeToken } from './auth'
2
+ import {
3
+ Message
4
+ } from 'element-ui'
5
+ import {
6
+ getToken,
7
+ removeToken
8
+ } from './auth'
4
9
  import store from '../store'
5
10
  import checkPermission from './permission'
6
11
  import Vue from 'vue'
7
- import { getI18n } from './util'
8
- import { getRelativeBaseUrl, getLoginUrl } from './common-util'
12
+ import {
13
+ getI18n
14
+ } from './util'
15
+ import {
16
+ getRelativeBaseUrl,
17
+ getLoginUrl
18
+ } from './common-util'
9
19
  // 创建axios实例
10
20
  const service = axios.create({
11
21
  // baseURL: process.env.VUE_APP_BASE_API, // api 的 base_url
@@ -69,8 +79,8 @@ service.interceptors.response.use(
69
79
  window.location.href = loginUrl
70
80
  })
71
81
  }
72
- } else if (error.response.status === 400 || error.response.status === 406 || error.response.status === 404) {
73
- // BadRequestException(400) || BusinessException(406) || ResourceNotFoundException(404)
82
+ } else if (error.response.status === 400 || error.response.status === 406 || error.response.status === 404 || error.response.status === 403) {
83
+ // BadRequestException(400) || BusinessException(406) || ResourceNotFoundException(404) || ForbiddenException(403)
74
84
  let message = error.message
75
85
  if (message) {
76
86
  // 说明是原生的错误,不要显示,显示“请联系管理员”
package/src/utils/util.js CHANGED
@@ -183,7 +183,7 @@ function parseCondition(entity, conditionList, isSql, tableName, additionalParam
183
183
  } else {
184
184
  leftValue = getValue(entity, propName, isSql)
185
185
  }
186
- if (leftValue === undefined || leftValue === null) {
186
+ if (propDbName && (leftValue === undefined || leftValue === null)) {
187
187
  leftValue = getValue(entity, propDbName, isSql)
188
188
  }
189
189
  }