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

测试提交

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