salary
qsh 5 months ago
parent c2eac572c0
commit a4c5143ee5
  1. 7
      src/views/Clue/Pool/Comp/DialogClue.vue
  2. 10
      src/views/SchoolManagement/Class/index.vue

@ -31,6 +31,8 @@
type="date" type="date"
placeholder="选择日期时间" placeholder="选择日期时间"
:disabled="!row.editable" :disabled="!row.editable"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
style="width: 100%" style="width: 100%"
/> />
</template> </template>
@ -521,6 +523,10 @@ function remoteMethod(searchValue) {
function currentSelect(val) { function currentSelect(val) {
const area = areaList.value.find((it) => it.name == val) const area = areaList.value.find((it) => it.name == val)
if (area) { if (area) {
defaultLatLng.value = {
lng: area.location?.lng,
lat: area.location?.lat
}
addmark(area.location?.lng, area.location?.lat, aMap.value) addmark(area.location?.lng, area.location?.lat, aMap.value)
dialogMap.value.setCenter([area.location?.lng, area.location?.lat], '', 500) dialogMap.value.setCenter([area.location?.lng, area.location?.lat], '', 500)
regeoCode(area.location?.lng, area.location?.lat) regeoCode(area.location?.lng, area.location?.lat)
@ -528,6 +534,7 @@ function currentSelect(val) {
} }
function destroyMap() { function destroyMap() {
areaValue.value = undefined
dialogMap.value = null dialogMap.value = null
aMap.value = null aMap.value = null
} }

@ -269,11 +269,17 @@ async function handleChangeStatus(row) {
// //
await message.confirm('是否确认修改状态') await message.confirm('是否确认修改状态')
// //
await ClassApi.updateClassTypeStatus(row.typeId, row.status) await ClassApi.updateClassTypeStatus({
typeId: row.typeId,
status: row.status
})
message.success('修改成功') message.success('修改成功')
// //
await getList() await getList()
} catch {} } catch {
//
row.status = row.status === 1 ? 0 : 1
}
} }
const batchStatusDialogShow = ref(false) const batchStatusDialogShow = ref(false)

Loading…
Cancel
Save