update
1.修改部分问题(路线等问题) 2.添加定时器
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<div class="content">
|
||||
<div class="content-search">
|
||||
<div>
|
||||
<a-select v-model:value="selectValue" class="type-select" :options="selectOptions">
|
||||
<a-select v-model:value="selectValue" class="type-select" :options="selectOptions" @change="getData">
|
||||
<a-select-option value="全部数据">全部数据</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
@@ -39,14 +39,20 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { ref, onMounted, watch } from 'vue';
|
||||
import * as echarts from 'echarts';
|
||||
import { getClassCharts } from '/@/views/indexSun/indexSun.ts';
|
||||
import { allSecondaryDepartsApi, twoLApi } from '/@/views/indexSun/indexSun.api.ts';
|
||||
|
||||
const props = defineProps({
|
||||
bKey: {
|
||||
type: Number,
|
||||
default: () => 0,
|
||||
},
|
||||
});
|
||||
const chooseType = ref('0');
|
||||
const selectValue = ref('all');
|
||||
const selectOptions = ref([{ label: '全部数据', value: 'all' }]);
|
||||
const selectValue = ref('');
|
||||
const selectOptions = ref([{ label: '全部数据', value: '' }]);
|
||||
const newChart = ref<HTMLElement>();
|
||||
function clickChooseType(type) {
|
||||
if (chooseType.value === type) return;
|
||||
@@ -59,6 +65,10 @@
|
||||
getAllDepart();
|
||||
}
|
||||
});
|
||||
watch(props, () => {
|
||||
selectValue.value = '';
|
||||
getData();
|
||||
});
|
||||
|
||||
function getAllDepart() {
|
||||
allSecondaryDepartsApi({})
|
||||
@@ -85,7 +95,7 @@
|
||||
function getData() {
|
||||
twoLApi({
|
||||
sex: chooseType.value,
|
||||
depart: '',
|
||||
depart: selectValue.value,
|
||||
}).then((res) => {
|
||||
console.log(res, 'resessss');
|
||||
if (res.code == 200) {
|
||||
|
||||
Reference in New Issue
Block a user