修改运维数据
This commit is contained in:
parent
0d4f9adf0e
commit
d28f94c404
|
|
@ -15,53 +15,72 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'openId',
|
dataIndex: 'openId',
|
||||||
width: 220
|
width: 220
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '名称',
|
|
||||||
align: "center",
|
|
||||||
dataIndex: 'name',
|
|
||||||
width: 120
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '电话',
|
title: '电话',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'tel',
|
dataIndex: 'tel',
|
||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '咨询类型',
|
// title: '咨询类型',
|
||||||
dataIndex: 'advisoryType',
|
// dataIndex: 'advisoryType',
|
||||||
width: 100,
|
// width: 100,
|
||||||
customRender:({text})=>{
|
// customRender:({text})=>{
|
||||||
if(text == '1'){
|
// if(text == '1'){
|
||||||
return "家属";
|
// return "家属";
|
||||||
}else if(text == '2'){
|
// }else if(text == '2'){
|
||||||
return "员工";
|
// return "员工";
|
||||||
}else if(text == '3'){
|
// }else if(text == '3'){
|
||||||
return "公司";
|
// return "公司";
|
||||||
}else if(text == '4'){
|
// }else if(text == '4'){
|
||||||
return "供应商";
|
// return "供应商";
|
||||||
}else{
|
// }else{
|
||||||
return "其他";
|
// return "其他";
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
|
||||||
title: '机构名称',
|
// {
|
||||||
align: "center",
|
// title: '机构名称',
|
||||||
dataIndex: 'comName',
|
// align: "center",
|
||||||
width: 240
|
// dataIndex: 'comName',
|
||||||
},
|
// width: 240
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
title: '注册时间',
|
title: '注册时间',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
width: 160
|
width: 160
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// title: '申请时间',
|
||||||
|
// align: "center",
|
||||||
|
// dataIndex: 'updateTime',
|
||||||
|
// width: 160
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
title: '申请时间',
|
title: '是否是员工',
|
||||||
align: "center",
|
align: "center",
|
||||||
dataIndex: 'updateTime',
|
dataIndex: 'type1',
|
||||||
width: 160
|
width: 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '是否是供应商',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'type2',
|
||||||
|
width: 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '是否是机构',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'type3',
|
||||||
|
width: 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '是否是长者',
|
||||||
|
align: "center",
|
||||||
|
dataIndex: 'type4',
|
||||||
|
width: 100
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,24 @@
|
||||||
<template #action="{ record }">
|
<template #action="{ record }">
|
||||||
<TableAction :actions="getTableAction(record)" />
|
<TableAction :actions="getTableAction(record)" />
|
||||||
</template>
|
</template>
|
||||||
|
<template v-slot:bodyCell="{ column, record, index, text }">
|
||||||
|
<template v-if="column.dataIndex === 'type1'">
|
||||||
|
<span style="color: red;font-weight: 700;font-size: 16px;" v-if="text == '0'">×</span>
|
||||||
|
<span style="color: green;font-weight: 700;font-size: 16px;" v-else-if="text == '1'">√</span>
|
||||||
|
</template>
|
||||||
|
<template v-if="column.dataIndex === 'type2'">
|
||||||
|
<span style="color: red;font-weight: 700;font-size: 16px;" v-if="text == '0'">×</span>
|
||||||
|
<span style="color: green;font-weight: 700;font-size: 16px;" v-else-if="text == '1'">√</span>
|
||||||
|
</template>
|
||||||
|
<template v-if="column.dataIndex === 'type3'">
|
||||||
|
<span style="color: red;font-weight: 700;font-size: 16px;" v-if="text == '0'">×</span>
|
||||||
|
<span style="color: green;font-weight: 700;font-size: 16px;" v-else-if="text == '1'">√</span>
|
||||||
|
</template>
|
||||||
|
<template v-if="column.dataIndex === 'type4'">
|
||||||
|
<span style="color: red;font-weight: 700;font-size: 16px;" v-if="text == '0'">×</span>
|
||||||
|
<span style="color: green;font-weight: 700;font-size: 16px;" v-else-if="text == '1'">√</span>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -80,14 +98,6 @@ async function handleDelete(record, type) {
|
||||||
*/
|
*/
|
||||||
function getTableAction(record) {
|
function getTableAction(record) {
|
||||||
return [
|
return [
|
||||||
{
|
|
||||||
label: '清除长者',
|
|
||||||
popConfirm: {
|
|
||||||
title: '是否确认清除长者',
|
|
||||||
confirm: handleClean.bind(null, record, '1'),
|
|
||||||
placement: 'topLeft',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: '清除员工',
|
label: '清除员工',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
|
|
@ -95,14 +105,7 @@ function getTableAction(record) {
|
||||||
confirm: handleClean.bind(null, record, '2'),
|
confirm: handleClean.bind(null, record, '2'),
|
||||||
placement: 'topLeft',
|
placement: 'topLeft',
|
||||||
},
|
},
|
||||||
},
|
ifShow: record.type1 == '1'
|
||||||
{
|
|
||||||
label: '清除机构',
|
|
||||||
popConfirm: {
|
|
||||||
title: '是否确认清除机构',
|
|
||||||
confirm: handleClean.bind(null, record, '3'),
|
|
||||||
placement: 'topLeft',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '清除供应商',
|
label: '清除供应商',
|
||||||
|
|
@ -111,12 +114,31 @@ function getTableAction(record) {
|
||||||
confirm: handleClean.bind(null, record, '4'),
|
confirm: handleClean.bind(null, record, '4'),
|
||||||
placement: 'topLeft',
|
placement: 'topLeft',
|
||||||
},
|
},
|
||||||
|
ifShow: record.type2 == '1'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '清除机构',
|
||||||
|
popConfirm: {
|
||||||
|
title: '是否确认清除机构',
|
||||||
|
confirm: handleClean.bind(null, record, '3'),
|
||||||
|
placement: 'topLeft',
|
||||||
|
},
|
||||||
|
ifShow: record.type3 == '1'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '清除长者',
|
||||||
|
popConfirm: {
|
||||||
|
title: '是否确认清除长者',
|
||||||
|
confirm: handleClean.bind(null, record, '1'),
|
||||||
|
placement: 'topLeft',
|
||||||
|
},
|
||||||
|
ifShow: record.type4 == '1'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '清除所有',
|
label: '清除所有',
|
||||||
popConfirm: {
|
popConfirm: {
|
||||||
title: '是否确认清除所有',
|
title: '是否确认清除所有',
|
||||||
confirm: handleDelete.bind(null, record, '1'),
|
confirm: handleDelete.bind(null, record, '-1'),
|
||||||
placement: 'topLeft',
|
placement: 'topLeft',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue