Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
Apper-Admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8b144c89
authored
Nov 01, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除husky
1 parent
329aed75
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
35 deletions
README.md
package.json
src/utils/dict.ts
src/views/log/list/components/LogFile.vue
src/views/log/list/components/Report.vue
README.md
View file @
8b144c8
...
@@ -64,34 +64,6 @@ pnpm lint:stylelint
...
@@ -64,34 +64,6 @@ pnpm lint:stylelint
pnpm commit
pnpm commit
```
```
### 项目截图 📷
-
登录页:


-
首页:


-
表格页:


-
数据可视化

-
数据大屏:

### 文件资源目录 📚
### 文件资源目录 📚
```
text
```
text
...
...
package.json
View file @
8b144c8
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
"lint:prettier"
:
"prettier --write
\"
src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}
\"
"
,
"lint:prettier"
:
"prettier --write
\"
src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}
\"
"
,
"lint:stylelint"
:
"stylelint --cache --fix
\"
**/*.{vue,less,postcss,css,scss}
\"
--cache --cache-location node_modules/.cache/stylelint/"
,
"lint:stylelint"
:
"stylelint --cache --fix
\"
**/*.{vue,less,postcss,css,scss}
\"
--cache --cache-location node_modules/.cache/stylelint/"
,
"lint:lint-staged"
:
"lint-staged"
,
"lint:lint-staged"
:
"lint-staged"
,
"prepare"
:
"husky install"
,
"release"
:
"standard-version"
,
"release"
:
"standard-version"
,
"commit"
:
"git add -A && czg && git push"
"commit"
:
"git add -A && czg && git push"
},
},
...
...
src/utils/dict.ts
View file @
8b144c8
...
@@ -79,10 +79,46 @@ export const storageList = [
...
@@ -79,10 +79,46 @@ export const storageList = [
export
const
formList
=
{
export
const
formList
=
{
setPollingInterval
:
[
setPollingInterval
:
[
{
{
label
:
"
设置轮询时间
"
,
label
:
"
轮询时间(秒)
"
,
type
:
"number"
,
type
:
"number"
,
maxlength
:
5
,
maxlength
:
5
,
name
:
"interval"
name
:
"interval"
},
{
label
:
"立即执行"
,
type
:
"radio"
,
name
:
"force"
,
optionLabel
:
"label"
,
optionId
:
"value"
,
optionList
:
[
{
label
:
"是"
,
value
:
1
},
{
label
:
"否"
,
value
:
0
}
]
}
],
startPolling
:
[
{
label
:
"立即执行"
,
type
:
"radio"
,
name
:
"force"
,
optionLabel
:
"label"
,
optionId
:
"value"
,
optionList
:
[
{
label
:
"是"
,
value
:
1
},
{
label
:
"否"
,
value
:
0
}
]
}
}
],
],
getLogList
:
[
getLogList
:
[
...
...
src/views/log/list/components/LogFile.vue
View file @
8b144c8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-09-04 21:13:18
* @Date: 2024-09-04 21:13:18
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-
09-25 09:53:19
* @LastEditTime: 2024-
10-11 15:29:07
* @FilePath: \Apper-Admin-master\src\views\log\dictionary\components\Dailog.vue
* @FilePath: \Apper-Admin-master\src\views\log\dictionary\components\Dailog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -10,7 +10,9 @@
...
@@ -10,7 +10,9 @@
<el-dialog
:before-close=
"handleClose"
v-model=
"showLog"
width=
"50%"
title=
"日志文件列表"
>
<el-dialog
:before-close=
"handleClose"
v-model=
"showLog"
width=
"50%"
title=
"日志文件列表"
>
<el-table
class=
"table-box"
:data=
"tableData"
style=
"width: 100%"
>
<el-table
class=
"table-box"
:data=
"tableData"
style=
"width: 100%"
>
<el-table-column
prop=
"filename"
label=
"文件名"
/>
<el-table-column
prop=
"filename"
label=
"文件名"
/>
<el-table-column
prop=
"created_at"
label=
"日期"
/>
<el-table-column
prop=
"created_at"
label=
"日期"
>
<template
#
default=
"scope"
>
{{
new
Date
(
scope
.
row
.
created_at
).
toLocaleString
()
}}
</
template
>
</el-table-column>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"120"
>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"120"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"handleClick(scope.row)"
>
详情
</el-button>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"handleClick(scope.row)"
>
详情
</el-button>
...
...
src/views/log/list/components/Report.vue
View file @
8b144c8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-09-04 21:58:42
* @Date: 2024-09-04 21:58:42
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-10-1
0 15:02:4
7
* @LastEditTime: 2024-10-1
1 18:03:0
7
* @FilePath: \Apper-Admin-master\src\views\log\list\components\Report.vue
* @FilePath: \Apper-Admin-master\src\views\log\list\components\Report.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -56,6 +56,11 @@
...
@@ -56,6 +56,11 @@
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
>
>
</el-date-picker>
</el-date-picker>
<el-radio-group
v-model=
"dialogProps[item.name]"
v-if=
"item.type === 'radio'"
>
<el-radio
:value=
"i[item.optionId]"
size=
"large"
v-for=
"i in item.optionList"
:key=
"i[item.optionId]"
>
{{
i
[
item
.
optionLabel
]
}}
</el-radio>
</el-radio-group>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-form>
</el-form>
...
@@ -82,7 +87,7 @@ interface DialogProps {
...
@@ -82,7 +87,7 @@ interface DialogProps {
id
?:
string
;
id
?:
string
;
days
?:
number
|
null
;
days
?:
number
|
null
;
interval
?:
number
;
interval
?:
number
;
command
?
:
string
;
command
:
string
;
key
?:
string
;
key
?:
string
;
storage
?:
string
;
storage
?:
string
;
times
?:
string
[];
times
?:
string
[];
...
@@ -95,7 +100,9 @@ const props = defineProps<{
...
@@ -95,7 +100,9 @@ const props = defineProps<{
}
>
();
}
>
();
const
{
showReport
,
deviceId
}
=
toRefs
(
props
);
const
{
showReport
,
deviceId
}
=
toRefs
(
props
);
console
.
log
(
deviceId
);
console
.
log
(
deviceId
);
const
dialogProps
=
ref
<
DialogProps
>
({});
const
dialogProps
=
ref
<
DialogProps
>
({
command
:
cmdList
[
0
].
value
});
watch
(
watch
(
()
=>
dialogProps
.
value
.
command
,
()
=>
dialogProps
.
value
.
command
,
val
=>
{
val
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment