|
@@ -138,51 +138,72 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <!-- extractCode -->
|
|
|
|
+ <el-table-column label="报告密码" align="center" width="">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div style="display: flex; align-items: center;justify-content: center;">
|
|
|
|
+ <span v-show="scope.row.isShow">{{ scope.row.extractCode }} </span>
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ display: inline-block;
|
|
|
|
+ vertical-align: middle;
|
|
|
|
+ width: auto;
|
|
|
|
+ height: 0px;
|
|
|
|
+ line-height: 9px;
|
|
|
|
+ "
|
|
|
|
+ v-show="!scope.row.isShow"
|
|
|
|
+ >
|
|
|
|
+ ******
|
|
|
|
+ </div>
|
|
|
|
+ <i
|
|
|
|
+ v-show="
|
|
|
|
+ scope.row.isShow &&
|
|
|
|
+ scope.row.extractCode != null &&
|
|
|
|
+ scope.row.extractCode != ''
|
|
|
|
+ "
|
|
|
|
+ @click="scope.row.isShow = !scope.row.isShow"
|
|
|
|
+ class="el-icon-view"
|
|
|
|
+ ></i>
|
|
|
|
+ <i
|
|
|
|
+ v-show="
|
|
|
|
+ !scope.row.isShow &&
|
|
|
|
+ scope.row.extractCode != null &&
|
|
|
|
+ scope.row.extractCode != ''
|
|
|
|
+ "
|
|
|
|
+ @click="scope.row.isShow = !scope.row.isShow"
|
|
|
|
+ class="el-icon-view"
|
|
|
|
+ ></i>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="操作" width="250px" align="center">
|
|
<el-table-column label="操作" width="250px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <div class="detail_button_out" v-if="scope.row.planStatus == '3'">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="detail_button_out"
|
|
|
|
+ v-if="scope.row.planStatus == '3' && scope.row.enable == '1'"
|
|
|
|
+ >
|
|
<div class="detail_button" @click="addUser(scope.row)">
|
|
<div class="detail_button" @click="addUser(scope.row)">
|
|
<img src="../../../assets/img/table/search.png" />
|
|
<img src="../../../assets/img/table/search.png" />
|
|
<span> 查看报告</span>
|
|
<span> 查看报告</span>
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
-
|
|
|
|
- class="detail_button"
|
|
|
|
- @click="downloadButton(scope.row)"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="detail_button" @click="downloadButton(scope.row)">
|
|
<img src="../../../assets/img/table/xiafa1.png" />
|
|
<img src="../../../assets/img/table/xiafa1.png" />
|
|
<span> 下载报告</span>
|
|
<span> 下载报告</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
- <!-- <el-popconfirm
|
|
|
|
- v-if="scope.row.state != 0"
|
|
|
|
- title="确定删除吗?"
|
|
|
|
- placement="top"
|
|
|
|
- @confirm="deleteUser(scope.$index, scope.row)"
|
|
|
|
- >
|
|
|
|
- <el-button
|
|
|
|
- size="small"
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
- type="text"
|
|
|
|
- slot="reference"
|
|
|
|
- >删除</el-button
|
|
|
|
- >
|
|
|
|
- </el-popconfirm>
|
|
|
|
- <el-popconfirm
|
|
|
|
- v-if="scope.row.state != 0"
|
|
|
|
- title="密码将重置为123456"
|
|
|
|
- placement="top"
|
|
|
|
- @confirm="resetUser(scope.$index, scope.row)"
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="detail_button_out_dis"
|
|
|
|
+ v-if="!(scope.row.planStatus == '3' && scope.row.enable == '1')"
|
|
>
|
|
>
|
|
- <el-button
|
|
|
|
- size="small"
|
|
|
|
- style="margin-left: 10px"
|
|
|
|
- type="text"
|
|
|
|
- slot="reference"
|
|
|
|
- >重置密码</el-button
|
|
|
|
- >
|
|
|
|
- </el-popconfirm> -->
|
|
|
|
|
|
+ <div class="detail_button_dis" :title="titleFormatter(scope.row)">
|
|
|
|
+ <img src="../../../assets/img/table/search_dis.png" />
|
|
|
|
+ <span> 查看报告</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="detail_button_dis" :title="titleFormatter(scope.row)">
|
|
|
|
+ <img src="../../../assets/img/table/xiafa1_dis.png" />
|
|
|
|
+ <span> 下载报告</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -419,6 +440,17 @@ export default {
|
|
this.searchTarget();
|
|
this.searchTarget();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ titleFormatter(val) {
|
|
|
|
+ if (val.planStatus == "1") {
|
|
|
|
+ return "计划未开始";
|
|
|
|
+ } else if (val.planStatus == "2") {
|
|
|
|
+ return "计划进行中";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (val.enable == "0") {
|
|
|
|
+ return "当前计划未授权";
|
|
|
|
+ }
|
|
|
|
+ },
|
|
handleClose() {
|
|
handleClose() {
|
|
this.downloadVisible = false;
|
|
this.downloadVisible = false;
|
|
},
|
|
},
|
|
@@ -535,7 +567,6 @@ export default {
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
let a = document.createElement("a");
|
|
let a = document.createElement("a");
|
|
document.body.appendChild(a);
|
|
document.body.appendChild(a);
|
|
- console.log(basePath + `/plan/download?path=${res.data}`);
|
|
|
|
a.setAttribute("href", basePath + `/plan/download?path=${res.data}`);
|
|
a.setAttribute("href", basePath + `/plan/download?path=${res.data}`);
|
|
a.click();
|
|
a.click();
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -561,14 +592,14 @@ export default {
|
|
},
|
|
},
|
|
//下载标志
|
|
//下载标志
|
|
downloadButton(row) {
|
|
downloadButton(row) {
|
|
- if(this.userInfo.roleType!=5){
|
|
|
|
- if(row.enable=='0'){
|
|
|
|
|
|
+ if (this.userInfo.roleType != 5) {
|
|
|
|
+ if (row.enable == "0") {
|
|
//提示暂未授权
|
|
//提示暂未授权
|
|
this.$message({
|
|
this.$message({
|
|
message: "暂未授权",
|
|
message: "暂未授权",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
- return
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.planId = row.id;
|
|
this.planId = row.id;
|
|
@@ -641,9 +672,6 @@ export default {
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
this.pageSize = val;
|
|
this.pageSize = val;
|
|
this.searchTarget();
|
|
this.searchTarget();
|
|
- // console.log(`每页 ${val} 条`);
|
|
|
|
- //将首页重置为1时---且总条数变化
|
|
|
|
- //设置为当前总条数
|
|
|
|
},
|
|
},
|
|
//获取组织架构方法--------------------开始-----------------------
|
|
//获取组织架构方法--------------------开始-----------------------
|
|
getChannel() {
|
|
getChannel() {
|
|
@@ -658,11 +686,8 @@ export default {
|
|
let resAdd = this.addPro(res.data);
|
|
let resAdd = this.addPro(res.data);
|
|
this.ppData = JSON.parse(JSON.stringify(resAdd));
|
|
this.ppData = JSON.parse(JSON.stringify(resAdd));
|
|
let forRes = this.arrToTree(resAdd);
|
|
let forRes = this.arrToTree(resAdd);
|
|
- // console.log('格式化的结构')
|
|
|
|
- // console.log(forRes)
|
|
|
|
|
|
+
|
|
let resultRes = this.deleteChildren(forRes);
|
|
let resultRes = this.deleteChildren(forRes);
|
|
- console.log("格式化的结构且去掉children");
|
|
|
|
- console.log(resultRes);
|
|
|
|
this.groupData = resultRes[0].children;
|
|
this.groupData = resultRes[0].children;
|
|
} else {
|
|
} else {
|
|
this.groupData = [];
|
|
this.groupData = [];
|
|
@@ -736,7 +761,6 @@ export default {
|
|
this.centerDialogVisible = true;
|
|
this.centerDialogVisible = true;
|
|
},
|
|
},
|
|
addUser(val) {
|
|
addUser(val) {
|
|
-
|
|
|
|
if (this.userInfo.roleType != "5") {
|
|
if (this.userInfo.roleType != "5") {
|
|
if (val.enable == "0") {
|
|
if (val.enable == "0") {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -818,12 +842,6 @@ export default {
|
|
if (this.group != "") {
|
|
if (this.group != "") {
|
|
gp = this.group[this.group.length - 1];
|
|
gp = this.group[this.group.length - 1];
|
|
}
|
|
}
|
|
- console.log(this.planStatus);
|
|
|
|
- //格式化时间
|
|
|
|
- console.log("this.planTime");
|
|
|
|
- console.log(time);
|
|
|
|
- console.log(this.planName);
|
|
|
|
- console.log(gp);
|
|
|
|
|
|
|
|
let url = `/plan/findListByPage?pageSize=${this.pageSize}&pageNum=${this.pageNum}${
|
|
let url = `/plan/findListByPage?pageSize=${this.pageSize}&pageNum=${this.pageNum}${
|
|
gp == "" ? `&orgNo=${this.userInfo.orgNo}` : `&orgNo=${gp}`
|
|
gp == "" ? `&orgNo=${this.userInfo.orgNo}` : `&orgNo=${gp}`
|
|
@@ -831,12 +849,12 @@ export default {
|
|
this.planStatus == "" ? "" : `&planStatus=${this.planStatus}`
|
|
this.planStatus == "" ? "" : `&planStatus=${this.planStatus}`
|
|
}${this.planName == "" ? "" : `&planName=${this.planName}`}`;
|
|
}${this.planName == "" ? "" : `&planName=${this.planName}`}`;
|
|
this.$http.get(url, {}, (res) => {
|
|
this.$http.get(url, {}, (res) => {
|
|
- console.log(res);
|
|
|
|
if (res && res.code == 200) {
|
|
if (res && res.code == 200) {
|
|
- console.log("----------");
|
|
|
|
- console.log(res.data.content);
|
|
|
|
-
|
|
|
|
- this.tableData = res.data.content;
|
|
|
|
|
|
+ let aa = [];
|
|
|
|
+ for (let i = 0; i < res.data.content.length; i++) {
|
|
|
|
+ aa.push({ ...res.data.content[i], isShow: false });
|
|
|
|
+ }
|
|
|
|
+ this.tableData = aa;
|
|
this.total = res.data.totalElements;
|
|
this.total = res.data.totalElements;
|
|
} else {
|
|
} else {
|
|
// this.$toast.fail(res.msg);
|
|
// this.$toast.fail(res.msg);
|
|
@@ -971,6 +989,26 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+.detail_button_out_dis {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: flex-start;
|
|
|
|
+ .detail_button_dis {
|
|
|
|
+ margin-left: 20px;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ letter-spacing: 2px;
|
|
|
|
+ img {
|
|
|
|
+ width: 15px;
|
|
|
|
+ margin-right: 5px;
|
|
|
|
+ }
|
|
|
|
+ span {
|
|
|
|
+ color: #d1d1d1;
|
|
|
|
+ // font-weight: 600;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
//弹出框样式
|
|
//弹出框样式
|
|
|
|
|
|
.dig_update /deep/.el-cascader {
|
|
.dig_update /deep/.el-cascader {
|