|
@@ -4,18 +4,20 @@
|
|
<el-form :inline="true" :model="searchInfo" class="demo-form-inline">
|
|
<el-form :inline="true" :model="searchInfo" class="demo-form-inline">
|
|
<el-form-item label="站点类型">
|
|
<el-form-item label="站点类型">
|
|
<el-select v-model="searchInfo.siteType" clearable placeholder="请选择">
|
|
<el-select v-model="searchInfo.siteType" clearable placeholder="请选择">
|
|
- <el-option v-for="item in this.siteType" :label="item.label" :value="item.value"/>
|
|
|
|
|
|
+ <el-option v-for="item in siteType" :label="item.label" :value="item.value"/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="处理状态">
|
|
<el-form-item label="处理状态">
|
|
<el-select v-model="searchInfo.status" clearable placeholder="请选择">
|
|
<el-select v-model="searchInfo.status" clearable placeholder="请选择">
|
|
- <el-option label="已处理" value="0"></el-option>
|
|
|
|
- <el-option label="未处理" value="1"></el-option>
|
|
|
|
|
|
+ <el-option label="已处理" value="Processed"/>
|
|
|
|
+ <el-option label="未处理" value="Untreated"/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button size="mini" type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
|
<el-button size="mini" type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button>
|
|
- <el-button class="excel-btn" size="small" type="primary" icon="el-icon-download" @click="handleExcelExport()">导出</el-button>
|
|
|
|
|
|
+ <el-button class="excel-btn" size="small" type="primary" icon="el-icon-download" @click="handleExcelExport()">
|
|
|
|
+ 导出
|
|
|
|
+ </el-button>
|
|
<el-popover v-model:visible="deleteVisible" placement="top" width="160">
|
|
<el-popover v-model:visible="deleteVisible" placement="top" width="160">
|
|
<p>确定要删除吗?</p>
|
|
<p>确定要删除吗?</p>
|
|
<div style="text-align: right; margin: 0">
|
|
<div style="text-align: right; margin: 0">
|
|
@@ -50,10 +52,15 @@
|
|
<el-table-column label="责任部门" prop="department" width="120"/>
|
|
<el-table-column label="责任部门" prop="department" width="120"/>
|
|
<el-table-column label="操作">
|
|
<el-table-column label="操作">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button size="small" type="primary" class="table-button"
|
|
|
|
- @click="updateProblemInfo(scope.row)">查看详情
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="primary"
|
|
|
|
+ class="table-button"
|
|
|
|
+ @click="updateProblemInfo(scope.row)"
|
|
|
|
+ >查看详情
|
|
</el-button>
|
|
</el-button>
|
|
<el-button type="danger" icon="el-icon-delete" size="mini" @click="deleteRow(scope.row)">删除</el-button>
|
|
<el-button type="danger" icon="el-icon-delete" size="mini" @click="deleteRow(scope.row)">删除</el-button>
|
|
|
|
+ <el-button type="small" icon="el-icon-download" size="mini" @click="handlePdf(scope.row)">导出为pdf</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -67,7 +74,7 @@
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
/>
|
|
/>
|
|
- <el-dialog v-model="dialogFormVisible" :before-close="closeDialog" title="问题详情">
|
|
|
|
|
|
+ <el-dialog ref="problemInfo" v-model="dialogFormVisible" id="problemInfo" :before-close="closeDialog" title="问题详情">
|
|
<el-form :model="formData" label-position="right" label-width="80px">
|
|
<el-form :model="formData" label-position="right" label-width="80px">
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
<el-descriptions title="基本信息" border :column="2">
|
|
<el-descriptions title="基本信息" border :column="2">
|
|
@@ -80,13 +87,13 @@
|
|
<el-tag v-show="formData.status == 'Processed'" type="success">已处理</el-tag>
|
|
<el-tag v-show="formData.status == 'Processed'" type="success">已处理</el-tag>
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
<el-descriptions-item label="责任部门">{{ formData.department }}</el-descriptions-item>
|
|
<el-descriptions-item label="责任部门">{{ formData.department }}</el-descriptions-item>
|
|
- <el-descriptions-item span="2" label="问题备注">{{ formData.remark }}</el-descriptions-item>
|
|
|
|
|
|
+ <el-descriptions-item span="2" label="问题备注">{{ formData.remark }}</el-descriptions-item>
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
</el-card>
|
|
</el-card>
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
<el-descriptions title="问题列表" :column="1" direction="vertical">
|
|
<el-descriptions title="问题列表" :column="1" direction="vertical">
|
|
<el-descriptions-item v-for="item in formData.matter.split('|')">
|
|
<el-descriptions-item v-for="item in formData.matter.split('|')">
|
|
- {{ this.matterList[item] != undefined ? this.matterList[item].label : '' }}
|
|
|
|
|
|
+ {{ matterList[item] != undefined ? matterList[item].label : '' }}
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
</el-card>
|
|
</el-card>
|
|
@@ -96,18 +103,25 @@
|
|
<el-image
|
|
<el-image
|
|
style="width: 260px; height: 240px"
|
|
style="width: 260px; height: 240px"
|
|
:src="(formData.imgList.length>0?formData.imgList[0]:'')"
|
|
:src="(formData.imgList.length>0?formData.imgList[0]:'')"
|
|
- :preview-src-list="formData.imgList">
|
|
|
|
- </el-image>
|
|
|
|
|
|
+ :preview-src-list="formData.imgList"
|
|
|
|
+ />
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
<el-descriptions-item label="问题视频">
|
|
<el-descriptions-item label="问题视频">
|
|
<span v-show="formData.video.length<1">无视频</span>
|
|
<span v-show="formData.video.length<1">无视频</span>
|
|
- <video style="object-fit:fill" controls width="400" height="240" v-show="formData.video.length>0" :src="formData.video">
|
|
|
|
|
|
+ <video
|
|
|
|
+ v-show="formData.video.length>0"
|
|
|
|
+ style="object-fit:fill"
|
|
|
|
+ controls
|
|
|
|
+ width="400"
|
|
|
|
+ height="240"
|
|
|
|
+ :src="formData.video"
|
|
|
|
+ >
|
|
您的浏览器不支持Video标签。
|
|
您的浏览器不支持Video标签。
|
|
</video>
|
|
</video>
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
</el-card>
|
|
</el-card>
|
|
- <el-card class="box-card" v-show="formData.status=='Processed'">
|
|
|
|
|
|
+ <el-card v-show="formData.status=='Processed'" class="box-card">
|
|
<el-descriptions title="处理结果" :column="1" border direction="vertical">
|
|
<el-descriptions title="处理结果" :column="1" border direction="vertical">
|
|
<el-descriptions-item label="处理人">{{ formData.handler }}</el-descriptions-item>
|
|
<el-descriptions-item label="处理人">{{ formData.handler }}</el-descriptions-item>
|
|
<el-descriptions-item label="处理内容">{{ formData.handText }}</el-descriptions-item>
|
|
<el-descriptions-item label="处理内容">{{ formData.handText }}</el-descriptions-item>
|
|
@@ -115,8 +129,8 @@
|
|
<el-image
|
|
<el-image
|
|
style="width: 260px; height: 240px"
|
|
style="width: 260px; height: 240px"
|
|
:src="(formData.handImgList.length>0?formData.handImgList[0]:'')"
|
|
:src="(formData.handImgList.length>0?formData.handImgList[0]:'')"
|
|
- :preview-src-list="formData.handImgList">
|
|
|
|
- </el-image>
|
|
|
|
|
|
+ :preview-src-list="formData.handImgList"
|
|
|
|
+ />
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
</el-card>
|
|
</el-card>
|
|
@@ -195,6 +209,11 @@ export default {
|
|
this.deleteProblemInfo(row)
|
|
this.deleteProblemInfo(row)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ async handlePdf(row) {
|
|
|
|
+ const href = window.location.origin
|
|
|
|
+ const params = `/#/proInfo?Id=${row.ID}`
|
|
|
|
+ window.open(href + params, '_blank','width=1200,height=1000,location=no,toolbar=no,status=no,scrollbars=yes,titlebar=no,')
|
|
|
|
+ },
|
|
async onDelete() {
|
|
async onDelete() {
|
|
const ids = []
|
|
const ids = []
|
|
if (this.multipleSelection.length === 0) {
|
|
if (this.multipleSelection.length === 0) {
|
|
@@ -236,7 +255,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.formData.handImgList = []
|
|
this.formData.handImgList = []
|
|
}
|
|
}
|
|
- this.matterList = await getDict('site_' + this.formData.siteId)
|
|
|
|
|
|
+ this.matterList = res.data.reproblemInfo.matterList.sysDictionaryDetails
|
|
this.dialogFormVisible = true
|
|
this.dialogFormVisible = true
|
|
}
|
|
}
|
|
},
|
|
},
|