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({ return request({
url: `/admin/user/remove/${data}`, url: `/admin/cms/remove/${data}`,
method: "DELETE", method: "DELETE",
}); });
} }

@ -480,7 +480,7 @@ const columns = ref([
width: "240px", width: "240px",
ellipsis: true, ellipsis: true,
customRender: (record) => { 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" /> <a-divider class="g_mt_0 g_mb_20" />
<div class="g_flex_row_between g_pl_24 g_pr_24 g_pb_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: '' }"> <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 #bodyCell="{ column, record }">
<template v-if="column.key === 'state'"> <template v-if="column.key === 'state'">
<div class="g_c_main">删除</div> <div class="g_c_main">删除</div>
@ -201,10 +197,10 @@ let columns1 = ref([
dataIndex: "rank", dataIndex: "rank",
width: "50px", width: "50px",
ellipsis: true, ellipsis: true,
fixed: "left", // fixed: "left",
}, },
{ {
title: "项目", title: "融资轮次",
key: "name", key: "name",
dataIndex: "name", dataIndex: "name",
// width: "220px", // width: "220px",
@ -212,7 +208,7 @@ let columns1 = ref([
customRender: (record) => { customRender: (record) => {
return record.record.name || "-"; 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 { Modal, message } from "ant-design-vue";
import { useRouter, useRoute } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import { getUserListApi, updateUserStatusApi, addUserApi, delUserApi, updateUserApi } from "../../api/userList/userList"; 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 { DownloadOutlined } from "@ant-design/icons-vue";
import idCardPanel from "../components/upload/image.vue"; import idCardPanel from "../components/upload/image.vue";
@ -298,7 +298,7 @@ const getTable = () => {
item.rank = index + 1; item.rank = index + 1;
// item.title = ""; // item.title = "";
// item.content = " 91410100MA9L4HDT0L "; // item.content = " 91410100MA9L4HDT0L ";
// item.time = "2024-03-11 13:04:24"; item.time = item.createTime;
}); });
}); });
}; };
@ -331,7 +331,7 @@ const columns = ref([
title: "标题", title: "标题",
key: "title", key: "title",
dataIndex: "title", dataIndex: "title",
width: "180px", width: "240px",
}, },
{ {
@ -411,9 +411,9 @@ const handleApplication = (record) => {
const handleDel = ($data) => { const handleDel = ($data) => {
commonJS.gConfirmModal( commonJS.gConfirmModal(
"删除", "删除",
"确认删除该用户吗?", "确认删除该内容吗?",
() => { () => {
delUserApi($data.id).then(() => { delMessageApi($data.id).then(() => {
message.success("删除成功"); message.success("删除成功");
getTable(); getTable();
}); });

Loading…
Cancel
Save