提交代码

dev_xd
姜玉琦 2024-08-29 22:50:52 +08:00
parent cfa648dbe6
commit 04384f6dc6
3 changed files with 21 additions and 9 deletions

View File

@ -16,6 +16,9 @@ public class SysUserRole
/** 角色ID */
private Long roleId;
/** 角色ID */
private Long projectId;
public Long getUserId()
{
return userId;
@ -36,11 +39,20 @@ public class SysUserRole
this.roleId = roleId;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("userId", getUserId())
.append("roleId", getRoleId())
.append("projectId", getProjectId())
.toString();
}
}

View File

@ -50,8 +50,8 @@
<script setup name="CommonPanel">
import {StrUtil} from '@/utils/StrUtil'
import useModelerStore from '@/store/modules/modeler'
import { listDept } from "@/api/system/dept";
import { listProjectInfo } from "@/api/manage/projectInfo";
// import { listDept } from "@/api/system/dept";
// import { listProjectInfo } from "@/api/manage/projectInfo";
const modelerStore = useModelerStore()
const { proxy } = getCurrentInstance();
@ -109,11 +109,11 @@ function updateElementTask(key) {
}
/** 初始化数据 */
function initDepts(){
listDept({}).then(response => {
deptOptions.value = response.rows;
});
}
// function initDepts(){
// listDept({}).then(response => {
// deptOptions.value = response.rows;
// });
// }
initDepts();
//initDepts();
</script>

View File

@ -199,7 +199,7 @@
<el-row :gutter="20">
<el-col :span="8">
<el-form-item label="项目类型" prop="projectType">
<el-select v-model="form.projectType" placeholder="请选择项目类型">
<el-select v-model="form.projectType" placeholder="请选择项目类型" style="width:100%">
<el-option
v-for="dict in pro_project_type"
:key="dict.value"