更新3
This commit is contained in:
parent
ee0f1a6ac6
commit
124b0b42c2
@ -23,7 +23,7 @@ class Article extends BaseController
|
|||||||
|
|
||||||
public function index($params)
|
public function index($params)
|
||||||
{
|
{
|
||||||
$where[]=['status','=',1];
|
$where['status']=1;
|
||||||
if (isset($params['keywords'])){
|
if (isset($params['keywords'])){
|
||||||
$where[]=['title','like','%'.$params['keywords'].'%'];
|
$where[]=['title','like','%'.$params['keywords'].'%'];
|
||||||
}
|
}
|
||||||
|
@ -214,6 +214,7 @@
|
|||||||
},
|
},
|
||||||
data: [],
|
data: [],
|
||||||
radio: true,
|
radio: true,
|
||||||
|
initValue: ["{$row.street_id}"],
|
||||||
disabled: group_access == 2 ? true : false,
|
disabled: group_access == 2 ? true : false,
|
||||||
on: function (data) {
|
on: function (data) {
|
||||||
var arr = data.arr;
|
var arr = data.arr;
|
||||||
@ -224,6 +225,9 @@
|
|||||||
demo1.update({
|
demo1.update({
|
||||||
data: result.data
|
data: result.data
|
||||||
})
|
})
|
||||||
|
if("{$row.street_id}"!=''){
|
||||||
|
village("{$row.street_id}")
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function village (id) {
|
function village (id) {
|
||||||
@ -236,6 +240,7 @@
|
|||||||
},
|
},
|
||||||
data: [],
|
data: [],
|
||||||
radio: true,
|
radio: true,
|
||||||
|
initValue: ["{$row.village_code}"],
|
||||||
disabled: group_access == 2 ? true : false,
|
disabled: group_access == 2 ? true : false,
|
||||||
})
|
})
|
||||||
var demo3 = xmSelect.render({
|
var demo3 = xmSelect.render({
|
||||||
@ -247,7 +252,6 @@
|
|||||||
},
|
},
|
||||||
data: [],
|
data: [],
|
||||||
radio: true,
|
radio: true,
|
||||||
disabled: group_access == 2 ? true : false,
|
|
||||||
})
|
})
|
||||||
$.get('/api/geo/village?pcode=' + id, function (result) {
|
$.get('/api/geo/village?pcode=' + id, function (result) {
|
||||||
demo2.update({
|
demo2.update({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user