From aedad51e0775acd4e46f18ca8aaf27fc9ae221cf Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 13 Jul 2021 22:32:35 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises

---
 src/views/trainingRegistration/data.js |  362 +++++++++++++++++++++++++++++----------------------
 1 files changed, 205 insertions(+), 157 deletions(-)

diff --git a/src/views/trainingRegistration/data.js b/src/views/trainingRegistration/data.js
index 704c0fc..73a1189 100644
--- a/src/views/trainingRegistration/data.js
+++ b/src/views/trainingRegistration/data.js
@@ -1,18 +1,18 @@
 var DIC = [
     {
-        label: '招聘中',
+        label: '男',
         value: 1,
     }, {
-        label: '停止招聘',
+        label: '女',
         value: 2,
     }
 ]
 var DIC1 = [
     {
-        label: '拥有',
+        label: '是',
         value: 1,
     }, {
-        label: '未拥有',
+        label: '否',
         value: 2,
     }
 ]
@@ -20,49 +20,72 @@
 var w = 160
     , s = 12;
 export var column = [
+    // {
+    //     label: "id",
+    //     prop: "id",
+    //     hide: true,
+    //     editDisplay: false,
+    //     addDisplay: false
+    // },
+    // {
+    //     label: "保安单位",
+    //     prop: "tenantName",
+    //     hide: true,
+    //     editDisplay: false,
+    //     addDisplay: false
+    // },
+    // {
+    //     label: "保安id",
+    //     prop: "deptId",
+    //     hide: true,
+    //     editDisplay: false,
+    //     addDisplay: false,
+    //     value: JSON.parse(window.localStorage.getItem("saber-userInfo")).content.dept_id
+    // },//上面不显示
     {
-        label: "id",
-        prop: "id",
-        hide: true,
-        editDisplay: false,
-        addDisplay: false
-    },
-    {
-        label: "保安单位",
-        prop: "tenantName",
-        hide: true,
-        editDisplay: false,
-        addDisplay: false
-    },
-    {
-        label: "保安id",
-        prop: "deptId",
-        hide: true,
-        editDisplay: false,
-        addDisplay: false,
-        value: JSON.parse(window.localStorage.getItem("saber-userInfo")).content.dept_id
-    },//上面不显示
-    {
-        label: "招聘岗位",
+        label: "姓名",
         prop: "name",
+        rules: [{
+            required: true,
+            message: "请输入姓名",
+            trigger: "blur"
+        }],
+        search: true,
+        searchSpan: 5,
+    },
+    {
+        label: "性别",
+        prop: "sex",
+        rules: [{
+            required: true,
+            message: "请输入性别",
+            trigger: "blur"
+        }],
+        width: 50,
+        dicData: DIC,
+        props: {
+            label: "label",
+            value: "value"
+        },
+        // width: 70,
         // search: true,
     },
     {
-        label: "招聘人数",
-        prop: "number",
-        width: 70,
-        // search: true,
-    },
-    {
-        label: "保安证",
-        prop: "permit",
+        label: "年龄",
+        prop: "age",
+        rules: [{
+            required: true,
+            message: "请输入年龄",
+            trigger: "blur"
+        }],
+        width: 50,
         // addDisplay: true,
         // editDisplay: true,
         // viewDisplay: true,
-        filter: false,
-        type: 'tree',
-        dicData: DIC1,
-        searchSpan: 5,
+        // filter: false,
+        // type: 'tree',
+        // dicData: DIC1,
+        // searchSpan: 5,
         // dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
         // props: {
         //     label: "dictValue",
@@ -72,19 +95,25 @@
         // type: "select",
     },
     {
-        label: "学历要求",
-        prop: "education",
-        addDisplay: true,
-        editDisplay: true,
-        viewDisplay: true,
-        searchSpan: 5,
-        dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
-        props: {
-            label: "dictValue",
-            value: "dictKey"
-        },
-        search: true,
-        type: "select",
+        label: "身高",
+        prop: "height",
+        width: 50,
+        rules: [{
+            required: true,
+            message: "请输入身高",
+            trigger: "blur"
+        }]
+        // addDisplay: true,
+        // editDisplay: true,
+        // viewDisplay: true,
+        // searchSpan: 5,
+        // dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
+        // props: {
+        //     label: "dictValue",
+        //     value: "dictKey"
+        // },
+        // search: true,
+        // type: "select",
         // rules: [{
         //     required: true,
         //     message: "请选择学历",
@@ -92,19 +121,25 @@
         // }],
     },
     {
-        label: "工作经验",
-        prop: "experience",
-        addDisplay: true,
-        editDisplay: true,
-        viewDisplay: true,
-        searchSpan: 5,
-        dicUrl: "/api/blade-system/dict-biz/dictionary?code=experienceType",
-        props: {
-            label: "dictValue",
-            value: "dictKey"
-        },
-        search: true,
-        type: "select",
+        label: "体重",
+        prop: "weight",
+        width: 50,
+        rules: [{
+            required: true,
+            message: "请输入体重",
+            trigger: "blur"
+        }]
+        // addDisplay: true,
+        // editDisplay: true,
+        // viewDisplay: true,
+        // searchSpan: 5,
+        // dicUrl: "/api/blade-system/dict-biz/dictionary?code=experienceType",
+        // props: {
+        //     label: "dictValue",
+        //     value: "dictKey"
+        // },
+        // search: true,
+        // type: "select",
         // rules: [{
         //     required: true,
         //     message: "请选择工作经验",
@@ -112,48 +147,86 @@
         // }],
     },
     {
-        label: "工作任务",
-        prop: "workDesc",
-        // search: true,
+        label: "电话",
+        prop: "phone",
+        rules: [{
+            required: true,
+            message: "请输入电话",
+            trigger: "blur"
+        }],
         width: 110,
-        overHidden: true
-    },
-    {
-        label: "福利",
-        prop: "welfare",
         // search: true,
-        searchSpan: 4,
-        overHidden: true
+        // width: 110,
+        // overHidden: true
     },
     {
-        label: "最低薪资",
-        prop: "minSalary",
-        width: 70,
+        label: "身份证号",
+        prop: "idCardNo",
+        rules: [{
+            required: true,
+            message: "请输入身份证号",
+            trigger: "blur"
+        }],
+        width: 160
         // search: true,
-        searchSpan: 4,
+        // searchSpan: 4,
+        // overHidden: true
     },
     {
-        label: "最高薪资",
-        prop: "maxSalary",
-        width: 70,
-        search: true,
-        searchSpan: 4,
+        label: "学历证书",
+        prop: "academicUrl",
+        rules: [{
+            required: true,
+            message: "请输入学历证书",
+            trigger: "blur"
+        }],
+        overHidden:true
+        // width: 70,
+        // search: true,
+        // searchSpan: 4,
     },
     {
-        label: "单位性质",
-        prop: "unitsNature",
-        width: 70,
-        addDisplay: true,
-        editDisplay: true,
-        viewDisplay: true,
-        searchSpan: 4,
-        dicUrl: "/api/blade-system/dict-biz/dictionary?code=unitsNatureType",
+        label: "组织机构",
+        prop: "deptId",
+        // width: 70,
+        // search: true,
+        // searchSpan: 4,
+        dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
         props: {
-            label: "dictValue",
-            value: "dictKey"
+            label: "title",
+            value: "id"
         },
         // search: true,
         type: "select",
+        rules: [{
+            required: true,
+            message: "请输入组织机构",
+            trigger: "blur"
+        }],
+        overHidden:true
+    },
+    {
+        label: "培训公司名称",
+        prop: "trainingUnitName",
+        rules: [{
+            required: true,
+            message: "请输入培训公司名称",
+            trigger: "blur"
+        }],
+        // width: 70,
+        // addDisplay: true,
+        // editDisplay: true,
+        // viewDisplay: true,
+        searchSpan: 5,
+        searchLabelWidth: 110,
+        // dicUrl: "/api/blade-system/dict-biz/dictionary?code=unitsNatureType",
+        // props: {
+        //     label: "dictValue",
+        //     value: "dictKey"
+        // },
+        search: true,
+        overHidden:true
+        // type: "select",
         // rules: [{
         //     required: false,
         //     message: "请选择单位规模",
@@ -161,76 +234,51 @@
         // }],
     },
     {
-        label: "单位规模",
-        prop: "unitsScale",
-        addDisplay: true,
-        editDisplay: true,
-        viewDisplay: true,
-        searchSpan: 4,
-        dicUrl: "/api/blade-system/dict-biz/dictionary?code=unitsScaleType",
-        props: {
-            label: "dictValue",
-            value: "dictKey"
-        },
-        // search: true,
-        type: "select",
-        // rules: [{
-        //     required: true,
-        //     message: "请选择单位规模",
-        //     trigger: "blur"
-        // }],
-    },
-    {
-        label: "联系人",
-        prop: "linkman",
-        // search: true,
-    },
-    {
-        label: "联系人电话",
-        prop: "phone",
-        // search: true,
-        width: 110,
-    },
-    {
-        label: "详细地址",
-        prop: "address",
-        width: 110,
-        // search: true,
-        overHidden: true
-    },
-    {
-        label: "开始时间",
-        prop: "startTime",
-        // search: true,
+        label: "培训时间",
+        prop: "trainingTime",
         type: "date",
-        format: "yyyy-MM-dd hh:mm:ss",
+        format: "yyyy-MM-dd",
         valueFormat: "timestamp",
-        width: 88,
-    },
-
-    {
-        label: "结束时间",
-        prop: "endTime",
-        // search: true,
-        type: "date",
-        format: "yyyy-MM-dd hh:mm:ss",
-        valueFormat: "timestamp",
-        width: 88,
-    },
-    {
-        label: "招聘状态",
-        // prop: "status",
-        // search: true,
+        rules: [{
+            required: true,
+            message: "请输入培训时间",
+            trigger: "blur"
+        }],
+        width: 100,
+        // addDisplay: true,
+        // editDisplay: true,
+        // viewDisplay: true,
         // searchSpan: 4,
-        width: 70,
-        prop: 'status',
-        filter: false,
-        type: 'tree',
-        dicData: DIC,
+        // dicUrl: "/api/blade-system/dict-biz/dictionary?code=unitsScaleType",
+        // props: {
+        //     label: "dictValue",
+        //     value: "dictKey"
+        // },
+        // // search: true,
+        // type: "select",
         // rules: [{
         //     required: true,
         //     message: "请选择单位规模",
         //     trigger: "blur"
         // }],
     },
+    {
+        label: "是否报名",
+        prop: "cancel",
+        search: true,
+        dicData: DIC1,
+        props: {
+            label: "label",
+            value: "value"
+        },
+        // rules: [{
+        //     required: true,
+        //     message: "请选",
+        //     trigger: "blur"
+        // }]
+        editDisplay: false,
+        addDisplay: false,
+        searchSpan: 5,
+        width: 70,
+    }
 ]

--
Gitblit v1.9.3