Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
D
dutyManagement
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
dutyManagement
提交
18ed1a6b
提交
18ed1a6b
编写于
10月 29, 2025
作者:
钟一霄
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
V1.0.1.250205-251029
1. **值班安排**页面:导入模板错误新增错误文件下载功能
上级
1b229f7d
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
42 行增加
和
2 行删除
+42
-2
index.vue
src/layouts/basic-layout/menu-side/index.vue
+2
-1
index.vue
src/pages/dutyArrangement/index.vue
+40
-1
未找到文件。
src/layouts/basic-layout/menu-side/index.vue
浏览文件 @
18ed1a6b
...
@@ -40,7 +40,8 @@
...
@@ -40,7 +40,8 @@
width: 100%;
width: 100%;
"
"
>
>
V1.0.1.250205-250325
<!-- 版本号:后端-前端 -->
V1.0.1.250205-251029
</span>
</span>
</div>
</div>
</div>
</div>
...
...
src/pages/dutyArrangement/index.vue
浏览文件 @
18ed1a6b
...
@@ -417,6 +417,22 @@
...
@@ -417,6 +417,22 @@
</div>
</div>
</Modal>
</Modal>
<!-- 表格内容错误弹框下载 -->
<Modal
v-model=
"errorModal"
width=
"360"
>
<
template
#header
>
<p
style=
"color:#f60;text-align:center"
>
<Icon
type=
"ios-information-circle"
></Icon>
<span>
数据有误
</span>
</p>
</
template
>
<div
style=
"text-align:center"
>
<p>
{{ errorMessage }}
</p>
</div>
<
template
#footer
>
<Button
type=
"error"
size=
"large"
long
@
click=
"dwlErrFile"
>
下载错误文件
</Button>
</
template
>
</Modal>
</div>
</div>
</template>
</template>
...
@@ -745,6 +761,11 @@ export default {
...
@@ -745,6 +761,11 @@ export default {
tempYearMonth
:
''
,
tempYearMonth
:
''
,
// 默认查询条件值班日期
// 默认查询条件值班日期
dutyDateX
:
[],
dutyDateX
:
[],
// 表格内容错误弹框
errorModal
:
false
,
errorMessage
:
''
,
errorResponsePath
:
''
,
};
};
},
},
//监听属性 类似于data概念",
//监听属性 类似于data概念",
...
@@ -985,6 +1006,12 @@ export default {
...
@@ -985,6 +1006,12 @@ export default {
this
.
dutyModelImportModal
=
false
this
.
dutyModelImportModal
=
false
}
}
if
(
res
.
code
==
50002
&&
res
.
response
!=
null
)
{
this
.
errorMessage
=
res
.
msg_detail
this
.
errorResponsePath
=
res
.
response
this
.
errorModal
=
true
}
return
false
return
false
},
},
dutyModelFormatError
(
file
,
fileList
)
{
dutyModelFormatError
(
file
,
fileList
)
{
...
@@ -1356,7 +1383,19 @@ export default {
...
@@ -1356,7 +1383,19 @@ export default {
api
.
GetUserSelect
({
condition
:
''
}).
then
(
res
=>
{
api
.
GetUserSelect
({
condition
:
''
}).
then
(
res
=>
{
this
.
userArray
=
res
.
response
this
.
userArray
=
res
.
response
})
})
}
},
// 下载错误文件
dwlErrFile
()
{
let
path
=
this
.
errorResponsePath
let
i
=
path
.
lastIndexOf
(
'
/
'
)
let
str
=
path
.
substring
(
i
+
1
,
path
.
length
)
// 截取最后字符串
const
link
=
document
.
createElement
(
'
a
'
)
link
.
style
.
display
=
'
none
'
link
.
href
=
`
${
path
}
`
link
.
setAttribute
(
'
download
'
,
str
)
// 调出下载窗口
// document.body.appendChild(link)
link
.
click
()
// 添加点击事件
},
},
},
//生命周期 - 创建之前",数据模型未加载,方法未加载,html模板未加载
//生命周期 - 创建之前",数据模型未加载,方法未加载,html模板未加载
beforeCreate
()
{
beforeCreate
()
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录