| | |
| | | clearable></zt-dict> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" prop="files" label="上传附件" width="300" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <!-- <zt-table-button @click="files(row.id)">上传附件</zt-table-button>--> |
| | | <table-uploader busi-type="config_item_warehouse" model-name="row" :dataForm="row" |
| | | v-model="row.files"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="管理" width="120" align="center"> |
| | | <el-table-column v-if="showColumn" fixed="right" label="管理" width="120" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <zt-table-button v-if="row.checkId" |
| | | @click="openCheckOrderWin(row)">修改检查单 |
| | |
| | | <zt-table-button v-else-if="',软件测试计划,软件测试说明,软件测试记录,软件测试报告'.indexOf(row.itemName)>0" |
| | | @click="openCheckOrderWin(row)">新增检查单 |
| | | </zt-table-button> |
| | | <!-- <table-uploader busi-type="config_item_warehouse" model-name="row" :dataForm="row"--> |
| | | <!-- v-model="row.files"/>--> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" prop="files" label="上传附件" width="300" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <!-- <zt-table-button @click="files(row.id)">上传附件</zt-table-button>--> |
| | | <table-uploader busi-type="config_item_warehouse" model-name="row" :dataForm="row" |
| | | v-model="row.files"/> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | disabled: true, |
| | | stepMarker: '', |
| | | title: '查看', |
| | | showColumn:false, |
| | | menuOptions: [ |
| | | {pageCode: 'plan', name: '软件测试计划'}, |
| | | {pageCode: 'explain', name: '软件测试说明'}, |
| | |
| | | {pageCode: 'report', name: '软件测试报告'}, |
| | | {pageCode: 'other', name: '其他'} |
| | | ], |
| | | pageNameCode: {软件测试计划:'plan', 软件测试说明: 'explain', 软件测试记录: 'record', 软件测试报告: 'report'}, |
| | | pageNameCode: {'软件测试计划':'plan', '软件测试说明': 'explain', '软件测试记录': 'record', '软件测试报告': 'report'}, |
| | | dataForm: { |
| | | id: '', |
| | | configItemWarehouse: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | const roleName = localStorage.getItem('roleName') |
| | | if (roleName && roleName.includes('QA')) { |
| | | this.showColumn = true; |
| | | } |
| | | }, |
| | | computed: { |
| | | getRoleName() { |
| | | console.log(this.$store.state.user.roleName, 'this.$store.state.user.roleName') |
| | | return this.$store.state.user.roleName || '' |
| | | }, |
| | | |
| | | }, |
| | | components: { |
| | | AddOrUpdateCheck |