Kaynağa Gözat

人才库离职++

sugangqiang 1 yıl önce
ebeveyn
işleme
ce4dea478b

+ 5 - 0
app/common/controller/Tool.php

@@ -29,6 +29,11 @@ class Tool extends BaseController {
         return json(["code" => "200", "msg" => "", "obj" => $result]);
     }
 
+    public function findChildDictByCode() {
+        $code = \StrUtil::getRequestDecodeParam($this->request, "code");
+        return json(\app\common\api\DictApi::findChildDictByCode($code));
+    }
+
     public function getProvinceSelect() {
         $where = [];
         $where[] = ["code", "like", "%0000"];

+ 16 - 0
app/common/model/TalentQuit.php

@@ -0,0 +1,16 @@
+<?php
+
+namespace app\common\model;
+
+use think\model;
+
+/**
+ * Description of TalentQuit
+ *
+ * @author sgq
+ */
+class TalentQuit extends model {
+
+    protected $table = "un_talent_quit";
+
+}

+ 16 - 1
app/common/state/ProjectState.php

@@ -4,8 +4,23 @@ namespace app\common\state;
 
 class ProjectState {
 
-    public const TALENT = 1; //人才认定
+    public const TALENT = 1; //人才认定    
+    public const JBT = 2; //津补贴
+    public const QUIT = 3; //离职
+    public const WORKCHANGE = 4; //工作变更
+    public const HOUSE = 5;
     public const EDUCATION = 6; //子女就学
+    public const BANKCHANGE = 7;
+    public const LEVELCHANGE = 8;
+    public const BASICCHANGE = 9;
+    public const TRAINING = 11;
+    public const MAJORPROJECTS = 12;
+    public const CHILDSCHOOLFEES = 13;
+    public const MEDICAL = 14;
+    public const HOUSERENTING = 15;
+    public const HOUSERENTINGFEE = 16;
+    public const HOUSERENTINGPURCHASEAPPLY = 17;
+    public const HOUSERENTINGPURCHASEFEES = 18;
     public const LIVINGALLOWANCE = 19; //生活补贴
     public const INTEGRAL = 20; //积分申报
 

+ 40 - 0
app/enterprise/controller/Talent.php

@@ -1026,6 +1026,46 @@ class Talent extends EnterpriseController {
         return json(["msg" => "删除成功"]);
     }
 
+    public function getInfoById($id) {
+        $info = \app\common\api\VerifyApi::getTalentInfoById($id);
+        if ($info["enterprise_id"] != $this->user["uid"]) {
+            return [];
+        }
+        return $info;
+    }
+
+    public function findTalentInfoInLibrary($type) {
+        $where = [];
+        $sList = [];
+        if ($type == ProjectState::QUIT) {
+            $_where = [];
+            $_where[] = ["checkState", "not in", [3]];
+            $talentIds = Db::table("un_talent_quit")->where($_where)->column("talentId");
+            $sList[] = array_merge($sList, (array) $talentIds);
+            $where[] = ["active", "=", 1];
+        }
+        if ($type == ProjectState::BANKCHANGE) {
+            $_where = [];
+            $_where[] = ["checkState", "not in", [3]];
+            $talentIds = Db::table("un_talent_bank_change")->where($_where)->column("talentId");
+            $sList[] = array_merge($sList, (array) $talentIds);
+        }
+        if ($type == ProjectState::LEVELCHANGE) {
+            $_where = [];
+            $_where[] = ["checkState", "not in", [35, -1]];
+            $_where[] = ["isPublic", "<", 5];
+            $talentIds = Db::table("un_talent_type_change")->where($_where)->column("talentId");
+            $sList[] = array_merge($sList, (array) $talentIds);
+        }
+        $where[] = ["enterprise_id", "=", $this->user["uid"]];
+        $where[] = ["checkState", "=", TalentState::CERTIFICATED];
+        $where[] = ["isEffect", "<>", 4];
+        if ($sList) {
+            $where[] = ["id", "not in", $sList];
+        }
+        return TalentModel::where($where)->field("id,name")->select()->toArray();
+    }
+
 //    public function mixDelete() {
 //        $id = $this->request->param("talentInfoId");
 //        $info = TalentApi::chkIsOwner($id, $this->user["uid"]);

+ 27 - 8
app/enterprise/controller/TalentQuit.php

@@ -3,9 +3,7 @@
 namespace app\enterprise\controller;
 
 use app\enterprise\common\EnterpriseController;
-use app\enterprise\api\TalentApi;
-use app\common\api\DictApi;
-use app\common\api\VerifyApi;
+use app\common\model\TalentQuit as TqModel;
 
 /**
  * Description of TalentQuit
@@ -20,11 +18,32 @@ class TalentQuit extends EnterpriseController {
 
     public function list() {
         $type = $this->user["type"];
-        $param = $this->request->param();
-        $order = trim($param["order"]) ?: "desc";
-        $offset = trim($param["offset"]) ?: 0;
-        $limit = trim($param["limit"]) ?: 10;
-        $where[] = ["enterprise_id", "=", session("user")["uid"]];
+        $params = \StrUtil::batchGetRequestDecodeParam($this->request);
+        $order = $params["order"] ?: "desc";
+        $offset = $params["offset"] ?: 0;
+        $limit = $params["limit"] ?: 10;
+        $where = [];
+        $where[] = ["enterpriseId", "=", $this->user["uid"]];
+        if ($params["talentName"]) {
+            $where[] = ["talentName", "like", "%" . $params["talentName"] . "%"];
+        }
+        if ($params["idCard"]) {
+            $where[] = ["idCard", "like", "%" . $params["idCard"] . "%"];
+        }
+        if ($params["enterpriseName"]) {
+            $where[] = ["enterpriseName", "like", "%" . $params["enterpriseName"] . "%"];
+        }
+        if ($params["talentArrange"]) {
+            $where[] = ["talentArrange", "=", $params["talentArrange"]];
+        }
+        $count = TqModel::where($where)->count();
+        $list = TqModel::where($where)->limit($offset, $limit)->order("createTime " . $order)->select()->toArray();
+        $talentArrangeMap = \app\common\api\DictApi::selectByParentCode("talent_arrange");
+        foreach ($list as &$item) {
+            $item["talentArrangeName"] = $talentArrangeMap[$item["talentArrange"]];
+        }unset($item);
+
+        return json(["total" => $count, "rows" => $list]);
     }
 
     public function apply() {

+ 0 - 154
app/enterprise/view/talent_quit/apply.html

@@ -1,154 +0,0 @@
-{extend name="layout/content"}
-{block name="content"}
-<style type="text/css">
-    .imgs li{
-        list-style: none;
-        float: left;
-        border: 1px solid #d8d1d1;
-        text-align: center;
-        height: 30px;
-    }
-    .spacing {
-        margin-bottom: 10px;
-        padding-right:4px;
-        padding-left: 4px;
-    }
-</style>
-<div class="ibox float-e-margins">
-    <div class="ibox-content">
-        <div class="form-horizontal">
-            <div class="row">
-                <div class="col-sm-12" >
-                    <div class="tabs-container" >
-                        <ul class="nav nav-tabs">
-                            <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">基本信息</a></li>
-                            <li id="fileLi" class=""><a data-toggle="tab" href="#tab-2" onclick="TalentQuitInfoDlg.initFileTable()"  aria-expanded="false">离职申报附件</a></li>
-                        </ul>
-                    </div>
-                    <div class="tab-content">
-                        <div id="tab-1" class="tab-pane active">
-                            <div class="panel-body" >
-                                <form id="talentQuitForm">
-                                    <div class="col-sm-12 form-group-sm">
-                                        <input type="hidden" id="id" name="id" value=""/>
-                                        <input type="hidden" id="type" name="type" value=""/>
-                                        <input type="hidden" id="checkState" name="checkState" value=""/>
-                                        <input type="hidden" id="enterpriseId" name="enterpriseId" value=""/>
-                                        <input type="hidden" id="talentName" name="talentName" value=""/>
-                                        <input type="hidden" id="year" name="year" value="${year}">
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">离职对象</label>
-                                            <div class="col-sm-4 spacing">
-                                                <select class="form-control" id="talentId" name="talentId" onchange="TalentQuitInfoDlg.talentInfoDetail()"></select>
-                                            </div>
-                                        </div>
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">离职企业名称</label>
-                                            <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="enterpriseName" readonly="readonly" name="enterpriseName" />
-                                            </div>
-                                        </div>
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">证件号码</label>
-                                            <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="idCard" readonly="readonly" name="idCard" />
-                                            </div>
-                                        </div>
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">人才层次</label>
-                                            <div class="col-sm-4 spacing">
-                                                <select class="form-control" id="talentArrange" disabled="disabled" name="talentArrange" >
-                                                </select>
-                                            </div>
-                                        </div>
-
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">认定时间</label>
-                                            <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="identifyTime" readonly="readonly" name="identifyTime" />
-                                            </div>
-                                        </div>
-
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">合同开始时间</label>
-                                            <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="starttime" readonly="readonly" name="starttime" />
-                                            </div>
-                                        </div>
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">合同结束时间</label>
-                                            <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="endtime" readonly="readonly" name="endtime" />
-                                            </div>
-                                        </div>
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">入职时间</label>
-                                            <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="entryTime" readonly="readonly" name="entryTime" />
-                                            </div>
-                                        </div>
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">手机号码</label>
-                                            <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="phone" readonly="readonly" name="phone" />
-                                            </div>
-                                        </div>
-                                        @if(type==1){
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">人才标签</label>
-                                            <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="talentTypeName" readonly="readonly" name="talentTypeName" />
-                                            </div>
-                                        </div>
-                                        @}
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">离职时间</label>
-                                            <div class="col-sm-4 spacing">
-                                                <input class="form-control date time" id="quitTime" name="quitTime" />
-                                            </div>
-                                        </div>
-                                        @if(type==1){
-                                        <div class="rowGroup">
-                                            <label class="col-sm-2 control-label spacing">离职原因</label>
-                                            <div class="col-sm-4 spacing">
-                                                <select class="form-control" id="quitReason" name="离职申报原因" name="quitReason">
-                                                    <option value="">请选择</option>
-                                                    <option value="因人才标签变更进行申报">因人才标签变更进行申报</option>
-                                                    <option value="因企业标签变更进行申报">因企业标签变更进行申报</option>
-                                                    <option value="因工作单位变动进行申报">因工作单位变动进行申报</option>
-                                                </select>
-                                            </div>
-                                        </div>
-                                        @}
-                                    </div>
-                                </form>
-                            </div>
-                        </div>
-                        <div id="tab-2" class="tab-pane ">
-                            <table id="fileTable" class="table-condensed" style="font-size: 10px;table-layout: fixed!important;" data-mobile-responsive="true" data-click-to-select="true">
-                                <thead>
-                                    <tr>
-                                        <th data-field="selectItem" data-checkbox="true"></th>
-                                    </tr>
-                                </thead>
-                            </table>
-                            <form id="uploadForm" action="/common/api/addTalentCommonFile" method="post" class="form-horizontal" enctype="multipart/form-data" target="hiddenIframe" style="display: none">
-                                <input type="hidden" name="backName" value="TalentQuitInfoDlg.callBack">
-                                <input type='hidden' id="fileId" name="fileId" >
-                                <input type='file' id="upload_file" name="fileUrl" style='display: none'>
-                                <input type='hidden' id="mainId" name="mainId" >
-                                <input type='hidden' id="typeId" name="typeId" >
-                                <input type='hidden' id="index" name="index" >
-                            </form>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</div>
-<iframe id="hiddenIframe" name="hiddenIframe" style="display: none;"></iframe>
-<script type="text/javascript">
-    document.write('<script src="/static/modular/gate/talentLibrary/talentQuit/talentQuit_info.js?v=' + (new Date()).getTime() + '"><\/script>');
-</script>
-{/block}

+ 22 - 22
app/enterprise/view/talent_quit/view.html

@@ -35,34 +35,34 @@
                             <div class="panel-body" >
                                 <form id="talentQuitForm">
                                     <div class="col-sm-12 form-group-sm">
-                                        <input type="hidden" id="id" name="id" value="${item.id}"/>
-                                        <input type="hidden" id="type" name="type" value="${item.type}"/>
-                                        <input type="hidden" id="checkState" name="checkState" value="${item.checkState}"/>
-                                        <input type="hidden" id="enterpriseId" name="enterpriseId" value="${item.enterpriseId}"/>
-                                        <input type="hidden" id="talentName" name="talentName" value="${item.talentName}"/>
-                                        <input type="hidden" id="year" name="year" value="${item.year}">
+                                        <input type="hidden" id="id" name="id" value="{$row.id}"/>
+                                        <input type="hidden" id="type" name="type" value="{$row.type}"/>
+                                        <input type="hidden" id="checkState" name="checkState" value="{$row.checkState}"/>
+                                        <input type="hidden" id="enterpriseId" name="enterpriseId" value="{$row.enterpriseId}"/>
+                                        <input type="hidden" id="talentName" name="talentName" value="{$row.talentName}"/>
+                                        <input type="hidden" id="year" name="year" value="{$row.year}">
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">离职对象</label>
                                             <div class="col-sm-4 spacing">
-                                                <select class="form-control" id="talentId" name="talentId" disabled="disabled" value="${item.talentId}"></select>
+                                                <select class="form-control" id="talentId" name="talentId" disabled="disabled" value="{$row.talentId}"></select>
                                             </div>
                                         </div>
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">离职企业名称</label>
                                             <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="enterpriseName" readonly="readonly" name="enterpriseName" value="${item.enterpriseName}"/>
+                                                <input class="form-control" id="enterpriseName" readonly="readonly" name="enterpriseName" value="{$row.enterpriseName}"/>
                                             </div>
                                         </div>
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">证件号码</label>
                                             <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="idCard" readonly="readonly" name="idCard" value="${item.idCard}"/>
+                                                <input class="form-control" id="idCard" readonly="readonly" name="idCard" value="{$row.idCard}"/>
                                             </div>
                                         </div>
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">人才层次</label>
                                             <div class="col-sm-4 spacing">
-                                                <select class="form-control" id="talentArrange" disabled="disabled" name="talentArrange" value="${item.talentArrange}">
+                                                <select class="form-control" id="talentArrange" disabled="disabled" name="talentArrange" value="{$row.talentArrange}">
                                                 </select>
                                             </div>
                                         </div>
@@ -70,53 +70,53 @@
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">认定时间</label>
                                             <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="identifyTime" readonly="readonly" name="identifyTime" value="${item.identifyTime}"/>
+                                                <input class="form-control" id="identifyTime" readonly="readonly" name="identifyTime" value="{$row.identifyTime}"/>
                                             </div>
                                         </div>
 
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">合同开始时间</label>
                                             <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="starttime" readonly="readonly" name="starttime" value="${item.starttime}"/>
+                                                <input class="form-control" id="starttime" readonly="readonly" name="starttime" value="{$row.starttime}"/>
                                             </div>
                                         </div>
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">合同结束时间</label>
                                             <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="endtime" readonly="readonly" name="endtime" value="${item.endtime}"/>
+                                                <input class="form-control" id="endtime" readonly="readonly" name="endtime" value="{$row.endtime}"/>
                                             </div>
                                         </div>
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">入职时间</label>
                                             <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="entryTime" readonly="readonly" name="entryTime" value="${item.entryTime}"/>
+                                                <input class="form-control" id="entryTime" readonly="readonly" name="entryTime" value="{$row.entryTime}"/>
                                             </div>
                                         </div>
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">手机号码</label>
                                             <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="phone" readonly="readonly" name="phone" value="${item.phone}"/>
+                                                <input class="form-control" id="phone" readonly="readonly" name="phone" value="{$row.phone}"/>
                                             </div>
                                         </div>
-                                        @if(type==1){
+                                        {if condition="$type eq 1"}
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">人才标签</label>
                                             <div class="col-sm-4 spacing">
-                                                <input class="form-control" id="talentTypeName" readonly="readonly" name="talentTypeName" value="${item.talentTypeName}"/>
+                                                <input class="form-control" id="talentTypeName" readonly="readonly" name="talentTypeName" value="{$row.talentTypeName}"/>
                                             </div>
                                         </div>
-                                        @}
+                                        {/if}
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">离职时间</label>
                                             <div class="col-sm-4 spacing">
-                                                <input class="form-control date time" id="quitTime" name="quitTime" value="${item.quitTime}" />
+                                                <input class="form-control date time" id="quitTime" name="quitTime" value="{$row.quitTime}" />
                                             </div>
                                         </div>
-                                        @if(type==1){
+                                        {if condition="$type eq 1"}
                                         <div class="rowGroup">
                                             <label class="col-sm-2 control-label spacing">离职原因</label>
                                             <div class="col-sm-4 spacing">
-                                                <select class="form-control" id="quitReason" name="离职申报原因" name="quitReason" value="${item.quitReason}">
+                                                <select class="form-control" id="quitReason" name="离职申报原因" name="quitReason" value="{$row.quitReason}">
                                                     <option value="">请选择</option>
                                                     <option value="因人才标签变更进行申报">因人才标签变更进行申报</option>
                                                     <option value="因企业标签变更进行申报">因企业标签变更进行申报</option>
@@ -124,7 +124,7 @@
                                                 </select>
                                             </div>
                                         </div>
-                                        @}
+                                        {/if}
                                     </div>
                                 </form>
                             </div>

+ 18 - 15
extend/StrUtil.php

@@ -1,14 +1,13 @@
 <?php
 
-class StrUtil{
+class StrUtil {
 
     /**
      * 判断字符串是否为 NULL 或者为 空白字符串  LiaoYun 2018-06-13
      * @param str
      * @return
      */
-    public static function isEmpOrNull($str)
-    {
+    public static function isEmpOrNull($str) {
         if ($str == null || trim($str) == "") {
             return true;
         } else {
@@ -16,8 +15,7 @@ class StrUtil{
         }
     }
 
-    public static function isNotEmpAndNull($str)
-    {
+    public static function isNotEmpAndNull($str) {
         if ($str == null || trim($str) == "") {
             return false;
         } else {
@@ -26,18 +24,17 @@ class StrUtil{
     }
 
     public static function isMoblePhone(String $phone) {
-    	if (self::isEmpOrNull($phone)) {
-    		return false;
-    	}
-        if(!preg_match("/^1[3456789]\d{9}$/",$phone,$res)){
+        if (self::isEmpOrNull($phone)) {
+            return false;
+        }
+        if (!preg_match("/^1[3456789]\d{9}$/", $phone, $res)) {
             return $res;
         } else {
             return false;
         }
     }
 
-    public static function back(object $obj, string $funName)
-    {
+    public static function back(object $obj, string $funName) {
 
         $jsonStr = json_encode($obj);
         if (self::isNotEmpAndNull($funName)) {
@@ -45,15 +42,13 @@ class StrUtil{
         } else {
             return "<script language='javascript'>parent.callback({$jsonStr})</script>";
         }
-
     }
 
     /**
      * 中文乱码转 utf-8, 对页面中 用 encodeURI(encodeURI(url)) 处理过的 url 有效
      * @return
      */
-    public static function getRequestDecodeParam($request, $key)
-    {
+    public static function getRequestDecodeParam($request, $key) {
         $str = $request[$key];
         if ($str != null) {
             try {
@@ -69,4 +64,12 @@ class StrUtil{
         }
     }
 
-}
+    public static function batchGetRequestDecodeParam($request) {
+        $params = $request->param();
+        foreach ($params as $key => $param) {
+            $params[$key] = self::getRequestDecodeParam($params, $key);
+        }
+        return $params;
+    }
+
+}

+ 3 - 3
public/static/modular/gate/talentLibrary/talentQuit/talentQuit.js

@@ -76,7 +76,7 @@ TalentQuit.check = function () {
  * 点击添加离职管理
  */
 TalentQuit.openAddTalentQuit = function () {
-    var ajax = new $ax(Feng.ctxPath + "/api/commonBatch/valiateIsAdd", function (data) {
+    var ajax = new $ax(Feng.ctxPath + "/common/batch/checkBatchValid", function (data) {
         if (data.code == 200) {
             var index = layer.open({
                 type: 2,
@@ -119,7 +119,7 @@ TalentQuit.openAddTalentQuit = function () {
  */
 TalentQuit.openTalentQuitDetail = function () {
     if (this.check()) {
-        var ajax = new $ax(Feng.ctxPath + "/api/commonBatch/valiateIsEditOrSubmit", function (data) {
+        var ajax = new $ax(Feng.ctxPath + "/common/batch/checkBatchValid", function (data) {
             if (data.code == 200) {
                 if (TalentQuit.seItem.checkState == 1) {
                     Feng.error("申报正在审核中");
@@ -273,6 +273,6 @@ $(function () {
         "displayCode": "code",
         "displayName": "name",
         "type": "GET",
-        "url": Feng.ctxPath + "/common/api/findChildDictByCode?code=un_talentLevel"
+        "url": Feng.ctxPath + "/common/tool/findChildDictByCode?code=talent_arrange"
     });
 });

+ 162 - 160
public/static/modular/gate/talentLibrary/talentQuit/talentQuit_info.js

@@ -3,20 +3,20 @@
  */
 var locked = false;
 var TalentQuitInfoDlg = {
-    talentQuitInfoData : {},
+    talentQuitInfoData: {},
     validateFields: {
-        talentId: {validators: {notEmpty: {message: '离职对象不能为空' }}},
-        starttime : {validators: {notEmpty: {message: '合同开始时间不能为空' }}},
-        endtime : {validators: {notEmpty: {message: '合同结束时间不能为空' }}},
+        talentId: {validators: {notEmpty: {message: '离职对象不能为空'}}},
+        starttime: {validators: {notEmpty: {message: '合同开始时间不能为空'}}},
+        endtime: {validators: {notEmpty: {message: '合同结束时间不能为空'}}},
         quitTime: {validators: {notEmpty: {message: '离职时间不能为空'}}},
         phone: {
             validators: {
                 notEmpty: {
                     message: '手机号码不能为空'
                 },
-                regexp :{
+                regexp: {
                     regexp: /0?(13|14|15|17|18|19)[0-9]{9}/,
-                    message:"手机号码格式不正确"
+                    message: "手机号码格式不正确"
                 }
             }
         }
@@ -26,7 +26,7 @@ var TalentQuitInfoDlg = {
 /**
  * 清除数据
  */
-TalentQuitInfoDlg.clearData = function() {
+TalentQuitInfoDlg.clearData = function () {
     this.talentQuitInfoData = {};
 }
 
@@ -36,7 +36,7 @@ TalentQuitInfoDlg.clearData = function() {
  * @param key 数据的名称
  * @param val 数据的具体值
  */
-TalentQuitInfoDlg.set = function(key, val) {
+TalentQuitInfoDlg.set = function (key, val) {
     this.talentQuitInfoData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
     return this;
 }
@@ -47,39 +47,39 @@ TalentQuitInfoDlg.set = function(key, val) {
  * @param key 数据的名称
  * @param val 数据的具体值
  */
-TalentQuitInfoDlg.get = function(key) {
+TalentQuitInfoDlg.get = function (key) {
     return $("#" + key).val();
 }
 
 /**
  * 关闭此对话框
  */
-TalentQuitInfoDlg.close = function() {
+TalentQuitInfoDlg.close = function () {
     parent.layer.close(window.parent.TalentQuit.layerIndex);
 }
 
 /**
  * 收集数据
  */
-TalentQuitInfoDlg.collectData = function() {
+TalentQuitInfoDlg.collectData = function () {
     this
-    .set('id')
-    .set('type')
-    .set('year')
-    .set('talentId')
-    .set('talentName')
-    .set('enterpriseId')
-    .set('enterpriseName')
-    .set('idCard')
-    .set('talentArrange')
-    .set('identifyTime')
-    .set('starttime')
-    .set('endtime')
-    .set('phone')
-    .set('entryTime')
-    .set('quitReason')
-    .set('quitTime')
-    .set('description');
+            .set('id')
+            .set('type')
+            .set('year')
+            .set('talentId')
+            .set('talentName')
+            .set('enterpriseId')
+            .set('enterpriseName')
+            .set('idCard')
+            .set('talentArrange')
+            .set('identifyTime')
+            .set('starttime')
+            .set('endtime')
+            .set('phone')
+            .set('entryTime')
+            .set('quitReason')
+            .set('quitTime')
+            .set('description');
 }
 
 /**
@@ -94,44 +94,45 @@ TalentQuitInfoDlg.validate = function () {
 /**
  * 提交添加
  */
-TalentQuitInfoDlg.addSubmit = function() {
+TalentQuitInfoDlg.addSubmit = function () {
     this.clearData();
     this.collectData();
-    if(!this.validate()){
+    if (!this.validate()) {
         return;
     }
     //提交信息
-    if(locked) return ;
+    if (locked)
+        return;
     locked = true;
-    if(this.talentQuitInfoData.id!=null && this.talentQuitInfoData.id!=''){
+    if (this.talentQuitInfoData.id != null && this.talentQuitInfoData.id != '') {
         //提交信息
-        var ajax = new $ax(Feng.ctxPath + "/api/talentQuit/update", function(data){
-            if(data.code=="200"){
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/talent_quit/apply", function (data) {
+            if (data.code == "200") {
                 Feng.success(data.msg);
                 window.parent.TalentQuit.table.refresh();
-            }else{
+            } else {
                 Feng.info(data.msg);
             }
             locked = false;
-        },function(data){
+        }, function (data) {
             Feng.error("修改失败!" + data.responseJSON.message + "!");
             locked = false;
         });
         ajax.set(this.talentQuitInfoData);
         ajax.start();
-    }else{
-        var ajax = new $ax(Feng.ctxPath + "/api/talentQuit/add", function(data){
-            if(data.code=="200"){
+    } else {
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/talent_quit/apply", function (data) {
+            if (data.code == "200") {
                 Feng.success(data.msg);
                 $("#fileLi").removeAttr("style");
                 $("#id").val(data.obj.id);
                 $("#checkState").val(data.obj.checkState);
                 window.parent.TalentQuit.table.refresh();
-            }else{
+            } else {
                 Feng.info(data.msg);
             }
             locked = false;
-        },function(data){
+        }, function (data) {
             Feng.error("添加失败!" + data.responseJSON.message + "!");
             locked = false;
         });
@@ -143,26 +144,26 @@ TalentQuitInfoDlg.addSubmit = function() {
 /**
  * 提交修改
  */
-TalentQuitInfoDlg.editSubmit = function(type) {
+TalentQuitInfoDlg.editSubmit = function (type) {
     this.clearData();
     this.collectData();
     // if(!this.validate()){
     //     return;
     // }
     //提交信息
-    var ajax = new $ax(Feng.ctxPath + "/api/talentQuit/update", function(data){
-        if(data.code=="200"){
-            if(type == 1){
+    var ajax = new $ax(Feng.ctxPath + "/enterprise/talent_quit/apply", function (data) {
+        if (data.code == "200") {
+            if (type == 1) {
                 Feng.success(data.msg);
                 window.parent.TalentQuit.table.refresh();
-            }else{
+            } else {
                 TalentQuitInfoDlg.submitToCheck();
             }
-        }else{
+        } else {
             Feng.info(data.msg);
         }
         locked = false;
-    },function(data){
+    }, function (data) {
         Feng.error("修改失败!" + data.responseJSON.message + "!");
         locked = false;
     });
@@ -170,86 +171,87 @@ TalentQuitInfoDlg.editSubmit = function(type) {
     ajax.start();
 }
 //点击按钮初始化
-TalentQuitInfoDlg.talentInfoDetail = function (){
+TalentQuitInfoDlg.talentInfoDetail = function () {
     var talentId = $("#talentId").val();
-    var ajax = new $ax(Feng.ctxPath + "/api/talentInfo/detail/"+talentId, function(data){
+    var ajax = new $ax(Feng.ctxPath + "/enterprise/talent/getInfoById/id/" + talentId, function (data) {
         $("#type").val(data.type);
-        $("#enterpriseId").val(data.enterpriseId);
+        $("#enterpriseId").val(data.enterprise_id);
         $("#talentName").val(data.name);
-        $("#idCard").val(data.idCard);
+        $("#idCard").val(data.card_number);
         $("#identifyTime").val(data.identifyMonth);
         $("#enterpriseName").val(data.enterpriseName);
-        $("#talentArrange").val(data.talentArrange);
+        $("#talentArrange").val(data.talent_arrange);
         $("#talentTypeName").val(data.talentTypeName);
         $("#starttime").val(data.startTime);
         $("#endtime").val(data.endTime);
         $("#entryTime").val(data.entryTime);
         $("#phone").val(data.phone);
-    },function(data){
+    }, function (data) {
         Feng.error("查询失败!" + data.responseJSON.message + "!");
     });
     ajax.set();
     ajax.start();
 }
 //附件初始化
-TalentQuitInfoDlg.initFileTable = function(){
+TalentQuitInfoDlg.initFileTable = function () {
     var queryData = {};
     queryData['project'] = CONFIG.project_quit;
     queryData['type'] = $("#type").val();
     $("#fileTable").bootstrapTable({
-        url: Feng.ctxPath + "/api/talentInfo/findUnCommonFileType",
+        url: Feng.ctxPath + "/common/api/findUnCommonFileType",
         method: 'POST',
         contentType: "application/x-www-form-urlencoded; charset=UTF-8",
-        search: false,					// 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
-        showRefresh: false,				// 是否显示刷新按钮
-        clickToSelect: true,			// 是否启用点击选中行
-        singleSelect: true,				// 设置True 将禁止多选
-        striped: true,  				// 是否显示行间隔色
+        search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
+        showRefresh: false, // 是否显示刷新按钮
+        clickToSelect: true, // 是否启用点击选中行
+        singleSelect: true, // 设置True 将禁止多选
+        striped: true, // 是否显示行间隔色
         escape: true,
-        pagination: false,   			// 设置为 true 会在表格底部显示分页条
+        pagination: false, // 设置为 true 会在表格底部显示分页条
         paginationHAlign: "left",
         paginationDetailHAlign: "right",
-        sidePagination: "server",   	// 设置在哪里进行分页,可选值为 'client' 或者 'server'
+        sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
         showColumns: false,
-        detailView: true,               //是否显示父子表
+        detailView: true, //是否显示父子表
         pageList: [10, 30, 50],
         queryParams: function (params) {
-            return $.extend(queryData,params)
+            return $.extend(queryData, params)
         },
         rowStyle: function (row, index) {
-            return {classes:"info"};
+            return {classes: "info"};
         },
         columns:
-            [
-                {field: 'selectItem', checkbox:false,visible:false},
-                {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle',width:"40%",'class': 'uitd_showTip',
-                    formatter : function(value,row,index){
-                        if(row.must==1){
-                            return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> '+ value;
-                        }if(row.must==2){
-                            return '<i class="fa fa-paste"></i>'+value;
+                [
+                    {field: 'selectItem', checkbox: false, visible: false},
+                    {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "40%", 'class': 'uitd_showTip',
+                        formatter: function (value, row, index) {
+                            if (row.must == 1) {
+                                return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
+                            }
+                            if (row.must == 2) {
+                                return '<i class="fa fa-paste"></i>' + value;
+                            }
                         }
-                    }
-                },
-                {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle',width:"10%",
-                    formatter : function(value,row,index){
-                        if(value==null||value==''||value=='null'){
-                            return '无';
+                    },
+                    {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "10%",
+                        formatter: function (value, row, index) {
+                            if (value == null || value == '' || value == 'null') {
+                                return '无';
+                            }
+                            return "<button type='button' onclick=\"TalentQuitInfoDlg.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                                    "<i class=\"fa fa-download\"></i>下载" +
+                                    "</button>";
+                        }
+                    },
+                    {title: "说明", field: 'description', visible: true, align: 'center', valign: 'middle', width: "40%", },
+                    {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "10%",
+                        formatter: function (value, row, index) {
+                            return "<button type='button' onclick=\"TalentQuitInfoDlg.checkFile('" + value + "','" + null + "')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
+                                    "<i class=\"fa fa-upload\"></i>上传" +
+                                    "</button>";
                         }
-                        return "<button type='button' onclick=\"TalentQuitInfoDlg.downloadFile('"+row.id+"',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
-                            "<i class=\"fa fa-download\"></i>下载" +
-                            "</button>";
-                    }
-                },
-                {title:"说明",field:'description',visible: true, align: 'center', valign: 'middle',width:"40%",},
-                {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"10%",
-                    formatter : function(value,row,index){
-                        return "<button type='button' onclick=\"TalentQuitInfoDlg.checkFile('"+value+"','"+null+"')\" style='margin-right: 10px' class=\"btn btn-xs btn-info\">" +
-                            "<i class=\"fa fa-upload\"></i>上传" +
-                            "</button>" ;
                     }
-                }
-            ]
+                ]
         ,
         onPostBody: function () {
             $("td.uitd_showTip").bind("mouseover", function () {
@@ -262,33 +264,33 @@ TalentQuitInfoDlg.initFileTable = function(){
         },
         onExpandRow: function (index, row, $detail) {
             var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentCommonFile", function (data) {
-                if(data==null||data.length==0){
+                if (data == null || data.length == 0) {
                     return;
                 }
                 var html = '<ul class="imgs"><li style="width: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">预览</li><li style="width: 10%;font-weight: bold;padding-top: 5px;">操作</li>';
-                for(var key in data){
+                for (var key in data) {
                     var sn = data[key].url.lastIndexOf(".");
-                    var suffix = data[key].url.substring(sn+1,data[key].url.length);
+                    var suffix = data[key].url.substring(sn + 1, data[key].url.length);
                     var imgStr = "";
-                    if(suffix=="pdf"||suffix=="PDF"){
-                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('"+data[key].url+"','"+data[key].id+"','"+data[key].orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
-                    }else if(suffix == "xlsx" || suffix=="XLSX" || suffix == 'xls' || suffix == 'XLS'){
-                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('"+data[key].url+"','"+data[key].id+"','"+data[key].orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
-                    }else{
-                        imgStr = '<img class=\"imgUrl\"  src=\"'+data[key].url+'\" style=\"width:25px;height:25px;\">';
+                    if (suffix == "pdf" || suffix == "PDF") {
+                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
+                    } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') {
+                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
+                    } else {
+                        imgStr = '<img class=\"imgUrl\"  src=\"' + data[key].url + '\" style=\"width:25px;height:25px;\">';
                     }
-                    var btn = "<button type=\'button\' onclick=\"TalentQuitInfoDlg.checkFile('"+row.id+"','"+data[key].id+"')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\"><i class=\"fa fa-paste\"></i>修改</button>" +
-                                "<button type='button' onclick=\"TalentQuitInfoDlg.deleteFile('"+data[key].id+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-times\"></i>删除</button>";
-                    html = html + '<li style="display: none">'+data[key].id+'</li>\n'+
-                        '<li style="width: 80%;padding-top: 5px;">'+data[key].orignName+'</li>\n'+
-                        '<li style="width: 10%;">'+imgStr+'</li>\n'+
-                        '<li style="width: 10%;padding-top: 2px;">'+btn+'</li>';
+                    var btn = "<button type=\'button\' onclick=\"TalentQuitInfoDlg.checkFile('" + row.id + "','" + data[key].id + "')\" style=\'margin-right: 10px\' class=\"btn btn-xs btn-info\"><i class=\"fa fa-paste\"></i>修改</button>" +
+                            "<button type='button' onclick=\"TalentQuitInfoDlg.deleteFile('" + data[key].id + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-times\"></i>删除</button>";
+                    html = html + '<li style="display: none">' + data[key].id + '</li>\n' +
+                            '<li style="width: 80%;padding-top: 5px;">' + data[key].orignName + '</li>\n' +
+                            '<li style="width: 10%;">' + imgStr + '</li>\n' +
+                            '<li style="width: 10%;padding-top: 2px;">' + btn + '</li>';
                 }
                 html = html + '</ul>';
                 $detail.html(html);
                 $(".imgs").viewer({
                     // toolbar:false,
-                    fullscreen:false
+                    fullscreen: false
                 });
             }, function (data) {
                 Feng.error("查询失败!" + data.responseJSON.message + "!");
@@ -303,59 +305,59 @@ TalentQuitInfoDlg.initFileTable = function(){
 }
 
 
-TalentQuitInfoDlg.downloadFile = function (id,type){
-    window.location.href = Feng.ctxPath + "/api/common/downloadFile?id=" + id + "&type="+type;
+TalentQuitInfoDlg.downloadFile = function (id, type) {
+    window.location.href = Feng.ctxPath + "/common/api/downloadFile?id=" + id + "&type=" + type;
 }
 
 //选择附件并显示附件名
-TalentQuitInfoDlg.checkFile = function (fileTypeId,fileId){
+TalentQuitInfoDlg.checkFile = function (fileTypeId, fileId) {
     var checkState = $("#checkState").val();
-    if(checkState==1){
+    if (checkState == 1) {
         Feng.error("正在审核中,无法修改");
-        return ;
+        return;
     }
-    if(checkState==3){
+    if (checkState == 3) {
         Feng.error("审核通过,无法修改");
-        return ;
+        return;
     }
     $("#upload_file ").unbind("change");
     $("#upload_file ").change(function () {
-        TalentQuitInfoDlg.upload(fileTypeId,fileId);
+        TalentQuitInfoDlg.upload(fileTypeId, fileId);
     });
     $('#upload_file').val("");
     $('#upload_file').click()
 }
 //上传附件
-TalentQuitInfoDlg.upload = function (fileTypeId,fileId){
-    if(fileId!=null&&fileId!='null'){
+TalentQuitInfoDlg.upload = function (fileTypeId, fileId) {
+    if (fileId != null && fileId != 'null') {
         $("#fileId").val(fileId)
-    }else{
+    } else {
         $("#fileId").val("");
     }
 
     $("#mainId").val($("#id").val());
     $("#typeId").val(fileTypeId);
-    var index = layer.load(0, {shade: false,time:0});
+    var index = layer.load(0, {shade: false, time: 0});
     $("#index").val(index);
     $("#uploadForm").submit();
 }
 //删除附件
-TalentQuitInfoDlg.deleteFile = function (id){
+TalentQuitInfoDlg.deleteFile = function (id) {
     var checkState = $("#checkState").val();
-    if(checkState==1){
+    if (checkState == 1) {
         Feng.error("正在审核中,无法修改");
-        return ;
+        return;
     }
-    if(checkState==3){
+    if (checkState == 3) {
         Feng.error("审核通过,无法修改");
-        return ;
+        return;
     }
-    var operation = function() {
-        var ajax = new $ax(Feng.ctxPath + "/api/talentCommonFile/deleteTalentCommonFile", function (data) {
-            if(data.code=200){
+    var operation = function () {
+        var ajax = new $ax(Feng.ctxPath + "/common/api/deleteTalentCommonFile", function (data) {
+            if (data.code = 200) {
                 Feng.success(data.msg);
                 $("#fileTable").bootstrapTable("refresh", {});
-            }else{
+            } else {
                 Feng.error(data.msg);
             }
         }, function (data) {
@@ -367,7 +369,7 @@ TalentQuitInfoDlg.deleteFile = function (id){
     Feng.confirm("删除后无法恢复,确认删除吗?", operation);
 }
 //回调
-TalentQuitInfoDlg.callBack = function (data){
+TalentQuitInfoDlg.callBack = function (data) {
     layer.close(data.obj);
     Feng.info(data.msg);
     if (data.code == 200) {
@@ -378,29 +380,29 @@ TalentQuitInfoDlg.callBack = function (data){
 /**
  * 提交审核
  */
-TalentQuitInfoDlg.submitToCheck = function(){
+TalentQuitInfoDlg.submitToCheck = function () {
     var id = $("#id").val();
-    if(id==null || id==""){
+    if (id == null || id == "") {
         Feng.info("请先填写基础信息并上传附件");
-        return ;
+        return;
     }
     var checkState = $("#checkState").val();
-    if(checkState==1){
+    if (checkState == 1) {
         Feng.error("正在审核中,无法修改");
-        return ;
+        return;
     }
-    if(checkState==3){
+    if (checkState == 3) {
         Feng.error("审核通过,无法修改");
-        return ;
+        return;
     }
-    var operation = function() {
-        var ajax = new $ax(Feng.ctxPath + "/api/talentQuit/submitToCheck", function (data) {
-            if(data.code==200){
+    var operation = function () {
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/talent_quit/submitToCheck", function (data) {
+            if (data.code == 200) {
                 Feng.success(data.msg);
                 // $("#checkState").val(data.obj);
                 window.parent.TalentQuit.table.refresh();
                 TalentQuitInfoDlg.close();
-            }else{
+            } else {
                 Feng.error(data.msg);
             }
         }, function (data) {
@@ -412,22 +414,22 @@ TalentQuitInfoDlg.submitToCheck = function(){
     Feng.confirm("请确认基础信息已核对无误,相应附件已上传,一旦提交,无法修改", operation);
 }
 
-$(function() {
+$(function () {
     Feng.initValidator("talentQuitForm", TalentQuitInfoDlg.validateFields);
     Feng.addAjaxSelect({
         "id": 'talentArrange',
         "displayCode": "code",
         "displayName": "name",
         "type": "GET",
-        "url": Feng.ctxPath + "/api/common/findChildDictByCode?code=un_talentLevel"
+        "url": Feng.ctxPath + "/common/tool/findChildDictByCode?code=talent_arrange"
     });
     var id = $("#id").val();
     var url = "";
-    if(id==null||id==''){
-        url = "/api/talentInfo/findTalentInfoInLibrary/"+CONFIG.project_quit;
-    }else{
-        url = "/api/talentInfo/findTalentInfoByChangeId/"+CONFIG.project_quit+"/"+id;
-        Feng.getCheckLog("logTable",{"type":CONFIG.project_quit,"mainId":id,"typeFileId":"","active":1});
+    if (id == null || id == '') {
+        url = "/enterprise/talent/findTalentInfoInLibrary/type/" + CONFIG.project_quit;
+    } else {
+        url = "/enterprise/talent/findTalentInfoByChangeId/type/" + CONFIG.project_quit + "/id/" + id;
+        Feng.getCheckLog("logTable", {"type": CONFIG.project_quit, "mainId": id, "typeFileId": "", "active": 1});
     }
     Feng.addAjaxSelect({
         "id": 'talentId',
@@ -437,27 +439,27 @@ $(function() {
         "url": Feng.ctxPath + url
     });
     //批量加载时间控件
-    $(".time").each(function(){
+    $(".time").each(function () {
         laydate.render({
-            elem: "#"+$(this).attr("id")
-            ,type: "date"
-            ,trigger: 'click'
+            elem: "#" + $(this).attr("id")
+            , type: "date"
+            , trigger: 'click'
         });
     });
     $("select").each(function () {
         $(this).val($(this).attr("value"));
     });
-    if(id!=null && id!=''){
+    if (id != null && id != '') {
         $("#fileLi").removeAttr("style");
-    }else{
-        $("#fileLi").attr("style","pointer-events: none");
-        $("#talentId").on('chosen:ready', function(e, params) {
-            $(".chosen-container-single .chosen-single").css("padding","4px 0px 0px 10px");
+    } else {
+        $("#fileLi").attr("style", "pointer-events: none");
+        $("#talentId").on('chosen:ready', function (e, params) {
+            $(".chosen-container-single .chosen-single").css("padding", "4px 0px 0px 10px");
         });
         $("#talentId").chosen({
-            search_contains:true,       //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
+            search_contains: true,       //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
             disable_search: false,
-            width:"100%",
+            width: "100%",
             enable_split_word_search: true
         });
     }

+ 99 - 99
public/static/modular/gate/talentLibrary/talentQuit/talentQuit_select.js

@@ -2,20 +2,20 @@
  * 初始化离职管理详情对话框
  */
 var TalentQuitInfoDlg = {
-    talentQuitInfoData : {},
+    talentQuitInfoData: {},
     validateFields: {
-        talentId: {validators: {notEmpty: {message: '离职对象不能为空' }}},
-        starttime : {validators: {notEmpty: {message: '合同开始时间不能为空' }}},
-        endtime : {validators: {notEmpty: {message: '合同结束时间不能为空' }}},
+        talentId: {validators: {notEmpty: {message: '离职对象不能为空'}}},
+        starttime: {validators: {notEmpty: {message: '合同开始时间不能为空'}}},
+        endtime: {validators: {notEmpty: {message: '合同结束时间不能为空'}}},
         quitTime: {validators: {notEmpty: {message: '离职时间不能为空'}}},
         phone: {
             validators: {
                 notEmpty: {
                     message: '手机号码不能为空'
                 },
-                regexp :{
+                regexp: {
                     regexp: /0?(13|14|15|17|18|19)[0-9]{9}/,
-                    message:"手机号码格式不正确"
+                    message: "手机号码格式不正确"
                 }
             }
         }
@@ -25,7 +25,7 @@ var TalentQuitInfoDlg = {
 /**
  * 清除数据
  */
-TalentQuitInfoDlg.clearData = function() {
+TalentQuitInfoDlg.clearData = function () {
     this.talentQuitInfoData = {};
 }
 
@@ -35,7 +35,7 @@ TalentQuitInfoDlg.clearData = function() {
  * @param key 数据的名称
  * @param val 数据的具体值
  */
-TalentQuitInfoDlg.set = function(key, val) {
+TalentQuitInfoDlg.set = function (key, val) {
     this.talentQuitInfoData[key] = (typeof val == "undefined") ? $("#" + key).val() : val;
     return this;
 }
@@ -46,35 +46,35 @@ TalentQuitInfoDlg.set = function(key, val) {
  * @param key 数据的名称
  * @param val 数据的具体值
  */
-TalentQuitInfoDlg.get = function(key) {
+TalentQuitInfoDlg.get = function (key) {
     return $("#" + key).val();
 }
 
 /**
  * 关闭此对话框
  */
-TalentQuitInfoDlg.close = function() {
+TalentQuitInfoDlg.close = function () {
     parent.layer.close(window.parent.TalentQuit.layerIndex);
 }
 
 /**
  * 收集数据
  */
-TalentQuitInfoDlg.collectData = function() {
+TalentQuitInfoDlg.collectData = function () {
     this
-        .set('id')
-        .set('talentId')
-        .set('talentName')
-        .set('enterpriseId')
-        .set('enterpriseName')
-        .set('idCard')
-        .set('talentArrange')
-        .set('identifyTime')
-        .set('starttime')
-        .set('endtime')
-        .set('phone')
-        .set('quitTime')
-        .set('description');
+            .set('id')
+            .set('talentId')
+            .set('talentName')
+            .set('enterpriseId')
+            .set('enterpriseName')
+            .set('idCard')
+            .set('talentArrange')
+            .set('identifyTime')
+            .set('starttime')
+            .set('endtime')
+            .set('phone')
+            .set('quitTime')
+            .set('description');
 }
 
 /**
@@ -89,41 +89,41 @@ TalentQuitInfoDlg.validate = function () {
 /**
  * 提交添加
  */
-TalentQuitInfoDlg.addSubmit = function() {
+TalentQuitInfoDlg.addSubmit = function () {
     this.clearData();
     this.collectData();
-    if(!this.validate()){
+    if (!this.validate()) {
         return;
     }
     var id = $("#id").val();
     //提交信息
-    if(this.talentQuitInfoData.id!=null && this.talentQuitInfoData.id!=''){
+    if (this.talentQuitInfoData.id != null && this.talentQuitInfoData.id != '') {
         //提交信息
-        var ajax = new $ax(Feng.ctxPath + "/api/talentQuit/update", function(data){
-            if(data.code=="200"){
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/talent_quit/apply", function (data) {
+            if (data.code == "200") {
                 Feng.success(data.msg);
                 window.parent.TalentQuit.table.refresh();
                 TalentQuitInfoDlg.close();
-            }else{
+            } else {
                 Feng.info(data.msg);
             }
-        },function(data){
+        }, function (data) {
             Feng.error("修改失败!" + data.responseJSON.message + "!");
         });
         ajax.set(this.talentQuitInfoData);
         ajax.start();
-    }else{
-        var ajax = new $ax(Feng.ctxPath + "/api/talentQuit/add", function(data){
-            if(data.code=="200"){
+    } else {
+        var ajax = new $ax(Feng.ctxPath + "/enterprise/talent_quit/apply", function (data) {
+            if (data.code == "200") {
                 Feng.success(data.msg);
                 $("#fileLi").removeAttr("style");
                 $("#id").val(data.obj.id);
                 $("#checkState").val(data.obj.checkState);
                 window.parent.TalentQuit.table.refresh();
-            }else{
+            } else {
                 Feng.info(data.msg);
             }
-        },function(data){
+        }, function (data) {
             Feng.error("添加失败!" + data.responseJSON.message + "!");
         });
         ajax.set(this.talentQuitInfoData);
@@ -135,95 +135,95 @@ TalentQuitInfoDlg.addSubmit = function() {
 /**
  * 提交修改
  */
-TalentQuitInfoDlg.editSubmit = function() {
+TalentQuitInfoDlg.editSubmit = function () {
     this.clearData();
     this.collectData();
-    if(!this.validate()){
+    if (!this.validate()) {
         return;
     }
     //提交信息
-    var ajax = new $ax(Feng.ctxPath + "/api/talentQuit/update", function(data){
-        if(data.code=="200"){
+    var ajax = new $ax(Feng.ctxPath + "/enterprise/talent_quit/apply", function (data) {
+        if (data.code == "200") {
             Feng.success(data.msg);
             window.parent.TalentQuit.table.refresh();
             TalentQuitInfoDlg.close();
-        }else{
+        } else {
             Feng.info(data.msg);
         }
-    },function(data){
+    }, function (data) {
         Feng.error("修改失败!" + data.responseJSON.message + "!");
     });
     ajax.set(this.talentQuitInfoData);
     ajax.start();
 }
 //点击按钮初始化
-TalentQuitInfoDlg.talentInfoDetail = function (){
+TalentQuitInfoDlg.talentInfoDetail = function () {
     var talentId = $("#talentId").val();
-    var ajax = new $ax(Feng.ctxPath + "/api/talentInfo/detail/"+talentId, function(data){
+    var ajax = new $ax(Feng.ctxPath + "/enterprise/talent/detail/id/" + talentId, function (data) {
         $("#enterpriseId").val(data.enterpriseId);
         $("#talentName").val(data.name);
         $("#idCard").val(data.idCard);
         $("#identifyTime").val(data.identifyGetTime);
         $("#enterpriseName").val(data.enterpriseName);
         $("#talentArrange").val(data.talentArrange);
-    },function(data){
+    }, function (data) {
         Feng.error("查询失败!" + data.responseJSON.message + "!");
     });
     ajax.set();
     ajax.start();
 }
 //附件初始化
-TalentQuitInfoDlg.initFileTable = function(){
+TalentQuitInfoDlg.initFileTable = function () {
     var queryData = {};
     queryData['project'] = CONFIG.project_quit;
     queryData['type'] = $("#type").val();
     $("#fileTable").bootstrapTable({
-        url: Feng.ctxPath + "/api/talentInfo/findUnCommonFileType",
+        url: Feng.ctxPath + "/common/api/findUnCommonFileType",
         method: 'POST',
         contentType: "application/x-www-form-urlencoded; charset=UTF-8",
-        search: false,					// 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
-        showRefresh: false,				// 是否显示刷新按钮
-        clickToSelect: true,			// 是否启用点击选中行
-        singleSelect: true,				// 设置True 将禁止多选
-        striped: true,  				// 是否显示行间隔色
+        search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端
+        showRefresh: false, // 是否显示刷新按钮
+        clickToSelect: true, // 是否启用点击选中行
+        singleSelect: true, // 设置True 将禁止多选
+        striped: true, // 是否显示行间隔色
         escape: true,
-        pagination: false,   			// 设置为 true 会在表格底部显示分页条
+        pagination: false, // 设置为 true 会在表格底部显示分页条
         paginationHAlign: "left",
         paginationDetailHAlign: "right",
-        sidePagination: "server",   	// 设置在哪里进行分页,可选值为 'client' 或者 'server'
+        sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server'
         showColumns: false,
-        detailView: true,               //是否显示父子表
+        detailView: true, //是否显示父子表
         pageList: [10, 30, 50],
         queryParams: function (params) {
-            return $.extend(queryData,params)
+            return $.extend(queryData, params)
         },
         rowStyle: function (row, index) {
-            return {classes:"info"};
+            return {classes: "info"};
         },
         columns:
-            [
-                {field: 'selectItem', checkbox:false,visible:false},
-                {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle',width:"30%",'class': 'uitd_showTip',
-                    formatter : function(value,row,index){
-                        if(row.must==1){
-                            return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> '+ value;
-                        }if(row.must==2){
-                            return '<i class="fa fa-paste"></i>'+value;
+                [
+                    {field: 'selectItem', checkbox: false, visible: false},
+                    {title: '名称', field: 'name', visible: true, align: 'center', valign: 'middle', width: "30%", 'class': 'uitd_showTip',
+                        formatter: function (value, row, index) {
+                            if (row.must == 1) {
+                                return '<i class="fa fa-paste"></i><span style="font-weight:bold;color:red;font-size:14px;font-family:宋体"> * </span> ' + value;
+                            }
+                            if (row.must == 2) {
+                                return '<i class="fa fa-paste"></i>' + value;
+                            }
                         }
-                    }
-                },
-                {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle',width:"8%",
-                    formatter : function(value,row,index){
-                        if(value==null||value==''||value=='null'){
-                            return '无';
+                    },
+                    {title: '模板', field: 'templateUrl', visible: true, align: 'center', valign: 'middle', width: "8%",
+                        formatter: function (value, row, index) {
+                            if (value == null || value == '' || value == 'null') {
+                                return '无';
+                            }
+                            return "<button type='button' onclick=\"TalentQuitInfoDlg.downloadFile('" + row.id + "',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
+                                    "<i class=\"fa fa-download\"></i>下载" +
+                                    "</button>";
                         }
-                        return "<button type='button' onclick=\"TalentQuitInfoDlg.downloadFile('"+row.id+"',3)\" style='margin-right: 10px' class=\"btn btn-xs btn-primary\">" +
-                            "<i class=\"fa fa-download\"></i>下载" +
-                            "</button>";
-                    }
-                },
-
-            ]
+                    },
+                ]
         ,
         onPostBody: function () {
             $("td.uitd_showTip").bind("mouseover", function () {
@@ -235,25 +235,25 @@ TalentQuitInfoDlg.initFileTable = function(){
             $("#fileTable").bootstrapTable('expandAllRows');
         },
         onExpandRow: function (index, row, $detail) {
-            var ajax = new $ax(Feng.ctxPath + "/api/talentCommonFile/listTalentCommonFile", function (data) {
-                if(data==null||data.length==0){
+            var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentCommonFile", function (data) {
+                if (data == null || data.length == 0) {
                     return;
                 }
                 var html = '<ul class="imgs"><li style="width: 80%;font-weight: bold;padding-top: 5px;">附件原名</li><li style="width: 20%;font-weight: bold;padding-top: 5px;">预览</li>';
-                for(var key in data){
+                for (var key in data) {
                     var sn = data[key].url.lastIndexOf(".");
-                    var suffix = data[key].url.substring(sn+1,data[key].url.length);
+                    var suffix = data[key].url.substring(sn + 1, data[key].url.length);
                     var imgStr = "";
-                    if(suffix=="pdf"||suffix=="PDF"){
-                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('"+data[key].url+"','"+data[key].id+"','"+data[key].orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
-                    }else if(suffix == "xlsx" || suffix=="XLSX" || suffix == 'xls' || suffix == 'XLS'){
-                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('"+data[key].url+"','"+data[key].id+"','"+data[key].orignName+"')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
-                    }else{
-                        imgStr = '<img class=\"imgUrl\"  src=\"'+data[key].url+'\" style=\"width:25px;height:25px;\">';
+                    if (suffix == "pdf" || suffix == "PDF") {
+                        imgStr = "<button type='button'  onclick=\"Feng.showPdf('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\"></i></button>";
+                    } else if (suffix == "xlsx" || suffix == "XLSX" || suffix == 'xls' || suffix == 'XLS') {
+                        imgStr = "<button type='button'  onclick=\"Feng.showExcel('" + data[key].url + "','" + data[key].id + "','" + data[key].orignName + "')\" class=\"btn btn-xs btn-danger\"><i class=\"fa fa-file-excel-o\" aria-hidden=\"true\"></i></button>";
+                    } else {
+                        imgStr = '<img class=\"imgUrl\"  src=\"' + data[key].url + '\" style=\"width:25px;height:25px;\">';
                     }
-                    html = html + '<li style="display: none">'+data[key].id+'</li>\n'+
-                        '<li style="width: 80%;padding-top: 5px;">'+data[key].orignName+'</li>\n'+
-                        '<li style="width: 20%;">'+imgStr+'</li>\n';
+                    html = html + '<li style="display: none">' + data[key].id + '</li>\n' +
+                            '<li style="width: 80%;padding-top: 5px;">' + data[key].orignName + '</li>\n' +
+                            '<li style="width: 20%;">' + imgStr + '</li>\n';
                 }
                 html = html + '</ul>';
                 $detail.html(html);
@@ -271,24 +271,24 @@ TalentQuitInfoDlg.initFileTable = function(){
 }
 
 
-TalentQuitInfoDlg.downloadFile = function (id,type){
-    window.location.href = Feng.ctxPath + "/api/common/downloadFile?id=" + id + "&type="+type;
+TalentQuitInfoDlg.downloadFile = function (id, type) {
+    window.location.href = Feng.ctxPath + "/common/api/downloadFile?id=" + id + "&type=" + type;
 }
 
 
 
 
-$(function() {
+$(function () {
     Feng.initValidator("talentQuitForm", TalentQuitInfoDlg.validateFields);
     Feng.addAjaxSelect({
         "id": 'talentArrange',
         "displayCode": "code",
         "displayName": "name",
         "type": "GET",
-        "url": Feng.ctxPath + "/api/common/findChildDictByCode?code=un_talentLevel"
+        "url": Feng.ctxPath + "/common/tool/findChildDictByCode?code=talent_arrange"
     });
     var id = $("#id").val();
-    var url = Feng.isEmptyStr(id)?"/api/talentInfo/findTalentInfoInLibrary":"/api/talentInfo/findTalentInfoByChangeId/"+CONFIG.project_quit+"/"+id;
+    var url = Feng.isEmptyStr(id) ? "/enterprise/talent/findTalentInfoInLibrary/type/" + CONFIG.project_quit : "/enterprise/talent/findTalentInfoByChangeId/type/" + CONFIG.project_quit + "/id/" + id;
     Feng.addAjaxSelect({
         "id": 'talentId',
         "displayCode": "id",
@@ -299,10 +299,10 @@ $(function() {
     $("select").each(function () {
         $(this).val($(this).attr("value"));
     });
-    if(id!=null && id!=''){
+    if (id != null && id != '') {
         $("#fileLi").removeAttr("style");
-    }else{
-        $("#fileLi").attr("style","pointer-events: none");
+    } else {
+        $("#fileLi").attr("style", "pointer-events: none");
     }
 
 });

+ 54 - 50
public/static/modular/talentLibrary/talentQuit/talentQuit.js

@@ -2,8 +2,8 @@
  * 离职管理管理初始化
  */
 var TalentQuit = {
-    id: "TalentQuitTable",	//表格id
-    seItem: null,		//选中的条目
+    id: "TalentQuitTable", //表格id
+    seItem: null, //选中的条目
     table: null,
     layerIndex: -1
 };
@@ -14,42 +14,46 @@ var TalentQuit = {
 TalentQuit.initColumn = function () {
     var type = $("#type").val();
     var isShow = true;
-    if(type==2){
+    if (type == 2) {
         isShow = false;
     }
     return [
         {field: 'selectItem', radio: true},
-        {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
-        {title: '姓名', field: 'talentName', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
-        {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle',width:"150px",'class': 'uitd_showTip'},
-        {title: '离职企业', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
-        {title: '人才标签', field: 'talentTypeName', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
-        {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle',width:"80px",'class': 'uitd_showTip'},
-        {title: '认定时间', field: 'identifyTime', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
-        {title: '合同开始时间', field: 'starttime', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
-        {title: '合同结束时间', field: 'endtime', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
-        {title: '离职时间', field: 'quitTime', visible: true, align: 'center', valign: 'middle',width:"100px",'class': 'uitd_showTip'},
-        {title: '离职申报原因', field: 'quitReason', visible: isShow, align: 'center', valign: 'middle',width:"120px",'class': 'uitd_showTip'},
-        {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle',width:"80px",
-            formatter : function (value,row,index) {
-                if(value==-1){
+        {title: '年度', field: 'year', visible: true, align: 'center', valign: 'middle', width: "80px", 'class': 'uitd_showTip'},
+        {title: '姓名', field: 'talentName', visible: true, align: 'center', valign: 'middle', width: "80px", 'class': 'uitd_showTip'},
+        {title: '证件号码', field: 'idCard', visible: true, align: 'center', valign: 'middle', width: "150px", 'class': 'uitd_showTip'},
+        {title: '离职企业', field: 'enterpriseName', visible: true, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
+        {title: '人才标签', field: 'talentTypeName', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
+        {title: '人才层次', field: 'talentArrangeName', visible: true, align: 'center', valign: 'middle', width: "80px", 'class': 'uitd_showTip'},
+        {title: '认定时间', field: 'identifyTime', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
+        {title: '合同开始时间', field: 'starttime', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
+        {title: '合同结束时间', field: 'endtime', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
+        {title: '离职时间', field: 'quitTime', visible: true, align: 'center', valign: 'middle', width: "100px", 'class': 'uitd_showTip'},
+        {title: '离职申报原因', field: 'quitReason', visible: isShow, align: 'center', valign: 'middle', width: "120px", 'class': 'uitd_showTip'},
+        {title: '审核状态', field: 'checkState', visible: true, align: 'center', valign: 'middle', width: "80px",
+            formatter: function (value, row, index) {
+                if (value == -1) {
                     return '<span class=\'label\'>待提交</span>';
-                }if(value==1){
+                }
+                if (value == 1) {
                     return '<span class=\'label label-success\'>待审核</span>';
-                }if(value==2){
+                }
+                if (value == 2) {
                     return '<span class=\'label label-danger\'>已驳回</span>';
-                }if(value==3){
+                }
+                if (value == 3) {
                     return '<span class=\'label label-primary\'>已通过</span>';
-                }if(value==9){
+                }
+                if (value == 9) {
                     return '<span class=\'label label-success\'>重新提交</span>';
                 }
             }
         },
-        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',width:"80px",
-            formatter: function (value,row,index) {
-                return "<span class='label label-success' onclick=\"TalentQuit.showLog('"+value+"')\" >" +
-                    "<i class=\"fa fa-book\"></i>日志" +
-                    "</span>";
+        {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle', width: "80px",
+            formatter: function (value, row, index) {
+                return "<span class='label label-success' onclick=\"TalentQuit.showLog('" + value + "')\" >" +
+                        "<i class=\"fa fa-book\"></i>日志" +
+                        "</span>";
             }
         },
     ];
@@ -60,10 +64,10 @@ TalentQuit.initColumn = function () {
  */
 TalentQuit.check = function () {
     var selected = $('#' + this.id).bootstrapTable('getSelections');
-    if(selected.length == 0){
+    if (selected.length == 0) {
         Feng.info("请先选中表格中的某一记录!");
         return false;
-    }else{
+    } else {
         TalentQuit.seItem = selected[0];
         return true;
     }
@@ -75,16 +79,16 @@ TalentQuit.check = function () {
  */
 TalentQuit.openTalentQuitCheck = function () {
     if (this.check()) {
-        if(TalentQuit.seItem.checkState!=1 && TalentQuit.seItem.checkState!=9){
+        if (TalentQuit.seItem.checkState != 1 && TalentQuit.seItem.checkState != 9) {
             Feng.info("不在审核范围内");
-            return ;
+            return;
         }
         var index = layer.open({
             type: 2,
             title: '离职管理审核',
             fix: false, //不固定
             maxmin: true,
-            content: Feng.ctxPath + '/talentQuit/talentQuit_check/' + TalentQuit.seItem.id,
+            content: Feng.ctxPath + '/admin/talent_quit/detail/' + TalentQuit.seItem.id,
             btn: ['<i class="fa fa-check"></i>&nbsp;&nbsp;审核', '<i class="fa fa-eraser"></i>&nbsp;&nbsp;取消'],
             btnAlign: 'c',
             yes: function (index, layero) {
@@ -108,7 +112,7 @@ TalentQuit.openTalentQuitDetail = function () {
             title: '离职管理详情',
             fix: false, //不固定
             maxmin: true,
-            content: Feng.ctxPath + '/talentQuit/talentQuit_check/' + TalentQuit.seItem.id
+            content: Feng.ctxPath + '/admin/talent_quit/detail/id/' + TalentQuit.seItem.id
         });
         TalentQuit.layerIndex = index;
         layer.full(index);
@@ -120,7 +124,7 @@ TalentQuit.openTalentQuitDetail = function () {
  * 查询表单提交参数对象
  * @returns {{}}
  */
-TalentQuit.formParams = function() {
+TalentQuit.formParams = function () {
     var queryData = {};
     queryData['talentName'] = $("#talentName").val();
     queryData['idCard'] = $("#idCard").val();
@@ -133,7 +137,7 @@ TalentQuit.formParams = function() {
 /**
  * 重置
  */
-TalentQuit.reset = function (){
+TalentQuit.reset = function () {
     $("#talentName").val("");
     $("#idCard").val("");
     $("#enterpriseName").val("");
@@ -152,14 +156,14 @@ TalentQuit.search = function () {
 /**
  * 导出
  */
-TalentQuit.export = function (){
+TalentQuit.export = function () {
     var queryData = TalentQuit.formParams();
-    var url = Feng.ctxPath + "/talentQuit/export?" +
-        "&talentName=" + queryData.talentName +
-        "&idCard=" + queryData.idCard +
-        "&enterpriseName=" + queryData.enterpriseName +
-        "&talentArrange=" + queryData.talentArrange +
-        "&checkState=" + queryData.checkState ;
+    var url = Feng.ctxPath + "/admin/talent_quit/export?" +
+            "&talentName=" + queryData.talentName +
+            "&idCard=" + queryData.idCard +
+            "&enterpriseName=" + queryData.enterpriseName +
+            "&talentArrange=" + queryData.talentArrange +
+            "&checkState=" + queryData.checkState;
     window.location.href = encodeURI(encodeURI(url));
 }
 
@@ -169,7 +173,7 @@ TalentQuit.export = function (){
  */
 TalentQuit.download = function () {
     if (this.check()) {
-        window.location.href = encodeURI(encodeURI(Feng.ctxPath + "/api/commonDownload/downloadZip?type=3&id="+TalentQuit.seItem.id));
+        window.location.href = encodeURI(encodeURI(Feng.ctxPath + "/common/api/downloadZip?type=3&id=" + TalentQuit.seItem.id));
     }
 }
 
@@ -177,16 +181,16 @@ TalentQuit.download = function () {
 /**
  * 显示审核日志
  */
-TalentQuit.showLog = function (id){
+TalentQuit.showLog = function (id) {
     layer.open({
         type: 1,
-        title:"日志",
-        fixed:false,
-        content: '<table id="'+id+'"></table>',
+        title: "日志",
+        fixed: false,
+        content: '<table id="' + id + '"></table>',
         area: ['80%', '80%'],
         maxmin: true,
-        success :function (layero, index) {
-            Feng.getCheckLog(id,{"type":CONFIG.project_quit,"mainId":id,"typeFileId":"","active":1})
+        success: function (layero, index) {
+            Feng.getCheckLog(id, {"type": CONFIG.project_quit, "mainId": id, "typeFileId": "", "active": 1})
         }
     });
 
@@ -194,7 +198,7 @@ TalentQuit.showLog = function (id){
 
 $(function () {
     var defaultColunms = TalentQuit.initColumn();
-    var table = new BSTable(TalentQuit.id, "/talentQuit/list", defaultColunms);
+    var table = new BSTable(TalentQuit.id, "/admin/talent_quit/list", defaultColunms);
     table.setPaginationType("server");
     TalentQuit.table = table.init();
     Feng.addAjaxSelect({
@@ -202,6 +206,6 @@ $(function () {
         "displayCode": "code",
         "displayName": "name",
         "type": "GET",
-        "url": Feng.ctxPath + "/api/common/findChildDictByCode?code=un_talentLevel"
+        "url": Feng.ctxPath + "/common/tool/findChildDictByCode?code=talent_arrange"
     });
 });