|
|
@@ -28,7 +28,7 @@
|
|
|
(currentPage = 1),
|
|
|
(certType = item.type),
|
|
|
(currentTypeIndex = index),
|
|
|
- (validType = '');
|
|
|
+ (validType = 1);
|
|
|
getCertList();
|
|
|
"
|
|
|
class="btn"
|
|
|
@@ -42,7 +42,7 @@
|
|
|
style="width: 240px"
|
|
|
v-if="currentTypeIndex == 1"
|
|
|
v-model="validType"
|
|
|
- @change="getCertList"
|
|
|
+ @change="changeSelect"
|
|
|
class="mb10 tac"
|
|
|
placeholder="有效期类型"
|
|
|
>
|
|
|
@@ -131,8 +131,7 @@ let tableData = ref([]);
|
|
|
let total = ref(0);
|
|
|
let currentPage = ref(1);
|
|
|
|
|
|
-async function getCertList(e) {
|
|
|
- validType.value = e;
|
|
|
+async function getCertList() {
|
|
|
let { data } = await api.getCertList({
|
|
|
type: type.value,
|
|
|
certType: certType.value,
|
|
|
@@ -171,7 +170,11 @@ async function getCertListType() {
|
|
|
}
|
|
|
|
|
|
let currentTypeIndex = ref(0);
|
|
|
-let validType = ref("");
|
|
|
+let validType = ref(1);
|
|
|
+function changeSelect(e) {
|
|
|
+ validType.value = e;
|
|
|
+ getCertList();
|
|
|
+}
|
|
|
onMounted(() => {
|
|
|
getCertList();
|
|
|
getCertListType();
|