6.24张祥瑞

This commit is contained in:
张祥瑞 2025-06-24 16:51:53 +08:00
parent c278e4618a
commit 0c5543ae73
7 changed files with 808 additions and 546 deletions

View File

@ -7,7 +7,7 @@ VITE_SHOW_SOURCEMAP = true
# 是否启用读取配置文件 min # 是否启用读取配置文件 min
#VITE_WEBAPP = 'D://opt//AppUpdateTest' #VITE_WEBAPP = 'D://opt//AppUpdateTest'
VITE_WEBAPP = '' VITE_WEBAPP = ''
VITE_SERVER_BASEURL = 'http://10.75.15.249:8080/jeecg-boot' VITE_SERVER_BASEURL = 'http://10.75.15.246:8080/jeecg-boot'
#VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot' #VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot'
#VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/jeecg-boot' #VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/jeecg-boot'

View File

@ -0,0 +1,12 @@
import { http } from '@/utils/http';
//
export function followpersonList(config : object) { // 访
return http({
url: '/Hmcappselect/appselect/Hmcapplist',
method: 'GET',
data: config
})
}

View File

@ -0,0 +1,136 @@
<template>
<PageLayout :navbarShow="false">
<wd-card style="margin: 10px; display: flex; justify-content: center; align-items: center;" id="top1">
<wd-row>
<wd-col :span="12" style="display: flex; justify-content: center;">
<uni-easyinput v-model="realname" placeholder="姓名模糊查询" @change="getpersonList"
@clear="getpersonList" />
</wd-col>
<wd-col :span="12" style="display: flex; justify-content: center;">
<wd-button @click="sendMessage">发送消息</wd-button>
</wd-col>
</wd-row>
</wd-card>
<wd-table :data="list" :height="tableHeight">
<wd-table-col prop="ldhth" label="" align="center" :width="screenWidth / 5">
<template #value="{row}">
<wd-checkbox v-model="row.checked" @change="handleCheckboxChange(row)"></wd-checkbox>
</template>
</wd-table-col>
<wd-table-col prop="xh" label="序号" align="center" :width="screenWidth / 5"></wd-table-col>
<!-- <wd-table-col prop="dw" label="单位" align="center" :width="screenWidth /5"></wd-table-col> -->
<wd-table-col prop="xm" label="姓名" align="center" :width="screenWidth / 5"></wd-table-col>
<wd-table-col prop="nl" label="年龄" align="center" :width="screenWidth /5"></wd-table-col>
<wd-table-col prop="xb_dictText" label="性别" align="center" :width="screenWidth / 5"></wd-table-col>
</wd-table>
<wd-pagination custom-style="border: 1px solid #ececec;border-top:none" v-model="pageNo" :total="total"
@change="handleChange"></wd-pagination>
</PageLayout>
</template>
<script setup>
import {
useMessage,
useToast
} from 'wot-design-uni'
import SelectDept from '@/components/SelectDept/SelectDept'
import {
followpersonList
} from '@/api/healthfollow/healthfllow'
const realname = ref('') //
const list = ref([])
let pageNo = 0
let pageSize = 10
const total = ref(0)
const screenHeight = ref(0)
const screenWidth = ref(0)
const tableHeight = ref(0)
const getpersonList = (e) => {
if (e != 1) { //1
pageNo = 1
}
let params = {
xm: '*' + realname.value + '*'
}
followpersonList({
...params,
pageNo,
pageSize
}).then((res) => {
console.log("res--健康随访---", res)
if (res.success) {
list.value = res.result.records.map((item, index) => ({
...item, //
xh: index + 1, // xh 1
checked: true // true
}));
total.value = res.result.total
}
// getHeight();
})
.catch((err) => {
console.log(err);
});
}
const sendMessage = () => {
//
const selectedData = list.value.filter(item => item.checked);
if (selectedData.length === 0) {
useToast().show('请先选择要发送消息的人员');
return;
}
// ldhth
const ldhthValues = selectedData.map(item => item.ldhth).join(',');
console.log('拼接后的 ldhth 值:', ldhthValues);
}
const handleCheckboxChange = (row) => {
//
console.log(`选中状态变更: ${row.xm},当前状态: ${row.checked}`);
}
/*切换页码*/
const handleChange = ({
value
}) => {
pageNo = value
getpersonList(1)
}
const calculateTableHeight = () => {
const systemInfo = uni.getSystemInfoSync();
screenWidth.value = systemInfo.screenWidth;
screenHeight.value = systemInfo.screenHeight;
// +
const query = uni.createSelectorQuery();
query.select('#top1').boundingClientRect(data => {
const topHeight = data ? data.height : 0;
const navHeight = 88; //
const margin = 20; //
//
tableHeight.value = screenHeight.value - topHeight - navHeight;
}).exec();
}
onMounted(() => {
getpersonList();
followpersonList();
calculateTableHeight();
//
uni.onWindowResize(() => {
calculateTableHeight();
});
})
</script>
<style>
</style>

View File

@ -0,0 +1,79 @@
<route lang="json5" type="page">
{
layout: 'default',
style: {
navigationStyle: 'custom',
navigationBarTitleText: '健康随访',
},
}
</route>
<template>
<PageLayout navTitle="健康随访">
<view style="margin: 0 10px;">
<uni-segmented-control style="margin-top: 10px;margin-bottom: 10px" :current="current" :values="items"
@clickItem="onClickItem" styleType="button"></uni-segmented-control>
</view>
<view class="content">
<view v-if="current === 0">
<send></send>
</view>
<view v-if="current === 1">
</view>
</view>
</PageLayout>
</template>
<script setup>
import {
useMessage,
useToast
} from 'wot-design-uni'
import {
useAppStore
} from '@/store';
import {
useUserStore
} from '@/store/user';
import {
addApi,
queryIf3rdGxyApi
} from '@/api/politics/health'
import {
getEnvBaseUrl
} from '@/utils/index'
import send from './send'
const items = ref(['发送随访信息', '查看随访信息'])
const userStore = useUserStore(); //
const current = ref(0)
function onClickItem(e) {
if (current.value != e.currentIndex) {
current.value = e.currentIndex;
}
}
onLoad(() => {
// if3rdGxy()
})
</script>
<style lang="scss" scoped>
.form-container {
padding: 20rpx;
background-color: #f5f7fa;
min-height: 100vh;
}
.card {
background: #ffffff;
border-radius: 16rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
margin-bottom: 30rpx;
overflow: hidden;
}
.footer {
padding: 40rpx 0;
}
</style>

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@ -53,13 +53,18 @@ interface NavigateToOptions {
"/pages-humanResource/personnel/standingbook" | "/pages-humanResource/personnel/standingbook" |
"/pages-integrated/duty/index" | "/pages-integrated/duty/index" |
"/pages-politics/health/add" | "/pages-politics/health/add" |
"/pages-politics/healthfollow/send" |
"/pages-politics/healthfollow/sendmessage" |
"/pages-process/approvalTabbar" | "/pages-process/approvalTabbar" |
"/pages-process/myApplyProcess" | "/pages-process/myApplyProcess" |
"/pages-process/taskHandle" | "/pages-process/taskHandle" |
"/pages-bpm/carRental/index" |
"/pages-bpm/document/index" |
"/pages-bpm/khss/index" |
"/pages-bpm/lawsAndRegulations/index" | "/pages-bpm/lawsAndRegulations/index" |
"/pages-bpm/leaveApplication/index" | "/pages-bpm/leaveApplication/index" |
"/pages-bpm/OfficeEquipmentMaintenanceApplication/index" | "/pages-bpm/OfficeEquipmentMaintenanceApplication/index" |
"/pages-bpm/SuperiorSystem/index"; "/pages-bpm/SuperiorSystem/index" |
"/pages-bpm/unconventional/index" | "/pages-bpm/unconventional/index" |
"/pages-bpm/unconventional/stamp" | "/pages-bpm/unconventional/stamp" |
"/pages-bpm/zbkh/index"; "/pages-bpm/zbkh/index";