style(api): 统一代码格式化规范

- 调整 import 语句格式,统一空格和引号风格
- 修复函数参数跨行时的格式对齐问题
- 清理多余空行和注释中的空白字符
- 统一对象属性结尾逗号的使用规范
- 规范化字符串拼接和模板语法的格式
- 优化长参数列表的换行和缩进格式
This commit is contained in:
2026-01-17 17:04:46 +08:00
parent 836fd4d8d0
commit 4af50e6449
416 changed files with 24611 additions and 22733 deletions

View File

@@ -34,13 +34,13 @@
v-model:value="form.name"
/>
</a-form-item>
<!-- <a-form-item label="被执行人" name="name1">-->
<!-- <a-input-->
<!-- allow-clear-->
<!-- placeholder="请输入被执行人"-->
<!-- v-model:value="form.name1"-->
<!-- />-->
<!-- </a-form-item>-->
<!-- <a-form-item label="被执行人" name="name1">-->
<!-- <a-input-->
<!-- allow-clear-->
<!-- placeholder="请输入被执行人"-->
<!-- v-model:value="form.name1"-->
<!-- />-->
<!-- </a-form-item>-->
<a-form-item label="证件号/组织机构代码" name="code">
<a-input
allow-clear
@@ -76,14 +76,14 @@
v-model:value="form.dataStatus"
/>
</a-form-item>
<!-- <a-form-item label="备注" name="comments">-->
<!-- <a-textarea-->
<!-- :rows="4"-->
<!-- :maxlength="200"-->
<!-- placeholder="请输入描述"-->
<!-- v-model:value="form.comments"-->
<!-- />-->
<!-- </a-form-item>-->
<!-- <a-form-item label="备注" name="comments">-->
<!-- <a-textarea-->
<!-- :rows="4"-->
<!-- :maxlength="200"-->
<!-- placeholder="请输入描述"-->
<!-- v-model:value="form.comments"-->
<!-- />-->
<!-- </a-form-item>-->
</a-form>
</ele-modal>
</template>
@@ -92,7 +92,10 @@
import { ref, reactive, watch } from 'vue';
import { Form, message } from 'ant-design-vue';
import { assignObject, uuid } from 'ele-admin-pro';
import { addCreditJudgmentDebtorHistory, updateCreditJudgmentDebtorHistory } from '@/api/credit/creditJudgmentDebtorHistory';
import {
addCreditJudgmentDebtorHistory,
updateCreditJudgmentDebtorHistory
} from '@/api/credit/creditJudgmentDebtorHistory';
import { CreditJudgmentDebtorHistory } from '@/api/credit/creditJudgmentDebtorHistory/model';
import { useThemeStore } from '@/store/modules/theme';
import { storeToRefs } from 'pinia';
@@ -202,7 +205,9 @@
const formData = {
...form
};
const saveOrUpdate = isUpdate.value ? updateCreditJudgmentDebtorHistory : addCreditJudgmentDebtorHistory;
const saveOrUpdate = isUpdate.value
? updateCreditJudgmentDebtorHistory
: addCreditJudgmentDebtorHistory;
saveOrUpdate(formData)
.then((msg) => {
loading.value = false;
@@ -225,12 +230,12 @@
images.value = [];
if (props.data) {
assignObject(form, props.data);
if(props.data.image){
if (props.data.image) {
images.value.push({
uid: uuid(),
url: props.data.image,
status: 'done'
})
});
}
isUpdate.value = true;
} else {

View File

@@ -1,50 +1,54 @@
<template>
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
<a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table
ref="tableRef"
row-key="id"
:columns="columns"
:datasource="datasource"
:customRow="customRow"
tool-class="ele-toolbar-form"
class="sys-org-table"
>
<template #toolbar>
<search
@search="reload"
:selection="selection"
@add="openEdit"
@remove="removeBatch"
@batchMove="openMove"
/>
<a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-pro-table
ref="tableRef"
row-key="id"
:columns="columns"
:datasource="datasource"
:customRow="customRow"
tool-class="ele-toolbar-form"
class="sys-org-table"
>
<template #toolbar>
<search
@search="reload"
:selection="selection"
@add="openEdit"
@remove="removeBatch"
@batchMove="openMove"
/>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'image'">
<a-image :src="record.image" :width="50" />
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
<template v-if="column.key === 'status'">
<a-tag v-if="record.status === 0" color="green">显示</a-tag>
<a-tag v-if="record.status === 1" color="red">隐藏</a-tag>
</template>
</ele-pro-table>
</a-card>
<template v-if="column.key === 'action'">
<a-space>
<a @click="openEdit(record)">修改</a>
<a-divider type="vertical" />
<a-popconfirm
title="确定要删除此记录吗?"
@confirm="remove(record)"
>
<a class="ele-text-danger">删除</a>
</a-popconfirm>
</a-space>
</template>
</template>
</ele-pro-table>
</a-card>
<!-- 编辑弹窗 -->
<CreditJudgmentDebtorHistoryEdit v-model:visible="showEdit" :data="current" @done="reload" />
<!-- 编辑弹窗 -->
<CreditJudgmentDebtorHistoryEdit
v-model:visible="showEdit"
:data="current"
@done="reload"
/>
</a-page-header>
</template>
@@ -59,10 +63,17 @@
ColumnItem
} from 'ele-admin-pro/es/ele-pro-table/types';
import Search from './components/search.vue';
import {getPageTitle} from '@/utils/common';
import { getPageTitle } from '@/utils/common';
import CreditJudgmentDebtorHistoryEdit from './components/creditJudgmentDebtorHistoryEdit.vue';
import { pageCreditJudgmentDebtorHistory, removeCreditJudgmentDebtorHistory, removeBatchCreditJudgmentDebtorHistory } from '@/api/credit/creditJudgmentDebtorHistory';
import type { CreditJudgmentDebtorHistory, CreditJudgmentDebtorHistoryParam } from '@/api/credit/creditJudgmentDebtorHistory/model';
import {
pageCreditJudgmentDebtorHistory,
removeCreditJudgmentDebtorHistory,
removeBatchCreditJudgmentDebtorHistory
} from '@/api/credit/creditJudgmentDebtorHistory';
import type {
CreditJudgmentDebtorHistory,
CreditJudgmentDebtorHistoryParam
} from '@/api/credit/creditJudgmentDebtorHistory/model';
// 表格实例
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
@@ -103,7 +114,7 @@
title: 'ID',
dataIndex: 'id',
key: 'id',
width: 90,
width: 90
},
{
title: '案号',