Commit c6bb5d3a authored by jiaxu.yan's avatar jiaxu.yan

feat: 新增关联问题内容点击,上传文件类型限制

parent b922e068
...@@ -101,6 +101,7 @@ export default { ...@@ -101,6 +101,7 @@ export default {
} }
}) })
this.model.value = old this.model.value = old
this.input()
}, },
removeItem(array, item) { removeItem(array, item) {
let arr = [] let arr = []
......
...@@ -152,6 +152,8 @@ export default { ...@@ -152,6 +152,8 @@ export default {
} }
}) })
this.model.value = old this.model.value = old
this.input()
}, },
removeItem(array, item) { removeItem(array, item) {
let arr = [] let arr = []
......
<template> <template>
<div> <div>
<div v-if="prop =='chcek9'" style="display: inline flex;"> <div v-if="prop == 'chcek9'" style="display: inline flex">
<span>关键配置参数:</span> <span>关键配置参数:</span>
<el-checkbox-group v-model="value" :disabled="status" @change="input"> <el-checkbox-group v-model="value" :disabled="status" @change="input">
<el-checkbox <el-checkbox
v-for="(i, k) in items.options" v-for="(i, k) in items.options"
v-if="k<4" v-if="k < 4"
:label="i.id" :label="i.id"
@change=" @change="
e => { e => {
...@@ -20,13 +20,12 @@ ...@@ -20,13 +20,12 @@
<span></span> <span></span>
</div> </div>
<div v-if="prop == 'chcek9'" style="display: inline flex">
<div v-if="prop =='chcek9'" style="display: inline flex;">
<span>标定参数:</span> <span>标定参数:</span>
<el-checkbox-group v-model="value" :disabled="status" @change="input"> <el-checkbox-group v-model="value" :disabled="status" @change="input">
<el-checkbox <el-checkbox
v-for="(i, k) in items.options" v-for="(i, k) in items.options"
v-if="k>=4" v-if="k >= 4"
:label="i.id" :label="i.id"
@change=" @change="
e => { e => {
...@@ -38,8 +37,13 @@ ...@@ -38,8 +37,13 @@
{{ i.object }} {{ i.object }}
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
<el-checkbox-group v-if="prop!='chcek9'" v-model="value" :disabled="status" @change="input"> <el-checkbox-group
v-if="prop != 'chcek9'"
v-model="value"
:disabled="status"
@change="input"
>
<el-checkbox <el-checkbox
v-for="(i, k) in items.options" v-for="(i, k) in items.options"
:label="i.id" :label="i.id"
...@@ -53,7 +57,7 @@ ...@@ -53,7 +57,7 @@
{{ i.object }} {{ i.object }}
</el-checkbox> </el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
...@@ -125,6 +129,7 @@ export default { ...@@ -125,6 +129,7 @@ export default {
}) })
this.value = old this.value = old
this.input()
}, },
removeItem(array, item) { removeItem(array, item) {
...@@ -145,9 +150,8 @@ export default { ...@@ -145,9 +150,8 @@ export default {
}) })
} }
}, },
input(val) { input() {
let arr = [] let arr = []
let datas = []
this.items.options.map(i => { this.items.options.map(i => {
if (this.value.includes(i.id)) { if (this.value.includes(i.id)) {
arr.push(i.useCaseNo) arr.push(i.useCaseNo)
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
:limit="1" :limit="1"
ref="fileUpload" ref="fileUpload"
:on-success="handleSuccess" :on-success="handleSuccess"
accept=".pdf" accept=".pdf ,.doc ,.docx ,.xls, .xlsx"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:headers="headers" :headers="headers"
> >
...@@ -114,6 +114,7 @@ export default { ...@@ -114,6 +114,7 @@ export default {
} }
}) })
this.model.value = old this.model.value = old
this.input()
}, },
removeItem(array, item) { removeItem(array, item) {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
:before-remove="beforeRemove" :before-remove="beforeRemove"
:show-file-list="false" :show-file-list="false"
:limit="1" :limit="1"
accept=".pdf" accept=".pdf ,.doc ,.docx ,.xls, .xlsx"
:on-success="handleSuccess" :on-success="handleSuccess"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:headers="headers" :headers="headers"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
:before-remove="beforeRemove" :before-remove="beforeRemove"
:show-file-list="false" :show-file-list="false"
:limit="1" :limit="1"
accept=".pdf" accept=".pdf ,.doc ,.docx ,.xls, .xlsx"
:on-success="handleSuccess" :on-success="handleSuccess"
:on-exceed="handleExceed" :on-exceed="handleExceed"
:headers="headers" :headers="headers"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment