@@ -287,7 +297,48 @@
$.operate.save(prefix + "/checkresult", $('#form-check-edit').serialize());
}
}
-
+ var app = new Vue({
+ el: '#app',
+ data: {
+ CityList: [],
+ AreaList:[],
+ City:[[${tdCheck.framework}]],
+ Area:[[${tdCheck.area}]],
+ params:{
+ parentId:'',
+ }
+ },
+ mounted(){
+ // 初始化地市列表
+ this.getCityList();
+ if (this.City){
+ this.getAreaList()
+ }
+ },
+ methods:{
+ getCityList(){
+ $.ajax({
+ url: ctx + "system/area/getSysAreaList",
+ type: 'GET',
+ data:this.params ,
+ success:((res)=>{
+ this.CityList = res.data
+ }) ,
+ });
+ },
+ getAreaList(){
+ this.params.parentId = this.City
+ $.ajax({
+ url: ctx + "system/area/getSysAreaList",
+ type: 'GET',
+ data:this.params,
+ success:((res)=>{
+ this.AreaList = res.data
+ }) ,
+ });
+ }
+ }
+ })
$("input[name='checkStartTime']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",