Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李宁
/
Activity
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1a860758
authored
Jan 28, 2026
by
李宁
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
415edb68
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
51 additions
and
21 deletions
haMgr/prompt.txt
haMgr/web-admin/index.html
haMgr/web-admin/src/layouts/DefaultLayout.vue
haMgr/web-admin/src/mock/orderData.ts
haMgr/web-admin/src/router/index.ts
haMgr/web-admin/src/utils/request.ts
haMgr/web-admin/src/views/Login.vue
haMgr/web-admin/src/views/OrderList.vue
haMgr/web-admin/vite.config.ts
haMgr/prompt.txt
View file @
1a86075
...
...
@@ -539,5 +539,4 @@
2、设备不能拍次数统计导出:传参(startTime,endTime),接口地址:/zhijian/opt/exportNoShowProcessStatistics,get请求
问题记录
1、质检工单数据页面:导出表格,报错500(传参加上areaType可以成功)
2、
\ No newline at end of file
1、
\ No newline at end of file
haMgr/web-admin/index.html
View file @
1a86075
<!doctype html>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
/>
<link
rel=
"icon"
type=
"image/svg+xml"
href=
"/vite.svg"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
web-admin
</title>
</head>
<body>
</head>
<body>
<div
id=
"app"
></div>
<script
type=
"module"
src=
"/src/main.ts"
></script>
</body>
</body>
</html>
\ No newline at end of file
haMgr/web-admin/src/layouts/DefaultLayout.vue
View file @
1a86075
<
script
setup
lang=
"ts"
>
import
{
useRoute
,
useRouter
}
from
'vue-router'
import
{
Menu
as
IconMenu
,
DataLine
,
Document
}
from
'@element-plus/icons-vue'
import
{
DataLine
,
Document
}
from
'@element-plus/icons-vue'
import
{
ElMessage
}
from
'element-plus'
import
{
loginApi
}
from
'../api'
const
route
=
useRoute
()
const
router
=
useRouter
()
const
handleLogout
=
()
=>
{
const
handleLogout
=
async
()
=>
{
ElMessage
.
success
(
'退出登录成功'
)
router
.
push
(
'/login'
)
return
try
{
await
loginApi
.
logout
()
ElMessage
.
success
(
'退出登录成功'
)
router
.
push
(
'/login'
)
}
catch
(
error
)
{
console
.
error
(
error
)
}
}
</
script
>
...
...
haMgr/web-admin/src/mock/orderData.ts
View file @
1a86075
...
...
@@ -15,7 +15,10 @@ export const generateMockOrders = (count: number = 20): Order[] => {
applyId
:
`APP
${
10000
+
index
}
`
,
workerId
:
`W
${
2000
+
index
}
`
,
businessAccount
:
`1
${
Math
.
floor
(
Math
.
random
()
*
10000000000
)}
`
,
orderIds
:
[
`ORD_
${
index
}
_1`
,
`ORD_
${
index
}
_2`
],
orderIds
:
[
{
orderCode
:
`ORD_
${
index
}
_1`
,
deviceNumber
:
`DEV_
${
index
}
_1`
},
{
orderCode
:
`ORD_
${
index
}
_2`
,
deviceNumber
:
`DEV_
${
index
}
_2`
}
],
city
:
city
,
status
:
status
,
cannotQcReason
:
status
===
'无法质检'
?
'用户拒绝配合'
:
undefined
,
...
...
haMgr/web-admin/src/router/index.ts
View file @
1a86075
import
{
createRouter
,
createWebHistory
}
from
'vue-router'
import
{
createRouter
,
createWebH
ashH
istory
}
from
'vue-router'
import
DefaultLayout
from
'../layouts/DefaultLayout.vue'
const
router
=
createRouter
({
history
:
createWebHistory
(
import
.
meta
.
env
.
BASE_URL
),
history
:
createWebH
ashH
istory
(
import
.
meta
.
env
.
BASE_URL
),
routes
:
[
{
path
:
'/'
,
...
...
haMgr/web-admin/src/utils/request.ts
View file @
1a86075
...
...
@@ -40,9 +40,9 @@ service.interceptors.response.use(
localStorage
.
removeItem
(
'hzMgrtoken'
)
// 延迟跳转到登录页
setTimeout
(()
=>
{
window
.
location
.
href
=
'/login'
},
15
00
)
//
setTimeout(() => {
//
window.location.href = '/login'
// }, 10
00)
return
Promise
.
reject
(
new
Error
(
errorData
.
msg
||
errorData
.
message
||
'登录已失效'
))
}
...
...
@@ -69,9 +69,9 @@ service.interceptors.response.use(
localStorage
.
removeItem
(
'hzMgrtoken'
)
// 延迟跳转到登录页,让用户看到提示信息
setTimeout
(()
=>
{
window
.
location
.
href
=
'/login'
},
1500
)
//
setTimeout(() => {
//
window.location.href = '/login'
//
}, 1500)
return
Promise
.
reject
(
new
Error
(
res
.
msg
||
res
.
message
||
'登录已失效'
))
}
...
...
haMgr/web-admin/src/views/Login.vue
View file @
1a86075
<
script
setup
lang=
"ts"
>
import
{
ref
,
reactive
}
from
'vue'
import
{
useRouter
}
from
'vue-router'
import
{
User
,
Lock
,
View
,
Hide
}
from
'@element-plus/icons-vue'
import
{
User
,
Lock
}
from
'@element-plus/icons-vue'
import
{
ElMessage
}
from
'element-plus'
const
router
=
useRouter
()
...
...
haMgr/web-admin/src/views/OrderList.vue
View file @
1a86075
...
...
@@ -9,7 +9,21 @@ import { ElMessage, ElMessageBox } from 'element-plus'
// --- State ---
const
loading
=
ref
(
false
)
const
tableData
=
ref
<
Order
[]
>
([])
const
cities
=
[
'南京市'
,
'无锡市'
,
'徐州市'
,
'常州市'
,
'苏州市'
,
'南通市'
,
'连云港市'
,
'淮安市'
,
'盐城市'
,
'扬州市'
,
'镇江市'
,
'泰州市'
,
'宿迁市'
]
const
cities
=
[
{
code
:
'3201'
,
name
:
'南京市'
},
{
code
:
'3202'
,
name
:
'无锡市'
},
{
code
:
'3203'
,
name
:
'徐州市'
},
{
code
:
'3204'
,
name
:
'常州市'
},
{
code
:
'3205'
,
name
:
'苏州市'
},
{
code
:
'3206'
,
name
:
'南通市'
},
{
code
:
'3207'
,
name
:
'连云港市'
},
{
code
:
'3208'
,
name
:
'淮安市'
},
{
code
:
'3209'
,
name
:
'盐城市'
},
{
code
:
'3210'
,
name
:
'扬州市'
},
{
code
:
'3211'
,
name
:
'镇江市'
},
{
code
:
'3212'
,
name
:
'泰州市'
},
{
code
:
'3213'
,
name
:
'宿迁市'
}
]
const
router
=
useRouter
()
// Search Form
...
...
@@ -495,7 +509,7 @@ fetchData()
</el-form-item>
<el-form-item
label=
"所属地市"
>
<el-select
v-model=
"queryForm.city"
placeholder=
"请选择"
clearable
class=
"!w-48"
>
<el-option
v-for=
"city in cities"
:key=
"city
"
:label=
"city"
:value=
"city
"
/>
<el-option
v-for=
"city in cities"
:key=
"city
.code"
:label=
"city.name"
:value=
"city.code
"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"质检状态"
>
...
...
haMgr/web-admin/vite.config.ts
View file @
1a86075
...
...
@@ -3,6 +3,7 @@ import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export
default
defineConfig
({
base
:
'./'
,
plugins
:
[
vue
()],
server
:
{
proxy
:
{
...
...
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