更新目录结构

This commit is contained in:
2023-10-21 21:18:46 +08:00
parent 664295167d
commit 1153b13299
298 changed files with 3032 additions and 2173 deletions

32
ui/.gitignore vendored
View File

@@ -1,24 +1,10 @@
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
/package-lock.json
out/
logs/
run/
.idea/
package-lock.json
data/
.vscode/launch.json
public/electron/
pnpm-lock.yaml

24
ui/frontend/.gitignore vendored Normal file
View File

@@ -0,0 +1,24 @@
.DS_Store
node_modules
/dist
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
/package-lock.json

74
ui/frontend/package.json Normal file
View File

@@ -0,0 +1,74 @@
{
"name": "scui",
"version": "1.6.6",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --report",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@element-plus/icons-vue": "2.0.6",
"@tinymce/tinymce-vue": "5.0.0",
"axios": "0.27.2",
"codemirror": "5.65.5",
"core-js": "3.24.1",
"cropperjs": "1.5.12",
"crypto-js": "4.1.1",
"echarts": "5.3.3",
"element-plus": "2.2.12",
"nprogress": "0.2.0",
"qrcodejs2": "0.0.2",
"sortablejs": "1.15.0",
"tinymce": "6.1.2",
"vue": "3.2.37",
"vue-i18n": "9.2.2",
"vue-router": "4.1.3",
"vuedraggable": "4.0.3",
"vuex": "4.0.2",
"xgplayer": "2.31.7",
"xgplayer-hls": "2.5.2",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@babel/core": "7.18.9",
"@babel/eslint-parser": "7.18.9",
"@vue/cli-plugin-babel": "5.0.8",
"@vue/cli-plugin-eslint": "5.0.8",
"@vue/cli-service": "5.0.8",
"eslint": "8.21.0",
"eslint-plugin-vue": "9.3.0",
"sass": "1.37.5",
"sass-loader": "10.1.1"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"globals": {
"APP_CONFIG": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser",
"requireConfigFile": false
},
"rules": {
"indent": 0,
"no-tabs": 0,
"no-mixed-spaces-and-tabs": 0,
"vue/no-unused-components": 0,
"vue/multi-word-component-names": 0
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
]
}

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 97 KiB

View File

Before

Width:  |  Height:  |  Size: 509 KiB

After

Width:  |  Height:  |  Size: 509 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 132 KiB

View File

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 133 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -1,123 +1,123 @@
import config from "@/config"
import http from "@/utils/request"
export default {
filter: {
list: {
url: `${config.API_URL}tools/filter/index`,
name: "获得过滤数据",
get: async function(params){
return await http.get(this.url, params);
}
},
insert:{
url: `${config.API_URL}tools/filter/insert`,
name: "导入过滤数据",
post: async function(data={}){
return await http.post(this.url, data);
}
},
search: {
url: `${config.API_URL}/tools/filter/search`,
name: "过滤数据",
get: async function(params){
return await http.get(this.url, params);
}
},
delete:{
url: `${config.API_URL}/tools/filter/delete`,
name: "删除过滤数据",
post: async function(data={}){
return await http.post(this.url, data);
}
},
edit:{
url: `${config.API_URL}/tools/filter/edit`,
name: "更新过滤数据",
post: async function(data={}){
return await http.post(this.url, data);
}
},
task: {
url: `${config.API_URL}/tools/filter/task`,
name: "任务单数据",
get: async function(params){
return await http.get(this.url, params);
}
},
batch:{
url: `${config.API_URL}/tools/filter/batch`,
name: "条件删除",
post: async function(data={}){
return await http.post(this.url, data);
}
}
},
inspect:{
list: {
url: `${config.API_URL}/tools/inspect/index`,
name: "获得质检数据",
get: async function(data){
let params = Object.assign({}, data);
let users = params.user || {}, uids = [];
if(users.length > 0){
users.map((item) => {
uids.push(item.uid);
})
}
params.user = uids;
return await http.get(this.url, params);
}
},
insert:{
url: `${config.API_URL}/tools/inspect/insert`,
name: "导入质检数据",
post: async function(data={}){
return await http.post(this.url, data);
}
},
edit:{
url: `${config.API_URL}/tools/inspect/edit`,
name: "质检数据操作",
post: async function(data={}){
return await http.post(this.url, data);
}
},
delete:{
url: `${config.API_URL}/tools/inspect/delete`,
name: "删除过滤数据",
post: async function(data={}){
let params = Object.assign({}, data);
let users = params.user || {}, uids = [];
if(users.length > 0){
users.map((item) => {
uids.push(item.uid);
})
}
params.user = uids;
return await http.post(this.url, params);
}
},
average:{
url: `${config.API_URL}/tools/inspect/average`,
name: "质检数据操作",
post: async function(data={}){
let params = Object.assign({}, data);
let users = params.users || {}, uids = [], user = params.user || {}, uid = [];
if(users.length > 0){
users.map((item) => {
uids.push(item.uid);
})
}
if(user.length > 0){
user.map((item) => {
uid.push(item.uid);
})
}
params.users = uids;
params.user = uid;
return await http.post(this.url, params);
}
}
}
import config from "@/config"
import http from "@/utils/request"
export default {
filter: {
list: {
url: `${config.API_URL}tools/filter/index`,
name: "获得过滤数据",
get: async function(params){
return await http.get(this.url, params);
}
},
insert:{
url: `${config.API_URL}tools/filter/insert`,
name: "导入过滤数据",
post: async function(data={}){
return await http.post(this.url, data);
}
},
search: {
url: `${config.API_URL}/tools/filter/search`,
name: "过滤数据",
get: async function(params){
return await http.get(this.url, params);
}
},
delete:{
url: `${config.API_URL}/tools/filter/delete`,
name: "删除过滤数据",
post: async function(data={}){
return await http.post(this.url, data);
}
},
edit:{
url: `${config.API_URL}/tools/filter/edit`,
name: "更新过滤数据",
post: async function(data={}){
return await http.post(this.url, data);
}
},
task: {
url: `${config.API_URL}/tools/filter/task`,
name: "任务单数据",
get: async function(params){
return await http.get(this.url, params);
}
},
batch:{
url: `${config.API_URL}/tools/filter/batch`,
name: "条件删除",
post: async function(data={}){
return await http.post(this.url, data);
}
}
},
inspect:{
list: {
url: `${config.API_URL}/tools/inspect/index`,
name: "获得质检数据",
get: async function(data){
let params = Object.assign({}, data);
let users = params.user || {}, uids = [];
if(users.length > 0){
users.map((item) => {
uids.push(item.uid);
})
}
params.user = uids;
return await http.get(this.url, params);
}
},
insert:{
url: `${config.API_URL}/tools/inspect/insert`,
name: "导入质检数据",
post: async function(data={}){
return await http.post(this.url, data);
}
},
edit:{
url: `${config.API_URL}/tools/inspect/edit`,
name: "质检数据操作",
post: async function(data={}){
return await http.post(this.url, data);
}
},
delete:{
url: `${config.API_URL}/tools/inspect/delete`,
name: "删除过滤数据",
post: async function(data={}){
let params = Object.assign({}, data);
let users = params.user || {}, uids = [];
if(users.length > 0){
users.map((item) => {
uids.push(item.uid);
})
}
params.user = uids;
return await http.post(this.url, params);
}
},
average:{
url: `${config.API_URL}/tools/inspect/average`,
name: "质检数据操作",
post: async function(data={}){
let params = Object.assign({}, data);
let users = params.users || {}, uids = [], user = params.user || {}, uid = [];
if(users.length > 0){
users.map((item) => {
uids.push(item.uid);
})
}
if(user.length > 0){
user.map((item) => {
uid.push(item.uid);
})
}
params.users = uids;
params.user = uid;
return await http.post(this.url, params);
}
}
}
}

View File

@@ -1,86 +1,86 @@
import config from "@/config"
import http from "@/utils/request"
export default {
list: {
url: `${config.API_URL}auth/user/index`,
name: "获得用户列表",
get: async function(params){
return await http.get(this.url, params);
}
},
add: {
url: `${config.API_URL}auth/user/add`,
name: "添加用户",
post: async function(params){
return await http.post(this.url, params);
}
},
edit: {
url: `${config.API_URL}auth/user/edit`,
name: "编辑用户",
post: async function(params){
return await http.post(this.url, params);
}
},
uppasswd:{
url: `${config.API_URL}auth/user/passwd`,
name: "修改密码",
post: async function(params){
return await http.post(this.url, params);
}
},
uprole: {
url: `${config.API_URL}auth/user/auth`,
name: "编辑用户",
post: async function(params){
return await http.post(this.url, params);
}
},
role: {
list: {
url: `${config.API_URL}auth/role/index`,
name: "获得角色列表",
get: async function(params){
return await http.get(this.url, params);
}
},
edit: {
url: `${config.API_URL}auth/role/edit`,
name: "编辑角色",
post: async function(params){
return await http.post(this.url, params);
}
},
auth: {
url: `${config.API_URL}auth/role/auth`,
name: "编辑角色",
post: async function(params){
return await http.post(this.url, params);
}
}
},
department: {
list: {
url: `${config.API_URL}auth/department/index`,
name: "获得部门列表",
get: async function(params){
return await http.get(this.url, params);
}
},
edit: {
url: `${config.API_URL}auth/department/edit`,
name: "编辑部门",
post: async function(params){
return await http.post(this.url, params);
}
}
},
userinfo:{
url: `${config.API_URL}auth/user/info`,
name: "获得用户信息",
get: async function(params){
return await http.get(this.url, params);
}
}
import config from "@/config"
import http from "@/utils/request"
export default {
list: {
url: `${config.API_URL}auth/user/index`,
name: "获得用户列表",
get: async function(params){
return await http.get(this.url, params);
}
},
add: {
url: `${config.API_URL}auth/user/add`,
name: "添加用户",
post: async function(params){
return await http.post(this.url, params);
}
},
edit: {
url: `${config.API_URL}auth/user/edit`,
name: "编辑用户",
post: async function(params){
return await http.post(this.url, params);
}
},
uppasswd:{
url: `${config.API_URL}auth/user/passwd`,
name: "修改密码",
post: async function(params){
return await http.post(this.url, params);
}
},
uprole: {
url: `${config.API_URL}auth/user/auth`,
name: "编辑用户",
post: async function(params){
return await http.post(this.url, params);
}
},
role: {
list: {
url: `${config.API_URL}auth/role/index`,
name: "获得角色列表",
get: async function(params){
return await http.get(this.url, params);
}
},
edit: {
url: `${config.API_URL}auth/role/edit`,
name: "编辑角色",
post: async function(params){
return await http.post(this.url, params);
}
},
auth: {
url: `${config.API_URL}auth/role/auth`,
name: "编辑角色",
post: async function(params){
return await http.post(this.url, params);
}
}
},
department: {
list: {
url: `${config.API_URL}auth/department/index`,
name: "获得部门列表",
get: async function(params){
return await http.get(this.url, params);
}
},
edit: {
url: `${config.API_URL}auth/department/edit`,
name: "编辑部门",
post: async function(params){
return await http.post(this.url, params);
}
}
},
userinfo:{
url: `${config.API_URL}auth/user/info`,
name: "获得用户信息",
get: async function(params){
return await http.get(this.url, params);
}
}
}

Some files were not shown because too many files have changed in this diff Show More