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

修复action配置页面

parent 57d2fbe5
......@@ -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 => {
const str = this.row.id ? '修改成功' : '新增成功'
this.$message.success(str)
this.queryTableData()
})
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 = [
......
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