Compare commits
6 Commits
8dd5f27d47
...
feature-co
Author | SHA1 | Date | |
---|---|---|---|
178ae16c73 | |||
3afde75e85 | |||
7154edde7c | |||
f22f6b268a | |||
1c44e56b56 | |||
3f93afede3 |
23970
code/web/IT工具综合平台/package-lock.json
generated
@@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
"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"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@element-plus/icons-vue": "^2.0.10",
|
|
||||||
"@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",
|
|
||||||
"sass-loader": "^13.2.0",
|
|
||||||
"scss": "^0.2.4",
|
|
||||||
"scss-loader": "^0.0.1",
|
|
||||||
"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",
|
|
||||||
"svg-sprite-loader": "^2.1.0",
|
|
||||||
"vue-cli-plugin-element-plus": "~0.0.13"
|
|
||||||
}
|
|
||||||
}
|
|
@@ -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",
|
|
||||||
};
|
|
44
code/web/it-console/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>
|
||||||
|
|
29169
code/web/it-console/package-lock.json
generated
Normal file
52
code/web/it-console/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 |
@@ -2,8 +2,8 @@
|
|||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2022-12-17 11:08:18
|
* @Date: 2022-12-17 11:08:18
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-02-04 22:47:11
|
* @LastEditTime: 2023-02-23 00:44:29
|
||||||
* @FilePath: /IT工具综合平台/public/index.html
|
* @FilePath: /it-console-toVite/public/index.html
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
|
<link rel="icon" href="favicon.ico" />
|
||||||
<title>王炜的工具箱</title>
|
<title>王炜的工具箱</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -25,9 +25,10 @@
|
|||||||
continue.</strong
|
continue.</strong
|
||||||
>
|
>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="app" v-cloak></div>
|
<div id="app"></div>
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
</body>
|
</body>
|
||||||
|
<script type="module" src="../src/main.js"></script>
|
||||||
<style>
|
<style>
|
||||||
.v-cloak {
|
.v-cloak {
|
||||||
display: none;
|
display: none;
|
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 |
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
|
* @Author: Kane
|
||||||
* @Date: 2023-01-04 11:39:04
|
* @Date: 2023-01-04 11:39:04
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-02-22 17:10:54
|
* @LastEditTime: 2023-02-22 18:33:11
|
||||||
* @FilePath: /IT工具综合平台/src/layout/components/Header.vue
|
* @FilePath: /IT工具综合平台/src/layout/components/Header.vue
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
@@ -25,11 +25,11 @@ import("element-plus/dist/index.css");
|
|||||||
|
|
||||||
import ElementPlus from "element-plus";
|
import ElementPlus from "element-plus";
|
||||||
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
||||||
import SvgIcon from "./components/svg/SvgIcon";
|
//import SvgIcon from "./components/svg/SvgIcon";
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
|
|
||||||
app.component("SvgIcon", SvgIcon);
|
//app.component("SvgIcon", SvgIcon);
|
||||||
|
|
||||||
for (const [key, component,] of Object.entries(ElementPlusIconsVue))
|
for (const [key, component,] of Object.entries(ElementPlusIconsVue))
|
||||||
{
|
{
|
@@ -11,8 +11,8 @@
|
|||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2023-02-21 11:03:15
|
* @Date: 2023-02-21 11:03:15
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-02-21 15:35:25
|
* @LastEditTime: 2023-02-23 00:02:40
|
||||||
* @FilePath: /IT工具综合平台/src/views/info/StaffInfo.vue
|
* @FilePath: /it-console/src/views/info/StaffInfo.vue
|
||||||
* @Description:<
|
* @Description:<
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
@@ -88,7 +88,7 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped lang="scss">
|
||||||
.view_wrapper {
|
.view_wrapper {
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
@@ -98,22 +98,22 @@ export default {
|
|||||||
min-width: 800px;
|
min-width: 800px;
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
|
||||||
|
|
||||||
.query_wrapper .el-row {
|
.el-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
|
||||||
|
|
||||||
.query_wrapper .el-row+.el-row {
|
span {
|
||||||
margin-top: 15px;
|
display: block;
|
||||||
}
|
text-align: right;
|
||||||
|
font-size: 15px;
|
||||||
|
color: #5f5f5f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.query_wrapper .el-row span {
|
.el-row+.el-row {
|
||||||
display: block;
|
margin-top: 15px;
|
||||||
text-align: right;
|
}
|
||||||
font-size: 15px;
|
|
||||||
color: #5f5f5f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbutton-wrapper {
|
.toolbutton-wrapper {
|
@@ -2,7 +2,7 @@
|
|||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2023-02-02 22:19:12
|
* @Date: 2023-02-02 22:19:12
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-02-14 08:54:25
|
* @LastEditTime: 2023-02-22 23:02:30
|
||||||
* @FilePath: /IT工具综合平台/src/views/requirement/RequirementManager.vue
|
* @FilePath: /IT工具综合平台/src/views/requirement/RequirementManager.vue
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@@ -38,8 +38,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<!-- <el-input v-model="query_param.status"></el-input> -->
|
<!-- <el-input v-model="query_param.status"></el-input> -->
|
||||||
<el-select multiple collapse-tags collapse-tags-tooltip
|
<el-select multiple collapse-tags collapse-tags-tooltip v-model.trim.lazy="query_param.selected_status">
|
||||||
v-model.trim.lazy="query_param.selected_status">
|
|
||||||
<el-option v-for="option in statusData" :value="option.status_name" lable="option.status_code"
|
<el-option v-for="option in statusData" :value="option.status_name" lable="option.status_code"
|
||||||
:key="option.status_code + option.status_name"></el-option>
|
:key="option.status_code + option.status_name"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
@@ -115,15 +114,15 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="pagination_wrapper">
|
<div class="pagination_wrapper">
|
||||||
<el-pagination class="pull_left" @current-change="onCurrentPageIndexChange"
|
<el-pagination class="pull_left" @current-change="onCurrentPageIndexChange" @size-change="onTablePageSizeChange"
|
||||||
@size-change="onTablePageSizeChange" size="small" background v-model="ui.table_current_page"
|
size="small" background v-model="ui.table_current_page" :page-size="ui.table_page_size"
|
||||||
:page-size="ui.table_page_size" :page-sizes="[10, 20, 50, 100]"
|
:page-sizes="[10, 20, 50, 100]" layout="total, sizes, prev, pager, next, jumper"
|
||||||
layout="total, sizes, prev, pager, next, jumper" :total="requirement_data.length">
|
:total="requirement_data.length">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<!-- 需求详细信息对话框 -->
|
<!-- 需求详细信息对话框 -->
|
||||||
<el-dialog title="详情" class="requirement-detail-dialog" v-model="ui.dialogRequirementDetailVisible"
|
<el-dialog title="详情" class="requirement-detail-dialog" v-model="ui.dialogRequirementDetailVisible" width="900px"
|
||||||
width="900px" :close-on-click-modal="true" :close-on-press-escape="false" :show-close="true" :center="false"
|
:close-on-click-modal="true" :close-on-press-escape="false" :show-close="true" :center="false"
|
||||||
@close="closeRequirementDetail">
|
@close="closeRequirementDetail">
|
||||||
<el-tabs v-loading="ui.dialogRequirementDetailLoadingVisible" v-model="ui.activeTabName">
|
<el-tabs v-loading="ui.dialogRequirementDetailLoadingVisible" v-model="ui.activeTabName">
|
||||||
<el-tab-pane name="requirement-detail" label="基本信息">
|
<el-tab-pane name="requirement-detail" label="基本信息">
|
||||||
@@ -220,21 +219,20 @@
|
|||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane name="comment" label="备注">
|
<el-tab-pane name="comment" label="备注">
|
||||||
<el-scrollbar height="400px">
|
<el-scrollbar height="400px">
|
||||||
<div style="border: 1px solid #ccc;height:auto;">
|
<div style="border: 1px solid #ccc;height:auto;">
|
||||||
<Toolbar style="border-bottom: 1px solid #eee" :editor="commentEditorRef"
|
<Toolbar style="border-bottom: 1px solid #eee" :editor="commentEditorRef"
|
||||||
:defaultConfig="commentToolbarConfig" :mode="mode" />
|
:defaultConfig="commentToolbarConfig" :mode="mode" />
|
||||||
<Editor readonly style="overflow-y: hidden;" v-model="valueHtml"
|
<Editor readonly style="overflow-y: hidden;" v-model="valueHtml"
|
||||||
:defaultConfig="commentEditorConfig" :mode="mode"
|
:defaultConfig="commentEditorConfig" :mode="mode" @onCreated="handleCommentEditorCreated" />
|
||||||
@onCreated="handleCommentEditorCreated" />
|
|
||||||
</div>
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<!-- <template #footer>
|
<!-- <template #footer>
|
||||||
<div class="dialogFooter">
|
<div class="dialogFooter">
|
||||||
<el-button type="primary" @click="dialogRequirementDetailVisible = false;">关闭</el-button>
|
<el-button type="primary" @click="dialogRequirementDetailVisible = false;">关闭</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template> -->
|
</template> -->
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -605,14 +603,14 @@ export default {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.requirement-detail-wrapper {
|
/* .requirement-detail-wrapper {
|
||||||
/* padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center; */
|
align-items: center;
|
||||||
}
|
} */
|
||||||
|
|
||||||
.requirement-detail-wrapper .el-row {
|
.requirement-detail-wrapper .el-row {
|
||||||
display: flex;
|
display: flex;
|
67
code/web/it-console/vite.config.js
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* @Author: Kane
|
||||||
|
* @Date: 2023-02-23 00:15:24
|
||||||
|
* @LastEditors: Kane
|
||||||
|
* @LastEditTime: 2023-02-23 00:43:33
|
||||||
|
* @FilePath: /it-console-toVite/vite.config.js
|
||||||
|
* @Description:
|
||||||
|
*
|
||||||
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
|
*/
|
||||||
|
import { defineConfig } from 'vite';
|
||||||
|
import path from 'path';
|
||||||
|
import vue from '@vitejs/plugin-vue';
|
||||||
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||||||
|
import ViteRequireContext from '@originjs/vite-plugin-require-context';
|
||||||
|
import envCompatible from 'vite-plugin-env-compatible';
|
||||||
|
import { createHtmlPlugin } from 'vite-plugin-html';
|
||||||
|
import { viteCommonjs } from '@originjs/vite-plugin-commonjs';
|
||||||
|
|
||||||
|
// https://vitejs.dev/config/
|
||||||
|
export default defineConfig({
|
||||||
|
resolve: {
|
||||||
|
alias: [
|
||||||
|
{
|
||||||
|
find: /^~/,
|
||||||
|
replacement: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
find: '@',
|
||||||
|
replacement: path.resolve(__dirname, 'src'),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
extensions: [
|
||||||
|
'.mjs',
|
||||||
|
'.js',
|
||||||
|
'.ts',
|
||||||
|
'.jsx',
|
||||||
|
'.tsx',
|
||||||
|
'.json',
|
||||||
|
'.vue',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
vue(),
|
||||||
|
vueJsx(),
|
||||||
|
ViteRequireContext(),
|
||||||
|
viteCommonjs(),
|
||||||
|
envCompatible(),
|
||||||
|
createHtmlPlugin({
|
||||||
|
inject: {
|
||||||
|
data: {
|
||||||
|
title: 'CPIC-IT-Console',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
base: './',
|
||||||
|
server: {
|
||||||
|
strictPort: false,
|
||||||
|
port: 8000,
|
||||||
|
host: 'localhost',
|
||||||
|
open: true,
|
||||||
|
},
|
||||||
|
build: {
|
||||||
|
outDir: 'dist',
|
||||||
|
},
|
||||||
|
});
|
54
code/web/it-console/vue.config.js
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* @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",
|
||||||
|
};
|