快捷入口开发中

This commit is contained in:
Zy
2026-05-13 18:07:03 +08:00
parent a1750bc67b
commit 0d3bb25e86
11 changed files with 157 additions and 13 deletions

View File

@@ -57,12 +57,18 @@
<el-table-column label="投诉类型名称" align="center" prop="name" />
<el-table-column label="状态" align="center" prop="status">
<template #default="scope">
<dict-tag :options="com_repair_project_status" :value="scope.row.status"></dict-tag>
<el-switch
@change="(val: string) => handleChange(val, scope.row)"
v-model="scope.row.status"
active-value="0"
inactive-value="1"
></el-switch>
<!-- <dict-tag :options="com_repair_project_status" :value="scope.row.status"></dict-tag> -->
</template>
</el-table-column>
<el-table-column label="创建时间" align="center" prop="creaateTime" width="180">
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template #default="scope">
<span>{{ parseTime(scope.row.creaateTime, '{y}-{m}-{d}') }}</span>
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
@@ -157,7 +163,15 @@ const handleAdd = () => {
path: '/system/addComplantType'
});
};
const handleChange = (val: string, row: ComplaintTypeVO) => {
// updateChargeType({
// id: row.id,
// status: val
// }).then(() => {
// proxy?.$modal.msgSuccess('操作成功');
// getList();
// });
};
/** 修改按钮操作 */
const handleUpdate = async (row?: ComplaintTypeVO) => {
const _id = row?.id || ids.value[0];

View File

@@ -208,7 +208,7 @@ const submitForm = () => {
/** 删除按钮操作 */
const handleDelete = async (row?: HouseFacilitiesVO) => {
const _ids = row?.id || ids.value;
await proxy?.$modal.confirm('是否确认删除房屋设施管理编号为"' + _ids + '"的数据项').finally(() => (loading.value = false));
await proxy?.$modal.confirm('是否确认删除房屋设施管理?').finally(() => (loading.value = false));
await delHouseFacilities(_ids);
proxy?.$modal.msgSuccess('删除成功');
await getList();

View File

@@ -116,6 +116,7 @@ function init() {
...find,
projectLevel: find.projectLevel
};
handleChange(find.parentId);
}
}
});

View File

@@ -197,7 +197,7 @@ const data = reactive<PageData<RepairProjectForm, RepairProjectQuery>>({
form: { ...initFormData },
queryParams: {
pageNum: 1,
pageSize: 10,
pageSize: 9999999,
projectName: undefined,
parentId: undefined,
projectType: undefined,

View File

@@ -109,7 +109,7 @@
></el-switch>
</template>
</el-table-column> -->
<el-table-column label="操作" min-width="120" align="center" fixed="right" class-name="small-padding fixed-width">
<el-table-column label="操作" min-width="150" align="center" fixed="right" class-name="small-padding fixed-width">
<template #default="scope">
<div class="actions">
<el-button link type="primary" @click="handleRecode(scope.row)" v-hasPermi="['equipment:view:waterdevice']">充值记录</el-button>

View File

@@ -51,6 +51,7 @@
<el-table-column label="设备分类名称" align="center" prop="categoryName" />
<el-table-column label="状态" align="center" prop="status">
<template #default="scope">
<!-- TODO 设备状态开关 -->
<el-switch :inactive-value="1" :active-value="0" v-model="scope.row.status"></el-switch>
</template>
</el-table-column>

View File

@@ -86,7 +86,7 @@
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="180">
<el-table-column fixed="right" label="操作" width="200">
<template #default="scope">
<el-tooltip v-if="scope.row.roleId !== 1" content="修改" placement="top">
<el-button v-hasPermi="['system:role:edit']" link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button>

View File

@@ -92,7 +92,7 @@
</template>
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="400">
<el-table-column align="center" label="操作" fixed="right" width="200">
<template #default="scope">
<el-tooltip v-if="scope.row.userId !== 1" content="修改" placement="top">
<el-button v-hasPermi="['system:user:edit']" link type="primary" icon="Edit" @click="handleUpdate(scope.row)"></el-button>