refactor: 优化上传表单组件和类型定义
This commit is contained in:
@ -36,9 +36,9 @@
|
||||
const router = useRouter() // 导入路由实例,用于跳转页面
|
||||
|
||||
const form = reactive<TcreateReq>({
|
||||
activeName: '', // 标签
|
||||
activeName: 1, // 标签
|
||||
id: '', // 图纸id id,示例值(24548)
|
||||
type: [], // 图纸类型 类型,示例值(1)
|
||||
type: 1, // 图纸类型 类型,示例值(1)
|
||||
isDomestic: '', // 是否是国内: 1是 0否
|
||||
province: '', // 省份编码
|
||||
city: '', // 城市编码
|
||||
@ -121,12 +121,12 @@
|
||||
}
|
||||
|
||||
// 图纸类型
|
||||
const drawTypeRef = ref()
|
||||
const drawTypeRef = ref<InstanceType<typeof DrawType>>()
|
||||
onMounted(() => {
|
||||
// 初始化图纸类型
|
||||
drawTypeRef.value.handleTypeChange([1])
|
||||
drawTypeRef.value?.handleTypeChange(1)
|
||||
// 初始化图纸类型
|
||||
form.type = [1]
|
||||
form.type = 1
|
||||
})
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user