Quellcode durchsuchen

项目配置列表发版

朱鑫波 vor 3 Jahren
Ursprung
Commit
f3853833ea

+ 9 - 9
.editorconfig

@@ -3,37 +3,37 @@ charset = utf-8
 end_of_line = crlf
 insert_final_newline = false
 indent_style = space
-indent_size = 2
+indent_size = 4
 
 [{*.ng, *.sht, *.html, *.shtm, *.shtml, *.htm}]
 indent_style = space
-indent_size = 2
+indent_size = 4
 
 [{*.jhm, *.xslt, *.xul, *.rng, *.xsl, *.xsd, *.ant, *.tld, *.fxml, *.jrxml, *.xml, *.jnlp, *.wsdl}]
 indent_style = space
-indent_size = 2
+indent_size = 4
 
 [{.babelrc, .stylelintrc, jest.config, .eslintrc, .prettierrc, *.json, *.jsb3, *.jsb2, *.bowerrc}]
 indent_style = space
-indent_size = 2
+indent_size = 4
 
 [*.svg]
 indent_style = space
-indent_size = 2
+indent_size = 4
 
 [*.js.map]
 indent_style = space
-indent_size = 2
+indent_size = 4
 
 [*.less]
 indent_style = space
-indent_size = 2
+indent_size = 4
 
 [*.vue]
 indent_style = space
-indent_size = 2
+indent_size = 4
 
 [{.analysis_options, *.yml, *.yaml}]
 indent_style = space
-indent_size = 2
+indent_size = 4
 

+ 5 - 1
src/config/router.config.js

@@ -77,7 +77,11 @@ export const constantRouterMap = [
       }
     ]
   },
-
+  {
+    path: '/creat-config',
+    name: 'creatConfig',
+    component: () => import(/* webpackChunkName: "fail" */ '@/views/modules/autoLaunch/configProject/creatConfig')
+  },
 
   {
     path: '/test',

+ 14 - 0
src/filters.js

@@ -3,6 +3,20 @@ import moment from 'moment';
 function fixedZero(val) {
     return val * 1 < 10 ? `0${val}` : val;
 }
+// function getrandom(minnum , maxnum ,total,size){
+//     var num = total; //定义整数
+//     var length= size;  //定义多个整数的数量
+//     var numArr = [];
+//     while(length > 1){
+//         var rnd = Math.floor(Math.random() * num); //通过JS的随机函数生成随机数
+//         num -= rnd;
+//         numArr.push(rnd);
+//         length --;
+//     }
+//     numArr.push(num);
+//     console.info(numArr);
+//     return numArr;
+// };getrandom(6,30,45,6)
 const filters = {
     // 格式化时间展示多长时间之前
     formatTime(time) {

+ 1 - 1
src/permission.js

@@ -10,7 +10,7 @@ import { generateIndexRouter } from "@/utils/util"
 NProgress.configure({ showSpinner: false }) // NProgress Configuration
 
 
-const whiteList = ['/user/login', '/user/register', '/user/register-result', '/user/alteration', '/user/transfer-local', '/errorPage', '/user/new-batch', '/user/lookPreview', 'http://192.168.0.111:8088/jeecg-boot/sys/feishu/url', '/user/FStransfer'] // no redirect whitelist
+const whiteList = ['/user/login', '/user/register', '/user/register-result', '/user/alteration', '/user/transfer-local', '/errorPage', '/user/new-batch', '/user/lookPreview', 'http://192.168.0.111:8088/jeecg-boot/sys/feishu/url', '/user/FStransfer','/creat-config'] // no redirect whitelist
 
 router.beforeEach((to, from, next) => {
   NProgress.start() // start progress bar

+ 14 - 0
src/views/modules/autoLaunch/configProject/configProject-service.js

@@ -0,0 +1,14 @@
+/**
+ * @file 项目配置列表
+ * @author zhuxinbo(zhuxinbo@c-top.com.cn)
+ */
+
+class AppMarketService {
+    constructor() { }
+
+
+
+
+}
+
+export default new AppMarketService();

+ 6 - 0
src/views/modules/autoLaunch/configProject/configProject.less

@@ -0,0 +1,6 @@
+.config-project {
+    .middle-button {
+        margin: 0 8px;
+    }
+  
+}

Datei-Diff unterdrückt, da er zu groß ist
+ 3456 - 0
src/views/modules/autoLaunch/configProject/creatConfig.vue


+ 96 - 0
src/views/modules/autoLaunch/configProject/editablCell.vue

@@ -0,0 +1,96 @@
+<template>
+    <div class="editable-cell">
+        <div v-if="editable" class="editable-cell-input-wrapper">
+            <a-input :value="value" @change="handleChange" @pressEnter="check" /><a-icon
+                type="check"
+                class="editable-cell-icon-check"
+                @click="check"
+            />
+        </div>
+        <div v-else class="editable-cell-text-wrapper">
+            <div
+                style="width:90%;
+                overflow:hidden;
+                text-overflow:ellipsis;
+                white-space:nowrap;"
+                :title="value"
+            >
+                {{ value || '' }}
+            </div>
+
+            <a-icon type="edit" class="editable-cell-icon" :style="{ top: value ? '10px' : '0px' }" @click="edit" />
+        </div>
+    </div>
+</template>
+
+<script>
+export default {
+    props: {
+        text: String
+    },
+    data() {
+        return {
+            value: this.text,
+            editable: false
+        }
+    },
+    methods: {
+        handleChange(e) {
+            const value = e.target.value
+            this.value = value
+        },
+        check() {
+            this.editable = false
+            this.$emit('change', this.value)
+        },
+        edit() {
+            this.editable = true
+        }
+    }
+}
+</script>
+<style lang="scss" scoped>
+.editable-cell {
+    position: relative;
+}
+
+.editable-cell-input-wrapper,
+.editable-cell-text-wrapper {
+    padding-right: 24px;
+}
+
+.editable-cell-text-wrapper {
+    padding: 5px 24px 5px 5px;
+}
+
+.editable-cell-icon,
+.editable-cell-icon-check {
+    position: absolute;
+    right: 0;
+    width: 20px;
+    top: 10px;
+    cursor: pointer;
+}
+
+.editable-cell-icon {
+    line-height: 18px;
+    display: none;
+}
+
+.editable-cell-icon-check {
+    line-height: 28px;
+}
+
+.editable-cell:hover .editable-cell-icon {
+    display: inline-block;
+}
+
+.editable-cell-icon:hover,
+.editable-cell-icon-check:hover {
+    color: #108ee9;
+}
+
+.editable-add-btn {
+    margin-bottom: 8px;
+}
+</style>

Datei-Diff unterdrückt, da er zu groß ist
+ 1428 - 0
src/views/modules/autoLaunch/configProject/index.vue


+ 1 - 1
src/views/user/Login.vue

@@ -441,7 +441,7 @@ export default {
     loginSuccess() {
       this.loginBtn = false
       this.$router.push({
-        name: 'dashboard',
+        path: '/dashboard/analysis',
       })
       this.$notification.success({
         message: '欢迎',