diff --git a/src/views/chart/pages/Predict.vue b/src/views/chart/pages/Predict.vue
index 1585c48..0cb30b5 100644
--- a/src/views/chart/pages/Predict.vue
+++ b/src/views/chart/pages/Predict.vue
@@ -12,55 +12,39 @@
-->
-
-
+
+
-
-
+
+
-
-
+
+
-
- Upload
+
+ Upload
- Download
+ Download
@@ -118,7 +102,7 @@ export default {
outPath: ''
}
},
- created () {
+ created() {
// color: ['#0A4072', '#683F14', '#0F605A', '#0F5A7A', '#5C5F25']
// this.onSearch()
this.getDataset()
@@ -127,7 +111,7 @@ export default {
this.chart()
},
methods: {
- onSearch () {
+ onSearch() {
this.loading = true
const formData = new FormData()
formData.append("file", this.currentFile)
@@ -165,7 +149,7 @@ export default {
},
caseChange(id) {
const arr = this.caseOptions.filter(item => item.case_no === id)
- if(arr.length) {
+ if (arr.length) {
this.outPath = arr[0].out_path
}
},
@@ -173,6 +157,8 @@ export default {
handleChange(file, fileList) {
if (file) {
this.currentFile = file.raw || file
+ this.onSearch()
+
} else {
this.currentFile = null
}
@@ -183,10 +169,10 @@ export default {
onDownload() {
const arr = this.queryParams.model_types.split(',')
arr.forEach(item => {
- const url = this.outPath + '\\' + this.queryParams.case_no + '_' + item + '_ROC.json'
+ const url = this.outPath + '\\' + this.queryParams.case_no + '_' + item + '_ROC.json'
const path = url.replace(/\\/g, '/')
// this.$axios.get(window.CONFIG.baseUrl + '/download', { params: { path: path }})
- this.downloadFile(path, this.queryParams.case_no + '_' + item + '_ROC.json')
+ this.downloadFile(path, this.queryParams.case_no + '_' + item + '_ROC.json')
})
},
chart() {
@@ -284,6 +270,7 @@ export default {
color: #fff;
display: flex;
flex-direction: column;
+
.section-head {
height: 32px;
padding: 0 13px;
@@ -293,18 +280,22 @@ export default {
font-size: 20px;
font-weight: bold;
}
+
.list-box {
flex: 1;
display: flex;
flex-direction: column;
+
.filter-wrap {
height: 50px;
margin-top: 16px;
+
::v-deep .el-form-item__label {
font-size: 16px;
color: #a7bacf;
}
}
+
.chart-wrap {
flex: 1;
}