|
@@ -3,11 +3,11 @@
|
|
|
<pageSearch ref="searchTableRef" :searchConfig="searchConfig"> </pageSearch>
|
|
<pageSearch ref="searchTableRef" :searchConfig="searchConfig"> </pageSearch>
|
|
|
<pageContent ref="tableListRef" :total="total" :contentConfig="contentConfig" :pageList="tableData">
|
|
<pageContent ref="tableListRef" :total="total" :contentConfig="contentConfig" :pageList="tableData">
|
|
|
<template #button>
|
|
<template #button>
|
|
|
- <el-button type="primary" @click="handleAdd()">导出</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="onExport()">导出</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template #operate="scope">
|
|
<template #operate="scope">
|
|
|
<el-button type="primary" link @click="handleDetails(scope.row.rentalCompanyId)"> 查看 </el-button>
|
|
<el-button type="primary" link @click="handleDetails(scope.row.rentalCompanyId)"> 查看 </el-button>
|
|
|
- <el-button type="primary" link @click="handleDelete(scope.row.rentalCompanyId)"> 处理 </el-button>
|
|
|
|
|
|
|
+ <!-- <el-button type="primary" link @click="handleDelete(scope.row.rentalCompanyId)"> 处理 </el-button> -->
|
|
|
</template>
|
|
</template>
|
|
|
</pageContent>
|
|
</pageContent>
|
|
|
</div>
|
|
</div>
|
|
@@ -56,40 +56,13 @@ const handleDetails = async (id: string) => {
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-// 新增按钮
|
|
|
|
|
-const handleAdd = () => {
|
|
|
|
|
- router.push({
|
|
|
|
|
- name: 'addPublish',
|
|
|
|
|
- query: { type: 'add' },
|
|
|
|
|
- });
|
|
|
|
|
|
|
+// 导出
|
|
|
|
|
+const onExport = () => {
|
|
|
|
|
+ ElMessage.success('小编在努力开发中。。。');
|
|
|
|
|
+ return;
|
|
|
};
|
|
};
|
|
|
|
|
+
|
|
|
const searchTableRef = ref();
|
|
const searchTableRef = ref();
|
|
|
-const onClickDeleta = async (row: any) => {
|
|
|
|
|
- ElMessageBox.confirm('确认删除此条数据吗?', '删除', {
|
|
|
|
|
- confirmButtonText: '确认',
|
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- }).then(() => {
|
|
|
|
|
- // 删除后的回调
|
|
|
|
|
- });
|
|
|
|
|
-};
|
|
|
|
|
-// 删除按钮
|
|
|
|
|
-function handleDelete(value: any) {
|
|
|
|
|
- ElMessageBox.confirm('是否删除这条数据?', '删除提示', {
|
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
|
- type: 'warning',
|
|
|
|
|
- })
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- systemStore.deletePageDataAction(contentConfig.pageName, value);
|
|
|
|
|
- })
|
|
|
|
|
- .catch(() => {
|
|
|
|
|
- ElMessage({
|
|
|
|
|
- type: 'info',
|
|
|
|
|
- message: '取消删除',
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
// 筛选-状态赋值
|
|
// 筛选-状态赋值
|
|
|
async function searchItem() {
|
|
async function searchItem() {
|