提交 2f98a810 编写于 作者: 刘英杰's avatar 刘英杰

测试提交

上级 2b1d4778
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<Table <Table
:columns="columns" :columns="columns"
:data="tableData" :data="tableData"
:loading="loading"
> >
<template #member="{row}"> <template #member="{row}">
<Tag v-for="(item,index) in row.member" :key="index" type="border" color="primary"> <Tag v-for="(item,index) in row.member" :key="index" type="border" color="primary">
...@@ -21,11 +22,10 @@ ...@@ -21,11 +22,10 @@
</Tag> </Tag>
</template> </template>
<template slot-scope="{ row }" slot="action"> <template slot-scope="{ row }" slot="action">
<!-- <Button type="success" size="small" @click="add(row)">添加成员</Button>-->
<Button type="primary" size="small" @click="edit(row)">编辑</Button> <a @click="edit(row)">编辑</a>
<!-- <Poptip confirm transfer title="你确定删除吗?" @on-ok="del(row)" @on-cancel="cancel">--> <a @click="deleteUserGroup(row)" style="margin-left: 15px;color: red;">删除</a>
<!-- <Button type="error" size="small" style="margin-left: 20px">删除</Button>-->
<!-- </Poptip>-->
</template> </template>
</Table> </Table>
<div style="width: 100%;height: 70px;display: flex;align-items: center;"> <div style="width: 100%;height: 70px;display: flex;align-items: center;">
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
item.name item.name
}} }}
</Option> </Option>
</Select> </Select>
</FormItem> </FormItem>
</Form> </Form>
...@@ -155,8 +154,8 @@ export default { ...@@ -155,8 +154,8 @@ export default {
{ {
title: '操作', title: '操作',
align: 'center', align: 'center',
minWidth: 180, minWidth: 100,
fixed: 'right',
show: true, show: true,
slot: 'action' slot: 'action'
} }
...@@ -222,7 +221,7 @@ export default { ...@@ -222,7 +221,7 @@ export default {
}, },
// 查询 // 查询
async GetFlowUserGroupList() { async GetFlowUserGroupList() {
this.$Spin.show() this.loading = true
let data = { let data = {
page_index: this.init.page_index, page_index: this.init.page_index,
page_size: this.init.page_size, page_size: this.init.page_size,
...@@ -230,7 +229,7 @@ export default { ...@@ -230,7 +229,7 @@ export default {
const res = await api.GetFlowUserGroupList(data) const res = await api.GetFlowUserGroupList(data)
this.init.total = res.response.data_count this.init.total = res.response.data_count
this.tableData = res.response.data this.tableData = res.response.data
hook.publicMessage(res) this.loading = false
}, },
// 新增 // 新增
async addOk(e) { async addOk(e) {
...@@ -241,6 +240,7 @@ export default { ...@@ -241,6 +240,7 @@ export default {
"member": this.formValidate.user, "member": this.formValidate.user,
} }
const res = await api.FlowUserGroupSave(data) const res = await api.FlowUserGroupSave(data)
hook.publicMessage(res)
await this.GetFlowUserGroupList() await this.GetFlowUserGroupList()
this.addModal = false this.addModal = false
} }
...@@ -259,6 +259,8 @@ export default { ...@@ -259,6 +259,8 @@ export default {
if (res.code !== 1) { if (res.code !== 1) {
this.$Message.error(res.msg_detail) this.$Message.error(res.msg_detail)
} else { } else {
hook.publicMessage(res)
this.GetFlowUserGroupList() this.GetFlowUserGroupList()
this.editModal = false this.editModal = false
} }
...@@ -266,6 +268,16 @@ export default { ...@@ -266,6 +268,16 @@ export default {
}) })
}, },
async deleteUserGroup(row) {
hook.publicConfirm(async () => {
this.$Spin.show()
this.GroupUserInfo.groupid = row.groupid
let res = await api.FlowUserGroupDel({id: row.groupid})
await this.GetFlowUserGroupList()
this.$Spin.hide()
})
},
// 修改 // 修改
async edit(row) { async edit(row) {
this.$Spin.show() this.$Spin.show()
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或