| | |
| | | <template> |
| | | <el-card shadow="never" class="aui-card--fill"> |
| | | <div class="mod-project-softwareTestOrder}"> |
| | | <div class="fa-card-a"> |
| | | <zt-table-wraper query-url="/project/SoftwareTestOrder/page" delete-url="/project/SoftwareTestOrder/deleteOrder" |
| | | v-slot="{ table }"> |
| | | <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> |
| | |
| | | <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> |
| | |
| | | @refreshDataList="table.query" |
| | | @setProjectInfo="openAddWin"> |
| | | </ProjectSelect> |
| | | <ViewAccessory ref="ViewAccessory" :pageMarkerfun="SoftwareTestOrder"></ViewAccessory> |
| | | <Preview ref="view" :pageMarkerfun="SoftwareTestOrder"></Preview> |
| | | </zt-table-wraper> |
| | | </div> |
| | | </el-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import AddOrUpdate from './SoftwareTestOrder-AddOrUpdate' |
| | | import ProjectSelect from "./Project-select.vue" |
| | | import ViewAccessory from '../../pages/view' |
| | | import Preview from '@/views/pages/view' |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | components: { |
| | | AddOrUpdate, |
| | | ProjectSelect, |
| | | ViewAccessory |
| | | Preview |
| | | }, |
| | | methods: { |
| | | add() { |
| | |
| | | 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.ViewAccessory.setAccessory(row) |
| | | |
| | | this.$refs.view.openAccessoryFormatSingle(row) |
| | | } |
| | | } |
| | | } |