|
@@ -39,12 +39,21 @@
|
|
|
></el-input>
|
|
|
<div v-show="!isUser"> </div>
|
|
|
<el-cascader
|
|
|
+ v-show="userInfo.roleType == '3'"
|
|
|
placeholder="请选择组织架构"
|
|
|
v-model="group"
|
|
|
:options="groupData"
|
|
|
:props="{ checkStrictly: true }"
|
|
|
clearable
|
|
|
></el-cascader>
|
|
|
+ <!-- :props="{ checkStrictly: true }" -->
|
|
|
+ <el-cascader
|
|
|
+ v-show="userInfo.roleType == '2'"
|
|
|
+ placeholder="请选择组织架构"
|
|
|
+ v-model="group"
|
|
|
+ :options="groupData"
|
|
|
+ clearable
|
|
|
+ ></el-cascader>
|
|
|
|
|
|
<el-button type="primary" round icon="el-icon-search" @click="searchTarget"
|
|
|
>搜索</el-button
|
|
@@ -228,7 +237,10 @@
|
|
|
<span> 个人报告列表 </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="detail_button_out" v-if="!isUser &&scope.row.planStatus=='3'">
|
|
|
+ <div
|
|
|
+ class="detail_button_out"
|
|
|
+ v-if="!isUser && scope.row.planStatus == '3'"
|
|
|
+ >
|
|
|
<div class="detail_button" @click="planReport(scope.row)">
|
|
|
<img src="../../../assets/img/table/search.png" />
|
|
|
<span> 专业报告对比 </span>
|
|
@@ -442,7 +454,7 @@ export default {
|
|
|
},
|
|
|
//每页多少条
|
|
|
handleSizeChange(val) {
|
|
|
- this.pageSize=val;
|
|
|
+ this.pageSize = val;
|
|
|
this.searchTarget();
|
|
|
console.log(`每页 ${val} 条`);
|
|
|
//将首页重置为1时---且总条数变化
|
|
@@ -450,28 +462,32 @@ export default {
|
|
|
},
|
|
|
//获取组织架构方法--------------------开始-----------------------
|
|
|
getChannel() {
|
|
|
- this.$http.get(`/org/findAllOrgByPOrgNo`, {}, (res) => {
|
|
|
- // this.$toast.success({message:'成功'});
|
|
|
- if (res && res.code == 200) {
|
|
|
- //将值赋值给list
|
|
|
- if (res.data.length > 0) {
|
|
|
- let resAdd = this.addPro(res.data);
|
|
|
- this.ppData = JSON.parse(JSON.stringify(resAdd));
|
|
|
- let forRes = this.arrToTree(resAdd);
|
|
|
- // console.log('格式化的结构')
|
|
|
- // console.log(forRes)
|
|
|
- let resultRes = this.deleteChildren(forRes);
|
|
|
- console.log("格式化的结构且去掉children");
|
|
|
- console.log(resultRes);
|
|
|
- this.groupData = resultRes;
|
|
|
+ this.$http.get(
|
|
|
+ `/org/findAllOrgByPOrgNo?orgNo=${this.userInfo.orgNo}`,
|
|
|
+ {},
|
|
|
+ (res) => {
|
|
|
+ // this.$toast.success({message:'成功'});
|
|
|
+ if (res && res.code == 200) {
|
|
|
+ //将值赋值给list
|
|
|
+ if (res.data.length > 0) {
|
|
|
+ let resAdd = this.addPro(res.data);
|
|
|
+ this.ppData = JSON.parse(JSON.stringify(resAdd));
|
|
|
+ let forRes = this.arrToTree(resAdd);
|
|
|
+ // console.log('格式化的结构')
|
|
|
+ // console.log(forRes)
|
|
|
+ let resultRes = this.deleteChildren(forRes);
|
|
|
+ console.log("格式化的结构且去掉children");
|
|
|
+ console.log(resultRes);
|
|
|
+ this.groupData = resultRes[0].children;
|
|
|
+ } else {
|
|
|
+ this.groupData = [];
|
|
|
+ }
|
|
|
+ // this.channelList = res.data;
|
|
|
} else {
|
|
|
- this.groupData = [];
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
- // this.channelList = res.data;
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg);
|
|
|
}
|
|
|
- });
|
|
|
+ );
|
|
|
},
|
|
|
//z增加
|
|
|
addPro(val) {
|
|
@@ -488,7 +504,7 @@ export default {
|
|
|
item.children = arr.filter((e) => {
|
|
|
return item.orgNo === e.parentOrgNo;
|
|
|
});
|
|
|
- return this.userInfo.orgNo == item.orgNo
|
|
|
+ return this.userInfo.orgNo == item.orgNo;
|
|
|
// return !item.parentOrgNo;
|
|
|
});
|
|
|
return data;
|
|
@@ -568,13 +584,21 @@ export default {
|
|
|
if (this.isUser) {
|
|
|
url = `/user/findUserListByPage?pageSize=${this.pageSize}&pageNum=${
|
|
|
this.pageNum
|
|
|
- }${this.group.length == 0 ? `&orgNo=${this.userInfo.orgNo}` : `&orgNo=${this.group[this.group.length - 1]}`}${
|
|
|
- this.name == "" ? "" : `&userName=${this.name}`
|
|
|
- }${this.studentNumber == "" ? "" : `&userNo=${this.studentNumber}`}`;
|
|
|
+ }${
|
|
|
+ this.group.length == 0
|
|
|
+ ? `&orgNo=${this.userInfo.orgNo}`
|
|
|
+ : `&orgNo=${this.group[this.group.length - 1]}`
|
|
|
+ }${this.name == "" ? "" : `&userName=${this.name}`}${
|
|
|
+ this.studentNumber == "" ? "" : `&userNo=${this.studentNumber}`
|
|
|
+ }`;
|
|
|
} else {
|
|
|
url = `/plan/findListByPage?pageSize=${this.pageSize}&pageNum=${this.pageNum}${
|
|
|
this.planName == "" ? "" : `&planName=${this.planName}`
|
|
|
- }${this.group.length == 0 ? `&orgNo=${this.userInfo.orgNo}` : `&orgNo=${this.group[this.group.length - 1]}`}`;
|
|
|
+ }${
|
|
|
+ this.group.length == 0
|
|
|
+ ? `&orgNo=${this.userInfo.orgNo}`
|
|
|
+ : `&orgNo=${this.group[this.group.length - 1]}`
|
|
|
+ }`;
|
|
|
}
|
|
|
this.$http.get(url, {}, (res) => {
|
|
|
console.log(res);
|