| | |
| | | }; |
| | | |
| | | /** |
| | | * 打开区域选择页面 |
| | | * 打开区域选择页面编辑 |
| | | */ |
| | | TDriver.area = function () { |
| | | TDriver.areaUpdate = function () { |
| | | |
| | | var area = $("#area").val(); |
| | | var areaId = $("#areaId").val(); |
| | |
| | | area: ['1000px', '270px'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tDriver/areaPage?area='+area+'&areaId='+areaId |
| | | content: Feng.ctxPath + '/tDriver/areaPageUpdate?area='+area+'&areaId='+areaId |
| | | }); |
| | | this.layerIndex = index; |
| | | } |
| | | /** |
| | | * 打开区域选择页面新增 |
| | | */ |
| | | TDriver.areaAdd = function () { |
| | | var index = layer.open({ |
| | | type: 2, |
| | | title: '区域选择', |
| | | area: ['1000px', '270px'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tDriver/areaPageAdd' |
| | | }); |
| | | this.layerIndex = index; |
| | | } |
| | |
| | | |
| | | parent.$("#area").val(provinceName+'/'+cityName+'/'+districtName) |
| | | parent.$("#areaId").val(provinceId+'/'+cityId+'/'+districtId) |
| | | console.log() |
| | | TDriverInfoDlg.close(); |
| | | } |
| | | |
| | | /** |
| | | * 重置市区 |
| | | */ |
| | | TDriver.resetArea = function () { |
| | | |
| | | var city = document.getElementById('city'); |
| | | var cityIndex= city.selectedIndex ; |
| | | console.log(city.options[cityIndex].innerText) |
| | | city.options[cityIndex].innerText = "请选择市"; |
| | | |
| | | var district = document.getElementById('district'); |
| | | var districtIndex= district.selectedIndex ; |
| | | console.log(district.options[districtIndex].innerText) |
| | | district.options[districtIndex].innerText = "请选择区"; |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 打开编辑页面 |
| | | */ |
| | | TDriver.updateInfo = function (id) { |