| | |
| | | @ApiImplicitParam(name = "criticalLevel", value = "关键等级", dataType = Constant.QT.STRING, format = "critical_level^EQ"), |
| | | @ApiImplicitParam(name = "softwareType", value = "软件类型", dataType = Constant.QT.STRING, format = "software_type^EQ"), |
| | | @ApiImplicitParam(name = "isContract", value = "是否签署合同", dataType = Constant.QT.STRING, format = "is_contract^EQ"), |
| | | @ApiImplicitParam(name = "tableName", value = "功能表", dataType = Constant.QT.STRING) |
| | | @ApiImplicitParam(name = "tableName", value = "功能表", dataType = Constant.QT.STRING), |
| | | @ApiImplicitParam(name = "pageCode", value = "页面标识", dataType = Constant.QT.STRING), |
| | | }) |
| | | public PageResult<Project> page(@ApiIgnore @QueryParam QueryFilter queryFilter) { |
| | | List<Project> Project =projectService.page(queryFilter); |
| | |
| | | and ${whereSql} |
| | | </if> |
| | | <if test="tableName!=null"> |
| | | and id not in (select project_id from ${tableName} where is_delete = 0) |
| | | and id not in (select project_id from ${tableName} where is_delete = 0 |
| | | <if test="pageCode !=null and pageCode !='' "> |
| | | and page_code = '${pageCode}' |
| | | </if> |
| | | ) |
| | | </if> |
| | | <if test="tableName =='contract_review'"> |
| | | <if test="tableName =='contract_review' or pageCode =='contract'"> |
| | | and is_contract =1 |
| | | </if> |
| | | </where> |
| | |
| | | <zt-dialog ref="dialog" column="2" title="选择项目" :editAble="false" :hasConfirm="false"> |
| | | <el-card shadow="never" class="aui-card--fill"> |
| | | <div class="mod-project-project}"> |
| | | <zt-table-wraper ref="tableObj" query-url="/project/Project/page" delete-url="/project/Project" v-slot="{ table }"> |
| | | <zt-table-wraper ref="tableObj" query-url="/project/Project/page" delete-url="/project/Project" |
| | | v-slot="{ table }"> |
| | | <el-form :inline="true" style="padding: 0" :model="dataForm" @keyup.enter.native="table.query()"> |
| | | <el-form-item style="width:12%"> |
| | | <el-input v-model="dataForm.softwareName" placeholder="请输入软件名称" clearable></el-input> |
| | |
| | | <el-form-item style="width:12%"> |
| | | <zt-dict v-model="dataForm.criticalLevel" placeholder="关键等级" dict="critical_level" clearable></zt-dict> |
| | | </el-form-item> |
| | | <!-- <el-form-item style="width:12%"> |
| | | <zt-dict v-model="dataForm.testLevel" placeholder="测试级别" dict="test_level" clearable></zt-dict> |
| | | </el-form-item>--> |
| | | <!-- <el-form-item style="width:12%"> |
| | | <zt-dict v-model="dataForm.testLevel" placeholder="测试级别" dict="test_level" clearable></zt-dict> |
| | | </el-form-item>--> |
| | | <el-form-item style="width:12%"> |
| | | <zt-dict v-model="dataForm.softwareType" placeholder="软件类型" dict="software_type" clearable></zt-dict> |
| | | </el-form-item> |
| | | <el-form-item style="width:12%"> |
| | | <zt-dict v-model="dataForm.isContract" placeholder="是否签署合同" dict="is_or_not" clearable></zt-dict> |
| | | </el-form-item> |
| | | <el-form-item style="float: right;width:12%"> |
| | | <el-form-item style="float: right;width:12%"> |
| | | <zt-button type="query" @click="table.query()"/> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | name: 'Project-select', |
| | | data() { |
| | | return { |
| | | pageCode:'', |
| | | pageCode: '', |
| | | dataForm: { |
| | | softwareName: '', |
| | | secretClass: '', |
| | |
| | | testLevel: '', |
| | | softwareType: '', |
| | | isContract: '', |
| | | tableName: null |
| | | tableName: null, |
| | | pageCode: null, |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | init(tableName,row) { |
| | | init(tableName, row) { |
| | | this.dataForm.tableName = tableName |
| | | if(row){ |
| | | if(row.pageCode!=null){ |
| | | if (row) { |
| | | if (row.pageCode != null) { |
| | | this.pageCode = row.pageCode |
| | | this.dataForm.pageCode = row.pageCode |
| | | } |
| | | } |
| | | this.$nextTick(()=>{ |
| | | this.$nextTick(() => { |
| | | this.$refs.tableObj.query() |
| | | }) |
| | | }, |
| | |
| | | console.log(row, 'row') |
| | | await this.$tip.success() |
| | | this.$refs.dialog.close() |
| | | this.$emit('setProjectInfo', row,this.pageCode) |
| | | this.$emit('setProjectInfo', row, this.pageCode) |
| | | } |
| | | }, |
| | | } |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="checkResult" align="center" width="180" label="检查结果"> |
| | | <template v-slot="{ row }"> |
| | | <zt-dict :disabled="stepMarker!=='csjcd_first'" v-model="row.checkResult" dict="tristate1" :radio="true"></zt-dict> |
| | | <zt-dict :disabled="stepMarker!=='csjcd_first'" v-model="row.checkResult" dict="tristate1" |
| | | :radio="true"></zt-dict> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remark" label="备注" width="100" align="center"> |
| | |
| | | stepMarker: '', |
| | | configDetailRow: null, |
| | | subtitle: '', |
| | | pageName: {plan: '软件测试计划', explain: '软件测试说明', record: '软件测试记录', report: '软件测试报告'}, |
| | | pageName: {plan: '软件测试计划', explain: '软件测试说明', record: '软件测试记录', report: '软件测试报告', |
| | | contract: '合同评审阶段', require:'测试需求分析与策划'}, |
| | | dataForm: { |
| | | id: '', |
| | | projectId: '', |
| | |
| | | }, |
| | | methods: { |
| | | init(id, row) { |
| | | console.log(row,'TestCheckOrder-AddOrUpdate.vue init row') |
| | | this.configDetailRow = row |
| | | if (row.checkId) { |
| | | console.log('配置项入库审核进来的 TestCheckOrder-AddOrUpdate.vue init row.checkId') |
| | | if (row.checkId != -1) { |
| | | console.log('TestCheckOrder-AddOrUpdate.vue init row.checkId!=-1') |
| | | this.dataForm.id = row.checkId |
| | | } |
| | | } else if (id) { |
| | | console.log(this.dataForm,'从检查单进来的 TestCheckOrder-AddOrUpdate.vue init this.dataForm') |
| | | this.dataForm.id = id |
| | | } else { |
| | | console.log(this.dataForm,'从检查单进来的 TestCheckOrder-AddOrUpdate.vue init this.dataForm') |
| | | this.dataForm.id = row.id |
| | | } |
| | | this.pageCode = row.pageCode |
| | |
| | | if (row.projectId) { |
| | | this.dataForm.projectId = row.projectId |
| | | } |
| | | console.log(id, row, this.subtitle, '软件测试计划检查单') |
| | | if (this.configDetailRow) { |
| | | if (!row.stepMarker) { |
| | | this.stepMarker = 'csjcd_first' |
| | |
| | | ...this.dataForm, |
| | | ...res.data |
| | | } |
| | | console.log(this.dataForm,'this.dataForm this.dataForm') |
| | | console.log(this.dataForm, 'this.dataForm this.dataForm') |
| | | }, |
| | | async print(){ |
| | | async print() { |
| | | var params = qs.stringify({ |
| | | token: Cookies.get('token'), |
| | | id:this.dataForm.id, |
| | | id: this.dataForm.id, |
| | | pageCode: this.pageCode |
| | | }) |
| | | let apiURL = `/testCheckOrder/TestCheckOrder/exportCheckOrder` |