Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
0126d477
提交
0126d477
authored
3月 17, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(user): 编辑状态下,部门和昵称不能修改
同上
上级
be079aa9
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
85 行增加
和
4 行删除
+85
-4
index.js
src/api/jimu/index.js
+10
-0
index.vue
src/views/jimureport/ext/index.vue
+69
-0
index.vue
src/views/system/user/index.vue
+6
-4
没有找到文件。
src/api/jimu/index.js
浏览文件 @
0126d477
...
@@ -5,3 +5,12 @@ export function getReportListAPI() {
...
@@ -5,3 +5,12 @@ export function getReportListAPI() {
url
:
'/report/share/list'
url
:
'/report/share/list'
})
})
}
}
// 提交其他报表超链接
export
function
submitOtherReportAPI
(
data
)
{
return
request
({
url
:
'/report/share'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/views/jimureport/ext/index.vue
0 → 100644
浏览文件 @
0126d477
<
template
>
<div
class=
"app-container"
>
<div
class=
"container"
>
<el-form
:model=
"form"
label-width=
"100px"
>
<!-- 超链接输入 -->
<el-form-item
label=
"超链接"
prop=
"link"
>
<el-input
v-model=
"form.link"
placeholder=
"请输入超链接地址"
/>
</el-form-item>
<!-- 备注输入 -->
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"form.remark"
type=
"textarea"
:rows=
"3"
placeholder=
"请输入备注信息"
/>
</el-form-item>
<!-- 提交按钮 -->
<el-form-item>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
提交
</el-button>
</el-form-item>
</el-form>
</div>
</div>
</
template
>
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
ElMessage
}
from
'element-plus'
import
{
submitOtherReportAPI
}
from
'@/api'
// 假设你的API接口
// 表单数据
const
form
=
ref
({
link
:
''
,
remark
:
''
})
// 提交处理
const
handleSubmit
=
async
()
=>
{
try
{
if
(
!
form
.
value
.
group
||
!
form
.
value
.
link
)
{
ElMessage
.
warning
(
'请填写完整信息'
)
return
}
await
submitOtherReportAPI
(
form
.
value
)
ElMessage
.
success
(
'提交成功'
)
// 清空表单
form
.
value
=
{
link
:
''
,
remark
:
''
}
}
catch
(
error
)
{
ElMessage
.
error
(
'提交失败'
)
}
}
</
script
>
<
style
scoped
>
.app-container
{
padding
:
20px
;
}
</
style
>
src/views/system/user/index.vue
浏览文件 @
0126d477
...
@@ -245,7 +245,8 @@
...
@@ -245,7 +245,8 @@
prop=
"nickName"
>
prop=
"nickName"
>
<el-input
v-model=
"form.nickName"
<el-input
v-model=
"form.nickName"
placeholder=
"请输入用户昵称"
placeholder=
"请输入用户昵称"
maxlength=
"30"
/>
maxlength=
"30"
:disabled=
"!!form.userId"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -253,7 +254,8 @@
...
@@ -253,7 +254,8 @@
prop=
"phonenumber"
>
prop=
"phonenumber"
>
<el-input
v-model=
"form.phonenumber"
<el-input
v-model=
"form.phonenumber"
placeholder=
"请输入手机号码"
placeholder=
"请输入手机号码"
maxlength=
"11"
/>
maxlength=
"11"
:disabled=
"!!form.userId"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -277,7 +279,8 @@
...
@@ -277,7 +279,8 @@
:props=
"{ value: 'id', label: 'label', children: 'children' }"
:props=
"{ value: 'id', label: 'label', children: 'children' }"
value-key=
"id"
value-key=
"id"
placeholder=
"请选择归属部门"
placeholder=
"请选择归属部门"
check-strictly
/>
check-strictly
:disabled=
"!!form.userId"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- <el-col :span="12">
<!-- <el-col :span="12">
...
@@ -717,7 +720,6 @@
...
@@ -717,7 +720,6 @@
reset
();
reset
();
const
userId
=
row
.
userId
||
ids
.
value
;
const
userId
=
row
.
userId
||
ids
.
value
;
getUser
(
userId
).
then
(
async
response
=>
{
getUser
(
userId
).
then
(
async
response
=>
{
console
.
log
(
'response'
,
response
)
// 省市回显
// 省市回显
const
index
=
provinceList
.
value
.
findIndex
(
o
=>
o
.
value
===
response
.
data
.
workProvinceNum
)
const
index
=
provinceList
.
value
.
findIndex
(
o
=>
o
.
value
===
response
.
data
.
workProvinceNum
)
if
(
index
!==
-
1
)
{
if
(
index
!==
-
1
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论