zsk 2 years ago
parent 0ef39610bf
commit e348a7e317

@ -65,9 +65,9 @@ export function getStockMoreListApi (data) {
// 删除用户
export function delUserApi (data) {
export function delMessageApi (data) {
return request({
url: `/admin/user/remove/${data}`,
url: `/admin/cms/remove/${data}`,
method: "DELETE",
});
}

@ -480,7 +480,7 @@ const columns = ref([
width: "240px",
ellipsis: true,
customRender: (record) => {
return record.record.percent ? record.record.percent+"%" : '-';
return record.record.percent ? record.record.percent : '-';
},
},

@ -104,11 +104,7 @@
<a-divider class="g_mt_0 g_mb_20" />
<div class="g_flex_row_between g_pl_24 g_pr_24 g_pb_20">
<a-table :columns="columns1" :data-source="stockMoreList" size="middle" :pagination="false" class="g_clear_scroll" :scroll="{ x: '' }">
<template #headerCell="{ column }">
<template v-if="column.key === 'name'">
<div class="g_fw_600">姓名</div>
</template>
</template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'state'">
<div class="g_c_main">删除</div>
@ -201,10 +197,10 @@ let columns1 = ref([
dataIndex: "rank",
width: "50px",
ellipsis: true,
fixed: "left",
// fixed: "left",
},
{
title: "项目",
title: "融资轮次",
key: "name",
dataIndex: "name",
// width: "220px",
@ -212,7 +208,7 @@ let columns1 = ref([
customRender: (record) => {
return record.record.name || "-";
},
fixed: "left",
// fixed: "left",
},
{

@ -152,7 +152,7 @@ import { PlusOutlined, EllipsisOutlined, UploadOutlined, DownOutlined } from "@a
import { Modal, message } from "ant-design-vue";
import { useRouter, useRoute } from "vue-router";
import { getUserListApi, updateUserStatusApi, addUserApi, delUserApi, updateUserApi } from "../../api/userList/userList";
import { getMessageListApi } from "../../api/messageConfig/message";
import { getMessageListApi,delMessageApi } from "../../api/messageConfig/message";
import { DownloadOutlined } from "@ant-design/icons-vue";
import idCardPanel from "../components/upload/image.vue";
@ -298,7 +298,7 @@ const getTable = () => {
item.rank = index + 1;
// item.title = "";
// item.content = " 91410100MA9L4HDT0L ";
// item.time = "2024-03-11 13:04:24";
item.time = item.createTime;
});
});
};
@ -331,7 +331,7 @@ const columns = ref([
title: "标题",
key: "title",
dataIndex: "title",
width: "180px",
width: "240px",
},
{
@ -411,9 +411,9 @@ const handleApplication = (record) => {
const handleDel = ($data) => {
commonJS.gConfirmModal(
"删除",
"确认删除该用户吗?",
"确认删除该内容吗?",
() => {
delUserApi($data.id).then(() => {
delMessageApi($data.id).then(() => {
message.success("删除成功");
getTable();
});

Loading…
Cancel
Save