|
@@ -52,7 +52,7 @@
|
|
|
|
|
|
<div class="table-content">
|
|
<div class="table-content">
|
|
<el-table
|
|
<el-table
|
|
- height="100%"
|
|
|
|
|
|
+ height="100%"
|
|
:data="tableData"
|
|
:data="tableData"
|
|
:row-style="{ height: '0px' }"
|
|
:row-style="{ height: '0px' }"
|
|
:cell-style="{ padding: '5px' }"
|
|
:cell-style="{ padding: '5px' }"
|
|
@@ -68,10 +68,16 @@
|
|
width=""
|
|
width=""
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="createTime" label="创建时间" :show-overflow-tooltip="true" align="center" width="">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ prop="createTime"
|
|
|
|
+ label="创建时间"
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
|
+ align="center"
|
|
|
|
+ width=""
|
|
|
|
+ >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- :show-overflow-tooltip="true"
|
|
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
prop="planEndTime"
|
|
prop="planEndTime"
|
|
label="结束时间"
|
|
label="结束时间"
|
|
align="center"
|
|
align="center"
|
|
@@ -109,11 +115,19 @@
|
|
<div
|
|
<div
|
|
class="detail_button"
|
|
class="detail_button"
|
|
v-show="scope.row.planStatus == '1'"
|
|
v-show="scope.row.planStatus == '1'"
|
|
- @click="resetPlan(false, scope.row)"
|
|
|
|
|
|
+ @click="resetPlan('1', scope.row)"
|
|
>
|
|
>
|
|
<img src="../../../assets/img/table/xiafa.png" />
|
|
<img src="../../../assets/img/table/xiafa.png" />
|
|
<span> 下发 </span>
|
|
<span> 下发 </span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div
|
|
|
|
+ class="detail_button"
|
|
|
|
+ v-show="scope.row.planStatus == '3' && userInfo.roleType == '5'&&scope.rowenable!=1"
|
|
|
|
+ @click="resetPlan('3', scope.row)"
|
|
|
|
+ >
|
|
|
|
+ <img src="../../../assets/img/table/accredit.png" />
|
|
|
|
+ <span> 授权 </span>
|
|
|
|
+ </div>
|
|
<!-- <div class="detail_button" @click="userOp(scope.row)">
|
|
<!-- <div class="detail_button" @click="userOp(scope.row)">
|
|
<img src="../../../assets/img/table/people.png" />
|
|
<img src="../../../assets/img/table/people.png" />
|
|
<span> 人员配置 </span>
|
|
<span> 人员配置 </span>
|
|
@@ -125,7 +139,7 @@
|
|
<div
|
|
<div
|
|
class="detail_button"
|
|
class="detail_button"
|
|
v-show="scope.row.planStatus == '1'"
|
|
v-show="scope.row.planStatus == '1'"
|
|
- @click="resetPlan(true, scope.row)"
|
|
|
|
|
|
+ @click="resetPlan('2', scope.row)"
|
|
>
|
|
>
|
|
<img src="../../../assets/img/table/delete.png" />
|
|
<img src="../../../assets/img/table/delete.png" />
|
|
<span> 删除 </span>
|
|
<span> 删除 </span>
|
|
@@ -207,10 +221,12 @@
|
|
>
|
|
>
|
|
<div slot="title">
|
|
<div slot="title">
|
|
<div class="demo-ruleForm">
|
|
<div class="demo-ruleForm">
|
|
- <p v-show="!isDelete" class="dig_title">下发计划</p>
|
|
|
|
- <p v-show="isDelete" class="dig_title">删除计划</p>
|
|
|
|
- <p v-show="!isDelete">将下发{{ opPlanName }}计划吗</p>
|
|
|
|
- <p v-show="isDelete">确认将删除{{ opPlanName }}计划?</p>
|
|
|
|
|
|
+ <p v-show="isDelete == '1'" class="dig_title">下发计划</p>
|
|
|
|
+ <p v-show="isDelete == '2'" class="dig_title">删除计划</p>
|
|
|
|
+ <p v-show="isDelete == '3'" class="dig_title">授权</p>
|
|
|
|
+ <p v-show="isDelete == '1'">将下发{{ opPlanName }}计划吗?</p>
|
|
|
|
+ <p v-show="isDelete == '2'">确认将删除{{ opPlanName }}计划?</p>
|
|
|
|
+ <p v-show="isDelete == '3'">确认将授权{{ opPlanName }}计划的报告允许下载吗?</p>
|
|
<div class="dig_button">
|
|
<div class="dig_button">
|
|
<el-button type="info" round @click="cancle()">取消</el-button>
|
|
<el-button type="info" round @click="cancle()">取消</el-button>
|
|
<!-- <el-button type="success" round @click="submitForm('ruleForm')"
|
|
<!-- <el-button type="success" round @click="submitForm('ruleForm')"
|
|
@@ -399,19 +415,35 @@ export default {
|
|
//提交文本
|
|
//提交文本
|
|
submitCom() {
|
|
submitCom() {
|
|
//判断当前是否是
|
|
//判断当前是否是
|
|
- if (this.isDelete) {
|
|
|
|
|
|
+ if (this.isDelete == "2") {
|
|
this.deletePlan();
|
|
this.deletePlan();
|
|
//调用删除方法
|
|
//调用删除方法
|
|
- } else {
|
|
|
|
|
|
+ } else if (this.isDelete == "1") {
|
|
this.resetFun();
|
|
this.resetFun();
|
|
// 调用重置密码方法
|
|
// 调用重置密码方法
|
|
|
|
+ }else if(this.isDelete == "3"){
|
|
|
|
+ //调用授权 方法进行授权
|
|
|
|
+ this.accreditFun();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ accreditFun(){
|
|
|
|
+ this.$http.get(`/plan/empowerPlan?id=${this.opPlanId}`, {}, (res) => {
|
|
|
|
+ // this.$toast.success({message:'成功'});
|
|
|
|
+ if (res && res.code == 200) {
|
|
|
|
+ this.resetVisible = false;
|
|
|
|
+ this.$message.success("授权成功");
|
|
|
|
+ this.searchTarget();
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.msg);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
//性别---
|
|
//性别---
|
|
planStatusFun(val) {
|
|
planStatusFun(val) {
|
|
let planStatus = val.planStatus;
|
|
let planStatus = val.planStatus;
|
|
if (planStatus == "1") {
|
|
if (planStatus == "1") {
|
|
- return "未开始";
|
|
|
|
|
|
+ return `<div style="color:red">未开始</div>`;
|
|
|
|
+ // return "未开始";
|
|
} else if (planStatus == "2") {
|
|
} else if (planStatus == "2") {
|
|
return "进行中";
|
|
return "进行中";
|
|
} else if (planStatus == "3") {
|
|
} else if (planStatus == "3") {
|
|
@@ -493,6 +525,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
resetPlan(flag, val) {
|
|
resetPlan(flag, val) {
|
|
|
|
+ //下发----flag为1
|
|
|
|
+ //删除----flag为2
|
|
|
|
+ //授权----flag为3
|
|
this.isDelete = flag;
|
|
this.isDelete = flag;
|
|
this.resetVisible = true;
|
|
this.resetVisible = true;
|
|
this.opPlanId = val.id;
|
|
this.opPlanId = val.id;
|
|
@@ -675,7 +710,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.user_out_sub {
|
|
.user_out_sub {
|
|
- padding:20px 0px;
|
|
|
|
|
|
+ padding: 20px 0px;
|
|
flex: 1;
|
|
flex: 1;
|
|
text-align: center;
|
|
text-align: center;
|
|
height: 100%;
|
|
height: 100%;
|