From 86633a46ceb72f3311332ee9dd997281a17e50fd Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 22 Jul 2021 10:58:42 +0800
Subject: [PATCH] 保安员管理和保安公司页面完善 。全部基本样式调整,数据对接(部分)
---
src/views/management/computents/performance.vue | 70 +++++++++++++++++++----------------
1 files changed, 38 insertions(+), 32 deletions(-)
diff --git a/src/views/management/computents/performance.vue b/src/views/management/computents/performance.vue
index 9f3b714..9999cd3 100644
--- a/src/views/management/computents/performance.vue
+++ b/src/views/management/computents/performance.vue
@@ -18,13 +18,16 @@
</template>
<script>
+import { getLisperformance } from "@/api/register/honor";
export default {
+ props: ["form"],
data() {
return {
staffOption: {
// 操作栏多余按钮去除
delBtn: false,
editBtn: false,
+ searchShowBtn: false,
addBtn: false,
selection: false,
menu: false,
@@ -53,14 +56,14 @@
searchSpan: 3,
search: true,
},
- {
- label: "身份证号",
- prop: "securityid",
- // search: true,
- // searchSpan: 4,
- // display: false,
- // width: 78,
- },
+ // {
+ // label: "身份证号",
+ // prop: "securityid",
+ // // search: true,
+ // // searchSpan: 4,
+ // // display: false,
+ // // width: 78,
+ // },
{
label: "工作态度",
prop: "workingattitude",
@@ -94,15 +97,15 @@
// slot: true,
// display: false,
// },
- {
- label: "工作能力",
- prop: "workingability",
- // display: false,
- // searchSpan: 4,
- // searchLabelWidth: 110,
- searchSpan: 3,
- search: true,
- },
+ // {
+ // label: "工作能力",
+ // prop: "workingability",
+ // // display: false,
+ // // searchSpan: 4,
+ // // searchLabelWidth: 110,
+ // searchSpan: 3,
+ // search: true,
+ // },
{
label: "工作成效",
prop: "achievements",
@@ -275,22 +278,25 @@
methods: {
staffOnLoad(page, params = {}) {
this.staffLoading = true;
- console.log("success");
- // getstaffList(
- // page.currentPage,
- // page.pageSize,
- // Object.assign(params, this.staffQuery),
- // this.form.creditcode
- // ).then((res) => {
- // const data = res.data.data;
+ getLisperformance(
+ page.currentPage,
+ page.pageSize,
+ Object.assign(params, this.staffQuery),
+ this.form.cardid
+ ).then((res) => {
+ const data = res.data.data;
- // this.staffPage.total = data.total;
- // this.staffData = data.records;
- this.staffLoading = false;
- // this.$refs.staffCrud.refreshTable();
- // this.$refs.staffCrud.doLayout();
- // this.staffSelectionClear();
- // });
+ this.staffPage.total = data.total;
+ this.staffData = data.records;
+ for (var k in this.staffData) {
+ this.staffData[k]["name"] = this.form.realName;
+ }
+ console.log(this.staffData);
+ this.staffLoading = false;
+ this.$refs.staffCrud.refreshTable();
+ this.$refs.staffCrud.doLayout();
+ this.staffSelectionClear();
+ });
},
staffSelectionClear() {
this.staffSelectionList = [];
--
Gitblit v1.9.3