|
|
@@ -31,7 +31,7 @@
|
|
|
v-model="info.checkTeam"
|
|
|
v-if="isRegister"
|
|
|
></el-input>
|
|
|
- <span>{{ info.checkTeam }}</span>
|
|
|
+ <span v-else>{{ info.checkTeam }}</span>
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="检查状态"
|
|
|
>{{ dayjs(info.planStartTime).format("YYYY-MM-DD") }}
|
|
|
@@ -153,7 +153,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="dialog-footer">
|
|
|
- <el-button @click="dialogVisible = false">取消</el-button>
|
|
|
+ <el-button>关闭</el-button>
|
|
|
<el-button
|
|
|
@click="onGrant"
|
|
|
v-if="showGrantBtn"
|
|
|
@@ -185,7 +185,7 @@ import SelectPoint from "../../ruleManager/dialog.select.point.vue";
|
|
|
import imgUpload from "@/components/ImageUpload/index.vue";
|
|
|
import UserSelector from "@/components/userSelector/index.vue";
|
|
|
import { getLabel } from "@/views/commonOption.js";
|
|
|
-import { hasPermission } from "@/directive/permission/hasPermiEx.js";
|
|
|
+import { checkPermi } from "@/utils/permission.js";
|
|
|
export default {
|
|
|
name: "safetyCheckRegister",
|
|
|
data() {
|
|
|
@@ -210,9 +210,9 @@ export default {
|
|
|
|
|
|
showSaveBtn() {
|
|
|
return (
|
|
|
- this.isRegister() &&
|
|
|
+ this.isRegister &&
|
|
|
this.info.status != 3 &&
|
|
|
- (hasPermission(["core:safetycheck:register"]) ||
|
|
|
+ (checkPermi(["core:safetycheck:register"]) ||
|
|
|
this.info.grantUserId == this.userId)
|
|
|
);
|
|
|
},
|
|
|
@@ -220,7 +220,7 @@ export default {
|
|
|
let userRoleIds = this.roleList.map((r) => r.roleId);
|
|
|
let taskRoleIds = this.info.checkRoles.map((r) => r.id);
|
|
|
return (
|
|
|
- this.isRegister() &&
|
|
|
+ this.isRegister &&
|
|
|
this.info.status != 3 &&
|
|
|
userRoleIds.find((ur) => taskRoleIds.includes(ur))
|
|
|
);
|