shuishen
2021-09-18 29c70ac9c7d7f23471cd6dfdb305c3aa99f1dccc
src/views/management/computents/performance.vue
@@ -13,6 +13,7 @@
    @search-reset="staffSearchReset"
    @current-change="staffCurrentChange"
    @size-change="staffSizeChange"
    @refresh-change="refreshchange"
  >
  </avue-crud>
</template>
@@ -47,221 +48,73 @@
        column: [
          {
            label: "姓名",
            prop: "name",
            // search: true,
            // searchSpan: 4,
            // display: false,
            // width: 78,
            searchSpan: 3,
            search: true,
          },
          // {
          //   label: "身份证号",
          //   prop: "securityid",
          //   // search: true,
          //   // searchSpan: 4,
          //   // display: false,
          //   // width: 78,
          // },
          {
            label: "工作态度",
            prop: "workingattitude",
            searchSpan: 3,
            search: true,
            // type: "select",
            // search: true,
            // searchSpan: 4,
            // searchLabelWidth: 50,
            // dicData: [
            //   {
            //     label: "女",
            //     value: 2,
            //   },
            //   {
            //     label: "男",
            //     value: 1,
            //   },
            // ],
            // slot: true,
            // display: false,
            // width: 48,
          },
          // {
          //   label: "保安公司",
          //   prop: "deptName",
          //   // width: 120,
          //   search: true,
          //   searchSpan: 4,
          //   overHidden: true,
          //   slot: true,
          //   display: false,
          // },
          // {
          //   label: "工作能力",
          //   prop: "workingability",
          //   // display: false,
          //   // searchSpan: 4,
          //   // searchLabelWidth: 110,
          //   searchSpan: 3,
          //   search: true,
          // },
          {
            label: "工作成效",
            prop: "achievements",
            // slot: true,
            // display: false,
            // width: 138,
          },
          {
            label: "评分",
            prop: "score",
            searchSpan: 3,
            search: true,
            // slot: true,
            // display: false,
            // width: 92,
            label: "id",
            prop: "id",
            hide: true,
            editDisplay: false,
            addDisplay: false,
          },
          {
            label: "时间",
            prop: "time",
            // slot: true,
            // display: false,
            // width: 82,
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            labelWidth: 120,
            searchSpan: 4,
            search: true,
            overHidden: true,
            prop: "time",
            formslot: true,
          },
          // {
          //     label: '工作态度',
          //     prop: "workingattitude",
          //     formslot: true,
          // },
          {
            label: "工作表现",
            prop: "achievements",
            formslot: true,
          },
          {
            label: "表现评定",
            prop: "score",
            type: "select",
            // dicUrl: "/api/blade-system/dict-biz/dictionary?code=scoreType",
            // props: {
            //     label: "dictValue",
            //     value: "dictKey"
            // },
            dicData: [
              {
                label: "优秀",
                value: 0,
              },
              {
                label: "良好",
                value: 1,
              },
              {
                label: "一般",
                value: 2,
              },
              {
                label: "差",
                value: 3,
              },
            ],
            dataType: "number",
            slot: true,
            rules: [
              {
                required: true,
                message: "请输入时间",
                trigger: "click",
                message: "请选择表现",
                trigger: "blur",
              },
            ],
          },
          // {
          //   label: "所属角色",
          //   prop: "roleName",
          //   slot: true,
          //   display: false,
          //   width: 78,
          //   hide: true,
          // },
          // {
          //   label: "所属辖区",
          //   prop: "jurisdiction",
          //   // multiple: true,
          //   minWidth: 60,
          //   type: "tree",
          //   dicUrl: "/api/jurisdiction/lazy-tree?parentId=0",
          //   props: {
          //     label: "title",
          //     value: "id",
          //   },
          //   checkStrictly: true,
          //   slot: true,
          //   rules: [
          //     {
          //       required: true,
          //       message: "请选择所属辖区",
          //       trigger: "click",
          //     },
          //   ],
          // },
          // {
          //   label: "是否在职",
          //   prop: "status",
          //   type: "select",
          //   search: true,
          //   searchSpan: 3,
          //   dicData: [
          //     {
          //       label: "否",
          //       value: 0,
          //     },
          //     {
          //       label: "是",
          //       value: 1,
          //     },
          //   ],
          //   slot: true,
          //   display: false,
          //   width: 70,
          // },
          // {
          //   label: "是否持证",
          //   prop: "hold",
          //   type: "select",
          //   search: true,
          //   searchSpan: 3,
          //   dicData: [
          //     {
          //       label: "是",
          //       value: "0",
          //     },
          //     {
          //       label: "否",
          //       value: "1",
          //     },
          //     {
          //       label: "已吊销",
          //       value: "2",
          //     },
          //   ],
          //   slot: true,
          //   display: false,
          //   width: 70,
          // },
          //     label: '服务公司',
          //     prop: "departmentName",
          //     formslot: true,
          // }
        ],
        // [
        //   {
        //     label: "投资人姓名",
        //     prop: "shareholder",
        //     slot: true,
        //     display: false,
        //   },
        //   {
        //     label: "投资比例",
        //     prop: "shareholdingratio",
        //     slot: true,
        //     display: false,
        //     formatter: function (row, value) {
        //       return (value = value + "%");
        //     },
        //   },
        //   {
        //     label: "出资金额",
        //     prop: "capital",
        //     slot: true,
        //     display: false,
        //     formatter: function (row, value) {
        //       return (value = value + "万元");
        //     },
        //   },
        //   {
        //     label: "投资时间",
        //     prop: "capitaltime",
        //     slot: true,
        //     display: false,
        //   },
        //   {
        //     label: "身份证号",
        //     prop: "cardid",
        //     slot: true,
        //     display: false,
        //   },
        //   {
        //     label: "联系电话",
        //     prop: "cell",
        //     slot: true,
        //     display: false,
        //   },
        // ],
      },
      staffSearch: {},
      staffLoading: true,
@@ -276,8 +129,11 @@
    };
  },
  methods: {
    refreshchange() {
      this.staffOnLoad(this.staffPage, this.staffQuery);
    },
    staffOnLoad(page, params = {}) {
      console.log(this.form,111);
      console.log(this.form, 111);
      this.staffLoading = true;
      getLisperformance(
        page.currentPage,
@@ -292,7 +148,7 @@
        for (var k in this.staffData) {
          this.staffData[k]["name"] = this.form.realName;
        }
        console.log(this.staffData,'staffData');
        console.log(this.staffData, "staffData");
        this.staffLoading = false;
        this.$refs.staffCrud.refreshTable();
        this.$refs.staffCrud.doLayout();