| | |
| | | <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) |
| | | } |
| | | } |
| | | } |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {setAccessoryFormatComm} from '@/commonJS/commonFile' |
| | | import {setAccessoryFormatSingle} from '@/commonJS/commonFile' |
| | | import {setAccessoryFormatByForm} from '@/commonJS/commonFile' |
| | | export default { |
| | | name:'ViewAccessory', |
| | | props: { |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | setAccessory(row) { |
| | | openAccessoryFormatComm(row) { |
| | | console.log(row, 'setAccessoryFormatSingle(row)'); |
| | | return setAccessoryFormatComm(row, this.pageMarkerfun, this) |
| | | }, |
| | | openAccessoryFormatSingle(row) { |
| | | console.log(row, 'setAccessoryFormatSingle(row)'); |
| | | return setAccessoryFormatSingle(row, this.pageMarkerfun, this) |
| | | }, |
| | | openAccessoryFormatByForm(row) { |
| | | console.log(row, 'setAccessoryFormatSingle(row)'); |
| | | return setAccessoryFormatByForm(row, this.pageMarkerfun, this) |
| | | }, |
| | | closePreviewDialog(file) { |
| | | if (file == 'doc') { |
| | | this.docName = '' |