|
@@ -107,14 +107,6 @@
|
|
|
<el-select v-model="queryData.code" filterable placeholder="请选择任务" size="mini" style="width:100%;">
|
|
|
<el-option v-for="item in restaurants" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
- <el-tooltip
|
|
|
- class="item"
|
|
|
- effect="dark"
|
|
|
- content="创建测试报告和准出报告时,当前的任务状态为‘测试中’,创建提测报告时,当前的任务状态为‘开发中’"
|
|
|
- placement="bottom"
|
|
|
- >
|
|
|
- <i style="color: red; margin-left: 10px;" class="el-icon-warning-outline" />
|
|
|
- </el-tooltip>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" size="mini" @click="createPresentation(queryData.code)">创建</el-button>
|
|
@@ -313,40 +305,24 @@ export default {
|
|
|
|
|
|
createPresentation(e) {
|
|
|
if (e !== '') {
|
|
|
- var taskData = ''
|
|
|
- this.restaurants.map(item => {
|
|
|
- item.id === e ? taskData = item : ''
|
|
|
- })
|
|
|
switch (this.ins) {
|
|
|
case 1:
|
|
|
- if (taskData.status !== 3) {
|
|
|
- this.$message({ message: '存在状态不是【测试中】的任务,请将任务状态为【测试中】才可测试,请检查!', type: 'warning' })
|
|
|
- } else {
|
|
|
- this.dialogDaily = true
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.DailyReport.init(7, [e])
|
|
|
- })
|
|
|
- }
|
|
|
+ this.dialogDaily = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.DailyReport.init(7, [e])
|
|
|
+ })
|
|
|
break
|
|
|
case 2:
|
|
|
- if (taskData.status !== 3) {
|
|
|
- this.$message({ message: '存在状态不是【测试中】的任务,请将任务状态为【测试中】才可准出,请检查!', type: 'warning' })
|
|
|
- } else {
|
|
|
- this.dialogClient = true
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.ClientReport.init(7, [e])
|
|
|
- })
|
|
|
- }
|
|
|
+ this.dialogClient = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.ClientReport.init(7, [e])
|
|
|
+ })
|
|
|
break
|
|
|
case 3:
|
|
|
- if (taskData.status !== 1) {
|
|
|
- this.$message({ message: '存在状态不是【开发中】的任务,请将任务状态为【开发中】才可提测,请检查!', type: 'warning' })
|
|
|
- } else {
|
|
|
- this.dialogVisible1 = true
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.TestReport.init(7, [e])
|
|
|
- })
|
|
|
- }
|
|
|
+ this.dialogVisible1 = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.TestReport.init(7, [e])
|
|
|
+ })
|
|
|
break
|
|
|
}
|
|
|
this.$set(this.queryData, 'code', '')
|