Commit 67742fad by zhangzhijie

人力情报线索工作效能评估模块调整

parent 324aa3ac
......@@ -591,12 +591,46 @@ export default {
children: [
{
id: "rlqbtj",
label: "人力情报考核统计",
label: "线索即席统计",
index: "rlqbtj",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "dwtj",
label: "线索多维统计",
index: "dwtj",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
{
id: "khtj",
label: "线索考核统计报表",
newAuth: "M0101",
index: "khtj",
className: "iconfont icongongnengfuwu",
hasChildren: true,
children: [
{
id: "khtj",
label: "线索初查情况",
index: "khtj",
auth: "M010101",
className: "iconfont iconrizhi",
hasChildren: false,
}
]
},
{
id: "dwtj",
label: "线索考核历史报表",
index: "lsbb",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
// {
// id: "rlqbtj",
// label: "人力情报婚姻统计",
......
......@@ -42,15 +42,17 @@
<select-tree-dialog placeholder="请选择单位"
:sendId="formData.xsfbdw"
:formData="formData"
:currentItem="dwObj" />
:currentItem="dwObj"/>
</el-form-item>
</el-col>
<el-col :span="3"
v-if="rlPropData.searchButton">
<div @click="cleanData()"
class="cleanButton">重置</div>
class="cleanButton">重置
</div>
<div @click="doQueryRlData()"
class="searchButton">查询</div>
class="searchButton">查询
</div>
</el-col>
<el-col :span="6">
<span @click="print"
......@@ -158,16 +160,16 @@
<div class="ajxq_s">
<span class="none"
v-html="scope.row[columnTitle.prop]"></span><a href="javascript:void(0);"
onclick='javascript:this.parentNode.style.display="none";this.parentNode.nextSibling.style.display="block"'
style="
onclick='javascript:this.parentNode.style.display="none";this.parentNode.nextSibling.style.display="block"'
style="
display: inline-block;
width: 100%;
text-align: right;
color: #3692c6;
font-weight: 600;
"
id="open"
v-show="
id="open"
v-show="
scope.row[columnTitle.prop] != '' &&
scope.row[columnTitle.prop] != null
">展开</a>
......@@ -176,10 +178,10 @@
style="display: none">
<span style="display: block"
v-html="scope.row[columnTitle.prop]"></span><a href="javascript:void(0);"
onclick='javascript:this.parentNode.style.display="none";this.parentNode.previousSibling.style.display="block"'
style="float: right; color: #3692c6; font-weight: 600"
id="stop"
v-show="
onclick='javascript:this.parentNode.style.display="none";this.parentNode.previousSibling.style.display="block"'
style="float: right; color: #3692c6; font-weight: 600"
id="stop"
v-show="
scope.row[columnTitle.prop] != '' &&
scope.row[columnTitle.prop] != null
">收起</a>
......@@ -211,7 +213,8 @@
<script>
import rightContent from "@c/ptCxForm_components.vue";
import SelectTreeDialog from "@c/treeCode_components.vue";
import { getRlqbxxtj, getAjTjtsg, getAjTjGlajxx } from "@/api/rlqbxs.js";
import {getRlqbxxtj, getAjTjtsg, getAjTjGlajxx} from "@/api/rlqbxs.js";
export default {
components: {
rightContent,
......@@ -220,10 +223,11 @@ export default {
props: {
rlProp: {
type: Object,
default: () => { }
default: () => {
}
}
},
data () {
data() {
return {
rlPropData: {},
header: "人力情报线索效能评估",
......@@ -364,7 +368,7 @@ export default {
};
},
methods: {
toDetail (scope) {
toDetail(scope) {
this.$router.pushToTab({
path: "/detailRlqbxs",
query: {
......@@ -372,10 +376,10 @@ export default {
},
});
},
print () {
print() {
this.htmlToExcels.exportExcel("列表详情.xlsx", "#ajzbQuery");
},
showDialog (dwcode, label) {
showDialog(dwcode, label) {
this.dialogG = false;
this.dialogA = false;
console.log(dwcode);
......@@ -425,12 +429,12 @@ export default {
}
this.dialog = true;
},
xtt (scope) {
xtt(scope) {
// this.tableLayer.push(this.formData.xsfbdw);
// this.formData.xsfbdw = scope.row.unitcode;
this.doQueryRlData(scope);
},
doQueryRlData (scope) {
doQueryRlData(scope) {
this.tableLoading = true
var self = this;
var params = new FormData();
......@@ -472,31 +476,31 @@ export default {
}
});
},
goBack () {
goBack() {
if (this.tableLayer.length == 1) {
this.tableLayer = [];
}
let pops =
this.tableLayer.length > 1
? this.tableLayer.splice(this.tableLayer.length - 2, 1).join()
: "460000000000";
this.tableLayer.length > 1
? this.tableLayer.splice(this.tableLayer.length - 2, 1).join()
: "540000000000";
this.formData.xsfbdw = pops;
console.log(pops);
this.doQueryRlData();
},
cleanData () {
cleanData() {
let year = new Date().getFullYear(),
month = new Date().getMonth() + 1,
lastDate = new Date(year, month, 0).getDate()
month = new Date().getMonth() + 1,
lastDate = new Date(year, month, 0).getDate()
this.formData.djsjkssj = this.$moment(
new Date(`${year}-${month}-01`).getTime()
new Date(`${year}-${month}-01`).getTime()
).format("YYYY-MM-DD");
this.formData.djsjjssj = this.$moment(
new Date(`${year}-${month}-${lastDate}`).getTime()
new Date(`${year}-${month}-${lastDate}`).getTime()
).format("YYYY-MM-DD");
this.formData.xsfbdw = "460000000000";
this.formData.xsfbdw = "540000000000";
},
findchildren () {
findchildren() {
// this.formData.xsfbdw
},
// detectChildren(arr) {
......@@ -525,34 +529,40 @@ export default {
// return arr;
// },
},
mounted () {
mounted() {
console.log(this.$route.path)
this.rlPropData = {
searchButton: this.rlProp?.searchButton ?? false,
xsfbdw: this.rlProp?.xsfbdw ?? false,
disabled: this.rlProp?.disabled ?? true
}
if (this.$route.path == '/rlqbtj') {
this.rlPropData.disabled = true;
} else {
this.rlPropData.disabled = false;
}
//初始化图形
this.doQueryRlData();
let self = this;
/*获取字典*/
axios
.get(`JsonData/CODE_UNIT.json`)
.then((res) => {
self.$set(this.dwObj, "codeOptions", res.data.data.rows);
this.dwcodeOption = res.data.data.rows;
console.log(this.dwcodeOption);
})
.catch((err) => {
console.log(err);
});
.get(`JsonData/CODE_UNIT.json`)
.then((res) => {
self.$set(this.dwObj, "codeOptions", res.data.data.rows);
this.dwcodeOption = res.data.data.rows;
console.log(this.dwcodeOption);
})
.catch((err) => {
console.log(err);
});
},
created () {
created() {
let year = new Date().getFullYear(),
month = new Date().getMonth() + 1,
lastDate = new Date(year, month, 0).getDate()
month = new Date().getMonth() + 1,
lastDate = new Date(year, month, 0).getDate()
this.formData.djsjkssj = this.$moment(
new Date(`${year}-${month}-01`).getTime()
new Date(`${year}-${month}-01`).getTime()
).format("YYYY-MM-DD");
this.formData.djsjjssj = this.$moment(new Date()).format("YYYY-MM-DD");
this.$store.commit("user/SET_Menu", this.Menu);
......@@ -570,12 +580,12 @@ export default {
// console.log(this.formData.xsfbdw);
// this.doQueryRlData();
// },
"formData.djsjkssj" (newVal) {
"formData.djsjkssj"(newVal) {
if (newVal == null) {
this.formData.djsjkssj = "";
}
},
"formData.djsjjssj" (newVal) {
"formData.djsjjssj"(newVal) {
if (newVal == null) {
this.formData.djsjjssj = "";
}
......@@ -590,6 +600,7 @@ export default {
box-sizing: border-box;
padding: 20px;
position: relative;
.searchItem {
height: 10%;
background-color: #fff;
......@@ -597,11 +608,13 @@ export default {
padding-left: 20px;
overflow: hidden;
}
#charts {
background-color: #fff;
width: 100%;
height: 90%;
}
#table {
box-sizing: border-box;
padding-top: 1px !important;
......@@ -610,19 +623,23 @@ export default {
background-color: #fff;
padding: 20px;
}
.returnBtn {
position: absolute;
top: 30px;
right: 40px;
z-index: 111;
}
.tableTitle {
display: flex;
justify-content: space-between;
padding: 10px 10px;
> .tableLeft {
font-size: 16px;
font-weight: 600;
span {
&:last-of-type {
font-size: 14px;
......@@ -634,6 +651,7 @@ export default {
}
}
}
.searchButton {
float: right;
margin: 5px 10px 0 0;
......@@ -651,6 +669,7 @@ export default {
font-weight: 400 !important;
cursor: pointer;
}
.cleanButton {
float: right;
margin: 5px 10px 0 0;
......@@ -669,6 +688,7 @@ export default {
cursor: pointer;
line-height: 27px;
}
.backButton {
float: right;
margin: 50px 10px 0 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment