Quellcode durchsuchen

生活补贴审核端1

sugangqiang vor 1 Jahr
Ursprung
Commit
7ffe051edc

+ 43 - 0
app/admin/controller/LivingAllowance.php

@@ -0,0 +1,43 @@
+<?php
+
+namespace app\admin\controller;
+
+use app\admin\common\AdminController;
+use app\common\api\ChuanglanSmsApi;
+use app\common\api\EnterpriseApi;
+use think\facade\Db;
+
+/**
+ * Description of LivingAllowance
+ *
+ * @author sgq
+ */
+class LivingAllowance extends AdminController {
+
+    public function index() {
+        $enterpriseList = EnterpriseApi::getSimpleList();
+        $provinceList = \app\common\api\LocationApi::findProvinceSelect();
+        $process = $this->request->param("process");
+        $message = [];
+        if ($this->user["type"] == 1) {
+            $message["typeName"] = "晋江市硕博人才生活补贴申报";
+            $message["address"] = "聚才网/人才晋江微信公众号";
+            $message["dep"] = "中共晋江市委人才办、晋江市纪委监委驻市人力资源和社会保障局纪检监察组或晋江市公共就业和人才服务中心";
+            $message["phone"] = "0595-85633128";
+            $message["email"] = "jjrc85661234@163.com";
+        } else if ($this->user["type"] == 2) {
+            $message["typeName"] = "晋江市硕博人才生活补贴申报";
+            $message["address"] = "福建(晋江)集成电路产业园官方网站及微信公众号";
+            $message["dep"] = "集成电路产业园区";
+            $message["phone"] = "0595-82250007、0595-82250001";
+            $message["email"] = "jjjcdr@163.com";
+        }
+        return view("", ["enterpriseList" => $enterpriseList, "provinceList" => $provinceList, "process" => $process, "message" => $message]);
+    }
+
+    public function list() {
+        $returnObj = new \stdClass();
+        return json($returnObj);
+    }
+
+}

+ 20 - 0
app/common/api/LocationApi.php

@@ -0,0 +1,20 @@
+<?php
+
+namespace app\common\api;
+
+use think\facade\Db;
+
+/**
+ * Description of LocationApi
+ *
+ * @author sgq
+ */
+class LocationApi {
+
+    public static function findProvinceSelect() {
+        $where = [];
+        $where[] = ["code", "like", "%0000"];
+        return Db::table("un_common_location")->where($where)->select()->toArray();
+    }
+
+}

+ 1 - 1
public/static/modular/master/livingAllowanceInfo/livingAllowanceInfo.js

@@ -1304,7 +1304,7 @@ LivingAllowanceInfo.reset = function () {
 
 $(function () {
     var defaultColunms = LivingAllowanceInfo.initColumn();
-    var table = new BSTable(LivingAllowanceInfo.id, "/livingAllowanceInfo/list?process=" + $("#process").val(), defaultColunms);
+    var table = new BSTable(LivingAllowanceInfo.id, "/admin/living_allowance/list?process=" + $("#process").val(), defaultColunms);
     table.setPaginationType("server");
     table.setOnDblClickRow(function () {
         LivingAllowanceInfo.openCheckLivingAllowanceInfo($("#process").val());