You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/03/24 11:40:11 UTC

[incubator-linkis] branch dev-1.1.1 updated (0c2caca -> f3ef0c5)

This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a change to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git.


    from 0c2caca  Dev 1.1.1 ec task monitor bug fix (#1795)
     new c7becb3  fix: issue 1650 and 1596 (#4)
     new bae062d  Dev 1.1.1 web (#5)
     new 38357e0  Dev 1.1.1 web (#6)
     new 63c208c  fix: Fix format Number & adjust source col Width
     new 110b885  Dev 1.1.1 web (#7)
     new 92a2d96  fix: fix udf page cannot open & rm useless cods
     new f3ef0c5  fix: #1771, #1772 (#8)

The 7 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 web/package.json                                   |  6 ++--
 .../{functionManagement => udfManagement}/index.js |  6 ++--
 web/src/apps/URM/router.js                         |  6 ++--
 web/src/apps/URM/view/urm/index.vue                | 12 ++++++-
 web/src/apps/linkis/components/cardList/index.vue  | 19 ++++------
 web/src/apps/linkis/i18n/common/en.json            |  4 +++
 web/src/apps/linkis/i18n/common/zh.json            |  4 +++
 .../module/globalHistoryManagement/index.scss      |  4 +++
 .../module/globalHistoryManagement/index.vue       | 40 ++++++++++++++--------
 .../module/globalHistoryManagement/viewHistory.vue | 13 ++++++-
 web/src/apps/linkis/module/header/index.vue        |  3 +-
 web/src/apps/linkis/view/linkis/index.vue          |  1 +
 web/src/common/service/mixin.js                    | 17 +--------
 web/src/common/util/convert.js                     | 12 +++----
 web/src/components/consoleComponent/result.vue     |  7 ----
 web/src/dss/module/header/index.vue                |  5 +--
 web/src/dss/module/resourceSimple/engine.vue       | 15 ++++++++
 web/src/dynamic-apps.js                            | 25 ++++----------
 web/src/main.js                                    |  4 +--
 web/vue.config.js                                  |  3 +-
 20 files changed, 113 insertions(+), 93 deletions(-)
 copy web/src/apps/URM/module/{functionManagement => udfManagement}/index.js (95%)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[incubator-linkis] 03/07: Dev 1.1.1 web (#6)

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit 38357e06520aa8ae746bc15b1c24f417322e8920
Author: 李为 <12...@qq.com>
AuthorDate: Tue Mar 15 16:36:45 2022 +0800

    Dev 1.1.1 web (#6)
    
    * fix: issue 1650 and 1596
    
    * change execID in viewHistory
    
    * fix: bug
    
    * change zh
    
    Co-authored-by: liveipooli(李为) <li...@webank.com>
---
 web/src/apps/linkis/i18n/common/zh.json                            | 4 ++--
 web/src/apps/linkis/module/globalHistoryManagement/index.vue       | 1 +
 web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue | 4 +---
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/web/src/apps/linkis/i18n/common/zh.json b/web/src/apps/linkis/i18n/common/zh.json
index 0bb7189..92c6525 100644
--- a/web/src/apps/linkis/i18n/common/zh.json
+++ b/web/src/apps/linkis/i18n/common/zh.json
@@ -154,8 +154,8 @@
                     "placeholder": "请选择起始日期"
                 },
                 "creator": {
-                    "label": "创建人",
-                    "placeholder": "请输入创建人搜索"
+                    "label": "应用",
+                    "placeholder": "请输入应用搜索"
                 },
                 "engine": {
                     "label": "引擎"
diff --git a/web/src/apps/linkis/module/globalHistoryManagement/index.vue b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
index b4b8ef7..a973a79 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/index.vue
+++ b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
@@ -352,6 +352,7 @@ export default {
       const query =  {
         taskID: params.row.taskID,
         execID: params.row.strongerExecId,
+        status: params.row.status,
         fileName
       }
       if (this.isAdminModel) {
diff --git a/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue b/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
index 01ec0d8..51184ad 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
+++ b/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
@@ -41,7 +41,6 @@
   </div>
 </template>
 <script>
-import storage from '@/common/helper/storage'
 import result from '@/components/consoleComponent/result.vue'
 import log from '@/components/consoleComponent/log.vue'
 import api from '@/common/service/api'
@@ -302,9 +301,8 @@ export default {
         if (this.$route.query.proxyUser) {
           params.proxyUser = this.$route.query.proxyUser
         }
-        const lastSearch = storage.get('last-searchbar-status')
         let openLog = {}
-        if (lastSearch && (lastSearch.status === 'Scheduled' || lastSearch.status === 'Running')) {
+        if (this.$route.query.status === 'Scheduled' || this.$route.query.status === 'Running') {
           const tempParams = {
             fromLine: this.fromLine,
             size: -1,

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[incubator-linkis] 01/07: fix: issue 1650 and 1596 (#4)

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit c7becb3de7e1222f13dd2a10e75c960431191506
Author: 李为 <12...@qq.com>
AuthorDate: Sun Mar 13 10:19:43 2022 +0800

    fix: issue 1650 and 1596 (#4)
    
    Co-authored-by: liveipooli(李为) <li...@webank.com>
---
 web/src/apps/linkis/i18n/common/en.json                     |  4 ++++
 web/src/apps/linkis/i18n/common/zh.json                     |  4 ++++
 .../apps/linkis/module/globalHistoryManagement/index.vue    | 13 +++++++++++++
 .../linkis/module/globalHistoryManagement/viewHistory.vue   | 13 ++++++++++++-
 4 files changed, 33 insertions(+), 1 deletion(-)

diff --git a/web/src/apps/linkis/i18n/common/en.json b/web/src/apps/linkis/i18n/common/en.json
index 8fbcbb7..e9ff476 100644
--- a/web/src/apps/linkis/i18n/common/en.json
+++ b/web/src/apps/linkis/i18n/common/en.json
@@ -149,6 +149,10 @@
           "label": " Start Date",
           "placeholder": "Please choose the start date"
         },
+        "creator": {
+          "label": "creator",
+          "placeholder": "Please search by entering the creator"
+        },
         "engine": {
           "label": "Engine"
         },
diff --git a/web/src/apps/linkis/i18n/common/zh.json b/web/src/apps/linkis/i18n/common/zh.json
index e447a2b..0bb7189 100644
--- a/web/src/apps/linkis/i18n/common/zh.json
+++ b/web/src/apps/linkis/i18n/common/zh.json
@@ -153,6 +153,10 @@
                     "label": "起始时间",
                     "placeholder": "请选择起始日期"
                 },
+                "creator": {
+                    "label": "创建人",
+                    "placeholder": "请输入创建人搜索"
+                },
                 "engine": {
                     "label": "引擎"
                 },
diff --git a/web/src/apps/linkis/module/globalHistoryManagement/index.vue b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
index 043c831..b086e58 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/index.vue
+++ b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
@@ -50,6 +50,15 @@
           :editable="false"
         />
       </FormItem>
+      <Divider type="vertical" class="divider"/>
+      <FormItem prop="creator" :label="$t('message.linkis.formItems.creator.label')">
+        <Input
+          :maxlength="50"
+          v-model="searchBar.creator"
+          :placeholder="$t('message.linkis.formItems.creator.placeholder')"
+          style="width:120px;"
+        />
+      </FormItem>
       <Divider type="vertical" class="divider" />
       <FormItem prop="engine" :label="$t('message.linkis.formItems.engine.label')">
         <Select v-model="searchBar.engine" style="min-width:70px;">
@@ -143,6 +152,7 @@ export default {
       searchBar: {
         id: null,
         proxyUser: '',
+        creator: '',
         engine: 'all',
         status: '',
         shortcut: [today, today]
@@ -360,6 +370,7 @@ export default {
       const endDate = this.searchBar.shortcut[1]
       const params = {
         taskID: this.searchBar.id,
+        creator: this.searchBar.creator,
         executeApplicationName: this.searchBar.engine,
         status: this.searchBar.status,
         startDate: startDate && startDate.getTime(),
@@ -373,6 +384,7 @@ export default {
         delete params.proxyUser
       }
       if (this.searchBar.id) {
+        delete params.creator
         delete params.executeApplicationName
         delete params.status
         delete params.startDate
@@ -582,6 +594,7 @@ export default {
       this.searchBar = {
         id: null,
         proxyUser: '',
+        creator: '',
         engine: 'all',
         status: 'all',
         shortcut: ''
diff --git a/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue b/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
index 3b7f57a..a5cbb57 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
+++ b/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
@@ -41,6 +41,7 @@
   </div>
 </template>
 <script>
+import storage from '@/common/helper/storage'
 import result from '@/components/consoleComponent/result.vue'
 import log from '@/components/consoleComponent/log.vue'
 import api from '@/common/service/api'
@@ -301,7 +302,17 @@ export default {
         if (this.$route.query.proxyUser) {
           params.proxyUser = this.$route.query.proxyUser
         }
-        let openLog = await api.fetch('/filesystem/openLog', params, 'get')
+        const lastSearch = storage.get('last-searchbar-status')
+        let openLog = {}
+        if (lastSearch && (lastSearch.status === 'Scheduled' || lastSearch.status === 'Running')) {
+          const tempParams = {
+            fromLine: this.fromLine,
+            size: -1,
+          }
+          openLog = await api.fetch(`/entrance/${jobId}/log`, tempParams, 'get')
+        } else {
+          openLog = await api.fetch('/filesystem/openLog', params, 'get')
+        }
         if (openLog) {
           const log = { all: '', error: '', warning: '', info: '' }
           const convertLogs = util.convertLog(openLog.log)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[incubator-linkis] 02/07: Dev 1.1.1 web (#5)

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit bae062d9db729b66c17382c13da7bcd869dd9ad4
Author: 李为 <12...@qq.com>
AuthorDate: Mon Mar 14 15:26:14 2022 +0800

    Dev 1.1.1 web (#5)
    
    * fix: issue 1650 and 1596
    
    * change execID in viewHistory
    
    Co-authored-by: liveipooli(李为) <li...@webank.com>
---
 web/src/apps/linkis/module/globalHistoryManagement/index.vue       | 1 +
 web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/web/src/apps/linkis/module/globalHistoryManagement/index.vue b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
index b086e58..b4b8ef7 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/index.vue
+++ b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
@@ -351,6 +351,7 @@ export default {
       }
       const query =  {
         taskID: params.row.taskID,
+        execID: params.row.strongerExecId,
         fileName
       }
       if (this.isAdminModel) {
diff --git a/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue b/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
index a5cbb57..01ec0d8 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
+++ b/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
@@ -309,7 +309,7 @@ export default {
             fromLine: this.fromLine,
             size: -1,
           }
-          openLog = await api.fetch(`/entrance/${jobId}/log`, tempParams, 'get')
+          openLog = await api.fetch(`/entrance/${this.$route.query.execID}/log`, tempParams, 'get')
         } else {
           openLog = await api.fetch('/filesystem/openLog', params, 'get')
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[incubator-linkis] 06/07: fix: fix udf page cannot open & rm useless cods

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit 92a2d96c6b0204e57d23b9767fb494e9841e3f7d
Author: ryanlei <ry...@webank.com>
AuthorDate: Thu Mar 17 17:27:35 2022 +0800

    fix: fix udf page cannot open & rm useless cods
---
 web/package.json                               |  5 +----
 web/src/apps/URM/module/udfManagement/index.js | 21 +++++++++++++++++++++
 web/src/apps/URM/router.js                     |  6 +++---
 web/src/common/service/mixin.js                | 17 +----------------
 web/src/components/consoleComponent/result.vue |  7 -------
 web/src/dynamic-apps.js                        | 25 +++++++------------------
 web/src/main.js                                |  4 ++--
 web/vue.config.js                              |  3 +--
 8 files changed, 36 insertions(+), 52 deletions(-)

diff --git a/web/package.json b/web/package.json
index bd8c6a6..2da21e5 100644
--- a/web/package.json
+++ b/web/package.json
@@ -7,8 +7,7 @@
         "build": "vue-cli-service build",
         "lint": "vue-cli-service lint --no-fix",
         "fix": "eslint --ext .js,.vue src --fix",
-        "precommit": "lint-staged",
-        "postinstall": "patch-package"
+        "precommit": "lint-staged"
     },
     "husky": {
         "hooks": {
@@ -39,7 +38,6 @@
         "moment": "2.29.1",
         "monaco-editor": "0.19.3",
         "object-to-formdata": "^4.2.2",
-        "pinyin": "2.9.1",
         "qs": "6.9.4",
         "reconnecting-websocket": "4.4.0",
         "sql-formatter": "2.3.3",
@@ -67,7 +65,6 @@
         "material-design-icons": "^3.0.1",
         "monaco-editor-webpack-plugin": "1.8.2",
         "node-sass": "4.14.1",
-        "patch-package": "6.2.2",
         "sass-loader": "7.3.1",
         "svg-sprite-loader": "5.0.0",
         "vue-cli-plugin-mockjs": "0.1.3",
diff --git a/web/src/apps/URM/module/udfManagement/index.js b/web/src/apps/URM/module/udfManagement/index.js
new file mode 100644
index 0000000..35a1575
--- /dev/null
+++ b/web/src/apps/URM/module/udfManagement/index.js
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export default {
+  name: 'UdfManagemet',
+  component: () => import('./index.vue'),
+};
diff --git a/web/src/apps/URM/router.js b/web/src/apps/URM/router.js
index 225382e..8e0e80b 100644
--- a/web/src/apps/URM/router.js
+++ b/web/src/apps/URM/router.js
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -38,7 +38,7 @@ export default [
       publicPage: true,
     },
     children: [{
-      name: 'udfFunctionManage',
+      name: 'udfManagement',
       path: 'udfManagement',
       component: () =>
         import('./module/udfManagement/index.vue'),
diff --git a/web/src/common/service/mixin.js b/web/src/common/service/mixin.js
index fa53e85..397fe1b 100644
--- a/web/src/common/service/mixin.js
+++ b/web/src/common/service/mixin.js
@@ -26,22 +26,7 @@ export default {
       SUPPORTED_LANG_MODES,
     };
   },
-  beforeRouteLeave(to, from, next) {
-    if (typeof this.beforeLeaveHook === 'function') {
-      let hookRes = this.beforeLeaveHook();
-      if (hookRes === false) {
-        next(false);
-      } else if (hookRes && hookRes.then) {
-        hookRes.then((flag) => {
-          next(flag);
-        });
-      } else {
-        next(true);
-      }
-    } else {
-      next(true);
-    }
-  },
+  
   created: function () {},
   mounted: function () {},
   beforeDestroy: function () {},
diff --git a/web/src/components/consoleComponent/result.vue b/web/src/components/consoleComponent/result.vue
index 6274439..9085288 100644
--- a/web/src/components/consoleComponent/result.vue
+++ b/web/src/components/consoleComponent/result.vue
@@ -169,7 +169,6 @@ import WeToolbar from './toolbar.vue';
 import elementResizeEvent from '@/common/helper/elementResizeEvent';
 import resultSetList from './resultSetList.vue';
 import filter from './filter.vue';
-import pinyin from 'pinyin';
 import dataWrangler from './dataWrangler.vue';
 import mixin from '@/common/service/mixin';
 /**
@@ -413,12 +412,6 @@ export default {
       if (charB === undefined || charB === null || charB === '' || charB === ' ' || charB === ' ') {
         return 1;
       }
-      if (!this.notChinese(charA)) {
-        charA = pinyin(charA)[0][0];
-      }
-      if (!this.notChinese(charB)) {
-        charB = pinyin(charB)[0][0];
-      }
       return charA.localeCompare(charB);
     },
     notChinese(char) {
diff --git a/web/src/dynamic-apps.js b/web/src/dynamic-apps.js
index 2600dc0..c239104 100644
--- a/web/src/dynamic-apps.js
+++ b/web/src/dynamic-apps.js
@@ -5,16 +5,16 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
 import { merge } from 'lodash'
 import routes, { subAppRoutes } from "./dss/router"
 // 根据module参数配置要打包的应用,生成的虚拟模块
@@ -23,11 +23,7 @@ const apps = require('dynamic-modules')
 // length ===1 为单个子应用独立运行,否则为dss,包含多个子应用
 let subRoutes = subAppRoutes
 const appsRoutes = Object.values(apps.appsRoutes)
-if (apps.modules.length === 1) {
-  if (appsRoutes[0].subAppRoutes) {
-    subRoutes = appsRoutes[0].subAppRoutes
-  }
-}
+
 /**
  * * 工作流子应用:workflows和scriptis一起打包
  * * npm run build --module=scriptis,workflows --micro_module=workflows
@@ -39,24 +35,17 @@ if (apps.microModule) {
   if (apps.appsRoutes[apps.microModule].subAppRoutes) {
     subRoutes = apps.appsRoutes[apps.microModule].subAppRoutes
   }
-    
-  if (apps.microModule === 'workflows') {
-    subRoutes.redirect =  '/process'
-  }
 
 }
 if (appsRoutes) {
   appsRoutes.forEach(route => {
-    if (apps.microModule === 'apiServices' && route.apiServicesRoutes) {
-      subRoutes.children = subRoutes.children.concat(route.apiServicesRoutes)
-    } else {
-      subRoutes.children = subRoutes.children.concat(route.default)
-    }
+    subRoutes.children = subRoutes.children.concat(route.default)
   });
 }
 
 routes.unshift(subRoutes)
 
+console.log(routes)
 // 公共国际化
 const i18n = {
   'en': require('./common/i18n/en.json'),
@@ -74,4 +63,4 @@ export {
   routes,
   i18n,
   apps
-}
\ No newline at end of file
+}
diff --git a/web/src/main.js b/web/src/main.js
index 6819cc6..1eaf535 100644
--- a/web/src/main.js
+++ b/web/src/main.js
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
diff --git a/web/vue.config.js b/web/vue.config.js
index a609fc8..b2ad8df 100644
--- a/web/vue.config.js
+++ b/web/vue.config.js
@@ -18,7 +18,6 @@
 
 // vue.config.js
 const path = require('path')
-const fs = require('fs')
 const FileManagerPlugin = require('filemanager-webpack-plugin');
 const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
 // const CspHtmlWebpackPlugin = require('csp-html-webpack-plugin');
@@ -26,7 +25,7 @@ const VirtualModulesPlugin = require('webpack-virtual-modules');
 const apps = require('./src/config.json')
 
 const getVersion = () => {
-    return  process.env.VUE_APP_VERSION
+  return  process.env.VUE_APP_VERSION
 }
 
 // 指定module打包, 不指定则打包全部子应用

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[incubator-linkis] 05/07: Dev 1.1.1 web (#7)

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit 110b88548c8bbfb05e0b5b03ec060983ddf092d5
Author: 李为 <12...@qq.com>
AuthorDate: Wed Mar 16 15:39:28 2022 +0800

    Dev 1.1.1 web (#7)
    
    * fix: issue 1650 and 1596
    
    * change execID in viewHistory
    
    * fix: bug
    
    * change zh
    
    * fix: bug
    
    Co-authored-by: liveipooli(李为) <li...@webank.com>
---
 web/package.json                                      |  1 +
 web/src/apps/linkis/components/cardList/index.vue     | 19 +++++++------------
 .../module/globalHistoryManagement/viewHistory.vue    |  2 ++
 web/src/apps/linkis/module/header/index.vue           |  3 ++-
 web/src/dss/module/header/index.vue                   |  4 ++--
 web/src/dss/module/resourceSimple/engine.vue          | 15 +++++++++++++++
 6 files changed, 29 insertions(+), 15 deletions(-)

diff --git a/web/package.json b/web/package.json
index 7248e18..bd8c6a6 100644
--- a/web/package.json
+++ b/web/package.json
@@ -64,6 +64,7 @@
         "filemanager-webpack-plugin": "6.1.7",
         "husky": "1.3.1",
         "lint-staged": "8.2.1",
+        "material-design-icons": "^3.0.1",
         "monaco-editor-webpack-plugin": "1.8.2",
         "node-sass": "4.14.1",
         "patch-package": "6.2.2",
diff --git a/web/src/apps/linkis/components/cardList/index.vue b/web/src/apps/linkis/components/cardList/index.vue
index a5ac563..c8fa093 100644
--- a/web/src/apps/linkis/components/cardList/index.vue
+++ b/web/src/apps/linkis/components/cardList/index.vue
@@ -43,23 +43,17 @@
             <div>{{ item.tag || item.categoryName }}</div>
           </div>
           <!-- 引擎编辑 -->
-          <SvgIcon
+          <i 
+            class="material-icons edit"
             v-if="iseditListItem"
             @click="editListItem(index, item)"
-            class="edit"
-            style="font-size: 14px"
-            color="#5580eb"
-            icon-class="common"
-          />
+            style="font-size: 14px">edit</i>
           <!-- 引擎删除 -->
-          <SvgIcon
+          <i 
+            class="material-icons close"
             v-if="isdeleteListItem"
             @click="deleteListItem(index, item)"
-            class="close"
-            style="font-size: 16px"
-            color="#5580eb"
-            icon-class="common"
-          />
+            style="font-size: 16px">delete</i>
         </li>
         <!-- add -->
         <li v-if="isOpenAdd" class="cardItem add" @click="addList">
@@ -72,6 +66,7 @@
   </div>
 </template>
 <script>
+import 'material-design-icons/iconfont/material-icons.css';
 export default {
   name: "cardList",
   props: {
diff --git a/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue b/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
index 51184ad..d258c4d 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
+++ b/web/src/apps/linkis/module/globalHistoryManagement/viewHistory.vue
@@ -419,6 +419,8 @@ export default {
 }
 </script>
 <style lang="scss" scoped>
+
+
 .backButton {
   position: absolute;
   top: 0;
diff --git a/web/src/apps/linkis/module/header/index.vue b/web/src/apps/linkis/module/header/index.vue
index d62eaef..ab7c6f6 100644
--- a/web/src/apps/linkis/module/header/index.vue
+++ b/web/src/apps/linkis/module/header/index.vue
@@ -85,9 +85,10 @@ export default {
   },
   methods: {
     init() {
+      this.userName = storage.get('userName');
       GetBaseInfo().then(rst => {
         if (!isEmpty(rst)) {
-          this.userName = rst.username;
+          this.userName = this.userName || rst.username;
           storage.set("baseInfo", rst, "local");
           this.$router.app.$emit("username", rst.username);
           this.$emit("set-init");
diff --git a/web/src/dss/module/header/index.vue b/web/src/dss/module/header/index.vue
index 813dcff..fd2017d 100644
--- a/web/src/dss/module/header/index.vue
+++ b/web/src/dss/module/header/index.vue
@@ -86,10 +86,10 @@ export default {
   },
   methods: {
     init() {
-      let userName = storage.get('userName');
+      this.userName = storage.get('userName');
       GetBaseInfo().then(rst => {
         if (!isEmpty(rst)) {
-          this.userName = userName || rst.username;
+          this.userName = this.userName || rst.username;
           storage.set("baseInfo", rst, "local");
           this.$router.app.$emit("username", rst.username);
           this.$emit("set-init");
diff --git a/web/src/dss/module/resourceSimple/engine.vue b/web/src/dss/module/resourceSimple/engine.vue
index 7575052..dcc8e24 100644
--- a/web/src/dss/module/resourceSimple/engine.vue
+++ b/web/src/dss/module/resourceSimple/engine.vue
@@ -223,6 +223,20 @@ export default {
           return 'PipeLine';
         case 'shell':
           return 'Shell';
+        case 'jdbc':
+          return 'Jdbc';
+        case 'es':
+          return 'Es';
+        case 'presto':
+          return 'Presto';
+        case 'flink':
+          return 'Flink';
+        case 'sqoop':
+          return 'Sqoop';
+        case 'datax':
+          return 'Datax';
+        case 'openlookeng':
+          return 'Openlookeng';
         case 'Unlock':
           return this.$t('message.common.resourceSimple.KX')
         case 'Idle':
@@ -238,6 +252,7 @@ export default {
         case 'Starting':
           return this.$t('message.common.resourceSimple.QD');
         default:
+          return params;
       }
     },
     killJob() {

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[incubator-linkis] 04/07: fix: Fix format Number & adjust source col Width

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit 63c208cdb192bd24bb87cf3b0cde2dae59580f82
Author: ryanlei <ry...@webank.com>
AuthorDate: Tue Mar 15 18:27:56 2022 +0800

    fix: Fix format Number & adjust source col Width
---
 web/src/apps/linkis/module/globalHistoryManagement/index.vue | 11 ++++++-----
 web/src/apps/linkis/view/linkis/index.vue                    |  1 +
 web/src/common/util/convert.js                               | 12 ++++++------
 web/src/dss/module/header/index.vue                          |  1 +
 4 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/web/src/apps/linkis/module/globalHistoryManagement/index.vue b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
index a973a79..8521783 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/index.vue
+++ b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
@@ -520,13 +520,14 @@ export default {
           title: this.$t('message.linkis.tableColumns.fileName'),
           key: 'source',
           align: 'center',
-          width: 140
+          ellipsis: true,
+          width: 190
         },
         {
           title: this.$t('message.linkis.tableColumns.executionCode'),
           key: 'executionCode',
           align: 'center',
-          width: 450,
+          width: 440,
           // 溢出以...显示
           ellipsis: true
           // renderType: 'tooltip',
@@ -535,7 +536,7 @@ export default {
           title: this.$t('message.linkis.tableColumns.status'),
           key: 'status',
           align: 'center',
-          width: 200,
+          width: 180,
           renderType: 'if',
           renderParams: {
             action: this.setRenderType
@@ -545,7 +546,7 @@ export default {
           title: this.$t('message.linkis.tableColumns.costTime'),
           key: 'costTime',
           align: 'center',
-          width: 100,
+          width: 90,
           renderType: 'convertTime'
         },
         {
@@ -553,7 +554,7 @@ export default {
           key: 'failedReason',
           align: 'center',
           className: 'history-failed',
-          width: 220,
+          width: 210,
           renderType: 'a',
           renderParams: {
             hasDoc: this.checkIfHasDoc,
diff --git a/web/src/apps/linkis/view/linkis/index.vue b/web/src/apps/linkis/view/linkis/index.vue
index 2841f30..43f8492 100644
--- a/web/src/apps/linkis/view/linkis/index.vue
+++ b/web/src/apps/linkis/view/linkis/index.vue
@@ -85,6 +85,7 @@ export default {
           { key: '1-6', name: this.$t('message.linkis.sideNavList.function.children.ECMManage'), path: '/console/ECM' },
           { key: '1-7', name: this.$t('message.linkis.sideNavList.function.children.microserviceManage'), path: '/console/microService' },
           { key: '1-5', name: this.$t('message.linkis.sideNavList.function.children.globalValiable'), path: '/console/FAQ' },
+          { key: '1-9', name: this.$t('message.linkis.sideNavList.function.children.udfFunctionManage'), path: '/urm/udfManagement' },
           { key: '1-8', name: this.$t('message.linkis.sideNavList.function.children.dataSourceManage'), path: '/console/dataSource' },
         ],
       },
diff --git a/web/src/common/util/convert.js b/web/src/common/util/convert.js
index 2dc9e46..2473bde 100644
--- a/web/src/common/util/convert.js
+++ b/web/src/common/util/convert.js
@@ -5,16 +5,16 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
 
 /*eslint-disable */
 import i18n from '@/common/i18n';
@@ -61,11 +61,11 @@ export function convertTimestamp(runningTime) {
     } else if (time < 60) {
         return `${time}${i18n.t('message.common.time.second')}`;
     } else if (time < 3600) {
-        return `${(time / 60).toPrecision(2)}${i18n.t('message.common.time.minute')}`;
+        return `${(time / 60).toFixed(2)}${i18n.t('message.common.time.minute')}`;
     } else if (time < 86400) {
-        return `${(time / 3600).toPrecision(2)}${i18n.t('message.common.time.hour')}`;
+        return `${(time / 3600).toFixed(2)}${i18n.t('message.common.time.hour')}`;
     }
-    return `${(time / 86400).toPrecision(2)}${i18n.t('message.common.time.day')}`;
+    return `${(time / 86400).toFixed(2)}${i18n.t('message.common.time.day')}`;
 }
 
 /**
diff --git a/web/src/dss/module/header/index.vue b/web/src/dss/module/header/index.vue
index 28026d5..813dcff 100644
--- a/web/src/dss/module/header/index.vue
+++ b/web/src/dss/module/header/index.vue
@@ -20,6 +20,7 @@
     <div class="layout-header">
       <div
         class="layout-header-menu-icon"
+        @click="$router.push('/')"
       >
         <div style="display:inline-block;">
           <SvgIcon style="font-size: 28px;" icon-class="common" color="#00FFFF"/>

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org


[incubator-linkis] 07/07: fix: #1771, #1772 (#8)

Posted by pe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev-1.1.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git

commit f3ef0c5fca69f1b5d74d0128b947dba25310d533
Author: 李为 <12...@qq.com>
AuthorDate: Tue Mar 22 17:28:14 2022 +0800

    fix: #1771, #1772 (#8)
    
    * fix: issue 1650 and 1596
    
    * change execID in viewHistory
    
    * fix: bug
    
    * change zh
    
    * fix: bug
    
    * fix: #1771, #1772
    
    * fix: #1771, #1772
    
    Co-authored-by: liveipooli(李为) <li...@webank.com>
---
 web/src/apps/URM/view/urm/index.vue                    | 12 +++++++++++-
 .../linkis/module/globalHistoryManagement/index.scss   |  4 ++++
 .../linkis/module/globalHistoryManagement/index.vue    | 18 ++++++------------
 3 files changed, 21 insertions(+), 13 deletions(-)

diff --git a/web/src/apps/URM/view/urm/index.vue b/web/src/apps/URM/view/urm/index.vue
index 2c1c840..5edbb7b 100644
--- a/web/src/apps/URM/view/urm/index.vue
+++ b/web/src/apps/URM/view/urm/index.vue
@@ -19,6 +19,7 @@
   <div class="console-page">
     <div class="console-page-content-head">
       <div>
+        <Icon type="ios-arrow-back" size="20" color="#338cf0" class="back" @click="back"></Icon>
         <span class="console-page-content-title">用户资源管理</span>
       </div>
     </div>
@@ -47,7 +48,6 @@
         <div class="content-body-side-right-title">
           <Breadcrumb>
             <BreadcrumbItem>
-              <!-- <Icon type="ios-arrow-back" size="16" color="#338cf0"></Icon> -->
               {{ breadcrumbSecondName }}
             </BreadcrumbItem>
           </Breadcrumb>
@@ -117,6 +117,11 @@ export default {
           workspaceId: this.$route.query.workspaceId
         },
       });
+    },
+    back() {
+      this.$router.push({
+        path: '/console/globalHistory',
+      });
     }
   }
 };
@@ -126,5 +131,10 @@ export default {
   .crrentItem {
     color: #338cf0;
   }
+  .back {
+    position: relative;
+    top: -3px;
+    cursor: pointer;
+  }
 </style>
 
diff --git a/web/src/apps/linkis/module/globalHistoryManagement/index.scss b/web/src/apps/linkis/module/globalHistoryManagement/index.scss
index 191fb46..1f1eb58 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/index.scss
+++ b/web/src/apps/linkis/module/globalHistoryManagement/index.scss
@@ -49,11 +49,15 @@
     .ivu-form {
         display: flex;
         .ivu-form-item {
+            margin-right: 4px;
             margin-bottom: 10px;
             .ivu-form-item-content {
                 display: flex !important;
             }
         }
+        .ivu-input-with-suffix {
+            padding-right: 7px;
+        }
     }
     .global-history-table {
         display: flex;
diff --git a/web/src/apps/linkis/module/globalHistoryManagement/index.vue b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
index 8521783..85e90e3 100644
--- a/web/src/apps/linkis/module/globalHistoryManagement/index.vue
+++ b/web/src/apps/linkis/module/globalHistoryManagement/index.vue
@@ -22,20 +22,18 @@
         <InputNumber
           v-model="searchBar.id"
           :placeholder="$t('message.linkis.formItems.id.placeholder')"
-          style="width:100px;"
+          style="width:60px;"
           :min="1"
         ></InputNumber>
       </FormItem>
-      <Divider type="vertical" class="divider" v-if="isAdminModel" />
       <FormItem prop="proxyUser" :label="$t('message.linkis.userName')" v-if="isAdminModel">
         <Input
           :maxlength="50"
           v-model="searchBar.proxyUser"
           :placeholder="$t('message.linkis.searchName')"
-          style="width:120px;"
+          style="width:60px;"
         />
       </FormItem>
-      <Divider type="vertical" class="divider" />
       <FormItem prop="shortcut" :label="$t('message.linkis.formItems.date.label')">
         <DatePicker
           :transfer="true"
@@ -46,28 +44,25 @@
           placement="bottom-start"
           format="yyyy-MM-dd HH:mm"
           :placeholder="$t('message.linkis.formItems.date.placeholder')"
-          style="width: 200px"
+          style="width: 115px"
           :editable="false"
         />
       </FormItem>
-      <Divider type="vertical" class="divider"/>
       <FormItem prop="creator" :label="$t('message.linkis.formItems.creator.label')">
         <Input
           :maxlength="50"
           v-model="searchBar.creator"
           :placeholder="$t('message.linkis.formItems.creator.placeholder')"
-          style="width:120px;"
+          style="width:80px;"
         />
       </FormItem>
-      <Divider type="vertical" class="divider" />
       <FormItem prop="engine" :label="$t('message.linkis.formItems.engine.label')">
-        <Select v-model="searchBar.engine" style="min-width:70px;">
+        <Select v-model="searchBar.engine" style="width: 70px">
           <Option v-for="(item) in getEngineTypes" :label="item === 'all' ? '全部': item" :value="item" :key="item" />
         </Select>
       </FormItem>
-      <Divider type="vertical" class="divider" />
       <FormItem prop="status" :label="$t('message.linkis.formItems.status.label')">
-        <Select v-model="searchBar.status" style="min-width:90px;">
+        <Select v-model="searchBar.status" style="width: 70px">
           <Option
             v-for="(item) in statusType"
             :label="item.label"
@@ -76,7 +71,6 @@
           />
         </Select>
       </FormItem>
-      <Divider type="vertical" class="divider" />
       <FormItem>
         <Button
           type="primary"

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org