style(api): 统一代码风格并修复语法问题
- 统一import语句的空格格式 - 修复分号缺失问题 - 调整函数参数换行格式以符合规范 - 删除多余空行保持代码整洁 - 修复字符串拼接的换行格式问题
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
/>
|
||||
<a-button @click="openEdit">
|
||||
<template #icon>
|
||||
<BulbOutlined class="ele-text-warning"/>
|
||||
<BulbOutlined class="ele-text-warning" />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-input-group>
|
||||
@@ -25,51 +25,50 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {BulbOutlined} from '@ant-design/icons-vue';
|
||||
import {ref, watch} from 'vue';
|
||||
import SelectData from './components/select-data.vue';
|
||||
import {HjmFence} from "@/api/hjm/hjmFence/model";
|
||||
import { BulbOutlined } from '@ant-design/icons-vue';
|
||||
import { ref, watch } from 'vue';
|
||||
import SelectData from './components/select-data.vue';
|
||||
import { HjmFence } from '@/api/hjm/hjmFence/model';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
value?: any;
|
||||
placeholder?: string;
|
||||
organizationId?: number;
|
||||
}>(),
|
||||
{
|
||||
placeholder: '请选择'
|
||||
}
|
||||
);
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
value?: any;
|
||||
placeholder?: string;
|
||||
organizationId?: number;
|
||||
}>(),
|
||||
{
|
||||
placeholder: '请选择'
|
||||
}
|
||||
);
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'done', HjmFence): void;
|
||||
(e: 'clear'): void;
|
||||
}>();
|
||||
const emit = defineEmits<{
|
||||
(e: 'done', HjmFence): void;
|
||||
(e: 'clear'): void;
|
||||
}>();
|
||||
|
||||
// 是否显示编辑弹窗
|
||||
const showEdit = ref(false);
|
||||
// 当前编辑数据
|
||||
const current = ref<HjmFence | null>(null);
|
||||
const content = ref<HjmFence>(props.value)
|
||||
// 是否显示编辑弹窗
|
||||
const showEdit = ref(false);
|
||||
// 当前编辑数据
|
||||
const current = ref<HjmFence | null>(null);
|
||||
const content = ref<HjmFence>(props.value);
|
||||
|
||||
/* 打开编辑弹窗 */
|
||||
const openEdit = (row?: HjmFence) => {
|
||||
current.value = row ?? null;
|
||||
showEdit.value = true;
|
||||
};
|
||||
/* 打开编辑弹窗 */
|
||||
const openEdit = (row?: HjmFence) => {
|
||||
current.value = row ?? null;
|
||||
showEdit.value = true;
|
||||
};
|
||||
|
||||
const onChange = (row?: HjmFence) => {
|
||||
emit('done', row);
|
||||
};
|
||||
// 查询租户列表
|
||||
// const appList = ref<App[] | undefined>([]);
|
||||
const onChange = (row?: HjmFence) => {
|
||||
emit('done', row);
|
||||
};
|
||||
// 查询租户列表
|
||||
// const appList = ref<App[] | undefined>([]);
|
||||
|
||||
|
||||
watch(
|
||||
() => props.value,
|
||||
(visible) => {
|
||||
content.value = visible;
|
||||
},
|
||||
{immediate: true}
|
||||
);
|
||||
watch(
|
||||
() => props.value,
|
||||
(visible) => {
|
||||
content.value = visible;
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user