2025-07-09 17:32:09 +08:00
|
|
|
|
<template>
|
2025-07-17 09:38:49 +08:00
|
|
|
|
<div class="p-2">
|
|
|
|
|
<!--查询区域-->
|
|
|
|
|
<div class="jeecg-basic-table-form-container">
|
|
|
|
|
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol"
|
|
|
|
|
:wrapper-col="wrapperCol">
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :lg="6">
|
|
|
|
|
<a-form-item name="title">
|
|
|
|
|
<template #label><span title="机构名称">机构名称</span></template>
|
|
|
|
|
<a-input placeholder="请输入机构名称" v-model:value="queryParam.title" allow-clear></a-input>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :lg="6">
|
|
|
|
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
|
|
|
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset"
|
|
|
|
|
style="margin-left: 8px">重置</a-button>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :lg="12" style="text-align: right;">
|
|
|
|
|
<a-button type="primary" preIcon="ant-design:cloud-sync-outlined" @click="handleJingxiang">镜像</a-button>
|
|
|
|
|
</a-col>
|
2025-07-09 17:32:09 +08:00
|
|
|
|
</a-row>
|
2025-07-17 09:38:49 +08:00
|
|
|
|
</a-form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col v-for="item in orgTableList.records" :key="item.id" :xs="24" :sm="24" :md="12" :lg="12" :xl="8" :xxl="6"
|
|
|
|
|
style="padding: 8px;">
|
|
|
|
|
<a-card style="width: 100%;border-radius: 8px;" :headStyle="{ height: '60px', padding: '0 24px' }"
|
|
|
|
|
:bodyStyle="{ padding: '24px 24px 4px 24px' }">
|
|
|
|
|
<template #title>
|
|
|
|
|
<a-row style="font-weight: normal;">
|
|
|
|
|
<a-col :span="22" style="font-size: 14px;padding-top: 4px;">
|
|
|
|
|
<div><span style="font-weight: bold;">{{ item.departName }}</span></div>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="2" style="text-align: center;padding-top: 4px;">
|
|
|
|
|
<div class="zxClass">{{ item.orgCode }}</div>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</template>
|
|
|
|
|
<p>加盟时间:{{ item.operationStartTime.substring(0, 10) }}</p>
|
|
|
|
|
<p>机构负责人:{{ item.createBy }}</p>
|
|
|
|
|
<p>负责人电话:{{ item.mobile }}</p>
|
|
|
|
|
<p class="ellipsis-one-lines" :title="item.address">机构地址:{{ item.address }}</p>
|
|
|
|
|
<a-divider />
|
|
|
|
|
<p style="text-align:center;">
|
|
|
|
|
<span style="display:inline-block;cursor: pointer;" @click="handleDetail(item)">
|
|
|
|
|
<span class="tbClass"><img src="../../../assets/images/a14.png" style="width:20px;" /></span><br />
|
|
|
|
|
<span class="antTitle">详情</span>
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
</a-card>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col v-if="orgTableList.total == 0">
|
|
|
|
|
<div style="margin: 30px auto;">
|
|
|
|
|
<a-empty />
|
2025-07-09 17:32:09 +08:00
|
|
|
|
</div>
|
2025-07-17 09:38:49 +08:00
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
<div
|
|
|
|
|
style="float:right;bottom: 20px;z-index: 999;padding: 8px 16px;border-radius: 4px;display: flex;align-items: center;">
|
|
|
|
|
<span style="margin-right: 10px;">共 {{ orgTableList.total }} 条数据</span>
|
|
|
|
|
<Pagination showLessItems v-model:current="pageParams.pageNo" :pageSize="pageParams.pageSize" size="small"
|
|
|
|
|
show-quick-jumper :total="orgTableList.total" @change="reload" />
|
2025-07-09 17:32:09 +08:00
|
|
|
|
</div>
|
2025-07-17 09:38:49 +08:00
|
|
|
|
<ConfigServiceDirectiveListModal ref="configServiceDirectiveListModal" />
|
|
|
|
|
<SyncStepListModal ref="syncStepListModal" />
|
|
|
|
|
</div>
|
2025-07-09 17:32:09 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup name="synchronization-directive2" lang="ts">
|
|
|
|
|
import { ref, reactive, computed, onMounted } from 'vue'
|
|
|
|
|
import JInput from "/@/components/Form/src/jeecg/components/JInput.vue";
|
|
|
|
|
import { getOrgInfo } from '/@/api/common/api';
|
|
|
|
|
// 以下为服务指令引用:
|
2025-07-17 09:38:49 +08:00
|
|
|
|
import { list, asyncFunc, departList } from '@/views/services/serviceDirective/ConfigServiceDirective.api';
|
|
|
|
|
import { Pagination } from 'ant-design-vue';
|
2025-07-09 17:32:09 +08:00
|
|
|
|
import ConfigServiceDirectiveListModal from '/@/views/synchronization/directive/serviceDirective/ConfigServiceDirectiveListModal.vue';
|
|
|
|
|
import SyncStepListModal from '/@/views/synchronization/directive/syncStep/SyncStepListModal.vue';
|
|
|
|
|
|
|
|
|
|
const formRef = ref();
|
|
|
|
|
const configServiceDirectiveListModal = ref();
|
|
|
|
|
const syncStepListModal = ref();
|
|
|
|
|
const orgTableList = ref<any>([]);
|
|
|
|
|
const queryParam = reactive<any>({});
|
|
|
|
|
const pageParams = ref({ pageNo: 1, pageSize: 8 })
|
|
|
|
|
|
|
|
|
|
|
2025-07-17 09:38:49 +08:00
|
|
|
|
const labelCol = reactive({
|
|
|
|
|
xs: 24,
|
|
|
|
|
sm: 4,
|
|
|
|
|
xl: 6,
|
|
|
|
|
xxl: 4
|
|
|
|
|
});
|
|
|
|
|
const wrapperCol = reactive({
|
|
|
|
|
xs: 24,
|
|
|
|
|
sm: 20,
|
|
|
|
|
});
|
2025-07-09 17:32:09 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 镜像
|
|
|
|
|
*/
|
2025-07-17 09:38:49 +08:00
|
|
|
|
function handleJingxiang() {
|
|
|
|
|
syncStepListModal.value.init(null);
|
|
|
|
|
syncStepListModal.value.disableSubmit = true;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 详情
|
|
|
|
|
* @param record
|
|
|
|
|
*/
|
2025-07-09 17:32:09 +08:00
|
|
|
|
function handleDetail(record) {
|
2025-07-17 09:38:49 +08:00
|
|
|
|
configServiceDirectiveListModal.value.init(record);
|
|
|
|
|
configServiceDirectiveListModal.value.disableSubmit = true;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 查询
|
|
|
|
|
*/
|
|
|
|
|
function searchQuery() {
|
|
|
|
|
reload();
|
|
|
|
|
}
|
2025-07-09 17:32:09 +08:00
|
|
|
|
|
2025-07-17 09:38:49 +08:00
|
|
|
|
function reload() {
|
|
|
|
|
//刷新数据
|
|
|
|
|
queryParam.pageSize = pageParams.value.pageSize;
|
|
|
|
|
queryParam.pageNo = pageParams.value.pageNo;
|
|
|
|
|
departList(queryParam).then(res => {
|
|
|
|
|
orgTableList.value = res;
|
2025-07-09 17:32:09 +08:00
|
|
|
|
});
|
2025-07-17 09:38:49 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 重置
|
|
|
|
|
*/
|
|
|
|
|
function searchReset() {
|
|
|
|
|
formRef.value.resetFields();
|
|
|
|
|
//刷新数据
|
|
|
|
|
reload();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 自动请求并暴露内部方法
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
reload();
|
|
|
|
|
});
|
2025-07-09 17:32:09 +08:00
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
2025-07-17 09:38:49 +08:00
|
|
|
|
.jeecg-basic-table-form-container {
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
.table-page-search-submitButtons {
|
|
|
|
|
display: block;
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.query-group-cust {
|
|
|
|
|
min-width: 100px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.query-group-split-cust {
|
|
|
|
|
width: 30px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
text-align: center
|
2025-07-09 17:32:09 +08:00
|
|
|
|
}
|
2025-07-17 09:38:49 +08:00
|
|
|
|
|
|
|
|
|
.ant-form-item:not(.ant-form-item-with-help) {
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:deep(.ant-picker),
|
|
|
|
|
:deep(.ant-input-number) {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cardTitle {
|
2025-07-09 17:32:09 +08:00
|
|
|
|
background: #1ea0fa;
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: -28px -24px;
|
|
|
|
|
padding-top: 15px;
|
|
|
|
|
border-radius: 5px 5px 0px 0px;
|
|
|
|
|
color: white;
|
|
|
|
|
height: 55px;
|
|
|
|
|
display: block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
2025-07-17 09:38:49 +08:00
|
|
|
|
|
|
|
|
|
.zxClass {
|
|
|
|
|
font-size: 12px;
|
2025-07-09 17:32:09 +08:00
|
|
|
|
background: linear-gradient(to right, #1ea0fa, #017de9);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
height: 25px;
|
|
|
|
|
color: white;
|
|
|
|
|
line-height: 25px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-17 09:38:49 +08:00
|
|
|
|
.lxClass {
|
|
|
|
|
font-size: 14px;
|
2025-07-09 17:32:09 +08:00
|
|
|
|
background: linear-gradient(to right, #cccccc, #cccccc);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
height: 35px;
|
|
|
|
|
color: white;
|
|
|
|
|
line-height: 35px;
|
|
|
|
|
}
|
2025-07-17 09:38:49 +08:00
|
|
|
|
|
|
|
|
|
.tbClass {
|
2025-07-09 17:32:09 +08:00
|
|
|
|
background: #f6f6f6;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
}
|
2025-07-17 09:38:49 +08:00
|
|
|
|
|
|
|
|
|
.antTitle {
|
2025-07-09 17:32:09 +08:00
|
|
|
|
margin-top: 10px;
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ellipsis-one-lines {
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
-webkit-box-orient: vertical;
|
2025-07-17 09:38:49 +08:00
|
|
|
|
-webkit-line-clamp: 1;
|
|
|
|
|
/* 限制文本为2行 */
|
2025-07-09 17:32:09 +08:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
</style>
|