Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
f8e5ada0
Commit
f8e5ada0
authored
Apr 02, 2025
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改站点业务
parent
a2735c0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs1.vue
.../src/pages/basicset/business/components/businessTabs1.vue
+32
-0
No files found.
base-manager-ui/admin/src/pages/basicset/business/components/businessTabs1.vue
View file @
f8e5ada0
...
...
@@ -52,6 +52,13 @@
}}
</span>
</
template
>
<!-- 是否展示数据 -->
<
template
slot=
"datashow"
slot-scope=
"{ record }"
>
<y-switch
v-model=
"record.datashow"
@
change=
"changeDatashow(record)"
></y-switch>
</
template
>
<
template
slot=
"action"
slot-scope=
"{ record }"
>
<a-space
size=
"middle"
>
...
...
@@ -146,6 +153,7 @@ import addprofession from "../group/addprofession.vue";
import
local
from
"
@/utils/local
"
;
import
{
uniqueObjArray
}
from
"
@/utils
"
;
import
YTable
from
"
@/components/YTable.vue
"
;
import
YSwitch
from
"
@/components/yswitch/YSwitch.vue
"
;
import
{
businessList
,
delSiteBusiness
,
...
...
@@ -155,12 +163,14 @@ import {
businessInfo
,
businessMatterList
,
delBusinessMatter
,
saveBusiness
,
}
from
"
@/services/business
"
;
export
default
{
components
:
{
addprofession
,
YTable
,
YSwitch
,
},
data
()
{
return
{
...
...
@@ -180,6 +190,14 @@ export default {
align
:
"
left
"
,
dataIndex
:
"
businessName
"
,
},
{
title
:
"
是否数据展示
"
,
dataIndex
:
"
datashow
"
,
width
:
"
120px
"
,
scopedSlots
:
{
customRender
:
"
datashow
"
,
},
},
{
title
:
"
操作
"
,
width
:
"
110px
"
,
...
...
@@ -342,6 +360,20 @@ export default {
this
.
$refs
.
addprofession
.
onAdd
();
this
.
visible
=
true
;
},
async
changeDatashow
(
row
)
{
let
res
=
await
businessInfo
({
id
:
row
.
businessId
});
if
(
res
.
data
.
code
===
1
)
{
let
{
data
}
=
res
.
data
;
let
result
=
await
saveBusiness
({
...
data
,
datashow
:
row
.
datashow
,
});
if
(
result
.
data
.
code
===
1
)
{
this
.
$message
.
success
(
"
修改成功
"
);
}
this
.
getSiteBusinessData
();
}
},
// 站点业务选中
onSelectSiteBusiness
(
key
,
rows
)
{
this
.
selectedLeftRowKeys
=
key
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment