1
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
|
||||
class SysControlTypeServer {
|
||||
async all(param) {
|
||||
let res = await window.framework.http.get("/sys_control_type/all", param);
|
||||
return res;
|
||||
}
|
||||
|
||||
async page(row) {
|
||||
let res = await window.framework.http.post("/sys_control_type/page", row);
|
||||
return res;
|
||||
}
|
||||
|
||||
async add(param) {
|
||||
let res = await window.framework.http.post("/sys_control_type/add", param);
|
||||
return res;
|
||||
}
|
||||
|
||||
async edit(param) {
|
||||
let res = await window.framework.http.post("/sys_control_type/edit", param);
|
||||
return res;
|
||||
}
|
||||
async del(param) {
|
||||
let res = await window.framework.http.post("/sys_control_type/del", param);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
const sysControlTypeServer = new SysControlTypeServer();
|
||||
export default sysControlTypeServer;
|
||||
@@ -140,7 +140,7 @@ export default {
|
||||
delConfirm(row) {
|
||||
window.framework.uiTool.delConfirm(async () => {
|
||||
await ai_messagesServer.del(row)
|
||||
rootVue.$Message.success('删除成功!')
|
||||
this.$Message.success('删除成功!')
|
||||
this.query(1)
|
||||
})
|
||||
},
|
||||
|
||||
@@ -133,7 +133,7 @@ export default {
|
||||
delConfirm(row) {
|
||||
window.framework.uiTool.delConfirm(async () => {
|
||||
await game_commentsServer.del(row)
|
||||
rootVue.$Message.success('删除成功!')
|
||||
this.$Message.success('删除成功!')
|
||||
this.query(1)
|
||||
})
|
||||
},
|
||||
|
||||
@@ -270,7 +270,7 @@ export default {
|
||||
'joined_at': 'CURRENT_TIMESTAMP'
|
||||
}, async (newRow) => {
|
||||
let res = await gameParticipantsServer.add(newRow)
|
||||
rootVue.$Message.success('新增成功!')
|
||||
this.$Message.success('新增成功!')
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
@@ -282,7 +282,7 @@ export default {
|
||||
let valid = await this.$refs['editModal'].$refs['From'].validate()
|
||||
if (valid) {
|
||||
let res = await gameParticipantsServer.edit(newRow)
|
||||
rootVue.$Message.success('修改成功!')
|
||||
this.$Message.success('修改成功!')
|
||||
this.init()
|
||||
}
|
||||
})
|
||||
@@ -290,7 +290,7 @@ export default {
|
||||
async delConfirm(row) {
|
||||
window.framework.uiTool.delConfirm(async () => {
|
||||
await gameParticipantsServer.del(row)
|
||||
rootVue.$Message.success('删除成功!')
|
||||
this.$Message.success('删除成功!')
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
|
||||
@@ -513,7 +513,7 @@ export default {
|
||||
'remark': ''
|
||||
}, async (newRow) => {
|
||||
let res = await gamesServer.add(newRow)
|
||||
rootVue.$Message.success('新增成功!')
|
||||
this.$Message.success('新增成功!')
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
@@ -522,7 +522,7 @@ export default {
|
||||
let valid = await this.$refs['editModal'].$refs['From'].validate()
|
||||
if (valid) {
|
||||
let res = await gamesServer.edit(newRow)
|
||||
rootVue.$Message.success('修改成功!')
|
||||
this.$Message.success('修改成功!')
|
||||
this.init()
|
||||
}
|
||||
})
|
||||
@@ -530,7 +530,7 @@ export default {
|
||||
async delConfirm(row) {
|
||||
window.framework.uiTool.delConfirm(async () => {
|
||||
await gamesServer.del(row)
|
||||
rootVue.$Message.success('删除成功!')
|
||||
this.$Message.success('删除成功!')
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
|
||||
@@ -257,7 +257,7 @@ export default {
|
||||
async showAddWarp() {
|
||||
this.$refs.editModal.addShow({ 'venue_type': 'indoor', 'surface_type': 'hard', 'court_count': '1', 'status': 'active', 'create_time': 'CURRENT_TIMESTAMP', 'updated_at': 'CURRENT_TIMESTAMP', }, async (newRow) => {
|
||||
let res = await venuesServer.add(newRow)
|
||||
rootVue.$Message.success('新增成功!')
|
||||
this.$Message.success('新增成功!')
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
@@ -266,7 +266,7 @@ export default {
|
||||
let valid = await this.$refs['editModal'].$refs['From'].validate()
|
||||
if (valid) {
|
||||
let res = await venuesServer.edit(newRow)
|
||||
rootVue.$Message.success('修改成功!')
|
||||
this.$Message.success('修改成功!')
|
||||
this.init()
|
||||
}
|
||||
})
|
||||
@@ -274,7 +274,7 @@ export default {
|
||||
async delConfirm(row) {
|
||||
window.framework.uiTool.delConfirm(async () => {
|
||||
await venuesServer.del(row)
|
||||
rootVue.$Message.success('删除成功!')
|
||||
this.$Message.success('删除成功!')
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
|
||||
@@ -318,7 +318,7 @@ export default {
|
||||
async showAddWarp() {
|
||||
this.$refs.editModal.addShow({ 'is_subscribed': '0', 'last_login_time': 'CURRENT_TIMESTAMP', 'create_time': 'CURRENT_TIMESTAMP', 'updated_at': 'CURRENT_TIMESTAMP', }, async (newRow) => {
|
||||
let res = await wch_usersServer.add(newRow)
|
||||
rootVue.$Message.success('新增成功!')
|
||||
this.$Message.success('新增成功!')
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
@@ -327,7 +327,7 @@ export default {
|
||||
let valid = await this.$refs['editModal'].$refs['From'].validate()
|
||||
if (valid) {
|
||||
let res = await wch_usersServer.edit(newRow)
|
||||
rootVue.$Message.success('修改成功!')
|
||||
this.$Message.success('修改成功!')
|
||||
this.init()
|
||||
}
|
||||
})
|
||||
@@ -335,7 +335,7 @@ export default {
|
||||
async delConfirm(row) {
|
||||
window.framework.uiTool.delConfirm(async () => {
|
||||
await wch_usersServer.del(row)
|
||||
rootVue.$Message.success('删除成功!')
|
||||
this.$Message.success('删除成功!')
|
||||
this.init()
|
||||
})
|
||||
},
|
||||
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
delConfirm(row) {
|
||||
window.framework.uiTool.delConfirm(async () => {
|
||||
await recommend_blocksServer.del(row)
|
||||
rootVue.$Message.success('删除成功!')
|
||||
this.$Message.success('删除成功!')
|
||||
this.query(1)
|
||||
})
|
||||
},
|
||||
|
||||
@@ -85,7 +85,7 @@ export default {
|
||||
},
|
||||
},
|
||||
]
|
||||
return uiTool.getBtn(h, btns)
|
||||
return window.framework.uiTool.getBtn(h, btns)
|
||||
},
|
||||
}
|
||||
],
|
||||
@@ -131,27 +131,27 @@ export default {
|
||||
'follow_time': null
|
||||
}, async (newRow) => {
|
||||
let res = await user_followsServer.add(newRow)
|
||||
rootVue.$Message.success('新增成功!')
|
||||
this.$Message.success('新增成功!')
|
||||
this.query(1)
|
||||
})
|
||||
},
|
||||
showEditWarp(row) {
|
||||
this.$refs.editModal.editShow(row, async (newRow) => {
|
||||
let res = await user_followsServer.edit(newRow)
|
||||
rootVue.$Message.success('修改成功!')
|
||||
this.$Message.success('修改成功!')
|
||||
this.query(1)
|
||||
})
|
||||
},
|
||||
delConfirm(row) {
|
||||
uiTool.delConfirm(async () => {
|
||||
window.framework.uiTool.delConfirm(async () => {
|
||||
await user_followsServer.del(row)
|
||||
rootVue.$Message.success('删除成功!')
|
||||
this.$Message.success('删除成功!')
|
||||
this.query(1)
|
||||
})
|
||||
},
|
||||
exportCsv() {
|
||||
user_followsServer.exportCsv(this.gridOption.param).then(res => {
|
||||
window.framework. funTool.downloadFile(res, '用户关注关系.csv');
|
||||
window.framework.funTool.downloadFile(res, '用户关注关系.csv');
|
||||
});
|
||||
},
|
||||
resetQuery() {
|
||||
|
||||
@@ -145,7 +145,7 @@ export default {
|
||||
delConfirm(row) {
|
||||
window.framework.uiTool.delConfirm(async () => {
|
||||
await user_trackingServer.del(row)
|
||||
rootVue.$Message.success('删除成功!')
|
||||
this.$Message.success('删除成功!')
|
||||
this.query(1)
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user