|
|
@@ -182,6 +182,7 @@
|
|
|
<UserSelector
|
|
|
ref="UserSelector"
|
|
|
@select="onUserSelect"
|
|
|
+ :customTreeRequest="deptTreeWithSameTypeUp"
|
|
|
:selectLimit="1"
|
|
|
></UserSelector>
|
|
|
</div>
|
|
|
@@ -195,6 +196,7 @@ import imgUpload from "@/components/ImageUpload/index.vue";
|
|
|
import UserSelector from "@/components/userSelector/index.vue";
|
|
|
import { getLabel } from "@/views/commonOption.js";
|
|
|
import { checkPermi } from "@/utils/permission.js";
|
|
|
+import {deptTreeWithSameTypeUp} from "@/api/system/org.js"
|
|
|
export default {
|
|
|
name: "safetyCheckRegister",
|
|
|
data() {
|
|
|
@@ -233,6 +235,7 @@ export default {
|
|
|
return (
|
|
|
this.isRegister &&
|
|
|
this.taskInfo.status != 3 &&
|
|
|
+ this.taskInfo.checkOrgId == this.orgId &&
|
|
|
userRoleIds.find((ur) => taskRoleIds.includes(ur))
|
|
|
);
|
|
|
},
|
|
|
@@ -276,6 +279,7 @@ export default {
|
|
|
methods: {
|
|
|
dayjs,
|
|
|
getLabel,
|
|
|
+ deptTreeWithSameTypeUp,
|
|
|
onAddPoint() {
|
|
|
this.pointIdsWhenAdd = [];
|
|
|
this.taskInfo.checkList.forEach((a) => {
|