Commit 345ea7cc authored by jingnan's avatar jingnan 👀

合并产品代码【7367】 上传附件可以可以对附件绑定自定义参数

parent 74eeb2a2
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
> >
<el-button :id="'upload'+ timestamp" slot="trigger" size="small" type="primary">点击上传</el-button> <el-button :id="'upload'+ timestamp" slot="trigger" size="small" type="primary">点击上传</el-button>
</el-upload> </el-upload>
<dee-table <!-- <dee-table
:selection-row="selectionRow" :selection-row="selectionRow"
:index-row="indexRow" :index-row="indexRow"
:data="tableData" :data="tableData"
...@@ -18,7 +18,19 @@ ...@@ -18,7 +18,19 @@
@selection-change="selectionChange" @selection-change="selectionChange"
> >
<dee-tools v-show="state!=='view'" slot="header" :tools="tools" mode="normal" /> <dee-tools v-show="state!=='view'" slot="header" :tools="tools" mode="normal" />
</dee-table> </dee-table> -->
<dee-up-table
edit-table
:edit-row-not-check-row="true"
:selection-row="selectionRow"
:index-row="indexRow"
:data="tableData"
:columns="columns"
@selection-change="selectionChange"
@cell-data-change="cellDataChange"
>
<dee-tools v-show="state!=='view'" slot="header" :tools="tools" mode="normal" />
</dee-up-table>
<!-- 设置密级-弹出框 --> <!-- 设置密级-弹出框 -->
<dee-dialog <dee-dialog
title="上传文件" title="上传文件"
...@@ -472,6 +484,10 @@ export default { ...@@ -472,6 +484,10 @@ export default {
selectionChange(val) { selectionChange(val) {
this.currentSelection = val this.currentSelection = val
}, },
cellDataChange(val) {
this.$set(this.tableData, val.rowIndex, val.row)
this.$emit('uploadData', this.tableData)
},
upload(file) { upload(file) {
const fileExtName = '.' + file.file.name.split('.').pop().toLowerCase() const fileExtName = '.' + file.file.name.split('.').pop().toLowerCase()
const acceptExtNames = this.accept.map(m => m.toLowerCase()) const acceptExtNames = this.accept.map(m => m.toLowerCase())
......
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