vue2-client 1.15.19 → 1.15.21

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/.env.liuli CHANGED
@@ -1,4 +1,4 @@
1
- VUE_APP_PUBLIC_PATH=/
1
+ VUE_APP_PUBLIC_PATH=/liuli-web
2
2
  VUE_APP_NAME=Admin
3
3
  VUE_APP_ROUTES_KEY=admin.routes
4
4
  VUE_APP_PERMISSIONS_KEY=admin.permissions
@@ -15,5 +15,6 @@ VUE_APP_DIVISIONSOHCHINA=admin.divisionsohchina
15
15
  VUE_APP_WEB_CONFIG_KEY=admin.webconfig
16
16
  VUE_APP_API_BASE_URL=http://123.60.214.109:8405
17
17
  VUE_APP_SYSTEM_NAME=af-liuli
18
+ VUE_APP_SINGLE_PAPER=TRUE
18
19
  VUE_APP_LOGIN_VERSION=V4
19
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.15.19",
3
+ "version": "1.15.21",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
package/src/bootstrap.js CHANGED
@@ -28,9 +28,11 @@ async function bootstrap ({ router, store, i18n, message }) {
28
28
  }
29
29
  })
30
30
  }
31
- await getConfigByName('componentStyles', undefined, res => {
32
- localStorage.setItem(process.env.VUE_APP_WEB_STYLES_KEY, JSON.stringify(res))
33
- })
31
+ if (process.env.VUE_APP_SYSTEM_NAME && process.env.VUE_APP_SYSTEM_NAME === 'af-his') {
32
+ await getConfigByName('componentStyles', undefined, res => {
33
+ localStorage.setItem(process.env.VUE_APP_WEB_STYLES_KEY, JSON.stringify(res))
34
+ })
35
+ }
34
36
  }
35
37
  // 设置应用配置
36
38
  setAppOptions({ router, store, i18n })
@@ -190,7 +190,7 @@
190
190
  <p v-else>{{ nextBtnTitle }}</p>
191
191
  </template>
192
192
  <a-button
193
- v-show="!lastStep"
193
+ v-if="!lastStep"
194
194
  :disabled="!showNextBtn && !stepDone"
195
195
  type="primary"
196
196
  @click="nextClick"
@@ -229,7 +229,7 @@
229
229
  <a-form layout="vertical">
230
230
  <a-form-item label="退回原因" :wrapper-col="{ span: 24 }" required>
231
231
  <a-textarea
232
- v-model="note"
232
+ v-model="backNote"
233
233
  :auto-size="{ minRows: 4, maxRows: 10 }"
234
234
  placeholder="请填写退回原因 / 备注"
235
235
  />
@@ -480,6 +480,7 @@ export default {
480
480
  formValid: false,
481
481
  // 备忘
482
482
  note: '',
483
+ backNote: '', // 新增退回原因专用变量
483
484
  // 是否是最后一步
484
485
  lastStep: false,
485
486
  // 存储每一步骤填表人和时间数据
@@ -754,7 +755,7 @@ export default {
754
755
  })
755
756
  },
756
757
  async preClick () {
757
- const notes = this.note.trim()
758
+ const notes = this.backNote.trim()
758
759
  if (!notes) {
759
760
  this.$message.error('退回请在备注中填写理由')
760
761
  return
@@ -768,6 +769,7 @@ export default {
768
769
  res => {
769
770
  this.saveWorkflowLog('退回', this.generateStepChangeText(this.currentStepId, this.preBtnTo), { notes })
770
771
  this.$message.success('退回成功')
772
+ this.backNote = '' // 退回成功后清空退回原因
771
773
  this.loading = true
772
774
  this.loadingHistory = true
773
775
  this.currentStepId = this.preBtnTo
@@ -53,9 +53,9 @@ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynami
53
53
  routerResource.example = {
54
54
  path: 'example',
55
55
  name: '示例主页面',
56
- component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
56
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
57
57
  // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
58
- // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
58
+ component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
59
59
  // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
60
60
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
61
61
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
@@ -98,7 +98,8 @@ const routerMap = {
98
98
  root: {
99
99
  path: '/',
100
100
  name: '首页',
101
- redirect: homePage,
101
+ // 只有在非微前端环境下才进行重定向,或者通过环境变量控制
102
+ redirect: window.__MICRO_APP_ENVIRONMENT__ ? undefined : homePage,
102
103
  component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
103
104
  },
104
105
  exp403: {
@@ -182,7 +182,9 @@ function loadRoutes (routesConfig) {
182
182
  if (routesConfig && routesConfig.length > 0) {
183
183
  const routes = parseRoutes(routesConfig, appRouterMap.routerMap)
184
184
  // 设置路由首页
185
- routes[0].redirect = store.state.setting.homePage
185
+ if (!window.__MICRO_APP_ENVIRONMENT__) {
186
+ routes[0].redirect = store.state.setting.homePage
187
+ }
186
188
  let finalRoutes = mergeRoutes(basicOptions.routes, routes)
187
189
  formatRoutes(finalRoutes)
188
190
  const duplicates = checkDuplicateRouteNames(finalRoutes)