Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-sky-ui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何虹
hs-sky-ui
Commits
68cd73af
Commit
68cd73af
authored
Jan 15, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复action配置页面
parent
57d2fbe5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
29 deletions
+15
-29
index.vue
src/packages/hs-action-set/src/index.vue
+15
-29
No files found.
src/packages/hs-action-set/src/index.vue
View file @
68cd73af
...
...
@@ -219,19 +219,8 @@ export default {
})
})
},
saveData
(
data
)
{
const
url
=
`
${
this
.
save_module_url
}
?db_name=HsMonitorCenter_Test`
const
data_
=
{
data
:
{
pbWebDyncCode
:
data
}
}
this
.
$attrs
.
httpClient
.
rootModule
.
post
(
rl
,
data_
)
// return axios.post(url, data_)
},
// 保存
async
saveItem
()
{
const
{
appCode
,
pageName
}
=
hsUtil
.
SystemModule
.
getUrlParams
()
if
(
!
this
.
row
.
name
)
{
this
.
$message
(
'请完善方法名!'
)
return
...
...
@@ -242,9 +231,6 @@ export default {
}
const
data
=
{
_action
:
3
,
app_code
:
appCode
,
page_url
:
pageName
,
page_name
:
pageName
,
script
:
this
.
row
.
script
,
name
:
this
.
row
.
name
}
...
...
@@ -257,16 +243,20 @@ export default {
this
.
$message
(
'该方法名已经存在,请更换方法名!'
)
return
}
const
resultNewIds
=
await
this
.
$attrs
.
httpClient
.
SystemModule
.
getNewId
(
1
)
const
resultNewIds
=
await
this
.
$attrs
.
httpClient
.
SystemModule
.
getNewId
(
1
)
const
ids
=
resultNewIds
.
data
data
.
id
=
ids
[
0
]
data
.
iUpdateStatus
=
1
}
this
.
$attrs
.
httpClient
.
SystemModule
.
saveBillpbWebDyncCode
(
data
).
then
(
res
=>
{
this
.
$attrs
.
httpClient
.
SystemModule
.
saveBillpbWebDyncCode
(
data
).
then
(
res
=>
{
const
str
=
this
.
row
.
id
?
'修改成功'
:
'新增成功'
this
.
$message
.
success
(
str
)
this
.
queryTableData
()
})
}
)
},
// 新增
addItem
()
{
...
...
@@ -287,15 +277,12 @@ export default {
},
// 删除
deleteItem
()
{
// 获取 appCode
const
{
appCode
}
=
hsUtil
.
SystemModule
.
getUrlParams
()
const
{
id
}
=
this
.
row
const
parms
=
{
bodyData
:
{
ids
:
id
},
tableName
:
'pbWebDyncCode'
,
appCode
,
parms
:
{}
}
this
.
$attrs
.
$httpClient
.
RestFulModule
.
deleteList
(
parms
).
then
(
res
=>
{
...
...
@@ -326,15 +313,14 @@ export default {
this
.
dialogFormVisible
=
true
},
queryTableData
()
{
const
{
appCode
,
pageName
}
=
hsUtil
.
SystemModule
.
getUrlParams
()
const
parms
=
{
appCode
,
pageName
}
this
.
$httpClient
.
SystemModule
.
queryBillpbWebDyncCode
(
parms
).
then
(
res
=>
{
this
.
$attrs
.
httpClient
.
queryBillpbWebDyncCode
().
then
(
res
=>
{
this
.
table_data
=
res
.
data
this
.
initData
()
})
// this.$httpClient.SystemModule.queryBillpbWebDyncCode(parms).then(res => {
// this.table_data = res.data
// this.initData()
// })
},
initTableConfig
()
{
this
.
table_columns
=
[
...
...
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