|
@ -107,9 +107,10 @@ |
|
|
|
|
|
|
|
|
<el-dialog :title="dialogTitle" :visible.sync="dialogTableVisible" :close-on-click-modal="false" @close="handleClose"> |
|
|
<el-dialog :title="dialogTitle" :visible.sync="dialogTableVisible" :close-on-click-modal="false" @close="handleClose"> |
|
|
<el-table :data="dialogData" max-height="400" border> |
|
|
<el-table :data="dialogData" max-height="400" border> |
|
|
<el-table-column |
|
|
<el-table-column type="index" label="序号" width="50" align="center"> |
|
|
type="index" |
|
|
<!-- <template slot-scope="scope"> |
|
|
width="50"> |
|
|
{{ scope.row.index }} |
|
|
|
|
|
</template> --> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column v-for="item in dialogHeader" :key="item.formItemId" :prop="item.formItemId" :label="item.label" /> |
|
|
<el-table-column v-for="item in dialogHeader" :key="item.formItemId" :prop="item.formItemId" :label="item.label" /> |
|
|
<!-- <el-table-column property="name" label="姓名" width="200"></el-table-column> |
|
|
<!-- <el-table-column property="name" label="姓名" width="200"></el-table-column> |
|
@ -291,8 +292,12 @@ export default { |
|
|
}) |
|
|
}) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
this.dialogData = res.data.map(item => { |
|
|
this.dialogData = res.data.map(item => { |
|
|
|
|
|
let n = item |
|
|
|
|
|
if (item.includes(',')) { |
|
|
|
|
|
n = item.replace(',', '至') |
|
|
|
|
|
} |
|
|
return { |
|
|
return { |
|
|
[id]: item |
|
|
[id]: n |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|