|
@@ -94,6 +94,8 @@
|
|
|
<template #bodyCell="{ column, text, record }">
|
|
|
<template v-if="column.key === 'operation'">
|
|
|
<div class="table-operation">
|
|
|
+ <a-button type="link" size="small" functioncode="T01010205" @click='onDetail(record.siteID)'>查看
|
|
|
+ </a-button>
|
|
|
<a-button type="link" size="small" functioncode="T01010203" @click='onEdit(record.siteID)' >编辑</a-button>
|
|
|
<a-button type="link" size="small" functioncode="T01010204" @click="onDel(record)" >删除</a-button>
|
|
|
</div>
|
|
@@ -105,15 +107,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import {reactive, ref, computed, defineComponent, createVNode} from 'vue';
|
|
|
+import {computed, createVNode, defineComponent, reactive, ref} from 'vue';
|
|
|
import {useTabsViewStore} from "@/store/modules/tabsView";
|
|
|
import {DownOutlined, ExclamationCircleOutlined, UpOutlined} from '@ant-design/icons-vue';
|
|
|
-import type {FormInstance,TableColumnsType, TableProps} from 'ant-design-vue';
|
|
|
-import {getSiteList,delSite} from '@/api/baseSettings/siteInfo';
|
|
|
+import type {FormInstance, TableColumnsType, TableProps} from 'ant-design-vue';
|
|
|
+import {message, Modal, SelectProps} from "ant-design-vue";
|
|
|
+import {delSite, getSiteList} from '@/api/baseSettings/siteInfo';
|
|
|
import {getRegionCodeList, getStreetCodeList} from "@/api/system/area/index";
|
|
|
import BExportExcel from "@/components/basic/excel/exportExcel/exportExcel.vue";
|
|
|
import {getPaginationTotalTitle} from "@/utils/common";
|
|
|
-import {message, Modal, SelectProps} from "ant-design-vue";
|
|
|
import {getInstitutionDataList} from "@/api/baseSettings/institution";
|
|
|
|
|
|
export default defineComponent({
|
|
@@ -148,7 +150,7 @@ export default defineComponent({
|
|
|
{title: '详细地址', dataIndex: 'detailAddress', key: 'detailAddress', align: "center"},
|
|
|
{title: '所属机构', dataIndex: 'institutionName', key: 'institutionName', align: "center"},
|
|
|
{title: '驿站人员', dataIndex: 'siteUsers',key: 'siteUsers', fixed: 'right',width:170, align: "center"},
|
|
|
- {title: '操作', key: 'operation', fixed: 'right',width:100, align: "center"},
|
|
|
+ {title: '操作', key: 'operation', fixed: 'right', width: 150, align: "center"},
|
|
|
];
|
|
|
const pagination = computed(() => ({
|
|
|
total: formState.total,
|
|
@@ -235,6 +237,10 @@ export default defineComponent({
|
|
|
tabsViewStore.addTabByPath('/baseSettings/site/edit', {id:id});
|
|
|
};
|
|
|
|
|
|
+ const onDetail = (id: string) => {
|
|
|
+ tabsViewStore.addTabByPath('/baseSettings/site/detail', {id: id});
|
|
|
+ };
|
|
|
+
|
|
|
const loadData = async function () {
|
|
|
formState.loading = true;
|
|
|
await getAllInstitutions();
|
|
@@ -263,7 +269,8 @@ export default defineComponent({
|
|
|
onEdit,
|
|
|
onDel,
|
|
|
loadData,
|
|
|
- changeRegion
|
|
|
+ changeRegion,
|
|
|
+ onDetail
|
|
|
};
|
|
|
},
|
|
|
created() {
|