|
|
@@ -206,14 +206,16 @@ const handleUploadSuccess = async () => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+const cityCode = ref("");
|
|
|
//根据城市的坐标返回区县列表
|
|
|
const districtList = ref([]);
|
|
|
function getDistrictListByCity() {
|
|
|
VE_API.z_farm_work_record.getDistrictListByCity({ point: mapPoint.value }).then(({ data }) => {
|
|
|
districtList.value = data || [];
|
|
|
- const cityCode = data[0].code.slice(0, -2);
|
|
|
- districtList.value.unshift({ code: cityCode, name: "全部" });
|
|
|
- selectParma.value.districtCode = cityCode;
|
|
|
+ // cityCode.value = data[0].code.slice(0, -2);
|
|
|
+ cityCode.value = "";
|
|
|
+ districtList.value.unshift({ code: cityCode.value, name: "全部" });
|
|
|
+ selectParma.value.districtCode = cityCode.value;
|
|
|
getSimpleList();
|
|
|
});
|
|
|
}
|
|
|
@@ -324,6 +326,7 @@ function getSimpleList() {
|
|
|
}else{
|
|
|
noData.value = true;
|
|
|
taskList.value = [];
|
|
|
+ taskCounts.value[activeIndex.value] = 0;
|
|
|
}
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
@@ -377,6 +380,8 @@ const handleDateSelect = (date) => {
|
|
|
function handleActiveFilter(i) {
|
|
|
activeIndex.value = i;
|
|
|
// watch 会自动处理清除日期筛选和日历选中状态
|
|
|
+ selectParma.value.districtCode = cityCode.value
|
|
|
+ selectParma.value.farmWorkTypeId = null
|
|
|
}
|
|
|
|
|
|
function toPage(item) {
|