Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jilinzhongdianrenqun-web
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
jilinzhongdianrenqun-web
Commits
ec0b7eb2
Commit
ec0b7eb2
authored
Nov 19, 2025
by
wangchunyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入按钮控制长春显示,登录后同步加载用户相关信息
parent
eb46c660
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
38 行增加
和
5 行删除
+38
-5
src/store/module/user.js
+8
-2
src/view/people-info/index2.vue
+10
-1
src/view/people-info/index3.vue
+10
-1
src/view/people-info/personMinor.vue
+10
-1
没有找到文件。
src/store/module/user.js
View file @
ec0b7eb2
...
@@ -151,14 +151,20 @@ export default {
...
@@ -151,14 +151,20 @@ export default {
const
controlData
=
{
const
controlData
=
{
no
:
data
.
no
no
:
data
.
no
}
}
// 内层Promise
return
new
Promise
((
resolve
,
reject
)
=>
{
otherUserInfo
(
controlData
).
then
(
resop
=>
{
otherUserInfo
(
controlData
).
then
(
resop
=>
{
commit
(
'setOtherUserInfo'
,
resop
.
data
.
data
)
commit
(
'setOtherUserInfo'
,
resop
.
data
.
data
)
})
console
.
log
(
'内层Promise'
,
data
,
resop
.
data
.
data
)
resolve
(
data
)
resolve
(
data
)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
reject
(
err
)
reject
(
err
)
})
})
})
// resolve(data)
}).
catch
(
err
=>
{
reject
(
err
)
})
}
catch
(
error
)
{
}
catch
(
error
)
{
reject
(
error
)
reject
(
error
)
}
}
...
...
src/view/people-info/index2.vue
View file @
ec0b7eb2
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
<!--
<Button
type=
"primary"
@
click=
"handleDownload"
style=
"margin-right: 10px;"
>
导出
</Button>
-->
<!--
<Button
type=
"primary"
@
click=
"handleDownload"
style=
"margin-right: 10px;"
>
导出
</Button>
-->
<!-- v-if="severUserInfo.company_grade === '6'"-->
<!-- v-if="severUserInfo.company_grade === '6'"-->
<Button
type=
"primary"
@
click=
"importShow = true"
style=
"margin-right: 10px;"
>
导入
</Button>
<Button
type=
"primary"
v-if=
"showImport()"
@
click=
"importShow = true"
style=
"margin-right: 10px;"
>
导入
</Button>
<Button
<Button
type=
"primary"
type=
"primary"
style=
"margin-right: 10px"
style=
"margin-right: 10px"
...
@@ -2617,6 +2617,15 @@ export default {
...
@@ -2617,6 +2617,15 @@ export default {
desc
:
ret
.
data
.
errmsg
desc
:
ret
.
data
.
errmsg
})
})
}
}
},
showImport
()
{
const
info
=
this
.
$store
.
state
.
user
.
otherUserInfo
||
{}
const
areaId
=
info
.
area_id
||
''
if
(
areaId
.
startsWith
(
'2201'
))
{
return
true
}
else
{
return
false
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/view/people-info/index3.vue
View file @
ec0b7eb2
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
<Col
<Col
style=
"text-align: right"
style=
"text-align: right"
>
>
<Button
type=
"primary"
@
click=
"importShow = true"
style=
"margin-right: 10px;"
>
导入
</Button>
<Button
type=
"primary"
v-if=
"showImport()"
@
click=
"importShow = true"
style=
"margin-right: 10px;"
>
导入
</Button>
<Button
<Button
type=
"primary"
type=
"primary"
@
click=
"searchData"
@
click=
"searchData"
...
@@ -2476,6 +2476,15 @@ export default {
...
@@ -2476,6 +2476,15 @@ export default {
desc
:
ret
.
data
.
errmsg
desc
:
ret
.
data
.
errmsg
})
})
}
}
},
showImport
()
{
const
info
=
this
.
$store
.
state
.
user
.
otherUserInfo
||
{}
const
areaId
=
info
.
area_id
||
''
if
(
areaId
.
startsWith
(
'2201'
))
{
return
true
}
else
{
return
false
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/view/people-info/personMinor.vue
View file @
ec0b7eb2
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
>
搜索
</Button
>
搜索
</Button
>
>
<Button
type=
"primary"
@
click=
"importShow = true"
style=
"margin-right: 10px;"
>
导入
</Button>
<Button
type=
"primary"
v-if=
"showImport()"
@
click=
"importShow = true"
style=
"margin-right: 10px;"
>
导入
</Button>
<Button
type=
"primary"
@
click=
"handleDownload"
style=
"margin-right: 10px;"
>
导出
</Button>
<Button
type=
"primary"
@
click=
"handleDownload"
style=
"margin-right: 10px;"
>
导出
</Button>
<!-- v-if="severUserInfo.company_grade === '6'"-->
<!-- v-if="severUserInfo.company_grade === '6'"-->
<Button
type=
"primary"
@
click=
"searchPeople"
>
新增
</Button>
<Button
type=
"primary"
@
click=
"searchPeople"
>
新增
</Button>
...
@@ -2419,6 +2419,15 @@ export default {
...
@@ -2419,6 +2419,15 @@ export default {
desc
:
ret
.
data
.
errmsg
desc
:
ret
.
data
.
errmsg
})
})
}
}
},
showImport
()
{
const
info
=
this
.
$store
.
state
.
user
.
otherUserInfo
||
{}
const
areaId
=
info
.
area_id
||
''
if
(
areaId
.
startsWith
(
'2201'
))
{
return
true
}
else
{
return
false
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论