chuweiqiang 1 jaar geleden
bovenliggende
commit
7fa44a415c

+ 26 - 0
app/admin/controller/Recruitment.php

@@ -17,6 +17,7 @@
 namespace app\admin\controller;
 
 use app\data\controller\user\Admin;
+use app\data\model\DataCollectionLog;
 use app\data\model\DataRecruitment;
 use app\data\model\DataPoolTalent;
 use app\data\model\DataTeachingKnowledge;
@@ -141,4 +142,29 @@ class Recruitment extends Controller
         }
     }
 
+    public function collection(){
+
+//        if(AdminService::getUserId()==10000){
+//            $admin_id = [];
+//        }
+//        else{
+//            $admin_id['uid']=AdminService::getUserId();
+//        }
+        $this->title='感兴趣用户列表';
+        $name=input('title');
+        DataCollectionLog::where('type',3)->where()->order('id','desc')
+            ->layTable();
+//        DataRecruitment::mQuery()
+//            ->when($name,function (Query $query) use ($name) {
+//                $query->hasWhere('shipyard',function (Query $query) use ($name) {
+//                    $query->whereLike('name',"%{$name}%");
+//                });
+//            })
+//            ->where($admin_id)
+//            ->where('is_del',1)
+//            ->with(['datauser','shipyard'])
+//            ->order('id','desc')
+//            ->layTable();
+    }
+
 }

+ 1 - 1
app/admin/view/maintenance/index.html

@@ -1,7 +1,7 @@
 {extend name='table'}
 {block name="button"}
 {if auth("add")}
-<button data-open='{:url("add")}' class='layui-btn layui-btn-sm layui-btn-primary'>添加知识教学</button>
+<!--<button data-open='{:url("add")}' class='layui-btn layui-btn-sm layui-btn-primary'>添加知识教学</button>-->
 {/if}
 {/block}
 {block name="content"}

+ 73 - 0
app/admin/view/recruitment/collection.html

@@ -0,0 +1,73 @@
+{extend name='table'}
+{block name="button"}
+{if auth("add")}
+<button data-open='{:url("add")}' class='layui-btn layui-btn-sm layui-btn-primary'>添加招聘</button>
+{/if}
+{/block}
+{block name="content"}
+<!--<div class="layui-tab layui-tab-card">-->
+<!--    <div class="layui-tab-content">-->
+<!--        <form class="layui-form layui-form-pane form-search" action="{:sysuri()}" onsubmit="return false" method="get" autocomplete="off">-->
+<!--            <div class="layui-form-item layui-inline">-->
+<!--                <label class="layui-form-label">申请船厂</label>-->
+<!--                <label class="layui-input-inline">-->
+<!--                    <input name="title" value="{$get.title|default=''}" placeholder="申请船厂" class="layui-input">-->
+<!--                </label>-->
+<!--            </div>-->
+<!--            <div class="layui-form-item layui-inline">-->
+<!--                <input type="hidden" name="type" value="{$type|default='index'}">-->
+<!--                <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>-->
+<!--            </div>-->
+<!--        </form>-->
+<!--        <table id="Table" data-url="{:sysuri()}" data-target-search="form.form-search"></table>-->
+<!--    </div>-->
+<!--</div>-->
+<script>
+    $(function () {
+        $('#Table').layTable({
+            even: true, height: 'full',
+            sort: {field: 'id', type: 'desc'},
+            where: {},
+            cols: [[
+                {field: 'shipyardname', title: '船厂', align: 'center', templet: function (d) {
+                        return d.shipyard?d.shipyard.name:'平台发布'
+                    }},
+                {field: 'title', title: '岗位名称', align: 'center'},
+                {field: 'number_person', title: '需要人数', align: 'center'},
+                {field: 'sex', title: '性别', align: 'center'},
+                {field: 'age', title: '年龄需求', align: 'center'},
+                {field: 'schooling', title: '学历', align: 'center'},
+                {field: 'province', title: '地址', align: 'center',templet:function (d) {
+                        return d.province+d.city+d.area+d.address
+                    }},
+                {field: 'experience', title: '经验', align: 'center'},
+                {field: 'working_time', title: '用工时长', align: 'center'},
+                {field: 'work_nature', title: '工作性质', align: 'center'},
+                {field: 'necessary_skills', title: '必备技能', align: 'center'},
+                {field: 'certificate', title: '证书', align: 'center'},
+                {field: 'remark', title: '备注', align: 'center'},
+                {field: 'state', title: '状态', align: 'center',templet(d){
+                        if(d.state===1){
+                            return `<span class="layui-badge layui-bg-green">正常</span>`
+                        }else{
+                            return `<span class="layui-badge layui-bg-red">下线</span>`
+                        }
+                    }},
+
+                {field: 'create_at', title: '创建时间', align: 'center'},
+            ]]
+        });
+    });
+</script>
+
+
+<!-- 列表排序权重模板 -->
+<script type="text/html" id="toolbar">
+    {if auth('audit')}
+    <button class="layui-btn layui-btn-sm" data-title="查看" data-modal='{:url("audit")}?id={{d.id}}'>查看</button>
+    <button class="layui-btn layui-btn-sm" data-title="编辑" data-open="{:url("edit")}?id={{d.id}}" style="{{-d.uid ?'display: none':''}}"  >编辑</button>
+    {/if}
+    <!--    <input type="checkbox" value="{{d.id}}" lay-skin="switch" lay-text="已激活|已禁用" lay-filter="StatusSwitch" {{-d.uid=0?'checked':''}}>-->
+
+</script>
+{/block}

+ 4 - 1
app/data/view/user/admin/index.html

@@ -48,7 +48,10 @@
                     <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
                 </td>
                 <td class="nowrap">
-                    <div class="headimg headimg-md" data-tips-hover data-tips-image data-lazy-src="{$vo.headimg|default='__ROOT__/static/theme/img/headimg.png'}"></div>
+
+                    <div class="headimg headimg-md" data-tips-hover data-tips-image data-lazy-src="{$vo.headimg|default='__ROOT__/static/theme/img/headimg.png'}">
+                        <img src="{$vo.headimg|default='__ROOT__/static/theme/img/headimg.png'}" style="width: 55px;height: 55px">
+                    </div>
                     <div class="inline-block">
                         <div>
                             {notempty name='vo.username'}