Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
D
dutyManagement
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
dutyManagement
提交
9f0b65b2
提交
9f0b65b2
编写于
4月 28, 2026
作者:
钟一霄
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
**V1.0.1.250205-260428**
1. 值班日志提交新增附件表单项 2. 领导查看表单新增对应附件表单项 3. 接口更新
上级
7d037dc2
流水线
#41593
已失败 ,包含阶段
变更
16
流水线
1
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
252 行增加
和
2677 行删除
+252
-2677
package-lock.json
package-lock.json
+20
-2661
index.js
src/api/index.js
+10
-0
getApiSignRecordApiSignRecordLeadLogInitNew.d.ts
...gnRecord/getApiSignRecordApiSignRecordLeadLogInitNew.d.ts
+15
-0
getApiSignRecordApiSignRecordLeadLogInitNew.js
...SignRecord/getApiSignRecordApiSignRecordLeadLogInitNew.js
+14
-0
index.d.ts
src/api/request/controller/SignRecord/index.d.ts
+1
-0
index.js
src/api/request/controller/SignRecord/index.js
+1
-0
index.d.ts
src/api/request/controller/UploadFiles/index.d.ts
+1
-0
index.js
src/api/request/controller/UploadFiles/index.js
+1
-0
postApiUploadFilesApiUploadFilesFileUpload.d.ts
...loadFiles/postApiUploadFilesApiUploadFilesFileUpload.d.ts
+15
-0
postApiUploadFilesApiUploadFilesFileUpload.js
...UploadFiles/postApiUploadFilesApiUploadFilesFileUpload.js
+8
-0
index.d.ts
src/api/request/controller/index.d.ts
+1
-0
index.js
src/api/request/controller/index.js
+1
-0
index.vue
src/pages/signList/index.vue
+161
-13
index.vue
src/pages/welcome/index.vue
+1
-1
axios.js
src/util/axios.js
+1
-1
vite.config.js
vite.config.js
+1
-1
未找到文件。
package-lock.json
浏览文件 @
9f0b65b2
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
src/api/index.js
浏览文件 @
9f0b65b2
...
@@ -98,6 +98,11 @@ export function LeadLogInit(signid) {
...
@@ -98,6 +98,11 @@ export function LeadLogInit(signid) {
return
requestGet
(
`/api/SignRecord/api/SignRecord/LeadLogInit?signid=
${
signid
}
`
)
return
requestGet
(
`/api/SignRecord/api/SignRecord/LeadLogInit?signid=
${
signid
}
`
)
}
}
export
function
LeadLogInitNew
(
signid
)
{
//领导日志初始化(新)
return
requestGet
(
`/api/SignRecord/api/SignRecord/LeadLogInitNew?signid=
${
signid
}
`
)
}
/**
/**
* Attendance
* Attendance
*/
*/
...
@@ -111,6 +116,11 @@ export function ImageUpLoad(data) {
...
@@ -111,6 +116,11 @@ export function ImageUpLoad(data) {
return
requestPost
(
`/api/Attendance/ImageUpLoad`
,
data
)
return
requestPost
(
`/api/Attendance/ImageUpLoad`
,
data
)
}
}
export
function
FileUpload
(
data
)
{
//附件上传
return
requestPost
(
`/api/UploadFiles/api/UploadFiles/FileUpload`
,
data
)
}
export
function
AttendanceSubmit
(
data
)
{
export
function
AttendanceSubmit
(
data
)
{
//考勤打卡
//考勤打卡
return
requestPost
(
`/api/Attendance/AttendanceSubmit`
,
data
)
return
requestPost
(
`/api/Attendance/AttendanceSubmit`
,
data
)
...
...
src/api/request/controller/SignRecord/getApiSignRecordApiSignRecordLeadLogInitNew.d.ts
0 → 100644
浏览文件 @
9f0b65b2
import
{
type
AxiosRequestConfig
}
from
"
axios
"
;
/**
* 领导日志初始化(新)
* /api/SignRecord/api/SignRecord/LeadLogInitNew
*/
export
declare
function
getApiSignRecordApiSignRecordLeadLogInitNew
(
params
:
GetApiSignRecordApiSignRecordLeadLogInitNewParams
,
config
?:
AxiosRequestConfig
):
Promise
<
import
(
"
axios
"
).
AxiosResponse
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
string
;
},
any
>>
;
export
interface
GetApiSignRecordApiSignRecordLeadLogInitNewParams
{
signid
?:
string
;
}
src/api/request/controller/SignRecord/getApiSignRecordApiSignRecordLeadLogInitNew.js
0 → 100644
浏览文件 @
9f0b65b2
import
request
from
"
../../../../util/axios.js
"
;
/**
* 领导日志初始化(新)
* /api/SignRecord/api/SignRecord/LeadLogInitNew
*/
export
function
getApiSignRecordApiSignRecordLeadLogInitNew
(
params
,
config
)
{
const
paramsInput
=
{
signid
:
params
.
signid
,
};
return
request
.
get
(
`/api/SignRecord/api/SignRecord/LeadLogInitNew`
,
{
params
:
paramsInput
,
...
config
,
});
}
src/api/request/controller/SignRecord/index.d.ts
浏览文件 @
9f0b65b2
...
@@ -4,3 +4,4 @@ export * from "./postApiSignRecordApiSignRecordSignInOrOut";
...
@@ -4,3 +4,4 @@ export * from "./postApiSignRecordApiSignRecordSignInOrOut";
export
*
from
"
./getApiSignRecordApiSignRecordSignSetSave
"
;
export
*
from
"
./getApiSignRecordApiSignRecordSignSetSave
"
;
export
*
from
"
./postApiSignRecordApiSignRecordSignLogSave
"
;
export
*
from
"
./postApiSignRecordApiSignRecordSignLogSave
"
;
export
*
from
"
./getApiSignRecordApiSignRecordLeadLogInit
"
;
export
*
from
"
./getApiSignRecordApiSignRecordLeadLogInit
"
;
export
*
from
"
./getApiSignRecordApiSignRecordLeadLogInitNew
"
;
src/api/request/controller/SignRecord/index.js
浏览文件 @
9f0b65b2
...
@@ -4,3 +4,4 @@ export * from "./postApiSignRecordApiSignRecordSignInOrOut";
...
@@ -4,3 +4,4 @@ export * from "./postApiSignRecordApiSignRecordSignInOrOut";
export
*
from
"
./getApiSignRecordApiSignRecordSignSetSave
"
;
export
*
from
"
./getApiSignRecordApiSignRecordSignSetSave
"
;
export
*
from
"
./postApiSignRecordApiSignRecordSignLogSave
"
;
export
*
from
"
./postApiSignRecordApiSignRecordSignLogSave
"
;
export
*
from
"
./getApiSignRecordApiSignRecordLeadLogInit
"
;
export
*
from
"
./getApiSignRecordApiSignRecordLeadLogInit
"
;
export
*
from
"
./getApiSignRecordApiSignRecordLeadLogInitNew
"
;
src/api/request/controller/UploadFiles/index.d.ts
0 → 100644
浏览文件 @
9f0b65b2
export
*
from
"
./postApiUploadFilesApiUploadFilesFileUpload
"
;
src/api/request/controller/UploadFiles/index.js
0 → 100644
浏览文件 @
9f0b65b2
export
*
from
"
./postApiUploadFilesApiUploadFilesFileUpload
"
;
src/api/request/controller/UploadFiles/postApiUploadFilesApiUploadFilesFileUpload.d.ts
0 → 100644
浏览文件 @
9f0b65b2
import
{
type
AxiosRequestConfig
}
from
"
axios
"
;
/**
* 附件上传
* /api/UploadFiles/api/UploadFiles/FileUpload
*/
export
declare
function
postApiUploadFilesApiUploadFilesFileUpload
(
input
?:
PostApiUploadFilesApiUploadFilesFileUploadInput
,
config
?:
AxiosRequestConfig
):
Promise
<
import
(
"
axios
"
).
AxiosResponse
<
{
code
:
number
;
status
:
string
;
msg
:
string
;
msg_detail
:
string
;
response
:
string
;
},
any
>>
;
export
interface
PostApiUploadFilesApiUploadFilesFileUploadInput
{
data
?:
unknown
;
}
src/api/request/controller/UploadFiles/postApiUploadFilesApiUploadFilesFileUpload.js
0 → 100644
浏览文件 @
9f0b65b2
import
request
from
"
../../../../util/axios.js
"
;
/**
* 附件上传
* /api/UploadFiles/api/UploadFiles/FileUpload
*/
export
function
postApiUploadFilesApiUploadFilesFileUpload
(
input
,
config
)
{
return
request
.
post
(
`/api/UploadFiles/api/UploadFiles/FileUpload`
,
input
,
config
);
}
src/api/request/controller/index.d.ts
浏览文件 @
9f0b65b2
...
@@ -8,6 +8,7 @@ export * from "./Message";
...
@@ -8,6 +8,7 @@ export * from "./Message";
export
*
from
"
./MessageConfig
"
;
export
*
from
"
./MessageConfig
"
;
export
*
from
"
./SignRecord
"
;
export
*
from
"
./SignRecord
"
;
export
*
from
"
./TimeTask
"
;
export
*
from
"
./TimeTask
"
;
export
*
from
"
./UploadFiles
"
;
export
*
from
"
./UserInfo
"
;
export
*
from
"
./UserInfo
"
;
export
*
from
"
./UserRole
"
;
export
*
from
"
./UserRole
"
;
export
*
from
"
./Watch
"
;
export
*
from
"
./Watch
"
;
...
...
src/api/request/controller/index.js
浏览文件 @
9f0b65b2
...
@@ -8,6 +8,7 @@ export * from "./Message";
...
@@ -8,6 +8,7 @@ export * from "./Message";
export
*
from
"
./MessageConfig
"
;
export
*
from
"
./MessageConfig
"
;
export
*
from
"
./SignRecord
"
;
export
*
from
"
./SignRecord
"
;
export
*
from
"
./TimeTask
"
;
export
*
from
"
./TimeTask
"
;
export
*
from
"
./UploadFiles
"
;
export
*
from
"
./UserInfo
"
;
export
*
from
"
./UserInfo
"
;
export
*
from
"
./UserRole
"
;
export
*
from
"
./UserRole
"
;
export
*
from
"
./Watch
"
;
export
*
from
"
./Watch
"
;
...
...
src/pages/signList/index.vue
浏览文件 @
9f0b65b2
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
<span>
{{
item
.
watchtypename
+
'
-
'
+
item
.
dept
+
'
-
'
+
item
.
campusname
}}
</span></van-tag>
<span>
{{
item
.
watchtypename
+
'
-
'
+
item
.
dept
+
'
-
'
+
item
.
campusname
}}
</span></van-tag>
</
template
>
</
template
>
</van-cell>
</van-cell>
<van-cell
class=
"cardContent"
title=
"值班班级"
>
<van-cell
class=
"cardContent"
title=
"值班班级
/地点
"
>
<
template
#extra
>
<
template
#extra
>
<span>
{{
item
.
watch_remark
}}
</span>
<span>
{{
item
.
watch_remark
}}
</span>
</
template
>
</
template
>
...
@@ -205,16 +205,30 @@
...
@@ -205,16 +205,30 @@
:close-on-click-overlay=
"false"
:close-on-click-overlay=
"false"
style=
"height: 80%;"
style=
"height: 80%;"
title=
"值班日志"
>
title=
"值班日志"
>
<div
style=
"padding: 16px;"
>
<div
style=
"padding: 16px;height: calc(100% - 70px);overflow-y: auto;"
>
<div
v-for=
"(item, index) in allLogList"
:key=
"index"
style=
"margin-bottom: 16px;border: 1px solid #f1f1f1;border-radius: 8px;padding: 10px;"
>
<van-field
<van-field
id=
"teacherLog"
:model-value=
"item.str || ''"
v-model=
"allLog"
autosize
autosize
label=
"教师日志
"
:label=
"`教师日志${index + 1}`
"
label-align=
"top"
label-align=
"top"
readonly
readonly
type=
"textarea"
type=
"textarea"
/>
/>
<van-field
label=
"附件"
label-align=
"top"
>
<
template
#input
>
<div
v-if=
"!item.file_list || !item.file_list.length"
style=
"color: #999;"
>
无附件
</div>
<van-uploader
v-else
:model-value=
"getLeadLogUploaderList(item.file_list)"
:deletable=
"false"
:show-upload=
"false"
preview-size=
"72"
readonly
/>
</
template
>
</van-field>
</div>
<van-sticky
:offset-bottom=
"16"
container=
"VAS"
position=
"bottom"
>
<van-sticky
:offset-bottom=
"16"
container=
"VAS"
position=
"bottom"
>
<van-button
block
type=
"primary"
@
click=
"copyLog"
>
复制
</van-button>
<van-button
block
type=
"primary"
@
click=
"copyLog"
>
复制
</van-button>
</van-sticky>
</van-sticky>
...
@@ -248,6 +262,20 @@
...
@@ -248,6 +262,20 @@
show-word-limit
show-word-limit
type=
"textarea"
type=
"textarea"
/>
/>
<van-field
label=
"附件"
label-align=
"top"
>
<
template
#input
>
<van-uploader
v-model=
"signList.logFileList"
:accept=
"signList.fileAccept"
:after-read=
"afterReadLogFile"
:before-read=
"beforeReadLogFile"
:max-count=
"5"
multiple
preview-size=
"72"
@
delete=
"onDeleteLogFile"
/>
</
template
>
</van-field>
</div>
</div>
<div
<div
...
@@ -361,6 +389,9 @@ let signList = reactive({
...
@@ -361,6 +389,9 @@ let signList = reactive({
checked
:
[],
checked
:
[],
floatingBubble
:
false
,
floatingBubble
:
false
,
logId
:
''
,
logId
:
''
,
logFileList
:
[],
uploadedFileResList
:
[],
fileAccept
:
'
.jpg,.jpeg,.png,.gif,.bmp,.webp,.xls,.xlsx,.doc,.docx,.pdf
'
,
is_lead
:
0
,
is_lead
:
0
,
sign
:
9
,
sign
:
9
,
watchtypeid
:
''
,
watchtypeid
:
''
,
...
@@ -418,6 +449,27 @@ const signImgUrl = ref('')
...
@@ -418,6 +449,27 @@ const signImgUrl = ref('')
const
logAcStShow
=
ref
(
false
)
const
logAcStShow
=
ref
(
false
)
// 领导获取的教师日志
// 领导获取的教师日志
const
allLog
=
ref
(
''
)
const
allLog
=
ref
(
''
)
const
allLogList
=
ref
([])
const
getLeadFileUrl
=
(
fileItem
=
{})
=>
{
const
rawPath
=
fileItem
.
path
||
fileItem
.
file_path
||
fileItem
.
url
||
''
if
(
!
rawPath
)
return
''
if
(
/^https
?
:
\/\/
/i
.
test
(
rawPath
))
return
rawPath
const
normalizedPath
=
rawPath
.
startsWith
(
'
/
'
)
?
rawPath
:
`/
${
rawPath
}
`
if
(
normalizedPath
.
startsWith
(
'
/DutyManagement/
'
))
{
return
`
${
window
.
location
.
origin
}${
normalizedPath
}
`
}
return
`
${
window
.
location
.
origin
}
/DutyManagement
${
normalizedPath
}
`
}
const
getLeadLogUploaderList
=
(
fileList
=
[])
=>
{
if
(
!
Array
.
isArray
(
fileList
))
return
[]
return
fileList
.
map
((
fileItem
,
index
)
=>
({
url
:
getLeadFileUrl
(
fileItem
),
name
:
fileItem
.
file_name
||
fileItem
.
name
||
`附件
${
index
+
1
}
`
,
isImage
:
/
\.(
jpg|jpeg|png|gif|bmp|webp
)
$/i
.
test
((
fileItem
.
suffix
||
''
).
toLowerCase
())
||
/
\.(
jpg|jpeg|png|gif|bmp|webp
)
$/i
.
test
((
fileItem
.
file_name
||
fileItem
.
name
||
''
).
toLowerCase
()),
}))
}
const
tabs
=
(
e
)
=>
{
const
tabs
=
(
e
)
=>
{
...
@@ -460,6 +512,7 @@ const submitLog = async () => {
...
@@ -460,6 +512,7 @@ const submitLog = async () => {
let
data
=
{
let
data
=
{
sign_id
:
signList
.
logId
,
sign_id
:
signList
.
logId
,
content
:
signList
.
message
,
content
:
signList
.
message
,
file_list
:
signList
.
uploadedFileResList
,
}
}
const
res
=
await
api
.
SignLogSave
(
data
)
const
res
=
await
api
.
SignLogSave
(
data
)
if
(
res
.
code
===
1
)
showSuccessToast
(
res
.
msg
)
if
(
res
.
code
===
1
)
showSuccessToast
(
res
.
msg
)
...
@@ -470,11 +523,93 @@ const submitLog = async () => {
...
@@ -470,11 +523,93 @@ const submitLog = async () => {
await
search1
()
await
search1
()
}
}
const
normalizeLogFileList
=
(
rawFileList
)
=>
{
if
(
!
rawFileList
)
return
[]
if
(
Array
.
isArray
(
rawFileList
))
return
rawFileList
if
(
typeof
rawFileList
===
'
string
'
)
{
try
{
const
parsed
=
JSON
.
parse
(
rawFileList
)
return
Array
.
isArray
(
parsed
)
?
parsed
:
[]
}
catch
(
error
)
{
return
[]
}
}
return
[]
}
const
getFilePreviewUrl
=
(
fileItem
=
{})
=>
{
return
fileItem
.
file_path
||
fileItem
.
filePath
||
fileItem
.
url
||
fileItem
.
link
||
''
}
const
getFileDisplayName
=
(
fileItem
=
{},
index
=
0
)
=>
{
return
fileItem
.
fileName
||
fileItem
.
file_name
||
fileItem
.
name
||
`附件
${
index
+
1
}
`
}
const
dutyLog
=
(
e
)
=>
{
const
dutyLog
=
(
e
)
=>
{
signList
.
logId
=
e
.
signid
signList
.
logId
=
e
.
signid
signList
.
message
=
e
.
content
signList
.
message
=
e
.
content
const
existedFiles
=
normalizeLogFileList
(
e
.
file_list
)
signList
.
uploadedFileResList
=
existedFiles
.
map
((
item
)
=>
({...
item
}))
signList
.
logFileList
=
existedFiles
.
map
((
item
,
index
)
=>
({
url
:
getFilePreviewUrl
(
item
),
name
:
getFileDisplayName
(
item
,
index
),
status
:
'
done
'
,
uploadedRes
:
item
,
isImage
:
/
\.(
jpg|jpeg|png|gif|bmp|webp
)
$/i
.
test
(
getFileDisplayName
(
item
,
index
)),
}))
signList
.
showCenter
=
true
signList
.
showCenter
=
true
}
}
const
isAllowedLogFile
=
(
fileObj
)
=>
{
const
file
=
fileObj
?.
file
||
fileObj
if
(
!
file
||
!
file
.
name
)
return
false
const
fileName
=
file
.
name
.
toLowerCase
()
const
ext
=
fileName
.
includes
(
'
.
'
)
?
fileName
.
substring
(
fileName
.
lastIndexOf
(
'
.
'
))
:
''
const
allowExtList
=
[
'
.jpg
'
,
'
.jpeg
'
,
'
.png
'
,
'
.gif
'
,
'
.bmp
'
,
'
.webp
'
,
'
.xls
'
,
'
.xlsx
'
,
'
.doc
'
,
'
.docx
'
,
'
.pdf
'
,
]
return
allowExtList
.
includes
(
ext
)
}
const
beforeReadLogFile
=
(
file
)
=>
{
if
(
Array
.
isArray
(
file
))
{
return
file
.
every
((
item
)
=>
isAllowedLogFile
(
item
))
}
return
isAllowedLogFile
(
file
)
}
const
afterReadLogFile
=
async
(
file
,
detail
)
=>
{
const
fileItems
=
Array
.
isArray
(
file
)
?
file
:
[
file
]
for
(
const
item
of
fileItems
)
{
item
.
status
=
'
uploading
'
item
.
message
=
'
上传中...
'
const
formData
=
new
FormData
()
formData
.
append
(
'
file
'
,
item
.
file
)
const
res
=
await
api
.
FileUpload
(
formData
)
if
(
res
.
code
===
1
)
{
item
.
status
=
'
done
'
item
.
message
=
''
item
.
uploadedRes
=
res
.
response
signList
.
uploadedFileResList
.
push
(
res
.
response
)
}
else
{
item
.
status
=
'
failed
'
item
.
message
=
'
上传失败
'
showFailToast
(
res
.
msg_detail
||
res
.
msg
||
'
上传失败
'
)
const
index
=
signList
.
logFileList
.
findIndex
((
cur
)
=>
cur
===
item
)
if
(
index
>
-
1
)
signList
.
logFileList
.
splice
(
index
,
1
)
}
}
}
const
onDeleteLogFile
=
(
file
,
detail
)
=>
{
const
deletedRes
=
file
?.
uploadedRes
if
(
!
deletedRes
)
return
const
index
=
signList
.
uploadedFileResList
.
findIndex
((
item
)
=>
item
===
deletedRes
)
if
(
index
>
-
1
)
signList
.
uploadedFileResList
.
splice
(
index
,
1
)
}
const
search
=
async
()
=>
{
const
search
=
async
()
=>
{
let
data
=
{
let
data
=
{
"
dep_id
"
:
signList
.
dept_id
,
"
dep_id
"
:
signList
.
dept_id
,
...
@@ -931,10 +1066,17 @@ function leadLog(obj) {
...
@@ -931,10 +1066,17 @@ function leadLog(obj) {
type
:
"
loading
"
,
type
:
"
loading
"
,
});
});
logAcStShow
.
value
=
true
logAcStShow
.
value
=
true
api
.
LeadLogInit
(
obj
.
signid
).
then
(
res
=>
{
api
.
LeadLogInit
New
(
obj
.
signid
).
then
(
res
=>
{
// console.log(res)
// console.log(res)
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
allLog
.
value
=
res
.
response
allLog
.
value
=
res
.
response
if
(
Array
.
isArray
(
res
.
response
))
{
allLogList
.
value
=
res
.
response
}
else
if
(
typeof
res
.
response
===
'
string
'
)
{
allLogList
.
value
=
[{
str
:
res
.
response
,
file_list
:
[]}]
}
else
{
allLogList
.
value
=
[]
}
closeToast
()
closeToast
()
}
else
{
}
else
{
closeToast
()
closeToast
()
...
@@ -945,10 +1087,16 @@ function leadLog(obj) {
...
@@ -945,10 +1087,16 @@ function leadLog(obj) {
// 复制教师日志
// 复制教师日志
function
copyLog
()
{
function
copyLog
()
{
const
copyText
=
allLogList
.
value
.
map
((
item
,
index
)
=>
{
const
title
=
item
.
str
||
''
const
files
=
(
item
.
file_list
||
[]).
map
((
file
)
=>
file
.
file_name
||
file
.
name
||
file
.
path
||
''
).
filter
(
Boolean
)
const
fileText
=
files
.
length
?
`附件:
${
files
.
join
(
'
,
'
)}
`
:
'
附件:无
'
return
`
${
index
+
1
}
.
${
title
}
\n
${
fileText
}
`
}).
join
(
'
\n\n
'
)
// 创建input元素
// 创建input元素
const
el
=
document
.
createElement
(
'
input
'
)
const
el
=
document
.
createElement
(
'
input
'
)
// 给input元素赋值需要复制的文本
// 给input元素赋值需要复制的文本
el
.
setAttribute
(
'
value
'
,
allLog
.
value
)
el
.
setAttribute
(
'
value
'
,
copyText
)
// 将input元素插入页面
// 将input元素插入页面
document
.
body
.
appendChild
(
el
)
document
.
body
.
appendChild
(
el
)
// 选中input元素的文本
// 选中input元素的文本
...
...
src/pages/welcome/index.vue
浏览文件 @
9f0b65b2
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
width: 100%;
width: 100%;
"
"
>
>
V1.0.1.250205-2
50325
</span>
V1.0.1.250205-2
60428
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/util/axios.js
浏览文件 @
9f0b65b2
...
@@ -65,7 +65,7 @@ axiosInstance.interceptors.request.use(
...
@@ -65,7 +65,7 @@ axiosInstance.interceptors.request.use(
// 在发送请求之前可以进行一些处理,例如添加认证信息、日志等
// 在发送请求之前可以进行一些处理,例如添加认证信息、日志等
let
token
=
Cookies
.
get
(
'
admin-token
'
)
let
token
=
Cookies
.
get
(
'
admin-token
'
)
config
.
headers
[
'
Authorization
'
]
=
'
Bearer
'
+
token
config
.
headers
[
'
Authorization
'
]
=
'
Bearer
'
+
token
if
(
config
.
url
.
indexOf
(
'
ImageUpL
oad
'
)
!=
-
1
)
if
(
config
.
data
instanceof
FormData
||
config
.
url
.
indexOf
(
'
ImageUpLoad
'
)
!=
-
1
||
config
.
url
.
indexOf
(
'
FileUpl
oad
'
)
!=
-
1
)
config
.
headers
[
'
Content-Type
'
]
=
'
multipart/form-data
'
config
.
headers
[
'
Content-Type
'
]
=
'
multipart/form-data
'
refreshTokenAction
()
refreshTokenAction
()
return
config
;
return
config
;
...
...
vite.config.js
浏览文件 @
9f0b65b2
...
@@ -24,7 +24,7 @@ export default defineConfig({
...
@@ -24,7 +24,7 @@ export default defineConfig({
// 这里的ccc可乱写, 是拼接在url后面的地址 如果接口中没有统一的后缀可自定义
// 这里的ccc可乱写, 是拼接在url后面的地址 如果接口中没有统一的后缀可自定义
// 如果有统一后缀, 如api, 直接写api即可, 也不用rewrite了
// 如果有统一后缀, 如api, 直接写api即可, 也不用rewrite了
"
/DutyManagement
"
:
{
"
/DutyManagement
"
:
{
target
:
"
https://
asc
.hnasct.cn/
"
,
// 真实接口地址, 后端给的基地址
target
:
"
https://
develop
.hnasct.cn/
"
,
// 真实接口地址, 后端给的基地址
changeOrigin
:
true
,
// 允许跨域
changeOrigin
:
true
,
// 允许跨域
// rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空
// rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空
},
},
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录