+
@@ -124,6 +134,48 @@
$("#form-fileprovide-edit").validate({
focusCleanup: true
});
+ var app = new Vue({
+ el: '#app',
+ data: {
+ CityList: [],
+ AreaList:[],
+ City:[[${tdFileProvide.frameworkId}]],
+ Area:[[${tdFileProvide.areaid}]],
+ 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
+ }) ,
+ });
+ }
+ }
+ })
var updateDate = document.querySelector('#updateDate').value;
var provideDate = document.querySelector('#provideDate').value;
if (updateDate != null && updateDate !== ''){