diff --git a/admin/controllers/biz/Srv.php b/admin/controllers/biz/Srv.php index 25fb6a07..25281cef 100644 --- a/admin/controllers/biz/Srv.php +++ b/admin/controllers/biz/Srv.php @@ -21,6 +21,7 @@ class Srv extends HD_Controller{ $params = $this->input->get(); $params['id'] && $_SESSION['srv_biz_id'] = $params['id']; !$params['type'] && $params['type'] = ''; + !$params['title'] && $params['title'] = ''; !strlen($params['status']) && $params['status'] = ''; $page = $params['page'] ? $params['page'] : 1; $pagesize = 20; @@ -30,6 +31,7 @@ class Srv extends HD_Controller{ ]; strlen($params['status']) && $where['status'] = $params['status']; $params['type'] && $where['type'] = $params['type']; + $params['title'] && $where['title'] = $params['title']; $count = $this->biz_settle_srv_model->count($where); $lists = []; if($count){ @@ -219,4 +221,18 @@ class Srv extends HD_Controller{ public function export(){ } + + public function get_title(){ + $biz_id = intval($_SESSION['srv_biz_id']); + $type = $this->input->get('type'); + !$type && $type=1; + $where = [ + 'type' => $type, + 'biz_id' => $biz_id, + 'status' => 1 + ]; + $rows = $this->biz_settle_srv_model->select_groupby('title', $where, '', 0, 20, 'id,title'); + $this->data['lists'] = $rows; + return $this->show_json(SYS_CODE_SUCCESS, '保存成功'); + } } diff --git a/admin/views/biz/srv/lists.php b/admin/views/biz/srv/lists.php index 9703c14a..49b06f7e 100755 --- a/admin/views/biz/srv/lists.php +++ b/admin/views/biz/srv/lists.php @@ -21,6 +21,15 @@ +
+ +
+ +
+
@@ -91,7 +100,8 @@ el: '#vue-app', data: { params: [], - typeAry: + typeAry:, + titleAry:[] }, mounted: function () { var vm = this; @@ -100,6 +110,20 @@ methods: { }, watch: { + 'params.type': function (nv, ov) { + if(nv){ + var that = this; + console.log(nv); + var data = {"type":nv} + $.get('/biz/srv/get_title',data,function(result){ + if(result.code && result.data.lists){ + that.titleAry = result.data.lists + } + },'json') + }else{ + that.titleAry = [] + } + } } }); $(function () { diff --git a/admin/views/receiver/orderv2/get/loaninfo.php b/admin/views/receiver/orderv2/get/loaninfo.php index 885bd50e..b41e8e86 100644 --- a/admin/views/receiver/orderv2/get/loaninfo.php +++ b/admin/views/receiver/orderv2/get/loaninfo.php @@ -64,7 +64,8 @@ -
+
+
@@ -97,7 +98,8 @@ -
+
+