| | |
| | | <zt-table-column-dict prop="articleNature" width="120px" label="物品性质" dict="article_nature"/> |
| | | <zt-table-column-handle :table="table" width="150px" edit-perm="project:update" delete-perm="project::delete"> |
| | | <template v-slot="{ row }"> |
| | | <zt-table-button size="small" type="primary" |
| | | <zt-table-button size="small" v-show = "row.accessoryMap" type="primary" |
| | | @click="preview(row)">预览 |
| | | </zt-table-button> |
| | | </template> |
| | |
| | | this.$refs.addOrUpdate.$refs.dialog.init(null, {id: null, projectId: row.id}) |
| | | }, |
| | | preview(row){ |
| | | // let _this = this |
| | | console.log(row,'preview(row)') |
| | | |
| | | console.log(this.$refs.ViewAccessory) |
| | | this.$refs.view.setAccessory(row) |
| | | |
| | | this.$refs.view.openAccessoryFormatSingle(row) |
| | | } |
| | | } |
| | | } |