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

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

parent b922e068
......@@ -101,6 +101,7 @@ export default {
}
})
this.model.value = old
this.input()
},
removeItem(array, item) {
let arr = []
......
......@@ -152,6 +152,8 @@ export default {
}
})
this.model.value = old
this.input()
},
removeItem(array, item) {
let arr = []
......
<template>
<div>
<div v-if="prop =='chcek9'" style="display: inline flex;">
<span>关键配置参数:</span>
<el-checkbox-group v-model="value" :disabled="status" @change="input">
<el-checkbox
v-for="(i, k) in items.options"
v-if="k<4"
:label="i.id"
@change="
e => {
checkOne(i, e)
}
"
:key="k"
>
{{ i.object }}
</el-checkbox>
</el-checkbox-group>
<span></span>
</div>
<div v-if="prop =='chcek9'" style="display: inline flex;">
<div v-if="prop == 'chcek9'" style="display: inline flex">
<span>关键配置参数:</span>
<el-checkbox-group v-model="value" :disabled="status" @change="input">
<el-checkbox
v-for="(i, k) in items.options"
v-if="k < 4"
:label="i.id"
@change="
e => {
checkOne(i, e)
}
"
:key="k"
>
{{ i.object }}
</el-checkbox>
</el-checkbox-group>
<span></span>
</div>
<div v-if="prop == 'chcek9'" style="display: inline flex">
<span>标定参数:</span>
<el-checkbox-group v-model="value" :disabled="status" @change="input">
<el-checkbox
v-for="(i, k) in items.options"
v-if="k>=4"
:label="i.id"
@change="
e => {
checkOne(i, e)
}
"
:key="k"
<el-checkbox-group v-model="value" :disabled="status" @change="input">
<el-checkbox
v-for="(i, k) in items.options"
v-if="k >= 4"
:label="i.id"
@change="
e => {
checkOne(i, e)
}
"
:key="k"
>
{{ i.object }}
</el-checkbox>
</el-checkbox-group>
</div>
<el-checkbox-group
v-if="prop != 'chcek9'"
v-model="value"
:disabled="status"
@change="input"
>
{{ i.object }}
</el-checkbox>
</el-checkbox-group>
</div>
<el-checkbox-group v-if="prop!='chcek9'" v-model="value" :disabled="status" @change="input">
<el-checkbox
v-for="(i, k) in items.options"
:label="i.id"
@change="
e => {
checkOne(i, e)
}
"
:key="k"
>
{{ i.object }}
</el-checkbox>
</el-checkbox-group>
</div>
<el-checkbox
v-for="(i, k) in items.options"
:label="i.id"
@change="
e => {
checkOne(i, e)
}
"
:key="k"
>
{{ i.object }}
</el-checkbox>
</el-checkbox-group>
</div>
</template>
<script>
export default {
......@@ -125,6 +129,7 @@ export default {
})
this.value = old
this.input()
},
removeItem(array, item) {
......@@ -145,9 +150,8 @@ export default {
})
}
},
input(val) {
input() {
let arr = []
let datas = []
this.items.options.map(i => {
if (this.value.includes(i.id)) {
arr.push(i.useCaseNo)
......
......@@ -25,7 +25,7 @@
:limit="1"
ref="fileUpload"
:on-success="handleSuccess"
accept=".pdf"
accept=".pdf ,.doc ,.docx ,.xls, .xlsx"
:on-exceed="handleExceed"
:headers="headers"
>
......@@ -114,6 +114,7 @@ export default {
}
})
this.model.value = old
this.input()
},
removeItem(array, item) {
......
......@@ -19,7 +19,7 @@
:before-remove="beforeRemove"
:show-file-list="false"
:limit="1"
accept=".pdf"
accept=".pdf ,.doc ,.docx ,.xls, .xlsx"
:on-success="handleSuccess"
:on-exceed="handleExceed"
:headers="headers"
......
......@@ -15,7 +15,7 @@
:before-remove="beforeRemove"
:show-file-list="false"
:limit="1"
accept=".pdf"
accept=".pdf ,.doc ,.docx ,.xls, .xlsx"
:on-success="handleSuccess"
:on-exceed="handleExceed"
: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