|
|
|
@ -5,7 +5,7 @@ import {
|
|
|
|
|
getOptionalBaseList,
|
|
|
|
|
getRoleManageList,
|
|
|
|
|
getUserList,
|
|
|
|
|
createProcess,
|
|
|
|
|
updateProcess,
|
|
|
|
|
getFlowDetail
|
|
|
|
|
} from "@/api/business";
|
|
|
|
|
import { message } from "@/utils/message";
|
|
|
|
@ -47,7 +47,7 @@ const processForm = reactive({
|
|
|
|
|
link: [
|
|
|
|
|
{
|
|
|
|
|
nodeName: "",
|
|
|
|
|
roleId: null,
|
|
|
|
|
roleId: "",
|
|
|
|
|
userIdList: []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
@ -140,7 +140,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
// console.log(createForm);
|
|
|
|
|
createProcess(createForm).then(res => {
|
|
|
|
|
updateProcess(createForm).then(res => {
|
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
message("新建成功", { type: "success" });
|
|
|
|
|
props.closeDrawer();
|
|
|
|
@ -161,7 +161,7 @@ const handleDrawerClosed = () => {
|
|
|
|
|
const addLink = () => {
|
|
|
|
|
processForm.link.push({
|
|
|
|
|
nodeName: "",
|
|
|
|
|
roleId: null,
|
|
|
|
|
roleId: "",
|
|
|
|
|
userIdList: []
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
@ -201,10 +201,11 @@ const getUserLists = async () => {
|
|
|
|
|
const handleSelect = async (value: any) => {
|
|
|
|
|
// console.log(value);
|
|
|
|
|
// const selectItem = JSON.parse(value);
|
|
|
|
|
value.userIdList.length = 0;
|
|
|
|
|
const res: any = await getUserList({
|
|
|
|
|
userName: "",
|
|
|
|
|
deptId: "",
|
|
|
|
|
roleId: value,
|
|
|
|
|
roleId: value.roleId,
|
|
|
|
|
pageNum: "1",
|
|
|
|
|
pageSize: "10"
|
|
|
|
|
});
|
|
|
|
@ -331,7 +332,7 @@ onMounted(() => {
|
|
|
|
|
popper-class="custom-header"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
class="w-[100%]"
|
|
|
|
|
@change="handleSelect"
|
|
|
|
|
@change="handleSelect(item)"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in roleNameList"
|
|
|
|
@ -361,6 +362,7 @@ onMounted(() => {
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:max-collapse-tags="2"
|
|
|
|
|
class="w-[100%]"
|
|
|
|
|
:disabled="item.roleId === ''"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in userNameList"
|
|
|
|
|