Browse Source

04-MHM文件删除按钮显示

master
shenzhouyu 6 days ago
parent
commit
e7cf211a15
  1. 4
      src/views/modules/qc/FAIResultEntry.vue
  2. 2
      src/views/modules/qc/FQCResultEntry.vue
  3. 2
      src/views/modules/qc/IPQCResultEntry.vue
  4. 4
      src/views/modules/qc/IQCFileTable.vue
  5. 4
      src/views/modules/qc/IQCResultEntry.vue
  6. 4
      src/views/modules/qc/PQCResultEntry.vue

4
src/views/modules/qc/FAIResultEntry.vue

@ -724,7 +724,7 @@
</el-form-item>
</el-form>
<iqc-file-table :columns="fileColumnList" :data-list="fileContentList"
:query-loading="fileLoading"></iqc-file-table>
:query-loading="fileLoading" @file-deleted="() => getFileContentData(fileRow)"></iqc-file-table>
<el-footer style="height:35px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="fileFlag = false">关闭</el-button>
</el-footer>
@ -943,6 +943,7 @@ export default {
inspectionNo: '',
fileFlag: false,
fileContentList: [],
fileRow: {},
//
favorite: false,
// start
@ -3334,6 +3335,7 @@ export default {
//
getFileContentData(row) {
this.fileRow = row
let currentData = {
orderRef1: row.site,
orderRef2: row.inspectionNo,

2
src/views/modules/qc/FQCResultEntry.vue

@ -660,7 +660,7 @@
</el-form-item>
</el-form>
<iqc-file-table :columns="fileColumnList" :data-list="fileContentList"
:query-loading="fileLoading" @file-previewed="onWorkFilePreviewed"></iqc-file-table>
:query-loading="fileLoading" @file-previewed="onWorkFilePreviewed" @file-deleted="() => getFileContentData(currentWorkFileRow)"></iqc-file-table>
<el-footer style="height:35px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="fileFlag = false">关闭</el-button>
</el-footer>

2
src/views/modules/qc/IPQCResultEntry.vue

@ -784,7 +784,7 @@
<el-button type="primary" @click="addUploadFileModal">上传文件</el-button>
</el-form-item>
</el-form>
<iqc-file-table :columns="fileColumnList" :data-list="fileContentList" :query-loading="fileLoading" @file-previewed="onWorkFilePreviewed"></iqc-file-table>
<iqc-file-table :columns="fileColumnList" :data-list="fileContentList" :query-loading="fileLoading" @file-previewed="onWorkFilePreviewed" @file-deleted="() => getFileContentData(currentWorkFileRow)"></iqc-file-table>
<el-footer style="height:35px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="fileFlag = false">关闭</el-button>
</el-footer>

4
src/views/modules/qc/IQCFileTable.vue

@ -162,7 +162,7 @@ export default {
}).then(() => {
deleteObjectFile(row).then(({data}) => {
if (data && data.code == 0) {
this.getFileContentData(tempData)
this.$emit('file-deleted', tempData)
this.$message({
message: '操作成功',
type: 'success',
@ -215,7 +215,7 @@ export default {
<template slot-scope="scope">
<el-link v-if="scope.row.orderReftype !== 'mes'" style="cursor: pointer" @click="previewFile(scope.row)">预览</el-link>
<el-link v-if="scope.row.orderReftype !== 'mes'" style="cursor: pointer" @click="downloadFile(scope.row)">下载</el-link>
<!-- <el-link v-if="scope.row.orderReftype !== 'mes'" style="cursor: pointer" @click="deleteFile(scope.row)">删除</el-link> -->
<el-link v-if="scope.row.orderReftype !== 'mes' && scope.row.orderRef4 === '04-MHM'" style="cursor: pointer" @click="deleteFile(scope.row)">删除</el-link>
<el-link v-if="scope.row.orderReftype === 'mes'" style="cursor: pointer" @click="previewFileMes(scope.row)">预览</el-link>
<el-link v-if="scope.row.orderReftype === 'mes'" style="cursor: pointer" @click="downloadFileMes(scope.row)">下载</el-link>
</template>

4
src/views/modules/qc/IQCResultEntry.vue

@ -549,7 +549,7 @@
<el-button type="primary" @click="addUploadFileModal">上传文件</el-button>
</el-form-item>
</el-form>
<iqc-file-table :columns="fileColumnList" :data-list="fileContentList" :query-loading="fileLoading"></iqc-file-table>
<iqc-file-table :columns="fileColumnList" :data-list="fileContentList" :query-loading="fileLoading" @file-deleted="() => getFileContentData(fileRow)"></iqc-file-table>
<el-footer style="height:35px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="fileFlag = false">关闭</el-button>
</el-footer>
@ -1893,6 +1893,7 @@
options: [],
fileFlag: false,
fileContentList: [],
fileRow: {},
IQCSelections: [],
batchHandleAddModalFlag: false,
batchAddData: {
@ -2454,6 +2455,7 @@
//
getFileContentData (row) {
this.fileRow = row
let currentData = {
orderRef1: row.site,
orderRef2: row.inspectionNo,

4
src/views/modules/qc/PQCResultEntry.vue

@ -824,7 +824,7 @@
<el-button type="primary" @click="addUploadFileModal">上传文件</el-button>
</el-form-item>
</el-form>
<iqc-file-table :columns="fileColumnList" :data-list="fileContentList" :query-loading="fileLoading"></iqc-file-table>
<iqc-file-table :columns="fileColumnList" :data-list="fileContentList" :query-loading="fileLoading" @file-deleted="() => getFileContentData(fileRow)"></iqc-file-table>
<el-footer style="height:35px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="fileFlag = false">关闭</el-button>
</el-footer>
@ -1164,6 +1164,7 @@ export default {
inspectionNo: '',
fileFlag: false,
fileContentList: [],
fileRow: {},
eamObjectList:[],
queryResourceData:[],
partList2:[],
@ -3798,6 +3799,7 @@ export default {
//
getFileContentData (row) {
this.fileRow = row
let currentData = {
orderRef1: row.site,
orderRef2: row.inspectionNo,

Loading…
Cancel
Save