|
@@ -1,11 +1,11 @@
|
|
|
<script setup>
|
|
|
import bannerImg from '~/assets/szmsg_tskc/banner.png';
|
|
|
import { timestamp2string } from '~/utils/string';
|
|
|
-const props = defineProps({
|
|
|
+let props = defineProps({
|
|
|
id: String
|
|
|
})
|
|
|
|
|
|
-const szmsg_school_notice = $ref([])
|
|
|
+let szmsg_school_notice = $ref([])
|
|
|
request({
|
|
|
url: '/szmsg/school_notice/index',
|
|
|
data: {
|
|
@@ -18,7 +18,7 @@ request({
|
|
|
})
|
|
|
|
|
|
|
|
|
-const queryForm = reactive({
|
|
|
+let queryForm = reactive({
|
|
|
grade_id: undefined,
|
|
|
subject_id: undefined,
|
|
|
limit: 6,
|
|
@@ -32,8 +32,8 @@ watch(
|
|
|
}
|
|
|
)
|
|
|
|
|
|
-const nj = $ref([])
|
|
|
-const km = $ref([])
|
|
|
+let nj = $ref([])
|
|
|
+let km = $ref([])
|
|
|
|
|
|
function queryParams() {
|
|
|
return Promise.all([
|
|
@@ -95,7 +95,7 @@ function queryYxzp() {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const loading = $ref(true)
|
|
|
+let loading = $ref(true)
|
|
|
|
|
|
Promise.all([queryData(), queryParams(), queryYxzp()]).then(() => {
|
|
|
loading = false
|