111
This commit is contained in:
parent
37d65dd416
commit
d6bdabc210
@ -7,7 +7,7 @@
|
|||||||
* @Email: lab1024@163.com
|
* @Email: lab1024@163.com
|
||||||
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
||||||
*/
|
*/
|
||||||
import { getRequest, postRequest,delRequest} from '/@/lib/axios';
|
import { putRequest, postRequest,delRequest} from '/@/lib/axios';
|
||||||
|
|
||||||
export const activityApi = {
|
export const activityApi = {
|
||||||
/**
|
/**
|
||||||
@ -19,5 +19,9 @@ export const activityApi = {
|
|||||||
delActivity: (id) => {
|
delActivity: (id) => {
|
||||||
return delRequest(`/caseplatformCase/activity/delete/${id}`);
|
return delRequest(`/caseplatformCase/activity/delete/${id}`);
|
||||||
},
|
},
|
||||||
|
changeStatus: (id,param) => {
|
||||||
|
return putRequest(`/caseplatformCase/activity/status/${id}`,param);
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -10,6 +10,7 @@ import 'tui-color-picker/dist/tui-color-picker.css';
|
|||||||
import ImageEditor from 'tui-image-editor';
|
import ImageEditor from 'tui-image-editor';
|
||||||
import { caseplatformCaseApi } from '/@/api/business/case/caseplatform-case-api';
|
import { caseplatformCaseApi } from '/@/api/business/case/caseplatform-case-api';
|
||||||
import { FileUtil } from '/@/utils/fileutil'
|
import { FileUtil } from '/@/utils/fileutil'
|
||||||
|
import dayjs from 'dayjs';
|
||||||
import { SmartLoading } from '/@/components/framework/smart-loading';
|
import { SmartLoading } from '/@/components/framework/smart-loading';
|
||||||
const props=defineProps({
|
const props=defineProps({
|
||||||
imgsrc:{
|
imgsrc:{
|
||||||
@ -282,7 +283,7 @@ const getImg=(file)=>{
|
|||||||
caseplatformCaseApi.getOssSign(1).then(res=>{
|
caseplatformCaseApi.getOssSign(1).then(res=>{
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
let { accessid, dir,policy,signature,host} = res.data;
|
let { accessid, dir,policy,signature,host} = res.data;
|
||||||
let filename = FileUtil.UUID()+'.'+'png';
|
let filename = dayjs().format('YYYYMMDDHHmmss')+FileUtil.UUID()+'.'+'png';
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append('OSSAccessKeyId',accessid);
|
formData.append('OSSAccessKeyId',accessid);
|
||||||
formData.append('policy', policy);
|
formData.append('policy', policy);
|
||||||
|
|||||||
@ -54,7 +54,7 @@
|
|||||||
<!---------- 表格操作行 begin ----------->
|
<!---------- 表格操作行 begin ----------->
|
||||||
<a-row class="smart-table-btn-block">
|
<a-row class="smart-table-btn-block">
|
||||||
<div class="smart-table-operate-block">
|
<div class="smart-table-operate-block">
|
||||||
<a-typography-title :level="5">活动申请管理</a-typography-title>
|
<a-typography-title :level="5">活动申请</a-typography-title>
|
||||||
<!-- <a-button @click="showForm()" type="primary" size="small">
|
<!-- <a-button @click="showForm()" type="primary" size="small">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<PlusOutlined />
|
<PlusOutlined />
|
||||||
@ -74,6 +74,10 @@
|
|||||||
<template v-if="column.dataIndex === 'createTime'">
|
<template v-if="column.dataIndex === 'createTime'">
|
||||||
<span>{{ text.substring(0, 11) }}</span>
|
<span>{{ text.substring(0, 11) }}</span>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="column.dataIndex === 'status'">
|
||||||
|
<a-tag :color="text == 1?'success':'error'" >{{text == 1?'审核通过':'待审核'}}</a-tag>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template v-if="column.dataIndex === 'expertProvName'">
|
<template v-if="column.dataIndex === 'expertProvName'">
|
||||||
<span>{{record.expertProvName+record.expertCityName }}</span>
|
<span>{{record.expertProvName+record.expertCityName }}</span>
|
||||||
</template>
|
</template>
|
||||||
@ -82,6 +86,7 @@
|
|||||||
<template v-if="column.dataIndex === 'action'">
|
<template v-if="column.dataIndex === 'action'">
|
||||||
<div class="smart-table-operate">
|
<div class="smart-table-operate">
|
||||||
<a-button @click="delActivity(record.id)" type="link" danger>删除</a-button>
|
<a-button @click="delActivity(record.id)" type="link" danger>删除</a-button>
|
||||||
|
<a-button @click="handleStatus(record.id)" type="link" success v-if="record.status==2">审核通过</a-button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -155,6 +160,11 @@ const columns = ref([
|
|||||||
dataIndex: 'expertHospitalName',
|
dataIndex: 'expertHospitalName',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '审核状态',
|
||||||
|
dataIndex: 'status',
|
||||||
|
ellipsis: true,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
@ -183,6 +193,14 @@ const columns = ref([
|
|||||||
message.error(`上传失败`);
|
message.error(`上传失败`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const handleStatus=(id)=>{
|
||||||
|
activityApi.changeStatus(id,{
|
||||||
|
status:1
|
||||||
|
}).then((res)=>{
|
||||||
|
message.success(`审核成功`);
|
||||||
|
queryData();
|
||||||
|
})
|
||||||
|
}
|
||||||
const delActivity=(id)=>{
|
const delActivity=(id)=>{
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '确认删除?',
|
title: '确认删除?',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user