Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-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
赵啸非
device-new-platform
Commits
3d12b40a
Commit
3d12b40a
authored
Aug 21, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加资源部署站点字段
parent
9d8f91a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
device-manager-ui/admin/src/views/device/module/distribute/list.vue
...ager-ui/admin/src/views/device/module/distribute/list.vue
+29
-2
No files found.
device-manager-ui/admin/src/views/device/module/distribute/list.vue
View file @
3d12b40a
<
template
>
<div
class=
"page"
>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
</LayoutTable>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
<el-button
slot=
"table-head-left2"
style=
"margin-left: 10px"
type=
"primary"
class=
"addclass"
size=
"mini"
@
click=
"cloneAppBySite"
>
复制资源
</el-button>
</LayoutTable>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
</div>
...
...
@@ -20,10 +33,24 @@ export default {
mixins
:
[
table
],
created
()
{
const
siteid
=
session
.
getSession
(
"
siteid
"
);
console
.
log
(
"
siteId:
"
+
siteid
)
this
.
query
[
"
siteId
"
]
=
siteid
?
siteid
:
1
;
},
methods
:
{
cloneAppBySite
(
row
)
{
this
.
$post
(
"
/device/module/distribute/cloneAppBySite
"
,
{
sourceSiteId
:
1
,
targetSiteId
:
session
.
getSession
(
"
siteid
"
),
})
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
$message
.
success
(
"
复制资源应用成功!
"
);
this
.
getData
();
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
dialogform
.
add
(
row
);
...
...
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