Compare commits
	
		
			39 Commits
		
	
	
		
			5f204c2b92
			...
			to-vite
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7154edde7c | |||
| f22f6b268a | |||
| 1c44e56b56 | |||
| 3f93afede3 | |||
| 8dd5f27d47 | |||
| 557452aedc | |||
| 46cfdc28a6 | |||
| e450e280d4 | |||
| 8248fe942a | |||
| a97d222486 | |||
| f354d141f5 | |||
| 8902b2761b | |||
| 81d52412db | |||
| 9afe66b769 | |||
| c2bc64fd36 | |||
| e7e8ec49e2 | |||
| 05e131ecbe | |||
| 55cf233192 | |||
| 5822212970 | |||
| e685197674 | |||
| a81bdc330c | |||
| 8315b1f9b2 | |||
| 007953d129 | |||
| f2802722c1 | |||
| 655af8eec1 | |||
| 5c0050fe13 | |||
| c28c4c7789 | |||
| 608b1d1b41 | |||
| 12674fa58f | |||
| db0ac8c960 | |||
| 946cf852d2 | |||
| f4769057db | |||
| 33195638ca | |||
| 44acd8856a | |||
| 2d9178e4ae | |||
| e142a2a624 | |||
| a5fa62c5d0 | |||
| 8e5dc6e617 | |||
| 365815735e | 
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						@@ -722,3 +722,5 @@ local.properties
 | 
			
		||||
# Typically, this file would be tracked if it contains build/dependency configurations:
 | 
			
		||||
#.project
 | 
			
		||||
 | 
			
		||||
target
 | 
			
		||||
target/*
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-04 11:38:32
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-04 14:17:26
 | 
			
		||||
 * @LastEditTime: 2023-02-17 10:52:40
 | 
			
		||||
 * @FilePath: /后端-需求/src/main/java/com/cpic/xim/utils/db/RequirementDbOperation.java
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
@@ -20,7 +20,7 @@ import com.cpic.xim.data.RequirementStatus;
 | 
			
		||||
 | 
			
		||||
public final class RequirementDbOperation
 | 
			
		||||
{
 | 
			
		||||
    private static final String MYSQL_JDBC_CONNECT = "jdbc:mysql://192.168.1.14:3306";
 | 
			
		||||
    private static final String MYSQL_JDBC_CONNECT = "jdbc:mysql://10.39.0.85:3306";
 | 
			
		||||
    private static final String MYSQL_CLASS_DRIVER = "com.mysql.cj.jdbc.Driver";
 | 
			
		||||
 | 
			
		||||
    /*****************************************************
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								code/ts/pako/.eslintignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,4 @@
 | 
			
		||||
node_modules
 | 
			
		||||
dist
 | 
			
		||||
target
 | 
			
		||||
tsconfig.json
 | 
			
		||||
							
								
								
									
										60
									
								
								code/ts/pako/.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,60 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-09 15:26:18
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-10 10:25:42
 | 
			
		||||
 * @FilePath: /后端辅助工具/.eslintrc.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
module.exports = {
 | 
			
		||||
    root: true,
 | 
			
		||||
    env: {
 | 
			
		||||
        browser: true,
 | 
			
		||||
        es2021: true,
 | 
			
		||||
        node: true,
 | 
			
		||||
    },
 | 
			
		||||
    parser: "@typescript-eslint/parser",
 | 
			
		||||
    parserOptions: {
 | 
			
		||||
        ecmaVersion: "latest",
 | 
			
		||||
        sourceType: "module",
 | 
			
		||||
        // project: ["./tsconfig.json",],
 | 
			
		||||
        tsconfigRootDir: __dirname,
 | 
			
		||||
    },
 | 
			
		||||
    plugins: [
 | 
			
		||||
        "@typescript-eslint",
 | 
			
		||||
    ],
 | 
			
		||||
    extends: [
 | 
			
		||||
        // "standard-with-typescript",
 | 
			
		||||
        "eslint:recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/eslint-recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/recommended",
 | 
			
		||||
    ],
 | 
			
		||||
    rules: {
 | 
			
		||||
        "no-console": "warn",
 | 
			
		||||
        "quote-props": ["warn", "as-needed",],
 | 
			
		||||
        quotes: ["warn", "double", { allowTemplateLiterals: true, },],
 | 
			
		||||
        indent: ["warn", 4,],
 | 
			
		||||
        "no-unused-vars": "off",
 | 
			
		||||
        semi: ["error", "always",], // 控制行尾部分号
 | 
			
		||||
        "comma-dangle": ["error", {
 | 
			
		||||
            arrays: "always",
 | 
			
		||||
            objects: "always",
 | 
			
		||||
            imports: "never",
 | 
			
		||||
            exports: "never",
 | 
			
		||||
            functions: "never",
 | 
			
		||||
        },], // 数组和对象键值对最后一个逗号
 | 
			
		||||
        "comma-style": ["error", "last",], // 逗号在行位
 | 
			
		||||
        "array-bracket-spacing": ["error", "never",],
 | 
			
		||||
        "no-undef-init": "error",
 | 
			
		||||
        "no-invalid-this": "error",
 | 
			
		||||
        "no-use-before-define": "error",
 | 
			
		||||
        "no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
 | 
			
		||||
        // "comma-spacing": ["error", { "before": false, "after": true, },],
 | 
			
		||||
        "brace-style": ["error", "allman", { allowSingleLine: true, },],
 | 
			
		||||
        "prefer-const": "warn",
 | 
			
		||||
        "@typescript-eslint/no-extra-semi": "off",
 | 
			
		||||
        "@typescript-eslint/no-inferrable-types": "off",
 | 
			
		||||
    },
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										21
									
								
								code/ts/pako/package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,21 @@
 | 
			
		||||
{
 | 
			
		||||
    "name": "pako",
 | 
			
		||||
    "version": "1.0.0",
 | 
			
		||||
    "lockfileVersion": 3,
 | 
			
		||||
    "requires": true,
 | 
			
		||||
    "packages": {
 | 
			
		||||
        "": {
 | 
			
		||||
            "name": "pako",
 | 
			
		||||
            "version": "1.0.0",
 | 
			
		||||
            "license": "ISC",
 | 
			
		||||
            "dependencies": {
 | 
			
		||||
                "pako": "^2.1.0"
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        "node_modules/pako": {
 | 
			
		||||
            "version": "2.1.0",
 | 
			
		||||
            "resolved": "https://registry.npmmirror.com/pako/-/pako-2.1.0.tgz",
 | 
			
		||||
            "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug=="
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										19
									
								
								code/ts/pako/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,19 @@
 | 
			
		||||
{
 | 
			
		||||
    "name": "pako",
 | 
			
		||||
    "version": "1.0.0",
 | 
			
		||||
    "description": "",
 | 
			
		||||
    "main": "index.js",
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "test": "node index.js"
 | 
			
		||||
    },
 | 
			
		||||
    "keywords": [
 | 
			
		||||
        "pako"
 | 
			
		||||
    ],
 | 
			
		||||
    "type": "module",
 | 
			
		||||
    "author": "Kane",
 | 
			
		||||
    "license": "ISC",
 | 
			
		||||
    "dependencies": {
 | 
			
		||||
        "pako": "^2.1.0"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										22
									
								
								code/ts/pako/src/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										37
									
								
								code/ts/pako/src/utils/StringConverter.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,37 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-13 14:54:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-13 14:55:19
 | 
			
		||||
 * @FilePath: /pako/src/utils/StringConverter.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
function Uint8ArrayToString(fileData)
 | 
			
		||||
{
 | 
			
		||||
    var dataString = "";
 | 
			
		||||
    for (var i = 0; i < fileData.length; i++)
 | 
			
		||||
    {
 | 
			
		||||
        dataString += String.fromCharCode(fileData[i]);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return dataString;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function stringToUint8Array(str)
 | 
			
		||||
{
 | 
			
		||||
    var arr = [];
 | 
			
		||||
 | 
			
		||||
    for (var i = 0, j = str.length; i < j; ++i)
 | 
			
		||||
    {
 | 
			
		||||
        arr.push(str.charCodeAt(i));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    var tmpUint8Array = new Uint8Array(arr);
 | 
			
		||||
 | 
			
		||||
    return tmpUint8Array;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export { Uint8ArrayToString, stringToUint8Array };
 | 
			
		||||
							
								
								
									
										4
									
								
								code/ts/后端辅助工具/.eslintignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,4 @@
 | 
			
		||||
node_modules
 | 
			
		||||
dist
 | 
			
		||||
target
 | 
			
		||||
tsconfig.json
 | 
			
		||||
							
								
								
									
										61
									
								
								code/ts/后端辅助工具/.eslintrc.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,61 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-09 15:26:18
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-18 23:36:07
 | 
			
		||||
 * @FilePath: /后端辅助工具/.eslintrc.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
module.exports = {
 | 
			
		||||
    root: true,
 | 
			
		||||
    env: {
 | 
			
		||||
        browser: true,
 | 
			
		||||
        es2021: true,
 | 
			
		||||
        node: true,
 | 
			
		||||
    },
 | 
			
		||||
    parser: "@typescript-eslint/parser",
 | 
			
		||||
    parserOptions: {
 | 
			
		||||
        ecmaVersion: "latest",
 | 
			
		||||
        sourceType: "module",
 | 
			
		||||
        // project: ["./tsconfig.json",],
 | 
			
		||||
        tsconfigRootDir: __dirname,
 | 
			
		||||
    },
 | 
			
		||||
    plugins: [
 | 
			
		||||
        "@typescript-eslint",
 | 
			
		||||
    ],
 | 
			
		||||
    extends: [
 | 
			
		||||
        // "standard-with-typescript",
 | 
			
		||||
        "eslint:recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/eslint-recommended",
 | 
			
		||||
        "plugin:@typescript-eslint/recommended",
 | 
			
		||||
    ],
 | 
			
		||||
    rules: {
 | 
			
		||||
        "no-console": "off",
 | 
			
		||||
        "quote-props": ["warn", "as-needed",],
 | 
			
		||||
        quotes: ["warn", "double", { allowTemplateLiterals: true, },],
 | 
			
		||||
        indent: ["warn", 4,],
 | 
			
		||||
        "no-unused-vars": "off",
 | 
			
		||||
        semi: ["error", "always",], // 控制行尾部分号
 | 
			
		||||
        "comma-dangle": ["error", {
 | 
			
		||||
            arrays: "always",
 | 
			
		||||
            objects: "always",
 | 
			
		||||
            imports: "never",
 | 
			
		||||
            exports: "never",
 | 
			
		||||
            functions: "never",
 | 
			
		||||
        },], // 数组和对象键值对最后一个逗号
 | 
			
		||||
        "comma-style": ["error", "last",], // 逗号在行位
 | 
			
		||||
        "array-bracket-spacing": ["error", "never",],
 | 
			
		||||
        "no-undef-init": "error",
 | 
			
		||||
        "no-invalid-this": "error",
 | 
			
		||||
        "no-use-before-define": "error",
 | 
			
		||||
        "no-shadow-restricted-names": "error", // 禁止对一些关键字或者保留字进行赋值操作,比如NaN、Infinity、undefined、eval、arguments等
 | 
			
		||||
        // "comma-spacing": ["error", { "before": false, "after": true, },],
 | 
			
		||||
        "brace-style": ["error", "allman", { allowSingleLine: true, },],
 | 
			
		||||
        "prefer-const": "warn",
 | 
			
		||||
        "@typescript-eslint/no-extra-semi": "off",
 | 
			
		||||
        "@typescript-eslint/no-inferrable-types": "off",
 | 
			
		||||
        "@typescript-eslint/no-unused-vars": "off",
 | 
			
		||||
    },
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										20
									
								
								code/ts/后端辅助工具/.vscode/launch.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,20 @@
 | 
			
		||||
{
 | 
			
		||||
    // 使用 IntelliSense 了解相关属性。 
 | 
			
		||||
    // 悬停以查看现有属性的描述。
 | 
			
		||||
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
 | 
			
		||||
    "version": "0.2.0",
 | 
			
		||||
    "configurations": [
 | 
			
		||||
        {
 | 
			
		||||
            "type": "pwa-node",
 | 
			
		||||
            "request": "launch",
 | 
			
		||||
            "name": "Launch Program",
 | 
			
		||||
            "skipFiles": [
 | 
			
		||||
                "<node_internals>/**"
 | 
			
		||||
            ],
 | 
			
		||||
            "program": "${file}",
 | 
			
		||||
            "outFiles": [
 | 
			
		||||
                "${workspaceFolder}/**/*.js"
 | 
			
		||||
            ]
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										3
									
								
								code/ts/后端辅助工具/.vscode/settings.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,3 @@
 | 
			
		||||
{
 | 
			
		||||
    "typescript.tsdk": "node_modules/typescript/lib"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										14
									
								
								code/ts/后端辅助工具/.vscode/tasks.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,14 @@
 | 
			
		||||
{
 | 
			
		||||
	"version": "2.0.0",
 | 
			
		||||
	"tasks": [
 | 
			
		||||
		{
 | 
			
		||||
			"type": "typescript",
 | 
			
		||||
			"tsconfig": "tsconfig.json",
 | 
			
		||||
			"problemMatcher": [
 | 
			
		||||
				"$tsc"
 | 
			
		||||
			],
 | 
			
		||||
			"group": "build",
 | 
			
		||||
			"label": "tsc: build - tsconfig.json"
 | 
			
		||||
		}
 | 
			
		||||
	]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										1559
									
								
								code/ts/后端辅助工具/package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										11
									
								
								code/ts/后端辅助工具/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,11 @@
 | 
			
		||||
{
 | 
			
		||||
    "devDependencies": {
 | 
			
		||||
        "@typescript-eslint/eslint-plugin": "^5.51.0",
 | 
			
		||||
        "@typescript-eslint/parser": "^5.51.0",
 | 
			
		||||
        "eslint": "^8.33.0"
 | 
			
		||||
    },
 | 
			
		||||
    "dependencies": {
 | 
			
		||||
        "axios": "^1.3.2",
 | 
			
		||||
        "pako": "^2.1.0"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										41
									
								
								code/ts/后端辅助工具/src/DataType/Class.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,41 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-17 22:35:49
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-19 21:38:18
 | 
			
		||||
 * @FilePath: /后端辅助工具/src/DataType/Class.ts
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
class CpicximStuff
 | 
			
		||||
{
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _stuffName: string,
 | 
			
		||||
        private _stuffCode: string,
 | 
			
		||||
        private _p13UID: string
 | 
			
		||||
    ) { }
 | 
			
		||||
 | 
			
		||||
    get stuffName(): string 
 | 
			
		||||
    {
 | 
			
		||||
        return this._stuffName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    set stuffName(stuffName: string)
 | 
			
		||||
    {
 | 
			
		||||
        this._stuffName = stuffName;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    get stuffCode(): string
 | 
			
		||||
    {
 | 
			
		||||
        return this._stuffCode;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    set stuffCode(code: string)
 | 
			
		||||
    {
 | 
			
		||||
        this._stuffCode = code;
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export { CpicximStuff };
 | 
			
		||||
							
								
								
									
										73
									
								
								code/ts/后端辅助工具/src/DataType/DataType.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,73 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-10 15:08:53
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-13 10:04:33
 | 
			
		||||
 * @FilePath: /后端辅助工具/src/DataType/DataType.ts
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
/*eslint no-unused-vars: "off" */
 | 
			
		||||
/*eslint @typescript-eslint/no-unused-vars: "off" */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
//Tuple
 | 
			
		||||
function dataTypes()
 | 
			
		||||
{
 | 
			
		||||
    const tu: readonly [number, number, number] = [1, 1, 2,];
 | 
			
		||||
 | 
			
		||||
    const toArray: [number, number, string] = [1, 2, "3",];
 | 
			
		||||
    const v1: (number | string)[] = toArray;
 | 
			
		||||
 | 
			
		||||
    const s1 = "string";
 | 
			
		||||
 | 
			
		||||
    console.log(typeof s1);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    let point: {
 | 
			
		||||
        x: number,
 | 
			
		||||
        y: number,
 | 
			
		||||
    };
 | 
			
		||||
    point = { x: 0, y: 0, };
 | 
			
		||||
 | 
			
		||||
    function addOne(x: number, y: number = 1): number
 | 
			
		||||
    {
 | 
			
		||||
        return x + y;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    console.log(addOne(1));
 | 
			
		||||
 | 
			
		||||
    function allParams(x: number, y: number): void 
 | 
			
		||||
    {
 | 
			
		||||
        const z = x + y;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    //剩余参数,数组形式
 | 
			
		||||
    function overplusArgusWithArray(x: number, ...argus: number[]): number
 | 
			
		||||
    {
 | 
			
		||||
        return argus.length;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    function overplusArugsWithTuple(x: number, ...argus: [number, number, string]): number
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
        console.log(`元组形式的参数表${argus},剩余参数的数量${argus.length}。`);
 | 
			
		||||
        console.log(argus[2]);
 | 
			
		||||
 | 
			
		||||
        return argus.length;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    overplusArugsWithTuple(1, 2, 3, "test");
 | 
			
		||||
 | 
			
		||||
    console.log(overplusArgusWithArray(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
 | 
			
		||||
 | 
			
		||||
    //测试null
 | 
			
		||||
    const nulltest: null = null;
 | 
			
		||||
    let var_2: { x: string; } = { x: "test", };
 | 
			
		||||
 | 
			
		||||
    // var_2 = null;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
export default dataTypes;
 | 
			
		||||
							
								
								
									
										30
									
								
								code/ts/后端辅助工具/src/DataType/Function.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,30 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-13 23:08:34
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-16 22:43:22
 | 
			
		||||
 * @FilePath: /后端辅助工具/src/DataType/Function.ts
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
function f(x: number, y: number): number 
 | 
			
		||||
{
 | 
			
		||||
    return x + y;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
f.version = "1.0.0";
 | 
			
		||||
 | 
			
		||||
const func: {
 | 
			
		||||
    (x: number, y: number): void,
 | 
			
		||||
    version: string,
 | 
			
		||||
} = f;
 | 
			
		||||
 | 
			
		||||
function func_this_void(this: void, arg1: number): number
 | 
			
		||||
{
 | 
			
		||||
    return arg1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
let constructor: {
 | 
			
		||||
    new(x: string, y: string): object;
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										24
									
								
								code/ts/后端辅助工具/src/DataType/Interface.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,24 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-14 22:24:26
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-21 23:31:40
 | 
			
		||||
 * @FilePath: /后端辅助工具/src/DataType/Interface.ts
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
interface document
 | 
			
		||||
{
 | 
			
		||||
    getElementById(id: string): HTMLElement | null;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
interface CpicStuff
 | 
			
		||||
{
 | 
			
		||||
    stuffName: string;
 | 
			
		||||
    stuffCode: string;
 | 
			
		||||
    p13uid: string;
 | 
			
		||||
    password: string;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										23
									
								
								code/ts/后端辅助工具/src/DataType/Template.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,23 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-21 17:39:01
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-22 14:08:48
 | 
			
		||||
 * @FilePath: /后端辅助工具/src/DataType/Template.ts
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
interface Point
 | 
			
		||||
{
 | 
			
		||||
    x: number;
 | 
			
		||||
    y: number;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function radius<TPoint>(x: TPoint): TPoint
 | 
			
		||||
{
 | 
			
		||||
    const result: TPoint = x;
 | 
			
		||||
 | 
			
		||||
    return result;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										11
									
								
								code/ts/后端辅助工具/src/axios/AxiosTest.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,11 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-13 15:46:17
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-13 23:34:55
 | 
			
		||||
 * @FilePath: /后端辅助工具/src/axios/AxiosTest.ts
 | 
			
		||||
 * @Description:
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved.
 | 
			
		||||
 */
 | 
			
		||||
import axios from "axios";
 | 
			
		||||
							
								
								
									
										19
									
								
								code/ts/后端辅助工具/src/axios/request.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,19 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-13 15:53:45
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-13 22:41:50
 | 
			
		||||
 * @FilePath: /后端辅助工具/src/axios/request.ts
 | 
			
		||||
 * @Description:
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved.
 | 
			
		||||
 */
 | 
			
		||||
import axios, {AxiosInstance, AxiosRequestConfig, AxiosResponse} from 'axios';
 | 
			
		||||
 | 
			
		||||
// const service = axios.create({
 | 
			
		||||
//     baseURL: "",
 | 
			
		||||
//     timeout: 10000,
 | 
			
		||||
//     timeoutErrorMessage: "请求超时!",
 | 
			
		||||
// });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										27
									
								
								code/ts/后端辅助工具/src/gzip/PakoTest.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										21
									
								
								code/ts/后端辅助工具/src/main.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,21 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-09 22:14:30
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-21 23:32:00
 | 
			
		||||
 * @FilePath: /后端辅助工具/src/main.ts
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
import dataTypes from "./DataType/DataType";
 | 
			
		||||
import { pakoTest } from "./gzip/PakoTest";
 | 
			
		||||
 | 
			
		||||
const greetings = "hello, this is kane's typescript!";
 | 
			
		||||
 | 
			
		||||
console.log(greetings);
 | 
			
		||||
console.log("all");
 | 
			
		||||
 | 
			
		||||
//dataTypes();
 | 
			
		||||
pakoTest();
 | 
			
		||||
							
								
								
									
										38
									
								
								code/ts/后端辅助工具/src/utils/StringConvert.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,38 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-13 14:54:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-13 14:55:19
 | 
			
		||||
 * @FilePath: /pako/src/utils/StringConverter.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
function Uint8ArrayToString(fileData: Uint8Array): string
 | 
			
		||||
{
 | 
			
		||||
    let dataString: string = "";
 | 
			
		||||
 | 
			
		||||
    for (let i = 0; i < fileData.length; i++)
 | 
			
		||||
    {
 | 
			
		||||
        dataString += String.fromCharCode(fileData[i]);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return dataString;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function stringToUint8Array(str: string): Uint8Array
 | 
			
		||||
{
 | 
			
		||||
    const arr: number[] = [];
 | 
			
		||||
 | 
			
		||||
    for (let i = 0, j = str.length; i < j; ++i)
 | 
			
		||||
    {
 | 
			
		||||
        arr.push(str.charCodeAt(i));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const tmpUint8Array: Uint8Array = new Uint8Array(arr);
 | 
			
		||||
 | 
			
		||||
    return tmpUint8Array;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export { Uint8ArrayToString, stringToUint8Array };
 | 
			
		||||
							
								
								
									
										40
									
								
								code/ts/后端辅助工具/tsconfig.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,40 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-09 15:24:20
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-17 23:15:11
 | 
			
		||||
 * @FilePath: /后端辅助工具/tsconfig.json
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
{
 | 
			
		||||
    "compilerOptions": {
 | 
			
		||||
        "outDir": "./target",
 | 
			
		||||
        "strict": false,
 | 
			
		||||
        "strictNullChecks": true,
 | 
			
		||||
        "strictPropertyInitialization": true,
 | 
			
		||||
        "sourceMap": true,
 | 
			
		||||
        "allowJs": true,
 | 
			
		||||
        "checkJs": true,
 | 
			
		||||
        "moduleResolution": "node",
 | 
			
		||||
        "module": "CommonJS",
 | 
			
		||||
        "target": "ES2015"
 | 
			
		||||
    },
 | 
			
		||||
    // "files": [
 | 
			
		||||
    //     "./src/main.ts",
 | 
			
		||||
    // ],
 | 
			
		||||
    "include": [
 | 
			
		||||
        "./src/**/*",
 | 
			
		||||
        // "./src/*.ts",
 | 
			
		||||
        // "src/main.ts",
 | 
			
		||||
        // ".eslintrc.js",
 | 
			
		||||
    ],
 | 
			
		||||
    "exclude": [
 | 
			
		||||
        "./target",
 | 
			
		||||
        "node_modules",
 | 
			
		||||
        "bower_componets",
 | 
			
		||||
        "jspm_packages",
 | 
			
		||||
    ],
 | 
			
		||||
    // "outFile": "./target/mian.js",
 | 
			
		||||
}
 | 
			
		||||
@@ -1,54 +0,0 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-17 11:08:18
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-07 12:27:02
 | 
			
		||||
 * @FilePath: /IT工具综合平台/vue.config.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
// const { defineConfig } = require('@vue/cli-service');
 | 
			
		||||
// module.exports = defineConfig(
 | 
			
		||||
//   {
 | 
			
		||||
//     transpileDependencies: true,
 | 
			
		||||
//     devServer: {
 | 
			
		||||
//       open: true,
 | 
			
		||||
//       host: "localhost",
 | 
			
		||||
//       port: 8000,
 | 
			
		||||
//     },
 | 
			
		||||
//   }
 | 
			
		||||
// );
 | 
			
		||||
module.exports = {
 | 
			
		||||
  transpileDependencies: true,
 | 
			
		||||
  devServer: {
 | 
			
		||||
    open: true,
 | 
			
		||||
    host: "localhost",
 | 
			
		||||
    port: 8000,
 | 
			
		||||
  },
 | 
			
		||||
  chainWebpack: (config) =>
 | 
			
		||||
  {
 | 
			
		||||
    // svg 图标解析
 | 
			
		||||
    const svgRule = config.module.rule("svg");  //默认规则赋给 subRule 变量  
 | 
			
		||||
    svgRule.uses.clear();  // 清除已有的所有规则。
 | 
			
		||||
    svgRule  // 添加要替换的规则
 | 
			
		||||
      .use("svg-sprite-loader")
 | 
			
		||||
      .loader("svg-sprite-loader")
 | 
			
		||||
      .options({
 | 
			
		||||
        symbolId: "icon-[name]",
 | 
			
		||||
        include: ["./src/components/svg/icons",], // 特别注意的目录路径
 | 
			
		||||
      });
 | 
			
		||||
    // 配置base64转换规则
 | 
			
		||||
    // config.module
 | 
			
		||||
    //   .rule('images')
 | 
			
		||||
    //   .use('url-loader')
 | 
			
		||||
    //   .loader('url-loader')
 | 
			
		||||
    //   .tap(options => Object.assign(options, { limit: 1 }));
 | 
			
		||||
 | 
			
		||||
    // 载入项目分析工具
 | 
			
		||||
    // config.plugin('webpack-bundle-analyzer').use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
 | 
			
		||||
  },
 | 
			
		||||
  //打包输出目录
 | 
			
		||||
  publicPath: "./",
 | 
			
		||||
  outputDir: "dist",
 | 
			
		||||
};
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-14 15:12:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-06 00:36:26
 | 
			
		||||
 * @LastEditTime: 2023-02-14 23:10:53
 | 
			
		||||
 * @FilePath: /IT工具综合平台/.eslintrc.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
@@ -25,7 +25,7 @@ module.exports = {
 | 
			
		||||
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
 | 
			
		||||
    "no-unused-vars": "warn",
 | 
			
		||||
    "semi": ["error", "always",],//控制行尾部分号
 | 
			
		||||
    "comma-dangle": ["error", {
 | 
			
		||||
    "comma-dangle": ["warn", {
 | 
			
		||||
      "arrays": "always",
 | 
			
		||||
      "objects": "always",
 | 
			
		||||
      "imports": "never",
 | 
			
		||||
							
								
								
									
										44
									
								
								code/web/it-console-toVite/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,44 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-17 11:08:18
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-23 00:40:59
 | 
			
		||||
 * @FilePath: /it-console-toVite/index.html
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
-->
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="zh-cn">
 | 
			
		||||
    <head>
 | 
			
		||||
        <meta charset="utf-8" />
 | 
			
		||||
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
 | 
			
		||||
        <meta name="viewport" content="width=device-width,initial-scale=1.0" />
 | 
			
		||||
        <link rel="icon" href="public/favicon.ico" />
 | 
			
		||||
        <title>王炜的工具箱</title>
 | 
			
		||||
    </head>
 | 
			
		||||
    <body>
 | 
			
		||||
        <noscript>
 | 
			
		||||
            <strong
 | 
			
		||||
                >We're sorry but <%= title %> doesn't work properly without
 | 
			
		||||
                JavaScript enabled. Please enable it to continue.</strong
 | 
			
		||||
            >
 | 
			
		||||
        </noscript>
 | 
			
		||||
        <div id="app" v-cloak></div>
 | 
			
		||||
        <!-- built files will be auto injected -->
 | 
			
		||||
        <script type="module" src="/src/main.js"></script>
 | 
			
		||||
    </body>
 | 
			
		||||
    <style>
 | 
			
		||||
        .v-cloak {
 | 
			
		||||
            display: none;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        body {
 | 
			
		||||
            width: 100vw;
 | 
			
		||||
            height: 100vh;
 | 
			
		||||
            max-height: 100vh;
 | 
			
		||||
            min-width: 1280px;
 | 
			
		||||
        }
 | 
			
		||||
    </style>
 | 
			
		||||
</html>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										29167
									
								
								code/web/it-console-toVite/package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										52
									
								
								code/web/it-console-toVite/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,52 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "CPIC-IT-Console",
 | 
			
		||||
  "version": "0.1.0",
 | 
			
		||||
  "private": true,
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "serve": "vue-cli-service serve",
 | 
			
		||||
    "build": "vue-cli-service build",
 | 
			
		||||
    "lint": "vue-cli-service lint",
 | 
			
		||||
    "serve-vite": "vite",
 | 
			
		||||
    "build-vite": "vite build",
 | 
			
		||||
    "preview-vite": "vite preview"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@element-plus/icons-vue": "^2.0.10",
 | 
			
		||||
    "@vitejs/plugin-vue": "^4.0.0",
 | 
			
		||||
    "@wangeditor/editor": "^5.1.23",
 | 
			
		||||
    "@wangeditor/editor-for-vue": "^5.1.12",
 | 
			
		||||
    "axios": "^1.2.1",
 | 
			
		||||
    "core-js": "^3.8.3",
 | 
			
		||||
    "element-plus": "^2.2.26",
 | 
			
		||||
    "sass": "^1.56.2",
 | 
			
		||||
    "scss": "^0.2.4",
 | 
			
		||||
    "scss-loader": "^0.0.1",
 | 
			
		||||
    "vite": "^4.1.4",
 | 
			
		||||
    "vue": "^3.2.13",
 | 
			
		||||
    "vue-router": "^4.0.3",
 | 
			
		||||
    "vuex": "^4.0.0"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@babel/core": "^7.12.16",
 | 
			
		||||
    "@babel/eslint-parser": "^7.12.16",
 | 
			
		||||
    "@vue/cli-plugin-babel": "~5.0.0",
 | 
			
		||||
    "@vue/cli-plugin-eslint": "~5.0.0",
 | 
			
		||||
    "@vue/cli-plugin-router": "~5.0.0",
 | 
			
		||||
    "@vue/cli-plugin-vuex": "~5.0.0",
 | 
			
		||||
    "@vue/cli-service": "~5.0.0",
 | 
			
		||||
    "eslint": "^7.32.0",
 | 
			
		||||
    "eslint-plugin-vue": "^8.0.3",
 | 
			
		||||
    "node-sass": "^8.0.0",
 | 
			
		||||
    "sass-loader": "^13.2.0",
 | 
			
		||||
    "svg-sprite-loader": "^2.1.0",
 | 
			
		||||
    "vue-cli-plugin-element-plus": "~0.0.13",
 | 
			
		||||
    "@vue/compiler-sfc": "^3.2.26",
 | 
			
		||||
    "@vitejs/plugin-vue": "^2.0.1",
 | 
			
		||||
    "@vitejs/plugin-vue-jsx": "^1.3.2",
 | 
			
		||||
    "vite-plugin-env-compatible": "^1.1.1",
 | 
			
		||||
    "vite-plugin-html": "3.2.0",
 | 
			
		||||
    "vite": "^2.7.2",
 | 
			
		||||
    "@originjs/vite-plugin-require-context": "1.0.9",
 | 
			
		||||
    "@originjs/vite-plugin-commonjs": "^1.0.1"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB  | 
							
								
								
									
										44
									
								
								code/web/it-console-toVite/public/index.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,44 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-17 11:08:18
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-23 00:44:29
 | 
			
		||||
 * @FilePath: /it-console-toVite/public/index.html
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
-->
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="">
 | 
			
		||||
    <head>
 | 
			
		||||
        <meta charset="utf-8" />
 | 
			
		||||
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
 | 
			
		||||
        <meta name="viewport" content="width=device-width,initial-scale=1.0" />
 | 
			
		||||
        <link rel="icon" href="favicon.ico" />
 | 
			
		||||
        <title>王炜的工具箱</title>
 | 
			
		||||
    </head>
 | 
			
		||||
    <body>
 | 
			
		||||
        <noscript>
 | 
			
		||||
            <strong
 | 
			
		||||
                >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't
 | 
			
		||||
                work properly without JavaScript enabled. Please enable it to
 | 
			
		||||
                continue.</strong
 | 
			
		||||
            >
 | 
			
		||||
        </noscript>
 | 
			
		||||
        <div id="app"></div>
 | 
			
		||||
        <!-- built files will be auto injected -->
 | 
			
		||||
    </body>
 | 
			
		||||
    <script type="module" src="../src/main.js"></script>
 | 
			
		||||
    <style>
 | 
			
		||||
        .v-cloak {
 | 
			
		||||
            display: none;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        body {
 | 
			
		||||
            width: 100vw;
 | 
			
		||||
            height: 100vh;
 | 
			
		||||
            max-height: 100vh;
 | 
			
		||||
            min-width: 1280px;
 | 
			
		||||
        }
 | 
			
		||||
    </style>
 | 
			
		||||
</html>
 | 
			
		||||
@@ -2,8 +2,8 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-14 15:12:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-03 18:53:11
 | 
			
		||||
 * @FilePath: \IT工具综合平台\src\App.vue
 | 
			
		||||
 * @LastEditTime: 2023-02-15 09:34:25
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/App.vue
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
@@ -24,7 +24,7 @@ export default {
 | 
			
		||||
  {
 | 
			
		||||
    const locale = zhCn;
 | 
			
		||||
 | 
			
		||||
    return { locale };
 | 
			
		||||
    return { locale, };
 | 
			
		||||
  },
 | 
			
		||||
  components: {
 | 
			
		||||
    // HelloWorld,
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 773 KiB After Width: | Height: | Size: 773 KiB  | 
| 
		 Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB  | 
| 
		 Before Width: | Height: | Size: 195 KiB After Width: | Height: | Size: 195 KiB  | 
@@ -2,8 +2,8 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-01-06 20:33:57
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-01-07 17:10:07
 | 
			
		||||
 * @FilePath: \admin_system\src\components\svg\SvgIcon.vue
 | 
			
		||||
 * @LastEditTime: 2023-02-22 17:10:18
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/components/svg/SvgIcon.vue
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
@@ -18,10 +18,10 @@ export default {
 | 
			
		||||
    data()
 | 
			
		||||
    {
 | 
			
		||||
        return {
 | 
			
		||||
            iconName: ""
 | 
			
		||||
            iconName: "",
 | 
			
		||||
        };
 | 
			
		||||
    },
 | 
			
		||||
    props: ["icon"],
 | 
			
		||||
    props: ["icon",],
 | 
			
		||||
    created()
 | 
			
		||||
    {
 | 
			
		||||
        console.log("svg");
 | 
			
		||||
@@ -31,6 +31,4 @@ export default {
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style scoped>
 | 
			
		||||
 | 
			
		||||
</style>
 | 
			
		||||
<style scoped></style>
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 753 B After Width: | Height: | Size: 753 B  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB  | 
| 
		 Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 928 B  | 
| 
		 Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB  | 
| 
		 Before Width: | Height: | Size: 937 B After Width: | Height: | Size: 937 B  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB  | 
| 
		 Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB  | 
| 
		 Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB  | 
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-01-04 11:39:04
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-06 10:17:22
 | 
			
		||||
 * @LastEditTime: 2023-02-22 18:33:11
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/layout/components/Header.vue
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
@@ -28,7 +28,7 @@ import { Logout } from "../../utils/api/info/account";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "AppBanner",
 | 
			
		||||
  setup(props, context)
 | 
			
		||||
  setup()
 | 
			
		||||
  {
 | 
			
		||||
    const logout = () =>
 | 
			
		||||
    {
 | 
			
		||||
							
								
								
									
										43
									
								
								code/web/it-console-toVite/src/main.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,43 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-14 15:12:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-17 13:11:43
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/main.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
import { createApp } from 'vue';
 | 
			
		||||
import App from './App.vue';
 | 
			
		||||
 | 
			
		||||
//路由
 | 
			
		||||
import router from './router';
 | 
			
		||||
//vuex
 | 
			
		||||
import store from './store';
 | 
			
		||||
//引入全局函数
 | 
			
		||||
import global from "@/utils/global";
 | 
			
		||||
 | 
			
		||||
import("./css/root.css");
 | 
			
		||||
import("./css/normalize.css");
 | 
			
		||||
import("./css/colors.css");
 | 
			
		||||
import("element-plus/dist/index.css");
 | 
			
		||||
 | 
			
		||||
import ElementPlus from "element-plus";
 | 
			
		||||
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
 | 
			
		||||
//import SvgIcon from "./components/svg/SvgIcon";
 | 
			
		||||
 | 
			
		||||
const app = createApp(App);
 | 
			
		||||
 | 
			
		||||
//app.component("SvgIcon", SvgIcon);
 | 
			
		||||
 | 
			
		||||
for (const [key, component,] of Object.entries(ElementPlusIconsVue))
 | 
			
		||||
{
 | 
			
		||||
    app.component(key, component);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
app.use(ElementPlus);
 | 
			
		||||
app.use(store);
 | 
			
		||||
app.use(router);
 | 
			
		||||
app.use(global);
 | 
			
		||||
app.mount('#app');
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-14 15:12:46
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-04 22:36:13
 | 
			
		||||
 * @LastEditTime: 2023-02-21 13:09:15
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/router/index.js
 | 
			
		||||
 * @Description: 定义应用路由配置
 | 
			
		||||
 * 
 | 
			
		||||
@@ -19,10 +19,10 @@ const routes = [
 | 
			
		||||
    hidden: true,
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    path:"/error-page",
 | 
			
		||||
    path: "/error-page",
 | 
			
		||||
    name: "ErrorPage",
 | 
			
		||||
    hidden: true,
 | 
			
		||||
    component: ()=> import("@/views/ErrorPage.vue"),
 | 
			
		||||
    component: () => import("@/views/ErrorPage.vue"),
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    path: "/login",
 | 
			
		||||
@@ -35,7 +35,7 @@ const routes = [
 | 
			
		||||
    name: "Home",
 | 
			
		||||
    hidden: true,
 | 
			
		||||
    meta: {
 | 
			
		||||
      title: "控制台"
 | 
			
		||||
      title: "控制台",
 | 
			
		||||
    },
 | 
			
		||||
    component: () => import("../layout/Index.vue"),
 | 
			
		||||
  },
 | 
			
		||||
@@ -91,7 +91,28 @@ const routes = [
 | 
			
		||||
      },
 | 
			
		||||
    ],
 | 
			
		||||
  },
 | 
			
		||||
  {//信息管理
 | 
			
		||||
  {
 | 
			
		||||
    //信息查询
 | 
			
		||||
    path: "/query_info",
 | 
			
		||||
    name: "QueryInfo",
 | 
			
		||||
    meta: {
 | 
			
		||||
      title: "信息查询",
 | 
			
		||||
      icon: "search",
 | 
			
		||||
    },
 | 
			
		||||
    component: () => import("@/layout/Index.vue"),
 | 
			
		||||
    children: [
 | 
			
		||||
      {
 | 
			
		||||
        path: "/query_stuff",
 | 
			
		||||
        name: "QueryStuff",
 | 
			
		||||
        meta: {
 | 
			
		||||
          title: "人员信息",
 | 
			
		||||
          icon: "user",
 | 
			
		||||
        },
 | 
			
		||||
        component: () => import("@/views/info/StaffInfo.vue"),
 | 
			
		||||
      },
 | 
			
		||||
    ],
 | 
			
		||||
  },
 | 
			
		||||
  {//权限管理
 | 
			
		||||
    path: "/privilege",
 | 
			
		||||
    name: "Privilege",
 | 
			
		||||
    meta: {
 | 
			
		||||
@@ -152,14 +173,14 @@ const routes = [
 | 
			
		||||
          icon: "switch",
 | 
			
		||||
        },
 | 
			
		||||
        component: () => import("../views/network/switch/SwitchManager.vue"),
 | 
			
		||||
      }
 | 
			
		||||
      },
 | 
			
		||||
    ],
 | 
			
		||||
  },
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
const router = createRouter({
 | 
			
		||||
  history: createWebHashHistory(),
 | 
			
		||||
  routes
 | 
			
		||||
  routes,
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
//前置路由守卫
 | 
			
		||||
@@ -16,7 +16,7 @@ const store = createStore({
 | 
			
		||||
  modules: {
 | 
			
		||||
    app,
 | 
			
		||||
    requirement,
 | 
			
		||||
  }
 | 
			
		||||
  },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
export default store;
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-01-07 22:25:43
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-05 10:47:28
 | 
			
		||||
 * @LastEditTime: 2023-02-14 23:10:22
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/store/modules/app.js
 | 
			
		||||
 * @Description: vuex中存放全局数据的模块
 | 
			
		||||
 * 
 | 
			
		||||
@@ -29,7 +29,7 @@ const mutations = {
 | 
			
		||||
    SET_USERINFO(state, userInfo)
 | 
			
		||||
    {
 | 
			
		||||
        state.userInfo = userInfo;
 | 
			
		||||
    }
 | 
			
		||||
    },
 | 
			
		||||
};
 | 
			
		||||
const actions = {};
 | 
			
		||||
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-06 14:12:11
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-06 15:52:55
 | 
			
		||||
 * @LastEditTime: 2023-02-08 10:46:41
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/utils/api/LocalStorage.js
 | 
			
		||||
 * @Description: 初始化localStorage中保存的值。
 | 
			
		||||
 * 
 | 
			
		||||
@@ -10,7 +10,7 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
//常量
 | 
			
		||||
const REQUIREMRNT_UI = "requirement_ui";
 | 
			
		||||
const REQUIREMRNT_UI = `requirement_ui`;
 | 
			
		||||
 | 
			
		||||
//需求管理模块
 | 
			
		||||
function loadRequirementUI()
 | 
			
		||||
@@ -25,7 +25,7 @@ function loadRequirementUI()
 | 
			
		||||
    }
 | 
			
		||||
    catch (error)
 | 
			
		||||
    {
 | 
			
		||||
        console.log("转换requirement-ui失败:", error);
 | 
			
		||||
        console.log(`转换requirement-ui失败:${error}。`);
 | 
			
		||||
        requirementUI = {};
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -2,8 +2,8 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-12-22 17:16:53
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2022-12-22 20:48:03
 | 
			
		||||
 * @FilePath: \admin_system\src\utils\api\common.js
 | 
			
		||||
 * @LastEditTime: 2023-02-22 14:49:58
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/utils/api/common.js
 | 
			
		||||
 * @Description: 通用请求
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved.
 | 
			
		||||
@@ -15,6 +15,8 @@ const URL_GET_VALIDATE_CODE = "";
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 获取验证码
 | 
			
		||||
 * @param {*} data 承载数据的对象
 | 
			
		||||
 * @returns Promise对象
 | 
			
		||||
 */
 | 
			
		||||
export function GetValidate(data)
 | 
			
		||||
{
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-04 15:48:00
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-06 00:28:23
 | 
			
		||||
 * @LastEditTime: 2023-02-22 17:08:26
 | 
			
		||||
 * @FilePath: /IT工具综合平台/src/utils/api/requirement/requirement.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
@@ -16,7 +16,7 @@ import router from "@/router/index";
 | 
			
		||||
 * 从后台获取需求管理页面所需数据,存放到vuex中。
 | 
			
		||||
 * @param ui 保存ui标志位的对象
 | 
			
		||||
 * @param store 保存在vuex中需求相关的对象
 | 
			
		||||
 * @param error_page_name 提示错误页面的路径
 | 
			
		||||
 * @param {string} error_page_name 提示错误页面的路径
 | 
			
		||||
 *****************************************************/
 | 
			
		||||
function query_requirement_ui(requirement_store, error_page_name)
 | 
			
		||||
{
 | 
			
		||||
							
								
								
									
										124
									
								
								code/web/it-console-toVite/src/views/info/StaffInfo.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,124 @@
 | 
			
		||||
<!--
 | 
			
		||||
 *           佛曰:  
 | 
			
		||||
 *                   写字楼里写字间,写字间里程序员;  
 | 
			
		||||
 *                   程序人员写程序,又拿程序换酒钱。  
 | 
			
		||||
 *                   酒醒只在网上坐,酒醉还来网下眠;  
 | 
			
		||||
 *                   酒醉酒醒日复日,网上网下年复年。  
 | 
			
		||||
 *                   但愿老死电脑间,不愿鞠躬老板前;  
 | 
			
		||||
 *                   奔驰宝马贵者趣,公交自行程序员。  
 | 
			
		||||
 *                   别人笑我忒疯癫,我笑自己命太贱;  
 | 
			
		||||
 *                   不见满街漂亮妹,哪个归得程序员? 
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2023-02-21 11:03:15
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2023-02-23 00:02:40
 | 
			
		||||
 * @FilePath: /it-console/src/views/info/StaffInfo.vue
 | 
			
		||||
 * @Description:<
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
-->
 | 
			
		||||
<template>
 | 
			
		||||
    <div class="view_wrapper">
 | 
			
		||||
        <div class="query_wrapper">
 | 
			
		||||
            <el-row gutter="10">
 | 
			
		||||
                <el-col :span="2">
 | 
			
		||||
                    <span>姓名</span>
 | 
			
		||||
                </el-col>
 | 
			
		||||
                <el-col :span="4">
 | 
			
		||||
                    <el-input v-model="query_param.stuffName"></el-input>
 | 
			
		||||
                </el-col>
 | 
			
		||||
                <el-col :span="2">
 | 
			
		||||
                    <span>工号</span>
 | 
			
		||||
                </el-col>
 | 
			
		||||
                <el-col :span="4">
 | 
			
		||||
                    <el-input v-model="query_param.stuffName"></el-input>
 | 
			
		||||
                </el-col>
 | 
			
		||||
                <el-col :span="2">
 | 
			
		||||
                    <span>P13账号</span>
 | 
			
		||||
                </el-col>
 | 
			
		||||
                <el-col :span="4">
 | 
			
		||||
                    <el-input v-model="query_param.stuffName"></el-input>
 | 
			
		||||
                </el-col>
 | 
			
		||||
            </el-row>
 | 
			
		||||
            <el-row gutter="10">
 | 
			
		||||
                <el-col :span="2">
 | 
			
		||||
                    <span>部门</span>
 | 
			
		||||
                </el-col>
 | 
			
		||||
                <el-col :span="4">
 | 
			
		||||
                    <el-input v-model="query_param.stuffName"></el-input>
 | 
			
		||||
                </el-col>
 | 
			
		||||
                <el-col :span="2">
 | 
			
		||||
                    <span>部门代码</span>
 | 
			
		||||
                </el-col>
 | 
			
		||||
                <el-col :span="4">
 | 
			
		||||
                    <el-input v-model="query_param.stuffName"></el-input>
 | 
			
		||||
                </el-col>
 | 
			
		||||
                <el-col :span="6">
 | 
			
		||||
                    <div class="toolbutton-wrapper">
 | 
			
		||||
                        <el-button type="primary" icon="search">查询</el-button>
 | 
			
		||||
                        <el-button icon="Refresh">重置</el-button>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </el-col>
 | 
			
		||||
            </el-row>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
import { reactive } from "vue";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
    name: "StuffInfo",
 | 
			
		||||
    setup()
 | 
			
		||||
    {
 | 
			
		||||
        const query_param = reactive(
 | 
			
		||||
            {
 | 
			
		||||
                stuffName: "",
 | 
			
		||||
                stuffCode: "",
 | 
			
		||||
                p13UID: "",
 | 
			
		||||
                departmentCode: "",
 | 
			
		||||
                departmentName: "",
 | 
			
		||||
            }
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
        return {
 | 
			
		||||
            query_param,
 | 
			
		||||
        };
 | 
			
		||||
    },
 | 
			
		||||
};
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style scoped lang="scss">
 | 
			
		||||
.view_wrapper {
 | 
			
		||||
    border-radius: 5px;
 | 
			
		||||
    background-color: #fff;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.query_wrapper {
 | 
			
		||||
    min-width: 800px;
 | 
			
		||||
    max-width: 1200px;
 | 
			
		||||
    padding: 10px;
 | 
			
		||||
 | 
			
		||||
    .el-row {
 | 
			
		||||
        display: flex;
 | 
			
		||||
        align-items: center;
 | 
			
		||||
 | 
			
		||||
        span {
 | 
			
		||||
            display: block;
 | 
			
		||||
            text-align: right;
 | 
			
		||||
            font-size: 15px;
 | 
			
		||||
            color: #5f5f5f;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .el-row+.el-row {
 | 
			
		||||
        margin-top: 15px;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.toolbutton-wrapper {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    justify-content: right;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||