From 615c2ed431f71ea5c6264f2dd82be9ce90b216b3 Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Wed, 5 Jun 2024 15:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=94=80=E6=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/system/filedestory/detail.html | 63 +++++++++++++++++-- 1 file changed, 57 insertions(+), 6 deletions(-) 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());