|
@@ -7,7 +7,16 @@
|
|
style="border-radius: 40px"
|
|
style="border-radius: 40px"
|
|
>
|
|
>
|
|
<div slot="title">
|
|
<div slot="title">
|
|
- <p style="text-align: center; margin-bottom: 20px;font-size: 20px; font-weight: 700">{{userInfo.userName}}的计划列表</p>
|
|
|
|
|
|
+ <p
|
|
|
|
+ style="
|
|
|
|
+ text-align: center;
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-weight: 700;
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ {{ userInfo.userName }}的计划列表
|
|
|
|
+ </p>
|
|
<div class="table-content">
|
|
<div class="table-content">
|
|
<el-table
|
|
<el-table
|
|
:data="tableData"
|
|
:data="tableData"
|
|
@@ -31,6 +40,59 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="planEndTime" label="结束时间" align="center" width="">
|
|
<el-table-column prop="planEndTime" label="结束时间" align="center" width="">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column prop="enable" label="是否授权" align="center" width="">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ height: 100%;
|
|
|
|
+ "
|
|
|
|
+ v-if="scope.row.enable == '1'"
|
|
|
|
+ >
|
|
|
|
+ <!-- <img src="../../assets/img/home/isA.png" /> -->
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ color: #00955e;
|
|
|
|
+ border: 1px solid #577bff;
|
|
|
|
+ line-height: 24px;
|
|
|
|
+ padding: 0px 15px;
|
|
|
|
+ border-radius: 20px;
|
|
|
|
+ background: #f0f6fe;
|
|
|
|
+ color: #3061ff;
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ 已授权
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ height: 100%;
|
|
|
|
+ "
|
|
|
|
+ v-if="scope.row.enable == '0'"
|
|
|
|
+ >
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ color: #00955e;
|
|
|
|
+ border: 1px solid #fdb1b1;
|
|
|
|
+ line-height: 24px;
|
|
|
|
+ padding: 0px 15px;
|
|
|
|
+ border-radius: 20px;
|
|
|
|
+ background: #fef0f0;
|
|
|
|
+ color: #e14545;
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ 未授权
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <img src="../../assets/img/home/isA.png" style="width: 80px;"/> -->
|
|
|
|
+ <!-- <div style="color: #d52121">未授权</div> -->
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<!-- <el-table-column label="操作" width="510px" align="center">
|
|
<!-- <el-table-column label="操作" width="510px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -99,7 +161,7 @@
|
|
<img src="../assets/report/man.png" />
|
|
<img src="../assets/report/man.png" />
|
|
<div class="compare_user1_info">
|
|
<div class="compare_user1_info">
|
|
<div>姓名:{{ userInfo.userName }}</div>
|
|
<div>姓名:{{ userInfo.userName }}</div>
|
|
-
|
|
|
|
|
|
+
|
|
<div>学号:{{ userInfo.userNo }}</div>
|
|
<div>学号:{{ userInfo.userNo }}</div>
|
|
<div>测试用时:{{ useTime1 }}</div>
|
|
<div>测试用时:{{ useTime1 }}</div>
|
|
</div>
|
|
</div>
|
|
@@ -317,11 +379,12 @@
|
|
<script>
|
|
<script>
|
|
//引入echarts组件
|
|
//引入echarts组件
|
|
import * as echarts from "echarts";
|
|
import * as echarts from "echarts";
|
|
-
|
|
|
|
|
|
+import { oSessionStorage } from "../utils/utils";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
userInfo: {},
|
|
userInfo: {},
|
|
|
|
+ userInfoSession: {},
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
compareVisible: false,
|
|
compareVisible: false,
|
|
total: 0,
|
|
total: 0,
|
|
@@ -515,6 +578,8 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
open(val) {
|
|
open(val) {
|
|
|
|
+ //从缓存获取当前登录的用户信息
|
|
|
|
+ this.userInfoSession = JSON.parse(oSessionStorage.getItem("userInfo"));
|
|
this.userInfo = val;
|
|
this.userInfo = val;
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
this.searchTarget();
|
|
this.searchTarget();
|
|
@@ -529,6 +594,25 @@ export default {
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //查看是否两个是否都授权了
|
|
|
|
+ // enable
|
|
|
|
+ //先判断是否是运维管理员
|
|
|
|
+ if (this.userInfoSession.roleType != 5) {
|
|
|
|
+ if (
|
|
|
|
+ !(
|
|
|
|
+ this.multipleSelection[0].enable == "1" &&
|
|
|
|
+ this.multipleSelection[1].enable == "1"
|
|
|
|
+ )
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "请选择已授权的测试计划",
|
|
|
|
+ type: "warning",
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
this.compareVisible = true;
|
|
this.compareVisible = true;
|
|
this.queryDetail1(this.multipleSelection[0].id);
|
|
this.queryDetail1(this.multipleSelection[0].id);
|
|
this.queryDetail2(this.multipleSelection[1].id);
|
|
this.queryDetail2(this.multipleSelection[1].id);
|
|
@@ -540,8 +624,7 @@ export default {
|
|
let url = `/userRecordScore/findAllByPlanIdAndUserNo?planId=${id}&userNo=${this.userInfo.userNo}`;
|
|
let url = `/userRecordScore/findAllByPlanIdAndUserNo?planId=${id}&userNo=${this.userInfo.userNo}`;
|
|
this.$http.get(url, {}, (res) => {
|
|
this.$http.get(url, {}, (res) => {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
-
|
|
|
|
- this.useTime1 = res.data.usedTime
|
|
|
|
|
|
+ this.useTime1 = res.data.usedTime;
|
|
this.orgName1 = res.data.user.orgName;
|
|
this.orgName1 = res.data.user.orgName;
|
|
let a = res.data.report;
|
|
let a = res.data.report;
|
|
|
|
|
|
@@ -561,7 +644,7 @@ export default {
|
|
let url = `/userRecordScore/findAllByPlanIdAndUserNo?planId=${id}&userNo=${this.userInfo.userNo}`;
|
|
let url = `/userRecordScore/findAllByPlanIdAndUserNo?planId=${id}&userNo=${this.userInfo.userNo}`;
|
|
this.$http.get(url, {}, (res) => {
|
|
this.$http.get(url, {}, (res) => {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
- this.useTime2 = res.data.usedTime
|
|
|
|
|
|
+ this.useTime2 = res.data.usedTime;
|
|
this.orgName2 = res.data.user.orgName;
|
|
this.orgName2 = res.data.user.orgName;
|
|
let a = res.data.report.filter((item) => {
|
|
let a = res.data.report.filter((item) => {
|
|
return item.isIcon == "1";
|
|
return item.isIcon == "1";
|
|
@@ -651,7 +734,6 @@ export default {
|
|
let url = `/plan/findCompletePlanByUser?pageSize=${this.pageSize}&pageNum=${this.pageNum}&userNo=${this.userInfo.userNo}`;
|
|
let url = `/plan/findCompletePlanByUser?pageSize=${this.pageSize}&pageNum=${this.pageNum}&userNo=${this.userInfo.userNo}`;
|
|
this.$http.get(url, {}, (res) => {
|
|
this.$http.get(url, {}, (res) => {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
-
|
|
|
|
this.tableData = res.data.content;
|
|
this.tableData = res.data.content;
|
|
this.total = res.data.totalElements;
|
|
this.total = res.data.totalElements;
|
|
} else {
|
|
} else {
|