|
@ -113,26 +113,28 @@ |
|
|
<el-upload |
|
|
<el-upload |
|
|
class="" |
|
|
class="" |
|
|
action="#" |
|
|
action="#" |
|
|
|
|
|
ref="upload" |
|
|
style="margin-bottom: 16px" |
|
|
style="margin-bottom: 16px" |
|
|
:http-request="handleUploadProject1" |
|
|
:http-request="handleUploadProject1" |
|
|
:before-upload="beforeUploadProject1" |
|
|
:before-upload="beforeUploadProject1" |
|
|
:show-file-list="false" |
|
|
:show-file-list="false" |
|
|
accept=".png,.jpg,.tif,.gif" |
|
|
accept=".png,.jpg,.tif,.gif" |
|
|
> |
|
|
> |
|
|
<div style="display: flex"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
:disabled="$route.query.mode === 'check'" |
|
|
|
|
|
style="margin-right: 16px" |
|
|
|
|
|
size="small" |
|
|
|
|
|
type="primary" |
|
|
|
|
|
v-hasPermi="['df:run:patrol:maintenance:detail:attachment']" |
|
|
|
|
|
>上传</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<div slot="tip" style="margin-top: 0" class="el-upload__tip"> |
|
|
|
|
|
文件上传支持.jpg.png.tif.gif 单张图片5M以内,最多上传3张 |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-upload> |
|
|
</el-upload> |
|
|
|
|
|
<div style="display: flex"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
:disabled="$route.query.mode === 'check'" |
|
|
|
|
|
style="margin-right: 16px" |
|
|
|
|
|
@click="handleUpload('upload')" |
|
|
|
|
|
size="small" |
|
|
|
|
|
type="primary" |
|
|
|
|
|
v-hasPermi="['df:run:patrol:maintenance:detail:attachment']" |
|
|
|
|
|
>上传</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<div slot="tip" style="margin-top: 0" class="el-upload__tip"> |
|
|
|
|
|
文件上传支持.jpg.png.tif.gif 单张图片5M以内,最多上传3张 |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
<el-image |
|
|
<el-image |
|
|
v-for="item in form.images" |
|
|
v-for="item in form.images" |
|
|
style="width: 240px; height: 135px; margin-right: 16px" |
|
|
style="width: 240px; height: 135px; margin-right: 16px" |
|
@ -158,6 +160,7 @@ |
|
|
<el-upload |
|
|
<el-upload |
|
|
class="" |
|
|
class="" |
|
|
action="#" |
|
|
action="#" |
|
|
|
|
|
:ref="`upload${scope.$index}`" |
|
|
:http-request=" |
|
|
:http-request=" |
|
|
(e) => { |
|
|
(e) => { |
|
|
handleUploadProject(e, scope.row); |
|
|
handleUploadProject(e, scope.row); |
|
@ -171,15 +174,16 @@ |
|
|
:show-file-list="false" |
|
|
:show-file-list="false" |
|
|
accept=".png,.jpg,.jpeg" |
|
|
accept=".png,.jpg,.jpeg" |
|
|
> |
|
|
> |
|
|
<el-button |
|
|
|
|
|
:disabled="$route.query.mode === 'check'" |
|
|
|
|
|
size="small" |
|
|
|
|
|
style="margin-right: 10px" |
|
|
|
|
|
type="text" |
|
|
|
|
|
v-hasPermi="['df:run:patrol:maintenance:detail:item:upload']" |
|
|
|
|
|
>上传</el-button |
|
|
|
|
|
> |
|
|
|
|
|
</el-upload> |
|
|
</el-upload> |
|
|
|
|
|
<el-button |
|
|
|
|
|
:disabled="$route.query.mode === 'check'" |
|
|
|
|
|
size="small" |
|
|
|
|
|
style="margin-right: 10px" |
|
|
|
|
|
@click="handleUpload(`upload${scope.$index}`)" |
|
|
|
|
|
type="text" |
|
|
|
|
|
v-hasPermi="['df:run:patrol:maintenance:detail:item:upload']" |
|
|
|
|
|
>上传</el-button |
|
|
|
|
|
> |
|
|
<el-popconfirm |
|
|
<el-popconfirm |
|
|
confirm-button-text="确定" |
|
|
confirm-button-text="确定" |
|
|
cancel-button-text="取消" |
|
|
cancel-button-text="取消" |
|
@ -436,6 +440,19 @@ export default { |
|
|
this.acceptanceForm.comment = ApprovalComment.data[0].comment; |
|
|
this.acceptanceForm.comment = ApprovalComment.data[0].comment; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
handleUpload(res) { |
|
|
|
|
|
this.$confirm( |
|
|
|
|
|
`本系统为非涉密信息系统,严禁处理、传输国家秘密、工作秘密。`, |
|
|
|
|
|
`提示`, |
|
|
|
|
|
{ |
|
|
|
|
|
confirmButtonText: "我已知晓", |
|
|
|
|
|
cancelButtonText: "取消上传", |
|
|
|
|
|
type: "warning", |
|
|
|
|
|
} |
|
|
|
|
|
).then(() => { |
|
|
|
|
|
this.$refs[res].$refs['upload-inner'].handleClick() |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
getDictLabelName(type, dictListName) { |
|
|
getDictLabelName(type, dictListName) { |
|
|
if (!this[dictListName]) return ""; |
|
|
if (!this[dictListName]) return ""; |
|
|
return ( |
|
|
return ( |
|
|