|
@@ -20,7 +20,7 @@
|
|
|
:options="regionList"
|
|
|
:field-names="{ label: 'name', value: 'code' }"
|
|
|
:allow-clear="true"
|
|
|
- @change="loadData"
|
|
|
+ @change="regionChange"
|
|
|
>
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
@@ -247,8 +247,17 @@ export default defineComponent({
|
|
|
|
|
|
function getAllSites() {
|
|
|
getSiteList({pageIndex: 1, pageSize: 9999}).then((result: any) => {
|
|
|
+ if(searchParamsState.regionCode!=""&& searchParamsState.regionCode!=null){
|
|
|
+ result.list = result.list.filter(x=> x.regionCode == searchParamsState.regionCode);
|
|
|
+ }
|
|
|
siteList.value = result.list;
|
|
|
- })
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ function regionChange() {
|
|
|
+ siteList.value = [];
|
|
|
+ getAllSites();
|
|
|
+ loadData();
|
|
|
}
|
|
|
|
|
|
function getAllRegion() {
|
|
@@ -317,6 +326,7 @@ export default defineComponent({
|
|
|
getAllSites,
|
|
|
getAllRegion,
|
|
|
signinDate,
|
|
|
+ regionChange,
|
|
|
onCreateTimeChange,
|
|
|
onEdit,
|
|
|
onDel,
|