const schoolUnionUserManage = { template: /*language=HTML*/ `
添加
`, mixins: [initTableMixins], props: {}, data() { return { pageForm: { searchName: "username" }, dialogFormVisible: false, formData: {} } }, methods: { openAdd() { this.dialogFormVisible = true this.$nextTick(() => { this.formData = {} }) }, doSubmit() { $.post("/platform/sys/union/insertSchoolUnionUserRole", this.formData).then((res) => { if (res.code === 0) { this.dialogFormVisible = false this.$message.success(res.msg) this.doSearch() } }) }, doDelete({ userId, roleCode }) { this.$confirm("您确定要删除吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info" }).then((res) => { $.post("/platform/sys/union/deleteSchoolUnionUserRole", { userId, roleCode }).then((res) => { if (res.code === 0) { this.$message.success(res.msg) this.doSearch() } }) }) }, pageData() { $.get("/platform/sys/union/schoolUnionUserPageData", this.pageForm).then((res) => { if (res.code === 0) { this.tableData = res.data } }) } }, created() { this.pageData() } }