|
|
@@ -11,10 +11,6 @@
|
|
|
</Popconfirm>
|
|
|
</Authority>
|
|
|
</template>
|
|
|
- <!-- <template #status="{ record }">
|
|
|
- <Switch :checked="record.status === 1" :loading="record.pendingStatus" checkedChildren="启用" unCheckedChildren="禁用"
|
|
|
- @change="(checked: boolean) => statusChange(checked, record)" />
|
|
|
- </template> -->
|
|
|
<template #action="{ record }">
|
|
|
<TableAction :actions="[
|
|
|
{
|
|
|
@@ -48,17 +44,10 @@
|
|
|
},
|
|
|
]" />
|
|
|
</template>
|
|
|
- <template #pdate="{ record }">
|
|
|
- <Tag :color="'red'">
|
|
|
- {{
|
|
|
- record.publishdate ? moment(record.publishdate).format('YYYY-MM-DD HH:mm:ss') : ''
|
|
|
- }}
|
|
|
- </Tag>
|
|
|
- </template>
|
|
|
- <template #status="{ record }">
|
|
|
+ <template #assemblyStatus="{ record }">
|
|
|
<Tag :style="`color:${record.status === 3 || record.status === 3 ? 'red' : ''};`">
|
|
|
{{
|
|
|
- record.status === 0 ? '待审核' : (record.status === 1 ? '审核通过' : (record.status === 2 ? '审核不通过' : (record.status
|
|
|
+ record.status === 0 ? '待审核' : (record.status === '1' ? '审核通过' : (record.status === 2 ? '审核不通过' : (record.status
|
|
|
=== 3 ? '被驳回' : '未提交')))
|
|
|
}}
|
|
|
</Tag>
|
|
|
@@ -83,6 +72,7 @@ import { useBatchDelete } from '/@/hooks/web/useBatchDelete';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import { Switch, Popconfirm } from 'ant-design-vue';
|
|
|
import { list, deleteService } from '/@/api/dataAdmin/assembly';
|
|
|
+import { getAllInterface } from '/@/api/interface/interface.ts';
|
|
|
import Moment from 'moment'
|
|
|
|
|
|
export default defineComponent({
|
|
|
@@ -92,8 +82,8 @@ export default defineComponent({
|
|
|
//const [registerDrawer, { openDrawer }] = useDrawer();
|
|
|
const [registerModal, { openModal }] = useModal();
|
|
|
const [registerTable, { setProps, reload, setSelectedRowKeys }] = useTable({
|
|
|
- title: '地图资源列表',
|
|
|
- api: list,
|
|
|
+ title: '接口列表',
|
|
|
+ api: getAllInterface,
|
|
|
columns,
|
|
|
formConfig: {
|
|
|
labelWidth: 100,
|