|
@@ -163,7 +163,7 @@
|
|
<el-link v-if=" type === 'changeRow' || type === 'add'" type="primary" @click="clickAttachment(row, index)">{{ row.rectifyAttachmentName }}</el-link>
|
|
<el-link v-if=" type === 'changeRow' || type === 'add'" type="primary" @click="clickAttachment(row, index)">{{ row.rectifyAttachmentName }}</el-link>
|
|
<el-link v-else @click="openAttachment(row)">{{ row.rectifyAttachmentName }}</el-link>
|
|
<el-link v-else @click="openAttachment(row)">{{ row.rectifyAttachmentName }}</el-link>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+
|
|
<el-link v-else type="primary" :disabled="type === 'review' || type === 'view'" @click="clickAttachment(row, index)">
|
|
<el-link v-else type="primary" :disabled="type === 'review' || type === 'view'" @click="clickAttachment(row, index)">
|
|
上传
|
|
上传
|
|
</el-link>
|
|
</el-link>
|
|
@@ -211,7 +211,7 @@
|
|
:default-checked-keys="defaultChecked"
|
|
:default-checked-keys="defaultChecked"
|
|
:auto-expand-keys="TreeAutoExpandKeys"
|
|
:auto-expand-keys="TreeAutoExpandKeys"
|
|
check-strictly
|
|
check-strictly
|
|
- @nodeTap="wbsElTreeClick"
|
|
|
|
|
|
+ @node-tap="wbsElTreeClick"
|
|
@check="divisionTreeCheck"
|
|
@check="divisionTreeCheck"
|
|
@check-change="divisionTreeCheckChange"
|
|
@check-change="divisionTreeCheckChange"
|
|
>
|
|
>
|
|
@@ -232,7 +232,7 @@
|
|
@check-change="divisionTreeCheckChange"
|
|
@check-change="divisionTreeCheckChange"
|
|
@check="divisionTreeCheck"
|
|
@check="divisionTreeCheck"
|
|
@load="treeLoadNode"
|
|
@load="treeLoadNode"
|
|
- @nodeTap="wbsElTreeClick"
|
|
|
|
|
|
+ @node-tap="wbsElTreeClick"
|
|
>
|
|
>
|
|
<template #default="{ node, data }">
|
|
<template #default="{ node, data }">
|
|
<span style="font-size: 16px;">{{ data.title }}</span>
|
|
<span style="font-size: 16px;">{{ data.title }}</span>
|
|
@@ -265,6 +265,7 @@ import { useRoute, useRouter } from 'vue-router'
|
|
import { getTokenHeader } from '~src/api/request/header'
|
|
import { getTokenHeader } from '~src/api/request/header'
|
|
import patrolApi from '~api/patrol/patrol'
|
|
import patrolApi from '~api/patrol/patrol'
|
|
import { getDictionary } from '~api/other'
|
|
import { getDictionary } from '~api/other'
|
|
|
|
+import { toPdfPage } from '~uti/btn-auth'
|
|
|
|
|
|
//初始变量
|
|
//初始变量
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
@@ -357,7 +358,7 @@ onActivated(()=>{
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
isShowUser.value = true
|
|
isShowUser.value = true
|
|
}, 10)
|
|
}, 10)
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
if (type.value === 'changeRow') {
|
|
if (type.value === 'changeRow') {
|
|
|
|
|
|
@@ -370,7 +371,7 @@ onActivated(()=>{
|
|
{ key: 'action', name: '操作', width:100 },
|
|
{ key: 'action', name: '操作', width:100 },
|
|
]
|
|
]
|
|
} else if (type.value === 'review' || type.value === 'view') {
|
|
} else if (type.value === 'review' || type.value === 'view') {
|
|
-
|
|
|
|
|
|
+
|
|
tableColumn.value = [
|
|
tableColumn.value = [
|
|
{ key: 'inspectProject', name: '检查项目' },
|
|
{ key: 'inspectProject', name: '检查项目' },
|
|
{ key: 'inspectContent', name: '检查内容' },
|
|
{ key: 'inspectContent', name: '检查内容' },
|
|
@@ -380,7 +381,7 @@ onActivated(()=>{
|
|
{ key: 'rectifyFeedback', name: '整改反馈' },
|
|
{ key: 'rectifyFeedback', name: '整改反馈' },
|
|
{ key: 'rectifyAttachment', name: '整改附件', width:150 },
|
|
{ key: 'rectifyAttachment', name: '整改附件', width:150 },
|
|
{ key: 'rectifyPdfUrl', name: '整改后图片', width:150 },
|
|
{ key: 'rectifyPdfUrl', name: '整改后图片', width:150 },
|
|
-
|
|
|
|
|
|
+
|
|
]
|
|
]
|
|
} else {
|
|
} else {
|
|
tableColumn.value = [
|
|
tableColumn.value = [
|
|
@@ -401,7 +402,7 @@ const getDetail = async (id)=>{
|
|
|
|
|
|
})
|
|
})
|
|
//判断状态
|
|
//判断状态
|
|
-
|
|
|
|
|
|
+
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
console.log(data, 'data')
|
|
console.log(data, 'data')
|
|
addForm.value = getObjValue(data)
|
|
addForm.value = getObjValue(data)
|
|
@@ -448,8 +449,8 @@ const clickRectifyPdfUrl = (row, index)=>{
|
|
const clickAttachment = (row, index)=>{
|
|
const clickAttachment = (row, index)=>{
|
|
UploadFileOptions.value = {
|
|
UploadFileOptions.value = {
|
|
url: '/api/blade-resource/oss/endpoint/put-file',
|
|
url: '/api/blade-resource/oss/endpoint/put-file',
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
headers: getTokenHeader(),
|
|
headers: getTokenHeader(),
|
|
multiple: false,
|
|
multiple: false,
|
|
}
|
|
}
|
|
@@ -462,7 +463,8 @@ const clickAttachment = (row, index)=>{
|
|
|
|
|
|
const openAttachment = (row)=>{
|
|
const openAttachment = (row)=>{
|
|
if (row?.rectifyAttachment) {
|
|
if (row?.rectifyAttachment) {
|
|
- window.open(row?.rectifyAttachment, '_blank')
|
|
|
|
|
|
+ toPdfPage(row?.rectifyAttachment)
|
|
|
|
+ //window.open(row?.rectifyAttachment, '_blank')
|
|
} else {
|
|
} else {
|
|
window.$message?.warning('获取PDF失败')
|
|
window.$message?.warning('获取PDF失败')
|
|
}
|
|
}
|
|
@@ -475,7 +477,7 @@ const HcUploadFileProgress = (res) => {
|
|
}
|
|
}
|
|
// 文件上传成功的回调
|
|
// 文件上传成功的回调
|
|
const HcUploadFileSuccess = ({ echoParams, resData }) => {
|
|
const HcUploadFileSuccess = ({ echoParams, resData }) => {
|
|
-
|
|
|
|
|
|
+
|
|
if (echoParams['type'] === 'image' && resData?.link) {
|
|
if (echoParams['type'] === 'image' && resData?.link) {
|
|
setUploadImage(echoParams, resData)
|
|
setUploadImage(echoParams, resData)
|
|
} else if (echoParams['type'] === 'attachment' && resData?.link) {
|
|
} else if (echoParams['type'] === 'attachment' && resData?.link) {
|
|
@@ -523,7 +525,7 @@ const linksRelateModalClick = ()=>{
|
|
linksRelateModal.value = true
|
|
linksRelateModal.value = true
|
|
isSearchTree.value = false
|
|
isSearchTree.value = false
|
|
newPushArr.value = []
|
|
newPushArr.value = []
|
|
-
|
|
|
|
|
|
+
|
|
defaultChecked.value = arrToKey(processDataList.value, 'primaryKeyId', ',').split(',')
|
|
defaultChecked.value = arrToKey(processDataList.value, 'primaryKeyId', ',').split(',')
|
|
}
|
|
}
|
|
const linksRelateModalClose = ()=>{
|
|
const linksRelateModalClose = ()=>{
|
|
@@ -548,7 +550,7 @@ const linksRelateModalSave = ()=>{
|
|
let pathArr = []
|
|
let pathArr = []
|
|
getKeys(node, pathArr)
|
|
getKeys(node, pathArr)
|
|
TreeAutoExpandKeys.value = pathArr
|
|
TreeAutoExpandKeys.value = pathArr
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
newPushArr.value.forEach((ele)=>{
|
|
newPushArr.value.forEach((ele)=>{
|
|
arr.push({
|
|
arr.push({
|
|
@@ -557,13 +559,13 @@ const linksRelateModalSave = ()=>{
|
|
autoExpandKeys:TreeAutoExpandKeys.value,
|
|
autoExpandKeys:TreeAutoExpandKeys.value,
|
|
isShowImage:0,
|
|
isShowImage:0,
|
|
contractId:ele.contractId,
|
|
contractId:ele.contractId,
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
})
|
|
})
|
|
processDataList.value = arr
|
|
processDataList.value = arr
|
|
addForm.value.list = arr
|
|
addForm.value.list = arr
|
|
linksRelateModal.value = false
|
|
linksRelateModal.value = false
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
const getKeys = (node, pathArr) => {
|
|
const getKeys = (node, pathArr) => {
|
|
if (node.parent) {
|
|
if (node.parent) {
|
|
@@ -689,7 +691,7 @@ const processElTree = ref(null)
|
|
const goList = ()=>{
|
|
const goList = ()=>{
|
|
router.push({
|
|
router.push({
|
|
path: '/patrol/safe',
|
|
path: '/patrol/safe',
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
}
|
|
}
|
|
const goBack = ()=>{
|
|
const goBack = ()=>{
|
|
@@ -712,7 +714,7 @@ const saveInfo = async ()=>{
|
|
saveLoading.value = false
|
|
saveLoading.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
window?.$message?.success('操作成功')
|
|
window?.$message?.success('操作成功')
|
|
-
|
|
|
|
|
|
+
|
|
goList()
|
|
goList()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -760,7 +762,7 @@ const changeRowInfo = async ()=>{
|
|
window?.$message?.success('操作成功')
|
|
window?.$message?.success('操作成功')
|
|
router.push({
|
|
router.push({
|
|
path: '/patrol/manage',
|
|
path: '/patrol/manage',
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -785,7 +787,7 @@ const reviewInspect = async (type)=>{
|
|
window?.$message?.success('操作成功')
|
|
window?.$message?.success('操作成功')
|
|
goList()
|
|
goList()
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -817,4 +819,4 @@ const reviewInspect = async (type)=>{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|