|
|
|
@ -184,7 +184,7 @@ |
|
|
|
width="340" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a type="text" size="small" v-if="searchData.userId==='admin'||searchData.userId==='E0002'" @click="updateModel(scope.row)">修改</a> |
|
|
|
<a type="text" size="small" v-if="(searchData.userId==='admin'||searchData.userId==='E0002')&&scope.row.status!='已完结'" @click="updateModel(scope.row)">修改</a> |
|
|
|
<a type="text" size="small" @click="getFileModel(scope.row)">整改文件</a> |
|
|
|
<a type="text" size="small" @click="getDetailModel(scope.row)">查看</a> |
|
|
|
<a type="text" size="small" @click="doPrint(scope.row)">打印</a> |
|
|
|
@ -431,7 +431,7 @@ |
|
|
|
</el-dialog> |
|
|
|
<el-dialog title="整改文件" :close-on-click-modal="false" v-drag :visible.sync="fileModalFlag" width="650px" > |
|
|
|
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|
|
|
<el-form :inline="true" label-position="top" style="margin-top: 0px"> |
|
|
|
<el-form :inline="true" label-position="top" style="margin-top: 0px" v-if="fileSearchData.status!=='已完结'"> |
|
|
|
<el-button type="primary" @click="addUploadFileModal">上传文件</el-button> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
@ -466,7 +466,7 @@ |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- <a :href="'http://192.168.1.130:80/file/'+scope.row.url" :download="scope.row.fileName">下载</a>--> |
|
|
|
<a @click="downloadFile(scope.row)" >下载</a> |
|
|
|
<a type="text" size="small" @click="deleteHandle(scope.row.id)">删除</a> |
|
|
|
<a type="text" size="small" v-if="fileSearchData.status!=='已完结'" @click="deleteHandle(scope.row.id)">删除</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -600,7 +600,8 @@ |
|
|
|
fileSearchData:{ |
|
|
|
fileTypeCode:'Abnormal', |
|
|
|
orderRef1:'', |
|
|
|
orderRef2:'' |
|
|
|
orderRef2:'', |
|
|
|
status:'', |
|
|
|
}, |
|
|
|
tableData:[], |
|
|
|
addData:{ |
|
|
|
@ -1043,6 +1044,7 @@ |
|
|
|
fileTypeCode:'Abnormal', |
|
|
|
orderRef1:row.site, |
|
|
|
orderRef2:row.id, |
|
|
|
status:row.status, |
|
|
|
} |
|
|
|
this.getFileList() |
|
|
|
this.fileModalFlag=true; |
|
|
|
|