mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-12 04:03:44 +08:00
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
:rules="rules"
|
||||
ref="formRef"
|
||||
label-placement="left"
|
||||
:label-width="80"
|
||||
:label-width="100"
|
||||
class="py-4"
|
||||
>
|
||||
<n-form-item label="分类ID" path="categoryId">
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="n-layout-page-header">
|
||||
<n-card :bordered="false" title="生成演示">
|
||||
<!-- 这是由系统生成的CURD表格,你可以将此行注释改为表格的描述 -->
|
||||
</n-card>
|
||||
</div>
|
||||
<n-card :bordered="false" class="proCard">
|
||||
<div class="n-layout-page-header">
|
||||
<n-card :bordered="false" title="生成演示">
|
||||
<!-- 这是系统自动生成的CURD表格,你可以将此行注释改为表格的描述 -->
|
||||
</n-card>
|
||||
</div>
|
||||
|
||||
<BasicForm
|
||||
@register="register"
|
||||
|
||||
@@ -34,7 +34,7 @@ export interface State {
|
||||
deletedAt: string;
|
||||
}
|
||||
|
||||
export const defaultState = {
|
||||
export const defaultState: State = {
|
||||
id: 0,
|
||||
categoryId: 0,
|
||||
title: '',
|
||||
@@ -173,7 +173,7 @@ export const columns = [
|
||||
width: 32,
|
||||
height: 32,
|
||||
src: row.image,
|
||||
fallbackSrc: errorImg,
|
||||
onError: errorImg,
|
||||
style: {
|
||||
width: '32px',
|
||||
height: '32px',
|
||||
@@ -288,4 +288,4 @@ async function loadOptions() {
|
||||
}
|
||||
}
|
||||
|
||||
await loadOptions();
|
||||
await loadOptions();
|
||||
@@ -139,7 +139,9 @@
|
||||
watch(
|
||||
() => props.formParams,
|
||||
(value) => {
|
||||
loadForm(value);
|
||||
if (isShowModal.value) {
|
||||
loadForm(value);
|
||||
}
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
@@ -139,7 +139,9 @@
|
||||
watch(
|
||||
() => props.formParams,
|
||||
(value) => {
|
||||
loadForm(value);
|
||||
if (isShowModal.value) {
|
||||
loadForm(value);
|
||||
}
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user