This commit is contained in:
@@ -363,7 +363,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { h } from 'vue'
|
||||
import { h, watch } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { PackageManageService, PackageSeriesService } from '@/api/modules'
|
||||
import { ElMessage, ElMessageBox, ElTag, ElSwitch, ElInputNumber } from 'element-plus'
|
||||
@@ -922,6 +922,13 @@
|
||||
getTableData()
|
||||
})
|
||||
|
||||
// 监听对话框打开,加载系列选项
|
||||
watch(dialogVisible, (visible) => {
|
||||
if (visible) {
|
||||
loadSeriesOptions()
|
||||
}
|
||||
})
|
||||
|
||||
// 加载系列选项(用于新增/编辑对话框,默认加载10条)
|
||||
const loadSeriesOptions = async (seriesName?: string) => {
|
||||
seriesLoading.value = true
|
||||
|
||||
Reference in New Issue
Block a user