提交
This commit is contained in:
parent
9067f6b353
commit
23f8c938f2
|
|
@ -12,55 +12,39 @@
|
||||||
</el-form-item>-->
|
</el-form-item>-->
|
||||||
|
|
||||||
<el-form-item label="Dataset">
|
<el-form-item label="Dataset">
|
||||||
<el-select v-model="datasetId" placeholder="请选择" class="dark-select" popper-class="dark-select-popper" style="width: 120px" @change="getCaseData">
|
<el-select v-model="datasetId" placeholder="请选择" class="dark-select" popper-class="dark-select-popper"
|
||||||
<el-option
|
style="width: 120px" @change="getCaseData">
|
||||||
v-for="item in datasetIdOptions"
|
<el-option v-for="item in datasetIdOptions" :key="item.id" :label="item.id" :value="item.id">
|
||||||
:key="item.id"
|
|
||||||
:label="item.id"
|
|
||||||
:value="item.id"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="Case">
|
<el-form-item label="Case">
|
||||||
<el-select v-model="queryParams.case_no" :disabled="!datasetId" placeholder="请选择" class="dark-select" popper-class="dark-select-popper" style="width: 180px" @change="caseChange">
|
<el-select v-model="queryParams.case_no" :disabled="!datasetId" placeholder="请选择" class="dark-select"
|
||||||
<el-option
|
popper-class="dark-select-popper" style="width: 180px" @change="caseChange">
|
||||||
v-for="item in caseOptions"
|
<el-option v-for="item in caseOptions" :key="item.case_no" :label="item.case_no" :value="item.case_no">
|
||||||
:key="item.case_no"
|
|
||||||
:label="item.case_no"
|
|
||||||
:value="item.case_no"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Classify">
|
<el-form-item label="Classify">
|
||||||
<el-select v-model="modelTypes" multiple placeholder="请选择" class="dark-select" popper-class="dark-select-popper" style="width: 400px" @change="modelTypeChange">
|
<el-select v-model="modelTypes" multiple placeholder="请选择" class="dark-select"
|
||||||
<el-option
|
popper-class="dark-select-popper" style="width: 400px" @change="modelTypeChange">
|
||||||
v-for="item in selectOptions"
|
<el-option v-for="item in selectOptions" :key="item.value" :label="item.label" :value="item.value">
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
>
|
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="">
|
<el-form-item label="">
|
||||||
<el-upload
|
<el-upload ref="upload" v-model:file-list="fileList" class="upload-demo" :auto-upload="false" :limit="1"
|
||||||
ref="upload"
|
:multiple="false" :show-file-list="false" :on-change="handleChange"
|
||||||
v-model:file-list="fileList"
|
|
||||||
class="upload-demo"
|
|
||||||
:auto-upload="false"
|
|
||||||
:limit="1"
|
|
||||||
:multiple="false"
|
|
||||||
:show-file-list="false"
|
|
||||||
:on-change="handleChange"
|
|
||||||
style="height: 32px; margin-left: 12px;">
|
style="height: 32px; margin-left: 12px;">
|
||||||
<el-button type="primary" icon="upload" style="background-color: #7393b7; border-color: #7393b7; border-radius: 0;">Upload</el-button>
|
<el-button type="primary" icon="upload"
|
||||||
|
style="background-color: #7393b7; border-color: #7393b7; border-radius: 0;">Upload</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
<!-- <el-button type="primary" icon="search" style="background-color: #7393b7; border-color: #7393b7; border-radius: 0; margin-left: 12px;" @click="onSearch">Select</el-button> -->
|
<!-- <el-button type="primary" icon="search" style="background-color: #7393b7; border-color: #7393b7; border-radius: 0; margin-left: 12px;" @click="onSearch">Select</el-button> -->
|
||||||
<el-button type="primary" icon="document" style="background-color: #7393b7; border-color: #7393b7; border-radius: 0; margin-left: 12px;" @click="onDownload">Download</el-button>
|
<el-button type="primary" icon="document"
|
||||||
|
style="background-color: #7393b7; border-color: #7393b7; border-radius: 0; margin-left: 12px;"
|
||||||
|
@click="onDownload">Download</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -118,7 +102,7 @@ export default {
|
||||||
outPath: ''
|
outPath: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created() {
|
||||||
// color: ['#0A4072', '#683F14', '#0F605A', '#0F5A7A', '#5C5F25']
|
// color: ['#0A4072', '#683F14', '#0F605A', '#0F5A7A', '#5C5F25']
|
||||||
// this.onSearch()
|
// this.onSearch()
|
||||||
this.getDataset()
|
this.getDataset()
|
||||||
|
|
@ -127,7 +111,7 @@ export default {
|
||||||
this.chart()
|
this.chart()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onSearch () {
|
onSearch() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
formData.append("file", this.currentFile)
|
formData.append("file", this.currentFile)
|
||||||
|
|
@ -165,7 +149,7 @@ export default {
|
||||||
},
|
},
|
||||||
caseChange(id) {
|
caseChange(id) {
|
||||||
const arr = this.caseOptions.filter(item => item.case_no === id)
|
const arr = this.caseOptions.filter(item => item.case_no === id)
|
||||||
if(arr.length) {
|
if (arr.length) {
|
||||||
this.outPath = arr[0].out_path
|
this.outPath = arr[0].out_path
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -173,6 +157,8 @@ export default {
|
||||||
handleChange(file, fileList) {
|
handleChange(file, fileList) {
|
||||||
if (file) {
|
if (file) {
|
||||||
this.currentFile = file.raw || file
|
this.currentFile = file.raw || file
|
||||||
|
this.onSearch()
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.currentFile = null
|
this.currentFile = null
|
||||||
}
|
}
|
||||||
|
|
@ -284,6 +270,7 @@ export default {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.section-head {
|
.section-head {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
padding: 0 13px;
|
padding: 0 13px;
|
||||||
|
|
@ -293,18 +280,22 @@ export default {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-box {
|
.list-box {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.filter-wrap {
|
.filter-wrap {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
|
|
||||||
::v-deep .el-form-item__label {
|
::v-deep .el-form-item__label {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: #a7bacf;
|
color: #a7bacf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.chart-wrap {
|
.chart-wrap {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user