vue2-client 1.4.29 → 1.4.31

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/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
+ **1.4.31 -2022-10-13 @苗艳强**
5
+ - 功能修改:
6
+ - 查询配置生成页面新增api插槽项删除
7
+
8
+ **1.4.30 -2022-10-11 @江超**
9
+ - 功能修改:
10
+ - 单页面模式调整样式
11
+
4
12
  **1.4.29 -2022-10-10 @苗艳强**
5
13
  - 功能修改:
6
14
  - 修改XFormTable的selectRow事件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.4.29",
3
+ "version": "1.4.31",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -119,6 +119,7 @@
119
119
  {{ item.label }}
120
120
  </a-select-option>
121
121
  </a-select>
122
+ <a-icon slot="addonAfter" type="close" @click="removeApiSlotItem(index)"/>
122
123
  </a-input>
123
124
  </div>
124
125
  </a-form-model-item>
@@ -402,6 +403,10 @@ export default {
402
403
  this.form.apiSlotView.push({})
403
404
  }
404
405
  },
406
+ // 删除接口插槽
407
+ removeApiSlotItem (index) {
408
+ this.form.apiSlotView.splice(index, 1)
409
+ },
405
410
  // 初始化组件
406
411
  initView () {
407
412
  this.joinArray = []
@@ -1,13 +1,15 @@
1
1
  <template>
2
2
  <page-toggle-transition :disabled="animate.disabled" :animate="animate.name" :direction="animate.direction">
3
3
  <template v-if="login">
4
- <iframe
5
- ref="singlepage"
6
- :src="url"
7
- :name="this.fullPath"
8
- class="single-page-iframe"
9
- @load="load">
10
- </iframe>
4
+ <div style="padding-top: 1px; background-color: #fff;">
5
+ <iframe
6
+ ref="singlepage"
7
+ :src="url"
8
+ :name="this.fullPath"
9
+ class="single-page-iframe"
10
+ @load="load">
11
+ </iframe>
12
+ </div>
11
13
  </template>
12
14
  </page-toggle-transition>
13
15
  </template>
@@ -43,7 +45,7 @@ export default {
43
45
  },
44
46
  created () {
45
47
  if (this.singlePageUrl.indexOf('sso:') !== -1) {
46
- CASLogin(this.singlePageUrl.substring(4)).then(res => {
48
+ CASLogin(this.singlePageUrl.substring(4), true).then(res => {
47
49
  this.url = res.redirectUrl + '?ticket=' + res.st
48
50
  }).catch(msg => {
49
51
  this.$message.error(msg)
@@ -35,10 +35,10 @@ export function CASLoginByAuth (serviceKey) {
35
35
  })
36
36
  }
37
37
 
38
- export function CASLogin (serviceKey, ticket) {
38
+ export function CASLogin (serviceKey, inner) {
39
39
  // 从第三方跳转登录
40
40
  const tgc = getTGTCookie()
41
- if (tgc && !ticket) {
41
+ if (tgc) {
42
42
  return new Promise((resolve, reject) => {
43
43
  post(casApi.createSTByTGC, {
44
44
  serviceKey: serviceKey,
@@ -54,7 +54,11 @@ export function CASLogin (serviceKey, ticket) {
54
54
  })
55
55
  logout().then(() => {
56
56
  setTimeout(() => {
57
- window.location.href = '/login?serviceKey=' + serviceKey
57
+ if (inner) {
58
+ window.location.href = '/login'
59
+ } else {
60
+ window.location.href = '/login?serviceKey=' + serviceKey
61
+ }
58
62
  }, 1500)
59
63
  })
60
64
  } else {
package/vue.config.js CHANGED
@@ -10,8 +10,8 @@ const isProd = process.env.NODE_ENV === 'production'
10
10
 
11
11
  const server = 'http://121.36.106.17:8400'
12
12
  // const local = 'http://localhost:8445/webmeter'
13
- const local = 'http://123.60.214.109:8406'
14
- // const local = 'http://localhost:8080'
13
+ // const local = 'http://123.60.214.109:8406'
14
+ const local = 'http://localhost:8080/webmeter'
15
15
 
16
16
  module.exports = {
17
17
  devServer: {