|
@@ -99,7 +99,7 @@
|
|
|
<el-dropdown style="margin-left:10px" trigger="click">
|
|
|
<el-button size="mini" type="primary">···</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item icon="el-icon-coin" @click.native="createReport(1, scope.row)">新建提测报告</el-dropdown-item>
|
|
|
+ <el-dropdown-item icon="el-icon-coin" @click.native="create_Report(1, scope.row)">新建提测报告</el-dropdown-item>
|
|
|
<el-dropdown-item icon="el-icon-coin" @click.native="createReport(2, scope.row)">新建日报报告</el-dropdown-item>
|
|
|
<el-dropdown-item icon="el-icon-coin" @click.native="createReport(3, scope.row)">新建准出报告</el-dropdown-item>
|
|
|
<el-dropdown-item icon="el-icon-coin" @click.native="dialogMoveTask(scope.row.id)">任务移动</el-dropdown-item>
|
|
@@ -300,6 +300,17 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-dialog title="请选择创建服务端还是客户端" :visible.sync="openDialogVisible" width="30%" center>
|
|
|
+ <div style="text-align: center; margin-top: 5%;">
|
|
|
+ <template>
|
|
|
+ <el-radio v-model="queryData.radio" label="1">服务端</el-radio>
|
|
|
+ <el-radio v-model="queryData.radio" label="2">客户端</el-radio>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="create_code(queryData)">创建</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -321,10 +332,14 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ queryData: {
|
|
|
+ radio: ''
|
|
|
+ },
|
|
|
taskMoveAfter: [],
|
|
|
groupTypeStr: [],
|
|
|
pauseTaskMoveId: '',
|
|
|
taskProjectId: '',
|
|
|
+ openDialogVisible: false,
|
|
|
dialogVisibleTaskMove: false,
|
|
|
isPlatformShow: false,
|
|
|
isBusinessShow: false,
|
|
@@ -410,6 +425,29 @@ export default {
|
|
|
// console.log(this.tableData)
|
|
|
})
|
|
|
},
|
|
|
+ create_code(e) {
|
|
|
+ console.log(e.radio)
|
|
|
+ if (e.radio !== undefined) {
|
|
|
+ if (e.radio === '1') {
|
|
|
+ this.$router.push({ path: '/Platform/presentation/presentationReport', query: { task: e }}) // 服务端提测
|
|
|
+ } else {
|
|
|
+ this.$router.push({ path: '/Platform/presentation/PresentReport', query: { task: e }}) // 客户端提测
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message({ message: '请选择想要创建服务端还是客户端', type: 'success', duration: 1000, offset: 150 })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 判断创建的提测报告是否为B端
|
|
|
+ create_Report(e, ele) {
|
|
|
+ if (ele.typeString === '两轮车B端') {
|
|
|
+ this.$set(this.queryData, 'radio', undefined)
|
|
|
+ this.openDialogVisible = true
|
|
|
+ this.queryData = ele
|
|
|
+ } else {
|
|
|
+ this.createReport(e, ele)
|
|
|
+ }
|
|
|
+ },
|
|
|
// 团队查询
|
|
|
realTimeChange() {
|
|
|
const user = { ename: this.userInformation, name: this.userNames }
|
|
@@ -441,7 +479,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
dataQuery(queryCode) {
|
|
|
- console.log(queryCode.teamId)
|
|
|
this.curIndex = 1
|
|
|
queryCode.bizId = localStorage.getItem('key')
|
|
|
queryCode.pageSize = this.pageSize
|