feat:完成关于我们-公司简介模块
This commit is contained in:
parent
0d0d7c9909
commit
0d6a50095b
@ -0,0 +1,137 @@
|
||||
<template>
|
||||
<el-dialog v-model="dialogVisible" title="添加公司简介" width="900px" @closed="closeDialog" @open="openDialog">
|
||||
<el-form ref="formRef" :model="formData" :rules="rules">
|
||||
<el-row>
|
||||
<el-col :span='12'>
|
||||
<el-form-item :label-width='labelWidth' label='简介图片' prop='company_profile_img'>
|
||||
<UploadImage ref='uploadRef' v-model='formData.company_profile_img' :data=uoloadData :limit='1' :fileSize='5'
|
||||
:drag='true' :isShowTip='false' />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item :label-width="labelWidth" label="简介排序" prop="company_profile_order">
|
||||
<el-input-number v-model='formData.company_profile_order' controls-position='right'></el-input-number>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item :label-width="labelWidth" label="简介内容" prop="company_profile_content">
|
||||
<RichText v-model='formData.company_profile_content' :min-height='196'></RichText>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button type="primary" @click="handleAddClick(formRef)">添加</el-button>
|
||||
<el-button @click="handleResetClick(formRef)">重置</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, watch } from "vue";
|
||||
import { addCompanyProfile } from "~/service/company_profile";
|
||||
import { useLoginStore } from "~/store";
|
||||
|
||||
// --业务参数
|
||||
|
||||
|
||||
|
||||
// --业务方法
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// --基础参数
|
||||
const store = useLoginStore();
|
||||
const headers = {
|
||||
Accept: "application/json",
|
||||
...store.headers,
|
||||
};
|
||||
|
||||
const formRef = ref();
|
||||
const labelWidth = 90;
|
||||
const props = defineProps({
|
||||
modelValue: Boolean,
|
||||
done: Function,
|
||||
});
|
||||
const emits = defineEmits(["update:modelValue"]);
|
||||
const dialogVisible = ref(props.modelValue);
|
||||
const formData = reactive({
|
||||
company_profile_order: 0
|
||||
});
|
||||
|
||||
const uoloadData = ref({
|
||||
dirName: "CompanyProfile"
|
||||
})
|
||||
|
||||
watch(props, (v) => {
|
||||
dialogVisible.value = v.modelValue;
|
||||
});
|
||||
|
||||
const rules = reactive({
|
||||
company_profile_img: [
|
||||
{
|
||||
required: true,
|
||||
message: '简介图片不能为空'
|
||||
}
|
||||
],
|
||||
company_profile_content: [
|
||||
{
|
||||
required: true,
|
||||
message: '简介内容不能为空'
|
||||
}
|
||||
],
|
||||
company_profile_order: [
|
||||
{
|
||||
required: true,
|
||||
message: '简介排序不能为空'
|
||||
}
|
||||
],
|
||||
|
||||
});
|
||||
|
||||
|
||||
// --基础方法
|
||||
|
||||
// 打开弹窗时执行
|
||||
const openDialog = () => {
|
||||
|
||||
};
|
||||
|
||||
const closeDialog = () => {
|
||||
handleResetClick(formRef.value);
|
||||
dialogVisible.value = false;
|
||||
emits("update:modelValue", false);
|
||||
};
|
||||
|
||||
const handleAddClick = async (formEl) => {
|
||||
console.log(formData);
|
||||
if (!formEl) return;
|
||||
formEl.validate(async (valid) => {
|
||||
if (!valid) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { code } = await addCompanyProfile(formData);
|
||||
if (code == 0) {
|
||||
closeDialog();
|
||||
props.done();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const handleResetClick = async (formEl) => {
|
||||
if (!formEl) return;
|
||||
formEl.resetFields();
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped></style>
|
@ -0,0 +1,77 @@
|
||||
<template>
|
||||
<el-dialog v-model="props.modelValue" title="公司简介详情" width="900px" @closed="closeDialog" @open="openDialog">
|
||||
<el-form ref="formRef" :model="formData" :disabled="true">
|
||||
<el-row>
|
||||
<el-col :span='12'>
|
||||
<el-form-item :label-width='labelWidth' label='简介图片' prop='company_profile_img'>
|
||||
<UploadImage ref='uploadRef' v-model='formData.company_profile_img' :data=uoloadData :limit='1' :fileSize='5'
|
||||
:drag='true' :isShowTip='false' />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item :label-width="labelWidth" label="简介排序" prop="company_profile_order">
|
||||
<el-input-number v-model='formData.company_profile_order' controls-position='right'></el-input-number>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item :label-width="labelWidth" label="简介内容" prop="company_profile_content">
|
||||
<RichText v-model='formData.company_profile_content' :min-height='196'></RichText>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, watch } from "vue";
|
||||
import { isEmptyObject } from "~/utils/index";
|
||||
|
||||
|
||||
// --业务参数
|
||||
|
||||
|
||||
|
||||
// --业务方法
|
||||
|
||||
|
||||
|
||||
|
||||
// --基础参数
|
||||
const formRef = ref();
|
||||
const labelWidth = 100;
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: Boolean,
|
||||
data: Object,
|
||||
done: Function,
|
||||
});
|
||||
const emits = defineEmits(["update:modelValue"]);
|
||||
const formData = ref({
|
||||
...props.data,
|
||||
});
|
||||
|
||||
|
||||
// --基础方法
|
||||
watch(props, (v) => {
|
||||
formData.value = v.data;
|
||||
|
||||
|
||||
});
|
||||
|
||||
// 打开弹窗时执行
|
||||
const openDialog = () => {
|
||||
|
||||
|
||||
};
|
||||
|
||||
const closeDialog = () => {
|
||||
emits("update:modelValue", false);
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped></style>
|
@ -0,0 +1,133 @@
|
||||
<template>
|
||||
<el-dialog v-model="props.modelValue" title="编辑公司简介" width="900px" @closed="closeDialog" @open="openDialog">
|
||||
<el-form ref="formRef" :model="formData" :rules="rules">
|
||||
<el-row>
|
||||
<el-col :span='12'>
|
||||
<el-form-item :label-width='labelWidth' label='简介图片' prop='company_profile_img'>
|
||||
<UploadImage ref='uploadRef' v-model='formData.company_profile_img' :data=uoloadData :limit='1' :fileSize='5'
|
||||
:drag='true' :isShowTip='false' />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item :label-width="labelWidth" label="简介排序" prop="company_profile_order">
|
||||
<el-input-number v-model='formData.company_profile_order' controls-position='right'></el-input-number>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item :label-width="labelWidth" label="简介内容" prop="company_profile_content">
|
||||
<RichText v-model='formData.company_profile_content' :min-height='196'></RichText>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button type="primary" @click="handleEditClick(formRef)">编辑</el-button>
|
||||
<el-button @click="handleResetClick(formRef)">重置</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, watch } from "vue";
|
||||
import { editCompanyProfile } from "~/service/company_profile";
|
||||
import { useLoginStore } from "~/store";
|
||||
|
||||
// --业务参数
|
||||
|
||||
|
||||
|
||||
// --业务方法
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// --基础参数
|
||||
const store = useLoginStore();
|
||||
const headers = {
|
||||
Accept: "application/json",
|
||||
...store.headers,
|
||||
};
|
||||
const formRef = ref();
|
||||
const labelWidth = 100;
|
||||
const props = defineProps({
|
||||
modelValue: Boolean,
|
||||
data: Object,
|
||||
done: Function,
|
||||
});
|
||||
const emits = defineEmits(["update:modelValue"]);
|
||||
const formData = ref({
|
||||
...props.data,
|
||||
});
|
||||
const uoloadData = ref({
|
||||
dirName: "CompanyProfile"
|
||||
})
|
||||
|
||||
|
||||
// --基础方法
|
||||
watch(props, (v) => {
|
||||
formData.value = v.data;
|
||||
|
||||
|
||||
});
|
||||
|
||||
// 打开弹窗时执行
|
||||
const openDialog = () => {
|
||||
|
||||
};
|
||||
|
||||
const closeDialog = () => {
|
||||
props.done();
|
||||
emits("update:modelValue", false);
|
||||
};
|
||||
|
||||
const rules = reactive({
|
||||
company_profile_img: [
|
||||
{
|
||||
required: true,
|
||||
message: '简介图片不能为空'
|
||||
}
|
||||
],
|
||||
company_profile_content: [
|
||||
{
|
||||
required: true,
|
||||
message: '简介内容不能为空'
|
||||
}
|
||||
],
|
||||
company_profile_order: [
|
||||
{
|
||||
required: true,
|
||||
message: '简介排序不能为空'
|
||||
}
|
||||
],
|
||||
|
||||
});
|
||||
|
||||
const handleEditClick = async (formEl) => {
|
||||
console.log(formData.value);
|
||||
if (!formEl) return;
|
||||
formEl.validate(async (valid) => {
|
||||
if (!valid) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { code } = await editCompanyProfile(formData.value);
|
||||
if (code == 0) {
|
||||
closeDialog();
|
||||
props.done();
|
||||
}
|
||||
});
|
||||
};
|
||||
const handleResetClick = async (formEl) => {
|
||||
if (!formEl) return;
|
||||
formEl.resetFields();
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped></style>
|
225
src/pages/index/about_us/company_profile/index.vue
Normal file
225
src/pages/index/about_us/company_profile/index.vue
Normal file
@ -0,0 +1,225 @@
|
||||
<template>
|
||||
<!-- 面包屑 -->
|
||||
<el-breadcrumb>
|
||||
<el-breadcrumb-item>公司简介管理</el-breadcrumb-item>
|
||||
<el-breadcrumb-item to="/company_profile/list">公司简介列表</el-breadcrumb-item>
|
||||
</el-breadcrumb>
|
||||
<!-- 搜索 -->
|
||||
<el-form inline :model="params">
|
||||
<el-form-item label="简介内容">
|
||||
<el-input v-model='params.company_profile_content' placeholder='请输入简介内容'></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="排序号">
|
||||
<el-input v-model='params.company_profile_order' placeholder='请输入排序号'></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="tableRef.reload()" icon="ElIconSearch">
|
||||
搜索
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-space style="margin-bottom: 10px;">
|
||||
<!-- 添加公司简介 -->
|
||||
<el-col :span="1">
|
||||
<el-button type="primary" @click="addCompanyProfileDialogVisible = true"> 添加 </el-button>
|
||||
</el-col>
|
||||
<!-- 下拉操作 -->
|
||||
<el-dropdown v-if="selectionData.length">
|
||||
<el-button type="primary">
|
||||
批量操作<el-icon class="el-icon--right"><arrow-down /></el-icon>
|
||||
</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item @click="handleDelete(selectionData)">
|
||||
批量删除
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</el-space>
|
||||
<!-- 数据表格 -->
|
||||
<DataTable ref="tableRef" v-loading="loading" style="width: 100%" :onSelectionChange="data => (selectionData = data)"
|
||||
:column="column" :params="params" :request="params => tableDataInit(params)">
|
||||
<!-- 简介图片 -->
|
||||
<template #company_profile_img="scope">
|
||||
<el-image v-if="scope.row.company_profile_img" :src="scope.row.company_profile_img.split(',')[0]" lazy
|
||||
:preview-src-list="scope.row.company_profile_img.split(',')" :preview-teleported="true"
|
||||
:hide-on-click-modal="true" fit="contain" class="el-avatar-plus"></el-image>
|
||||
<template v-else>暂无图片</template>
|
||||
</template>
|
||||
<!-- 简介内容 -->
|
||||
<template #company_profile_content="scope">
|
||||
<div style="height: 300px;" v-html="scope.row.company_profile_content"></div>
|
||||
</template>
|
||||
<!-- 排序 -->
|
||||
<template #company_profile_order="scope">
|
||||
<el-input-number :disabled="loading" v-model='scope.row.company_profile_order' controls-position="right"
|
||||
@change="handleEditOrder(scope.row)"></el-input-number>
|
||||
</template>
|
||||
<template #chaoz="scope">
|
||||
<el-space>
|
||||
<el-button size="small" @click="handleUpdate(scope.row)">
|
||||
编辑
|
||||
</el-button>
|
||||
<el-dropdown @command="handleCommand">
|
||||
<el-button type="primary" size="small">
|
||||
更多<el-icon class="el-icon--right"><arrow-down /></el-icon>
|
||||
</el-button>
|
||||
<template #dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item :command="{ type: 'detail', row: scope.row }">
|
||||
详情
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item :command="{ type: 'delete', row: scope.row }">
|
||||
删除
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
</el-space>
|
||||
</template>
|
||||
</DataTable>
|
||||
|
||||
<!-- 添加公司简介 -->
|
||||
<AddCompanyProfileDialog v-model="addCompanyProfileDialogVisible" :done="() => tableRef.reload()">
|
||||
</AddCompanyProfileDialog>
|
||||
<!-- 编辑公司简介 -->
|
||||
<EditCompanyProfileDialog v-model="EditCompanyProfileDialogVisible" :data="EditCompanyProfileDialogRow"
|
||||
:done="() => tableRef.reload()"></EditCompanyProfileDialog>
|
||||
<!-- 公司简介详情 -->
|
||||
<DetailCompanyProfileDialog v-model="DetailCompanyProfileDialogVisible" :data="DetailCompanyProfileDialogRow">
|
||||
</DetailCompanyProfileDialog>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ArrowDown } from '@element-plus/icons-vue';
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { useLoginStore } from "~/store";
|
||||
import { getCompanyProfileList, deleteCompanyProfile, editCompanyProfile } from '~/service/company_profile';
|
||||
import AddCompanyProfileDialog from './components/AddCompanyProfileDialog.vue';
|
||||
import EditCompanyProfileDialog from './components/EditCompanyProfileDialog.vue';
|
||||
import DetailCompanyProfileDialog from './components/DetailCompanyProfileDialog.vue';
|
||||
import createDraw from 'hyw-drag'
|
||||
|
||||
const tableRef = ref();
|
||||
const selectionData = ref([]);
|
||||
const store = useLoginStore();
|
||||
|
||||
const addCompanyProfileDialogVisible = ref(false);
|
||||
const EditCompanyProfileDialogVisible = ref(false);
|
||||
const EditCompanyProfileDialogRow = ref({});
|
||||
const DetailCompanyProfileDialogVisible = ref(false);
|
||||
const DetailCompanyProfileDialogRow = ref({});
|
||||
|
||||
const headers = {
|
||||
Accept: "application/json",
|
||||
...store.headers,
|
||||
};
|
||||
|
||||
// 查询参数
|
||||
const params = reactive({
|
||||
company_profile_content: '',
|
||||
company_profile_order: '',
|
||||
});
|
||||
const column = [
|
||||
|
||||
{
|
||||
fixed: true,
|
||||
type: 'selection'
|
||||
},
|
||||
{
|
||||
prop: "company_profile_img",
|
||||
label: '简介图片',
|
||||
width: '300'
|
||||
},
|
||||
{
|
||||
prop: "company_profile_content",
|
||||
label: '简介内容',
|
||||
width: '550',
|
||||
},
|
||||
{
|
||||
prop: "company_profile_order",
|
||||
label: '简介排序',
|
||||
width: '200',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
label: '操作',
|
||||
prop: 'chaoz',
|
||||
width: '250',
|
||||
fixed: 'right'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
const handleCommand = ({ type, row }) => {
|
||||
switch (type) {
|
||||
case "detail":
|
||||
handleDetail(row);
|
||||
break;
|
||||
case 'delete':
|
||||
handleDelete([row]);
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
// 删除数据
|
||||
const handleDelete = data => {
|
||||
ElMessageBox.confirm(`您确定要删除该公司简介吗?`).then(async () => {
|
||||
const res = await deleteCompanyProfile({
|
||||
company_profile_guid: data.map(v => v.company_profile_guid).join()
|
||||
});
|
||||
if (res) {
|
||||
tableRef.value.reload();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// 修改
|
||||
function handleUpdate(row) {
|
||||
EditCompanyProfileDialogVisible.value = true
|
||||
EditCompanyProfileDialogRow.value = row
|
||||
}
|
||||
|
||||
// 详情
|
||||
function handleDetail(row) {
|
||||
DetailCompanyProfileDialogVisible.value = true
|
||||
DetailCompanyProfileDialogRow.value = row
|
||||
}
|
||||
|
||||
//表格数据获取及拖拽处理
|
||||
let drag = ref(false)
|
||||
let tableData = ref();
|
||||
async function tableDataInit(params) {
|
||||
await getCompanyProfileList(params).then((res) => tableData.value = res)
|
||||
setTimeout(() => {
|
||||
[...document.getElementsByClassName('el-table__row')].map(item => { item.classList.add('row1') });
|
||||
drag.value === false && (drag.value = createDraw(document.getElementsByClassName('el-table__row')[0].parentElement))
|
||||
})
|
||||
return tableData.value;
|
||||
}
|
||||
watch(drag, () => {
|
||||
const orderField = 'company_profile_order';
|
||||
drag.value.drop((info) => {
|
||||
let targetIdx = [...document.getElementsByClassName('row1')].indexOf(info.el)
|
||||
let sourceIdx = [...document.getElementsByClassName('row1')].indexOf(info.info.source.el)
|
||||
let orderIdx = tableData.value.data[sourceIdx][orderField]
|
||||
tableData.value.data[targetIdx][orderField] = orderIdx
|
||||
handleEditOrder(tableData.value.data[targetIdx])
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
//排序
|
||||
const loading = ref(false)
|
||||
async function handleEditOrder(data) {
|
||||
loading.value = true
|
||||
const { code } = await editCompanyProfile(data);
|
||||
if (code == 0) {
|
||||
loading.value = false
|
||||
tableRef.value.reload()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
@ -64,9 +64,8 @@
|
||||
</el-dropdown>
|
||||
</el-space>
|
||||
<!-- 数据表格 -->
|
||||
<DataTable ref="tableRef" style="width: 100%" v-loading="loading"
|
||||
:onSelectionChange="data => (selectionData = data)" :column="column" :params="params"
|
||||
:request="params => tableDataInit(params)">
|
||||
<DataTable ref="tableRef" style="width: 100%" v-loading="loading" :onSelectionChange="data => (selectionData = data)"
|
||||
:column="column" :params="params" :request="params => tableDataInit(params)">
|
||||
<!-- 图片 -->
|
||||
<template #works_img="scope">
|
||||
<el-image v-if="scope.row.works_img" :src="scope.row.works_img.split(',')[0]" lazy
|
||||
@ -167,7 +166,7 @@ const column = [
|
||||
{
|
||||
prop: "works_img",
|
||||
label: '作品图片',
|
||||
width: '150'
|
||||
width: '250'
|
||||
},
|
||||
{
|
||||
prop: "works_name",
|
||||
@ -181,7 +180,7 @@ const column = [
|
||||
},
|
||||
{
|
||||
prop: "works_author",
|
||||
label: '作品作者',
|
||||
label: '作者',
|
||||
width: '150'
|
||||
},
|
||||
{
|
||||
@ -192,12 +191,14 @@ const column = [
|
||||
{
|
||||
prop: "works_likes_count",
|
||||
label: '点赞数',
|
||||
width: '200'
|
||||
width: '200',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
prop: "works_order",
|
||||
label: '排序',
|
||||
width: '200'
|
||||
width: '200',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
label: '操作',
|
||||
|
@ -50,7 +50,7 @@
|
||||
:tree-props="{ children: 'children' }">
|
||||
<el-table-column type="selection" width="50" align="center" />
|
||||
<el-table-column prop="works_type_name" width="200" label="作品类型名称" :show-overflow-tooltip="true"> </el-table-column>
|
||||
<el-table-column prop="works_type_order" width="200" label="排序" sort>
|
||||
<el-table-column sortable prop="works_type_order" width="200" label="排序" sort>
|
||||
<template #default="scope">
|
||||
<el-input-number v-model='scope.row.works_type_order' controls-position="right"
|
||||
@change="handleEditOrder(scope.row)"></el-input-number>
|
||||
|
50
src/service/company_profile.js
Normal file
50
src/service/company_profile.js
Normal file
@ -0,0 +1,50 @@
|
||||
import {
|
||||
api,
|
||||
} from '~/utils/axios';
|
||||
|
||||
/**
|
||||
* 获取公司简介列表
|
||||
* @param {Object} data
|
||||
* @return {Promise} api
|
||||
*/
|
||||
export function getCompanyProfileList(data) {
|
||||
return api.post('AboutUs.CompanyProfile/getCompanyProfileList', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公司简介
|
||||
* @param {Object} data
|
||||
* @return {Promise} api
|
||||
*/
|
||||
export function deleteCompanyProfile(data) {
|
||||
return api.post('AboutUs.CompanyProfile/deleteCompanyProfile', data, {
|
||||
isTransformResponse: true,
|
||||
isShowSuccessMessage: true,
|
||||
errorMessageText: '删除失败'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加公司简介
|
||||
* @param {Object} data
|
||||
* @return {Promise} api
|
||||
*/
|
||||
export function addCompanyProfile(data) {
|
||||
return api.post('AboutUs.CompanyProfile/addCompanyProfile', data, {
|
||||
isTransformResponse: true,
|
||||
isShowSuccessMessage: true,
|
||||
errorMessageText: '添加失败'
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 编辑公司简介
|
||||
* @param {Object} data
|
||||
* @return {Promise} api
|
||||
*/
|
||||
export function editCompanyProfile(data) {
|
||||
return api.post('AboutUs.CompanyProfile/editCompanyProfile', data, {
|
||||
isTransformResponse: true,
|
||||
isShowSuccessMessage: true,
|
||||
errorMessageText: '编辑失败'
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user