diff --git a/ruoyi-admin/src/main/resources/templates/system/filedestory/detail.html b/ruoyi-admin/src/main/resources/templates/system/filedestory/detail.html index 44be179..43a4cef 100644 --- a/ruoyi-admin/src/main/resources/templates/system/filedestory/detail.html +++ b/ruoyi-admin/src/main/resources/templates/system/filedestory/detail.html @@ -5,22 +5,32 @@ -
+
- +
- +
- +
- +
@@ -128,7 +138,48 @@ $("#form-filereceive-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 + }) , + }); + } + } + }) function submitHandler() { if ($.validate.form()) { $.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize());