|
@@ -20,6 +20,7 @@ import useBool from "@/utils/hooks/useBool";
|
20
|
20
|
import useOrgResponsible from "@/utils/hooks/useOrgResponsible";
|
21
|
21
|
import dayjs from "dayjs";
|
22
|
22
|
import TargetLink from "@/components/TargetLink";
|
|
23
|
+import { useModel } from "@/store";
|
23
|
24
|
|
24
|
25
|
const queryOrg = queryDict(getSysOrg, { labelKey: "name", valueKey: "orgId" });
|
25
|
26
|
const queryLocType = queryDict(getTdLocType, {
|
|
@@ -48,6 +49,10 @@ export default (props) => {
|
48
|
49
|
isResponsible ? exportTaOrgIssue : exportTaIssue,
|
49
|
50
|
];
|
50
|
51
|
}, [isResponsible, org]);
|
|
52
|
+
|
|
53
|
+ const { user } = useModel("user");
|
|
54
|
+
|
|
55
|
+ const managerBol = user.dutyList.includes("manager");
|
51
|
56
|
const columns = [
|
52
|
57
|
{
|
53
|
58
|
title: "问题单号",
|
|
@@ -74,7 +79,7 @@ export default (props) => {
|
74
|
79
|
search: {
|
75
|
80
|
transform: (value) => {
|
76
|
81
|
return {
|
77
|
|
- 'sourceType2': value,
|
|
82
|
+ sourceType2: value,
|
78
|
83
|
};
|
79
|
84
|
},
|
80
|
85
|
},
|
|
@@ -230,9 +235,13 @@ export default (props) => {
|
230
|
235
|
okText="确定"
|
231
|
236
|
cancelText="取消"
|
232
|
237
|
>
|
233
|
|
- <Button style={{ padding: 0 }} danger type="link">
|
234
|
|
- 删除
|
235
|
|
- </Button>
|
|
238
|
+ {managerBol ? (
|
|
239
|
+ <Button style={{ padding: 0 }} danger type="link">
|
|
240
|
+ 删除
|
|
241
|
+ </Button>
|
|
242
|
+ ) : (
|
|
243
|
+ ""
|
|
244
|
+ )}
|
236
|
245
|
</Popconfirm>
|
237
|
246
|
</>,
|
238
|
247
|
]}
|