Commit 68cd73af authored by 何虹's avatar 何虹 💬

修复action配置页面

parent 57d2fbe5
...@@ -219,19 +219,8 @@ export default { ...@@ -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() { async saveItem() {
const { appCode, pageName } = hsUtil.SystemModule.getUrlParams()
if (!this.row.name) { if (!this.row.name) {
this.$message('请完善方法名!') this.$message('请完善方法名!')
return return
...@@ -242,9 +231,6 @@ export default { ...@@ -242,9 +231,6 @@ export default {
} }
const data = { const data = {
_action: 3, _action: 3,
app_code: appCode,
page_url: pageName,
page_name: pageName,
script: this.row.script, script: this.row.script,
name: this.row.name name: this.row.name
} }
...@@ -257,16 +243,20 @@ export default { ...@@ -257,16 +243,20 @@ export default {
this.$message('该方法名已经存在,请更换方法名!') this.$message('该方法名已经存在,请更换方法名!')
return return
} }
const resultNewIds = await this.$attrs.httpClient.SystemModule.getNewId(1) const resultNewIds = await this.$attrs.httpClient.SystemModule.getNewId(
1
)
const ids = resultNewIds.data const ids = resultNewIds.data
data.id = ids[0] data.id = ids[0]
data.iUpdateStatus = 1 data.iUpdateStatus = 1
} }
this.$attrs.httpClient.SystemModule.saveBillpbWebDyncCode(data).then(res => { this.$attrs.httpClient.SystemModule.saveBillpbWebDyncCode(data).then(
const str = this.row.id ? '修改成功' : '新增成功' res => {
this.$message.success(str) const str = this.row.id ? '修改成功' : '新增成功'
this.queryTableData() this.$message.success(str)
}) this.queryTableData()
}
)
}, },
// 新增 // 新增
addItem() { addItem() {
...@@ -287,15 +277,12 @@ export default { ...@@ -287,15 +277,12 @@ export default {
}, },
// 删除 // 删除
deleteItem() { deleteItem() {
// 获取 appCode
const { appCode } = hsUtil.SystemModule.getUrlParams()
const { id } = this.row const { id } = this.row
const parms = { const parms = {
bodyData: { bodyData: {
ids: id ids: id
}, },
tableName: 'pbWebDyncCode', tableName: 'pbWebDyncCode',
appCode,
parms: {} parms: {}
} }
this.$attrs.$httpClient.RestFulModule.deleteList(parms).then(res => { this.$attrs.$httpClient.RestFulModule.deleteList(parms).then(res => {
...@@ -326,15 +313,14 @@ export default { ...@@ -326,15 +313,14 @@ export default {
this.dialogFormVisible = true this.dialogFormVisible = true
}, },
queryTableData() { queryTableData() {
const { appCode, pageName } = hsUtil.SystemModule.getUrlParams() this.$attrs.httpClient.queryBillpbWebDyncCode().then(res => {
const parms = {
appCode,
pageName
}
this.$httpClient.SystemModule.queryBillpbWebDyncCode(parms).then(res => {
this.table_data = res.data this.table_data = res.data
this.initData() this.initData()
}) })
// this.$httpClient.SystemModule.queryBillpbWebDyncCode(parms).then(res => {
// this.table_data = res.data
// this.initData()
// })
}, },
initTableConfig() { initTableConfig() {
this.table_columns = [ this.table_columns = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment