1. File list 改为单机行就可以勾选
. 处理File List 显示20条数据的时候样式错乱的问题 From File 双击Sample 之后,过滤"_S_" 能谱
This commit is contained in:
parent
1c27c14564
commit
229349d4f9
|
@ -54,12 +54,15 @@
|
||||||
<a-modal v-model="visible_file" :width="1200" title="File List" @cancel="cancelFileModale">
|
<a-modal v-model="visible_file" :width="1200" title="File List" @cancel="cancelFileModale">
|
||||||
<a-spin :spinning="loading_file">
|
<a-spin :spinning="loading_file">
|
||||||
<div style="position: relative;padding-bottom: 40px;height: 460px;overflow: hidden;">
|
<div style="position: relative;padding-bottom: 40px;height: 460px;overflow: hidden;">
|
||||||
|
// 增加搜索
|
||||||
<a-table
|
<a-table
|
||||||
v-if="tableType=='multiple'"
|
v-if="tableType=='multiple'"
|
||||||
:data-source="list_file"
|
:data-source="list_file"
|
||||||
:columns="columns_file"
|
:columns="columns_file"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
|
:customRow="customRow"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
|
:scroll="{ y: 375 }"
|
||||||
>
|
>
|
||||||
</a-table>
|
</a-table>
|
||||||
<custom-table
|
<custom-table
|
||||||
|
@ -215,6 +218,18 @@ export default {
|
||||||
qcFileName: undefined
|
qcFileName: undefined
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
customRow(record, index) {
|
||||||
|
const that = this;
|
||||||
|
return {
|
||||||
|
// class: that.selectedRowKeys==record.id ? 'ant-table-row-selected' : '',
|
||||||
|
on: {
|
||||||
|
click: () => {
|
||||||
|
console.log("选中行",record.id);
|
||||||
|
that.selectedRowKeys.push( record.id)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
handleFileChange(record, key, fileInfo) {
|
handleFileChange(record, key, fileInfo) {
|
||||||
record[key] = fileInfo
|
record[key] = fileInfo
|
||||||
|
@ -230,12 +245,7 @@ export default {
|
||||||
},
|
},
|
||||||
getSpectrumFile(params) {
|
getSpectrumFile(params) {
|
||||||
this.loading_file = true
|
this.loading_file = true
|
||||||
let params_arg = {}
|
let params_arg = {...params,name:this.currFileType}
|
||||||
if (this.tableType==="multiple") {
|
|
||||||
params_arg = {...params}
|
|
||||||
} else {
|
|
||||||
params_arg = {...params,name:this.currFileType}
|
|
||||||
}
|
|
||||||
getAction("/spectrumFile/get", params_arg).then(res => {
|
getAction("/spectrumFile/get", params_arg).then(res => {
|
||||||
this.loading_file = false
|
this.loading_file = false
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
@ -457,5 +467,8 @@ export default {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
/deep/.ant-table-tbody .ant-table-row td{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user