diff --git a/src/components/UploadFile/index.vue b/src/components/UploadFile/index.vue index 642b26e..1ea1934 100644 --- a/src/components/UploadFile/index.vue +++ b/src/components/UploadFile/index.vue @@ -55,7 +55,8 @@ export default defineComponent({ // 上传成功 handlerSuccess(response, file, fileList) { this.fileList = fileList || []; - this.$emit("change", this.fileList) + const data = response.data; + this.$emit("change", data) }, // 上传失败 handlerError() {}, diff --git a/src/views/MatManage/_matList/config.js b/src/views/MatManage/_matList/config.js index 81250f3..aa51d8b 100644 --- a/src/views/MatManage/_matList/config.js +++ b/src/views/MatManage/_matList/config.js @@ -5,4 +5,10 @@ export function statusFormatter(row) { case 3: return '已终止'; default: return ''; } -}; \ No newline at end of file +}; +export function groupFormatter(row) { + switch(row.groupId) { + case 0: return '未分组' + default: return row.groupId; + } +} \ No newline at end of file diff --git a/src/views/MatManage/_matList/index.vue b/src/views/MatManage/_matList/index.vue index 0d2bde5..d5aa202 100644 --- a/src/views/MatManage/_matList/index.vue +++ b/src/views/MatManage/_matList/index.vue @@ -35,18 +35,23 @@ @selection-change="handleSelect" :header-cell-style="{background: '#EEE'}"> - + - - - - + + + + +