| | |
| | | </el-table-column> |
| | | <el-table-column prop="itemName" min-width="180" label="配置项名称"> |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="120" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <zt-table-button size="small" v-show = "row.accessoryMap" type="primary" |
| | | @click="preview(row)">预览 |
| | | </zt-table-button> |
| | | <zt-table-button size="small" v-show = "row.accessoryMap" type="primary" |
| | | @click="downExcel(row)">下载 |
| | | </zt-table-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div v-if="!dataForm.disabled" class="icon-container" @click="handleCommand"> |
| | | <!-- 放置固定的图标 --> |
| | |
| | | </div> |
| | | </el-form> |
| | | <ConfigItemList ref="configItemList" @getChangeItemList="getChangeItemList"></ConfigItemList> |
| | | <Preview ref="view" :pageMarkerfun="SoftwareTestOrder"></Preview> |
| | | <template v-slot:footer> |
| | | <el-button v-if="dataForm.disabled" type="primary" @click="print()">打印</el-button> |
| | | </template> |
| | |
| | | import Cookies from "js-cookie"; |
| | | import ConfigItemList from '../configItemChange/configItemList.vue' |
| | | import AddOrUpdateCheck from "../testCheckOrder/TestCheckOrder-AddOrUpdate"; |
| | | import Preview from "@/views/pages/view.vue"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | Preview, |
| | | ConfigItemList |
| | | }, |
| | | methods: { |
| | |
| | | indexFormat(index) { |
| | | return index += 1 |
| | | }, |
| | | preview(row){ |
| | | this.$refs.view.openAccessoryFormatSingle(row) |
| | | }, |
| | | downExcel(row){ |
| | | let params = qs.stringify({ |
| | | 'token': Cookies.get('token'), |
| | | 'projectId':row.projectId, |
| | | 'selectId':row.selectId, |
| | | }) |
| | | let apiURL = `` |
| | | window.location.href = `${window.SITE_CONFIG['apiURL']}${apiURL}?${params}` |
| | | }, |
| | | handleCommand() { |
| | | this.$nextTick(()=>{ |
| | | this.ids = this.dataForm.remarkList.map(item=>item.selectId).join(',') |