|
@ -200,8 +200,19 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 选中某个项目 |
|
|
// 选中某个项目 |
|
|
handleClickItem(item) { |
|
|
handleClickItem(item, ref) { |
|
|
|
|
|
this.$confirm( |
|
|
|
|
|
`本系统为非涉密信息系统,严禁处理、传输国家秘密、工作秘密。`, |
|
|
|
|
|
`提示`, |
|
|
|
|
|
{ |
|
|
|
|
|
confirmButtonText: "我已知晓", |
|
|
|
|
|
cancelButtonText: "取消上传", |
|
|
|
|
|
type: "warning", |
|
|
|
|
|
} |
|
|
|
|
|
).then(() => { |
|
|
this.currentItem = item; |
|
|
this.currentItem = item; |
|
|
|
|
|
this.$refs[ref][0].$refs['upload-inner'].handleClick() |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 上传前 |
|
|
// 上传前 |
|
|
beforeUpload(e) { |
|
|
beforeUpload(e) { |
|
@ -351,7 +362,7 @@ export default { |
|
|
<template v-if="problemList.length"> |
|
|
<template v-if="problemList.length"> |
|
|
<el-tabs v-model="activeName" type="card"> |
|
|
<el-tabs v-model="activeName" type="card"> |
|
|
<el-tab-pane |
|
|
<el-tab-pane |
|
|
v-for="item in problemList" |
|
|
v-for="(item, index) in problemList" |
|
|
:key="item.id" |
|
|
:key="item.id" |
|
|
:label="item.projectName" |
|
|
:label="item.projectName" |
|
|
:name="item.projectId" |
|
|
:name="item.projectId" |
|
@ -359,7 +370,7 @@ export default { |
|
|
> |
|
|
> |
|
|
<div |
|
|
<div |
|
|
class="question-row w-full" |
|
|
class="question-row w-full" |
|
|
v-for="item2 in item.children" |
|
|
v-for="(item2, index2) in item.children" |
|
|
:key="item2.id" |
|
|
:key="item2.id" |
|
|
> |
|
|
> |
|
|
<div class="flex"> |
|
|
<div class="flex"> |
|
@ -457,6 +468,7 @@ export default { |
|
|
<el-upload |
|
|
<el-upload |
|
|
action="#" |
|
|
action="#" |
|
|
:disabled="isDisabled" |
|
|
:disabled="isDisabled" |
|
|
|
|
|
:ref="`upload${index}${index}`" |
|
|
:http-request="handleUpload" |
|
|
:http-request="handleUpload" |
|
|
:auto-upload="true" |
|
|
:auto-upload="true" |
|
|
:before-upload="beforeUpload" |
|
|
:before-upload="beforeUpload" |
|
@ -464,13 +476,13 @@ export default { |
|
|
accept=".jpg,.png,.jpeg" |
|
|
accept=".jpg,.png,.jpeg" |
|
|
:limit="99" |
|
|
:limit="99" |
|
|
> |
|
|
> |
|
|
|
|
|
</el-upload> |
|
|
<el-button |
|
|
<el-button |
|
|
type="primary" |
|
|
type="primary" |
|
|
@click="handleClickItem(item2)" |
|
|
@click="handleClickItem(item2, `upload${index}${index}`)" |
|
|
:disabled="isDisabled" |
|
|
:disabled="isDisabled" |
|
|
>上传</el-button |
|
|
>上传</el-button |
|
|
> |
|
|
> |
|
|
</el-upload> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|