| | |
| | | <zt-table-column-dict prop="testBasis" width="150px" label="测试依据" dict="test_basis"/> |
| | | <zt-table-column-dict prop="testStandard" min-width="420" label="测试标准" dict="test_standard"/> |
| | | <zt-table-column-dict prop="articleNature" width="120px" label="物品性质" dict="article_nature"/> |
| | | <zt-table-column-handle :table="table" edit-perm="project:update" delete-perm="project::delete"/> |
| | | <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" |
| | | @click="preview(row)">预览 |
| | | </zt-table-button> |
| | | </template> |
| | | </zt-table-column-handle> |
| | | </el-table> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <add-or-update ref="addOrUpdate" @refreshDataList="table.query"/> |
| | |
| | | @refreshDataList="table.query" |
| | | @setProjectInfo="openAddWin"> |
| | | </ProjectSelect> |
| | | |
| | | <ViewAccessory ref="ViewAccessory" :pageMarkerfun="SoftwareTestOrder"></ViewAccessory> |
| | | </zt-table-wraper> |
| | | </div> |
| | | </el-card> |
| | |
| | | <script> |
| | | import AddOrUpdate from './SoftwareTestOrder-AddOrUpdate' |
| | | import ProjectSelect from "./Project-select.vue" |
| | | import ViewAccessory from '../../pages/view' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | SoftwareTestOrder:'SoftwareTestOrder', |
| | | dataForm: { |
| | | testBasis: '', |
| | | testType: '', |
| | |
| | | }, |
| | | components: { |
| | | AddOrUpdate, |
| | | ProjectSelect |
| | | ProjectSelect, |
| | | ViewAccessory |
| | | }, |
| | | methods: { |
| | | add() { |
| | |
| | | openAddWin(row) { |
| | | console.log(row.id, 'row.id') |
| | | 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) |
| | | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |