修改了人员统计三个页面相关界面和逻辑,增加照片显示
This commit is contained in:
parent
cc6681cfb5
commit
35565d4a8c
@ -1,4 +1,4 @@
|
|||||||
# 开发环境
|
# 开发环境
|
||||||
# 请求接口地址
|
# 请求接口地址
|
||||||
VITE_REQUEST_BASE_URL = https://36.112.48.190
|
VITE_REQUEST_BASE_URL = https://36.112.48.190
|
||||||
#VITE_REQUEST_BASE_URL = http://10.75.15.247:8080
|
#VITE_REQUEST_BASE_URL = http://10.75.166.6:8080
|
||||||
|
95
package-lock.json
generated
95
package-lock.json
generated
@ -1,95 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "cxc-szcx-uniapp-master",
|
|
||||||
"lockfileVersion": 2,
|
|
||||||
"requires": true,
|
|
||||||
"packages": {
|
|
||||||
"": {
|
|
||||||
"dependencies": {
|
|
||||||
"@dcloudio/uni-ui": "^1.5.6",
|
|
||||||
"base-64": "^1.0.0",
|
|
||||||
"dayjs": "^1.11.13",
|
|
||||||
"echarts": "^5.6.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@dcloudio/uni-ui": {
|
|
||||||
"version": "1.5.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/@dcloudio/uni-ui/-/uni-ui-1.5.6.tgz",
|
|
||||||
"integrity": "sha512-jmb98PasFvZkrIDXGh94GbdWg2/jyhgs1HUG+bU8eyL7Ltias/5XBz4q8w9RXyWUfqepJRqapPA2IIQpLCuTIg==",
|
|
||||||
"license": "Apache-2.0"
|
|
||||||
},
|
|
||||||
"node_modules/base-64": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/base-64/-/base-64-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg=="
|
|
||||||
},
|
|
||||||
"node_modules/dayjs": {
|
|
||||||
"version": "1.11.13",
|
|
||||||
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz",
|
|
||||||
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg=="
|
|
||||||
},
|
|
||||||
"node_modules/echarts": {
|
|
||||||
"version": "5.6.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.6.0.tgz",
|
|
||||||
"integrity": "sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==",
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"dependencies": {
|
|
||||||
"tslib": "2.3.0",
|
|
||||||
"zrender": "5.6.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/tslib": {
|
|
||||||
"version": "2.3.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz",
|
|
||||||
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==",
|
|
||||||
"license": "0BSD"
|
|
||||||
},
|
|
||||||
"node_modules/zrender": {
|
|
||||||
"version": "5.6.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.6.1.tgz",
|
|
||||||
"integrity": "sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==",
|
|
||||||
"license": "BSD-3-Clause",
|
|
||||||
"dependencies": {
|
|
||||||
"tslib": "2.3.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@dcloudio/uni-ui": {
|
|
||||||
"version": "1.5.6",
|
|
||||||
"resolved": "https://registry.npmjs.org/@dcloudio/uni-ui/-/uni-ui-1.5.6.tgz",
|
|
||||||
"integrity": "sha512-jmb98PasFvZkrIDXGh94GbdWg2/jyhgs1HUG+bU8eyL7Ltias/5XBz4q8w9RXyWUfqepJRqapPA2IIQpLCuTIg=="
|
|
||||||
},
|
|
||||||
"base-64": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/base-64/-/base-64-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg=="
|
|
||||||
},
|
|
||||||
"dayjs": {
|
|
||||||
"version": "1.11.13",
|
|
||||||
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz",
|
|
||||||
"integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg=="
|
|
||||||
},
|
|
||||||
"echarts": {
|
|
||||||
"version": "5.6.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.6.0.tgz",
|
|
||||||
"integrity": "sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==",
|
|
||||||
"requires": {
|
|
||||||
"tslib": "2.3.0",
|
|
||||||
"zrender": "5.6.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tslib": {
|
|
||||||
"version": "2.3.0",
|
|
||||||
"resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz",
|
|
||||||
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
|
|
||||||
},
|
|
||||||
"zrender": {
|
|
||||||
"version": "5.6.1",
|
|
||||||
"resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.6.1.tgz",
|
|
||||||
"integrity": "sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==",
|
|
||||||
"requires": {
|
|
||||||
"tslib": "2.3.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -98,17 +98,17 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
/*生产环境 begin */
|
/*生产环境 begin */
|
||||||
// loginApi({
|
loginApi({
|
||||||
// username: un,
|
username: un,
|
||||||
// password: pw,
|
password: pw,
|
||||||
// ip: getDeviceIp()
|
ip: getDeviceIp()
|
||||||
/*生产环境 end */
|
/*生产环境 end */
|
||||||
|
|
||||||
/*开发环境 begin */
|
/*开发环境 begin */
|
||||||
localLoginApi({
|
// localLoginApi({
|
||||||
username: username.value,
|
// username: username.value,
|
||||||
password: password.value,
|
// password: password.value,
|
||||||
captcha: 'app'
|
// captcha: 'app'
|
||||||
/*开发环境 end */
|
/*开发环境 end */
|
||||||
}).then((loginres) => {
|
}).then((loginres) => {
|
||||||
if (loginres.success) {
|
if (loginres.success) {
|
||||||
|
@ -1,29 +1,30 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<scroll-view :scroll-x="true" :scroll-y="true">
|
<scroll-view :scroll-x="true" :scroll-y="true">
|
||||||
<view style="padding: 10px 10px 10px 10px;">
|
<view style="padding: 10px 10px 10px 10px">
|
||||||
<uni-title title="基本信息" type="h1" color="blue"></uni-title>
|
<uni-title title="基本信息" type="h1" color="blue"></uni-title>
|
||||||
<yjly-row-cell :cellData="cellData" :rowDataCount="3"></yjly-row-cell>
|
<uni-row>
|
||||||
|
<uni-col :span="18"><yjly-row-cell :cellData="cellData" :rowDataCount="2"></yjly-row-cell></uni-col>
|
||||||
|
<uni-col :span="6">
|
||||||
|
<view class="img">
|
||||||
|
<image mode="aspectFit" :src="'https://36.112.48.190/jeecg-boot/sys/common/static/' + imgUrl"></image>
|
||||||
|
</view>
|
||||||
|
</uni-col>
|
||||||
|
</uni-row>
|
||||||
|
|
||||||
|
<yjly-row-cell :cellData="cellData1" :rowDataCount="3"></yjly-row-cell>
|
||||||
|
|
||||||
<uni-title title="年度绩效考核" type="h1" color="blue"></uni-title>
|
<uni-title title="年度绩效考核" type="h1" color="blue"></uni-title>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">序号</view>
|
||||||
序号
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="10">
|
<uni-col :span="10">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">绩效考核年份</view>
|
||||||
绩效考核年份
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="10">
|
<uni-col :span="10">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">绩效考核成绩</view>
|
||||||
绩效考核成绩
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
|
|
||||||
|
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<view v-for="(item, index) in jxkhxxList">
|
<view v-for="(item, index) in jxkhxxList">
|
||||||
@ -36,9 +37,10 @@
|
|||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.nf }}
|
{{ item.nf }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col><uni-col :span="10">
|
</uni-col>
|
||||||
|
<uni-col :span="10">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{item.khcj+"---"+item.khcj_dictText}}
|
{{ item.khcj + '---' + item.khcj_dictText }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</view>
|
</view>
|
||||||
@ -46,24 +48,16 @@
|
|||||||
<uni-title title="工作简历" type="h1" color="blue"></uni-title>
|
<uni-title title="工作简历" type="h1" color="blue"></uni-title>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">起始时间</view>
|
||||||
起始时间
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">终止时间</view>
|
||||||
终止时间
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="11">
|
<uni-col :span="11">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">工作职务</view>
|
||||||
工作职务
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="5">
|
<uni-col :span="5">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">岗位职务</view>
|
||||||
岗位职务
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
@ -77,11 +71,13 @@
|
|||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.jssj }}
|
{{ item.jssj }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col><uni-col :span="11">
|
</uni-col>
|
||||||
|
<uni-col :span="11">
|
||||||
<view class="dataStyle2" ref="dataView">
|
<view class="dataStyle2" ref="dataView">
|
||||||
{{ item.jlms }}
|
{{ item.jlms }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col><uni-col :span="5">
|
</uni-col>
|
||||||
|
<uni-col :span="5">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.jlms2 }}
|
{{ item.jlms2 }}
|
||||||
</view>
|
</view>
|
||||||
@ -92,34 +88,22 @@
|
|||||||
<uni-title title="学历信息" type="h1" color="blue"></uni-title>
|
<uni-title title="学历信息" type="h1" color="blue"></uni-title>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">类别</view>
|
||||||
类别
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">毕业院校</view>
|
||||||
毕业院校
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">所学专业</view>
|
||||||
所学专业
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">学历</view>
|
||||||
学历
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">学位</view>
|
||||||
学位
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">毕业时间</view>
|
||||||
毕业时间
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
@ -130,25 +114,27 @@
|
|||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle2">
|
||||||
{{ item.byyx }}
|
{{ item.byyx }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col><uni-col :span="4">
|
</uni-col>
|
||||||
|
<uni-col :span="4">
|
||||||
<view class="dataStyle2" ref="dataView">
|
<view class="dataStyle2" ref="dataView">
|
||||||
{{ item.sxzy }}
|
{{ item.sxzy }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col><uni-col :span="4">
|
</uni-col>
|
||||||
|
<uni-col :span="4">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.qdxl }}
|
{{ item.qdxl }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle2">
|
||||||
{{ item.qdxw }}
|
{{ item.qdxw }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle2">
|
||||||
{{ item.bytime }}
|
{{ item.bytime }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
@ -157,29 +143,19 @@
|
|||||||
<uni-title title="取证信息" type="h1" color="blue"></uni-title>
|
<uni-title title="取证信息" type="h1" color="blue"></uni-title>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="6">
|
<uni-col :span="6">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">证书名称</view>
|
||||||
证书名称
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="5">
|
<uni-col :span="5">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">证书等级</view>
|
||||||
证书等级
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="5">
|
<uni-col :span="5">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">取证时间</view>
|
||||||
取证时间
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="5">
|
<uni-col :span="5">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">复审时间</view>
|
||||||
复审时间
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="3">
|
<uni-col :span="3">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">备注</view>
|
||||||
备注
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
@ -193,11 +169,13 @@
|
|||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.zsdj }}
|
{{ item.zsdj }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col><uni-col :span="5">
|
</uni-col>
|
||||||
|
<uni-col :span="5">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.fzrq }}
|
{{ item.fzrq }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col><uni-col :span="5">
|
</uni-col>
|
||||||
|
<uni-col :span="5">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.fssj }}
|
{{ item.fssj }}
|
||||||
</view>
|
</view>
|
||||||
@ -213,29 +191,19 @@
|
|||||||
<uni-title title="家庭信息" type="h1" color="blue"></uni-title>
|
<uni-title title="家庭信息" type="h1" color="blue"></uni-title>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">称谓</view>
|
||||||
称谓
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="3">
|
<uni-col :span="3">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">姓名</view>
|
||||||
姓名
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="6">
|
<uni-col :span="6">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">出生年月</view>
|
||||||
出生年月
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="4">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">政治面貌</view>
|
||||||
政治面貌
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="7">
|
<uni-col :span="7">
|
||||||
<view class="titleStyle">
|
<view class="titleStyle">工作单位及职务</view>
|
||||||
工作单位及职务
|
|
||||||
</view>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
@ -249,11 +217,13 @@
|
|||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.gxname }}
|
{{ item.gxname }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col><uni-col :span="6">
|
</uni-col>
|
||||||
|
<uni-col :span="6">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.cstime }}
|
{{ item.cstime }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col><uni-col :span="4">
|
</uni-col>
|
||||||
|
<uni-col :span="4">
|
||||||
<view class="dataStyle1">
|
<view class="dataStyle1">
|
||||||
{{ item.cyzzmm }}
|
{{ item.cyzzmm }}
|
||||||
</view>
|
</view>
|
||||||
@ -268,293 +238,273 @@
|
|||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import { onReady, onLoad } from '@dcloudio/uni-app';
|
||||||
onReady,
|
import { reactive, ref, onMounted } from 'vue';
|
||||||
onLoad
|
import { queryGzjlByRyLdhth, queryQzqkByRyLdhth, queryJtzycyByRyLdhth, queryXlxxByRyLdhth, queryGbxxByRyLdhth, queryZyzgdjByRyLdhth, queryJxkhByRyLdhth } from '@/api/renyuan.js';
|
||||||
} from '@dcloudio/uni-app';
|
import { useStore } from '@/store';
|
||||||
import {
|
|
||||||
reactive,
|
|
||||||
ref,
|
|
||||||
onMounted
|
|
||||||
} from 'vue';
|
|
||||||
import {
|
|
||||||
queryGzjlByRyLdhth,
|
|
||||||
queryQzqkByRyLdhth,
|
|
||||||
queryJtzycyByRyLdhth,
|
|
||||||
queryXlxxByRyLdhth,
|
|
||||||
queryGbxxByRyLdhth,
|
|
||||||
queryZyzgdjByRyLdhth,
|
|
||||||
queryJxkhByRyLdhth
|
|
||||||
} from '@/api/renyuan.js'
|
|
||||||
import {
|
|
||||||
useStore
|
|
||||||
} from '@/store';
|
|
||||||
const tempCellData = ref({
|
const tempCellData = ref({
|
||||||
"title": "",
|
title: '',
|
||||||
"value": "",
|
value: '',
|
||||||
"titleSpan": 4,
|
titleSpan: 4,
|
||||||
"valueSpan": 4
|
valueSpan: 4
|
||||||
})
|
});
|
||||||
const ldhth = ref("")
|
const ldhth = ref('');
|
||||||
const renyuanData = ref({})
|
const imgUrl = ref('');
|
||||||
const cellData = ref([])
|
const renyuanData = ref({});
|
||||||
const gzjlList = ref([]) // 人员其他子表信息-工作经历
|
const cellData = ref([]);
|
||||||
const zjtzList = ref([]) // 人员其他子表信息-证件台账
|
const cellData1 = ref([]);
|
||||||
const zyjtcyList = ref([]) // 人员其他子表信息-主要家庭成员
|
|
||||||
const xlxxList = ref([]) // 人员其他子表信息-学历证书
|
|
||||||
const gbxxList = ref([]) // 人员其他子表信息-干部信息
|
|
||||||
const zyzgdjList = ref([]) // 人员其他子表信息-职业资格等级
|
|
||||||
const jxkhxxList = ref([]) // 人员其他子表信息-绩效考核信息
|
|
||||||
|
|
||||||
|
const gzjlList = ref([]); // 人员其他子表信息-工作经历
|
||||||
|
const zjtzList = ref([]); // 人员其他子表信息-证件台账
|
||||||
|
const zyjtcyList = ref([]); // 人员其他子表信息-主要家庭成员
|
||||||
|
const xlxxList = ref([]); // 人员其他子表信息-学历证书
|
||||||
|
const gbxxList = ref([]); // 人员其他子表信息-干部信息
|
||||||
|
const zyzgdjList = ref([]); // 人员其他子表信息-职业资格等级
|
||||||
|
const jxkhxxList = ref([]); // 人员其他子表信息-绩效考核信息
|
||||||
|
|
||||||
function getChildTable() {
|
function getChildTable() {
|
||||||
console.log(ldhth.value)
|
console.log(ldhth.value);
|
||||||
|
|
||||||
queryJxkhByRyLdhth({
|
queryJxkhByRyLdhth({
|
||||||
"ldhth": ldhth.value
|
ldhth: ldhth.value
|
||||||
}).then((res) => {
|
|
||||||
// console.log(res);
|
|
||||||
jxkhxxList.value = res.result.records
|
|
||||||
// console.log(jxkhxxList.value)
|
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err);
|
|
||||||
})
|
})
|
||||||
|
.then((res) => {
|
||||||
|
// console.log(res);
|
||||||
|
jxkhxxList.value = res.result.records;
|
||||||
|
// console.log(jxkhxxList.value)
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
|
||||||
queryGbxxByRyLdhth({
|
queryGbxxByRyLdhth({
|
||||||
"ldhth": ldhth.value
|
ldhth: ldhth.value
|
||||||
}).then((res) => {
|
})
|
||||||
|
.then((res) => {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
gbxxList.value = res
|
gbxxList.value = res;
|
||||||
// console.log(gbxxList.value)
|
// console.log(gbxxList.value)
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err);
|
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
queryZyzgdjByRyLdhth({
|
queryZyzgdjByRyLdhth({
|
||||||
"ldhth": ldhth.value
|
ldhth: ldhth.value
|
||||||
}).then((res) => {
|
})
|
||||||
|
.then((res) => {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
zyzgdjList.value = res
|
zyzgdjList.value = res;
|
||||||
// console.log(zyzgdjList.value)
|
// console.log(zyzgdjList.value)
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err);
|
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
queryGzjlByRyLdhth({
|
queryGzjlByRyLdhth({
|
||||||
"ldhth": ldhth.value
|
ldhth: ldhth.value
|
||||||
}).then((res) => {
|
})
|
||||||
|
.then((res) => {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
gzjlList.value = res
|
gzjlList.value = res;
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err);
|
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
queryQzqkByRyLdhth({
|
queryQzqkByRyLdhth({
|
||||||
"ldhth": ldhth.value
|
ldhth: ldhth.value
|
||||||
}).then((res) => {
|
})
|
||||||
|
.then((res) => {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
zjtzList.value = res
|
zjtzList.value = res;
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err);
|
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
queryJtzycyByRyLdhth({
|
queryJtzycyByRyLdhth({
|
||||||
"ldhth": ldhth.value
|
ldhth: ldhth.value
|
||||||
}).then((res) => {
|
})
|
||||||
|
.then((res) => {
|
||||||
// console.log(res);
|
// console.log(res);
|
||||||
if (res.length > 0) {
|
if (res.length > 0) {
|
||||||
zyjtcyList.value = res
|
zyjtcyList.value = res;
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err);
|
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
queryXlxxByRyLdhth({
|
queryXlxxByRyLdhth({
|
||||||
"ldhth": ldhth.value
|
ldhth: ldhth.value
|
||||||
}).then((res) => {
|
})
|
||||||
|
.then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
xlxxList.value = []
|
xlxxList.value = [];
|
||||||
if (res.result.records.length > 0) {
|
if (res.result.records.length > 0) {
|
||||||
var rress = res.result.records
|
var rress = res.result.records;
|
||||||
// console.log(rress);
|
// console.log(rress);
|
||||||
for (let i = 0; i < rress.length; i++) {
|
for (let i = 0; i < rress.length; i++) {
|
||||||
if (rress[i].onexl == 1 & rress[i].zgxl == 1) {
|
if ((rress[i].onexl == 1) & (rress[i].zgxl == 1)) {
|
||||||
rress[i].xllb = "第一学历"
|
rress[i].xllb = '第一学历';
|
||||||
xlxxList.value.push(JSON.parse(JSON.stringify(rress[i])))
|
xlxxList.value.push(JSON.parse(JSON.stringify(rress[i])));
|
||||||
// console.log(xlxxList.value)
|
// console.log(xlxxList.value)
|
||||||
rress[i].xllb = "最高学历"
|
rress[i].xllb = '最高学历';
|
||||||
xlxxList.value.push(JSON.parse(JSON.stringify(rress[i])))
|
xlxxList.value.push(JSON.parse(JSON.stringify(rress[i])));
|
||||||
// console.log(xlxxList.value)
|
// console.log(xlxxList.value)
|
||||||
}
|
}
|
||||||
if (rress[i].onexl == 1 & rress[i].zgxl != 1) {
|
if ((rress[i].onexl == 1) & (rress[i].zgxl != 1)) {
|
||||||
rress[i].xllb = "第一学历"
|
rress[i].xllb = '第一学历';
|
||||||
xlxxList.value.push(rress[i])
|
xlxxList.value.push(rress[i]);
|
||||||
|
|
||||||
}
|
}
|
||||||
if (rress[i].onexl != 1 & rress[i].zgxl == 1) {
|
if ((rress[i].onexl != 1) & (rress[i].zgxl == 1)) {
|
||||||
rress[i].xllb = "最高学历"
|
rress[i].xllb = '最高学历';
|
||||||
xlxxList.value.push(rress[i])
|
xlxxList.value.push(rress[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// adjustFontSize()
|
// adjustFontSize()
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err);
|
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getJbxx() {
|
function getJbxx() {
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "姓名",
|
title: '姓名',
|
||||||
"value": renyuanData.value.xm,
|
value: renyuanData.value.xm,
|
||||||
"titleSpan": 3,
|
titleSpan: 6,
|
||||||
"valueSpan": 3,
|
valueSpan: 6,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle'
|
||||||
})
|
});
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "性别",
|
title: '性别',
|
||||||
"value": renyuanData.value.xb_dictText,
|
value: renyuanData.value.xb_dictText,
|
||||||
"titleSpan": 3,
|
titleSpan: 6,
|
||||||
"valueSpan": 4,
|
valueSpan: 6,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle'
|
||||||
})
|
});
|
||||||
|
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "出生年月",
|
title: '出生年月',
|
||||||
"value": renyuanData.value.cssj,
|
value: renyuanData.value.cssj,
|
||||||
"titleSpan": 4,
|
titleSpan: 6,
|
||||||
"valueSpan": 4,
|
valueSpan: 6,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle'
|
||||||
})
|
});
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "民族",
|
title: '民族',
|
||||||
"value": renyuanData.value.mz,
|
value: renyuanData.value.mz,
|
||||||
"titleSpan": 3,
|
titleSpan: 6,
|
||||||
"valueSpan": 3,
|
valueSpan: 6,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle'
|
||||||
})
|
});
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "籍贯",
|
title: '籍贯',
|
||||||
"value": renyuanData.value.jg,
|
value: renyuanData.value.jg,
|
||||||
"titleSpan": 3,
|
titleSpan: 6,
|
||||||
"valueSpan": 5,
|
valueSpan: 6,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle'
|
||||||
})
|
});
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "出生地",
|
title: '出生地',
|
||||||
"value": renyuanData.value.csd,
|
value: renyuanData.value.csd,
|
||||||
"titleSpan": 3,
|
titleSpan: 6,
|
||||||
"valueSpan": 4,
|
valueSpan: 6,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle'
|
||||||
})
|
});
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "工作时间",
|
title: '工作时间',
|
||||||
"value": renyuanData.value.cjgzsj,
|
value: renyuanData.value.cjgzsj,
|
||||||
"titleSpan": 4,
|
titleSpan: 6,
|
||||||
"valueSpan": 5,
|
valueSpan: 6,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle'
|
||||||
})
|
});
|
||||||
|
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "政治面貌",
|
title: '现专业',
|
||||||
"value": renyuanData.value.zzmm === "群众" ? renyuanData.value.zzmm : renyuanData.value.zzmm +
|
value: '',
|
||||||
renyuanData.value.jrsj,
|
titleSpan: 6,
|
||||||
"titleSpan": 4,
|
valueSpan: 6,
|
||||||
"valueSpan": 4,
|
class: 'dataStyle1'
|
||||||
"class": "dataStyle1"
|
});
|
||||||
})
|
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "现专业",
|
title: '政治面貌',
|
||||||
"value": "",
|
value: renyuanData.value.zzmm === '群众' ? renyuanData.value.zzmm : renyuanData.value.zzmm + renyuanData.value.jrsj,
|
||||||
"titleSpan": 3,
|
titleSpan: 5,
|
||||||
"valueSpan": 8,
|
valueSpan: 7,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle1'
|
||||||
})
|
});
|
||||||
cellData.value.push({
|
cellData.value.push({
|
||||||
"title": "用工形式",
|
title: '用工形式',
|
||||||
"value": renyuanData.value.rylb1_dictText,
|
value: renyuanData.value.rylb1_dictText,
|
||||||
"titleSpan": 4,
|
titleSpan: 5,
|
||||||
"valueSpan": 5,
|
valueSpan: 7,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle1'
|
||||||
})
|
});
|
||||||
cellData.value.push({
|
|
||||||
"title": "健康状况",
|
|
||||||
"value": "",
|
|
||||||
"titleSpan": 4,
|
|
||||||
"valueSpan": 4,
|
|
||||||
"class": "dataStyle"
|
|
||||||
})
|
|
||||||
cellData.value.push({
|
|
||||||
"title": "所在单位",
|
|
||||||
"value": renyuanData.value.orgCode_dictText,
|
|
||||||
"titleSpan": 4,
|
|
||||||
"valueSpan": 6,
|
|
||||||
"class": "dataStyle"
|
|
||||||
})
|
|
||||||
cellData.value.push({
|
|
||||||
"title": "专业技术资格",
|
|
||||||
"value": gbxxList.value.zc === 0 ? "/" : gbxxList.value.zc + gbxxList.value.zcsj,
|
|
||||||
"titleSpan": 5,
|
|
||||||
"valueSpan": 7,
|
|
||||||
"class": "dataStyle1"
|
|
||||||
})
|
|
||||||
cellData.value.push({
|
|
||||||
"title": "职业资格等级",
|
|
||||||
"value": zyzgdjList.value.ztgz === "0" ? "/" : zyzgdjList.value.ztgz + zyzgdjList.value.ztgzdj,
|
|
||||||
"titleSpan": 5,
|
|
||||||
"valueSpan": 7,
|
|
||||||
"class": "dataStyle"
|
|
||||||
})
|
|
||||||
cellData.value.push({
|
|
||||||
"title": "",
|
|
||||||
"value": "",
|
|
||||||
"titleSpan": 0,
|
|
||||||
"valueSpan": 0,
|
|
||||||
"class": "dataStyle"
|
|
||||||
})
|
|
||||||
|
|
||||||
cellData.value.push({
|
cellData1.value.push({
|
||||||
"title": "职务(岗位)",
|
title: '所在单位',
|
||||||
"value": gbxxList.value.zw,
|
value: renyuanData.value.orgCode_dictText,
|
||||||
"titleSpan": 5,
|
titleSpan: 5,
|
||||||
"valueSpan": 7,
|
valueSpan: 7,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle1'
|
||||||
})
|
});
|
||||||
|
cellData1.value.push({
|
||||||
|
title: '专业技术资格',
|
||||||
|
value: gbxxList.value.zc === 0 ? '/' : gbxxList.value.zc + gbxxList.value.zcsj,
|
||||||
|
titleSpan: 5,
|
||||||
|
valueSpan: 7,
|
||||||
|
class: 'dataStyle1'
|
||||||
|
});
|
||||||
|
cellData1.value.push({
|
||||||
|
title: '',
|
||||||
|
value: '',
|
||||||
|
titleSpan: 0,
|
||||||
|
valueSpan: 0,
|
||||||
|
class: 'dataStyle'
|
||||||
|
});
|
||||||
|
|
||||||
cellData.value.push({
|
cellData1.value.push({
|
||||||
"title": "职位级别",
|
title: '职业资格等级',
|
||||||
"value": gbxxList.value.zwcj,
|
value: zyzgdjList.value.ztgz === '0' ? '/' : zyzgdjList.value.ztgz + zyzgdjList.value.ztgzdj,
|
||||||
"titleSpan": 5,
|
titleSpan: 4,
|
||||||
"valueSpan": 7,
|
valueSpan: 4,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle1'
|
||||||
})
|
});
|
||||||
cellData.value.push({
|
cellData1.value.push({
|
||||||
"title": "",
|
title: '职务(岗位)',
|
||||||
"value": "",
|
value: gbxxList.value.zw,
|
||||||
"titleSpan": 0,
|
titleSpan: 4,
|
||||||
"valueSpan": 0,
|
valueSpan: 4,
|
||||||
"class": "dataStyle"
|
class: 'dataStyle1'
|
||||||
})
|
});
|
||||||
|
|
||||||
|
cellData1.value.push({
|
||||||
|
title: '职位级别',
|
||||||
|
value: gbxxList.value.zwcj,
|
||||||
|
titleSpan: 4,
|
||||||
|
valueSpan: 4,
|
||||||
|
class: 'dataStyle'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
onLoad((e) => {
|
onLoad((e) => {
|
||||||
renyuanData.value = JSON.parse(decodeURIComponent(e.data));
|
renyuanData.value = JSON.parse(decodeURIComponent(e.data));
|
||||||
ldhth.value = renyuanData.value.ldhth
|
imgUrl.value = renyuanData.value.zplj;
|
||||||
getChildTable()
|
console.log(imgUrl.value, renyuanData.value);
|
||||||
|
ldhth.value = renyuanData.value.ldhth;
|
||||||
|
getChildTable();
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
getJbxx()
|
getJbxx();
|
||||||
}, 500);
|
}, 500);
|
||||||
|
});
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@ -566,7 +516,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
height: 98vh;
|
height: 98vh;
|
||||||
width: 900px;
|
width: 900px;
|
||||||
background-color: rgba($color: #000000, $alpha: 0.4);
|
background-color: rgba(0, 0, 0, 0.4);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
@ -578,18 +528,15 @@
|
|||||||
color: #747474;
|
color: #747474;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
height: 35px;
|
height: 35px;
|
||||||
background: #F2F9FC;
|
background: #f2f9fc;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-left: 1px solid #919191;
|
border-left: 1px solid #919191;
|
||||||
border-bottom: 1px solid #919191;
|
border-bottom: 1px solid #919191;
|
||||||
;
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 内容样式 */
|
/* 内容样式 */
|
||||||
.dataStyle {
|
.dataStyle {
|
||||||
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #00007f;
|
color: #00007f;
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
@ -602,16 +549,10 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* 内容样式 */
|
/* 内容样式 */
|
||||||
.dataStyle1 {
|
.dataStyle1 {
|
||||||
max-font-size: 14px;
|
|
||||||
/* 最大字体限制 */
|
|
||||||
min-font-size: 10px;
|
|
||||||
/* 最小字体限制 */
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #00007f;
|
color: #00007f;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
@ -621,10 +562,8 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-bottom: 1px solid #919191;
|
border-bottom: 1px solid #919191;
|
||||||
border-left: 1px solid #919191;
|
border-left: 1px solid #919191;
|
||||||
text-align: center;
|
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 内容样式 */
|
/* 内容样式 */
|
||||||
@ -642,4 +581,12 @@
|
|||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
.img {
|
||||||
|
height: 154px;
|
||||||
|
border: 1px solid #ccc; /* 仅用于展示容器范围,可根据需要移除 */
|
||||||
|
display: flex;
|
||||||
|
justify-content: center; /* 水平居中 */
|
||||||
|
align-items: center; /* 垂直居中 */
|
||||||
|
overflow: hidden; /* 防止图片溢出容器 */
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -1,86 +1,112 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="container" id="top1">
|
<view class="container" id="top1">
|
||||||
<uni-row style="margin-bottom: 10rpx; margin-left: 30rpx; margin-right: 30rpx">
|
<uni-row style="margin-bottom: 10px">
|
||||||
<uni-col :span="5"><uni-title :title="'选择单位'" align="left" type="h4"></uni-title></uni-col>
|
<uni-col :span="5"><uni-title :title="'选择单位'" align="left" type="h4"></uni-title></uni-col>
|
||||||
|
|
||||||
<uni-col :span="19">
|
<uni-col :span="19">
|
||||||
<trq-depart-select v-model="selectedOrgCode" returnCodeOrID="orgCode"
|
<trq-depart-select v-model="selectedOrgCode" returnCodeOrID="orgCode"
|
||||||
@change="onOrgCodeChange"></trq-depart-select>
|
@change="onOrgCodeChange"></trq-depart-select>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
|
<uni-row style="margin-bottom: 10px">
|
||||||
<uni-row style="margin-bottom: 20rpx; margin-left: 30rpx; margin-right: 30rpx">
|
|
||||||
<uni-col :span="5"><uni-title :title="'选择字段'" align="left" type="h4"></uni-title></uni-col>
|
<uni-col :span="5"><uni-title :title="'选择字段'" align="left" type="h4"></uni-title></uni-col>
|
||||||
<uni-col :span="19">
|
<uni-col :span="12">
|
||||||
<uni-data-select v-model="selectedField" :localdata="fieldList"
|
<uni-data-select v-model="selectedField" :localdata="fieldList"
|
||||||
@change="onFieldChange"></uni-data-select>
|
@change="onFieldChange"></uni-data-select>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<!-- ECharts图表 -->
|
<!-- ECharts图表 -->
|
||||||
<view class="chart-container">
|
<view class="chart-container">
|
||||||
<l-echart ref="chart" @finished="initChart" />
|
<l-echart ref="chart" @finished="initChart" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 翻页按钮 -->
|
<!-- 翻页按钮 -->
|
||||||
<view style="display: flex; justify-content: center; margin-top: 10px">
|
<view style="display: flex; justify-content: center; margin-top: 10px">
|
||||||
<button @click="prevPage" :disabled="currentPage === 1" size="mini">上一页</button>
|
<button @click="prevPage" :disabled="currentPage === 1" size="mini">上一页</button>
|
||||||
<button @click="nextPage" :disabled="currentPage * pageSize >= chartDataCount.value"
|
<button @click="nextPage" :disabled="currentPage * pageSize >= chartDataCount.value"
|
||||||
size="mini">下一页</button>
|
size="mini">下一页</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 数据表格 -->
|
<!-- 数据表格 -->
|
||||||
|
<uni-row style="margin-top: 10px; margin-left: 20px; margin-right: 20px" v-if="personnelList.length > 0">
|
||||||
<uni-row style="margin-top: 10px; margin-left: 30rpx; margin-right: 30rpx" v-if="personnelList.length > 0">
|
<uni-col :span="2">
|
||||||
<uni-col :span="3">
|
|
||||||
<view class="titleStyle">序号</view>
|
<view class="titleStyle">序号</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="5">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">姓名</view>
|
<view class="titleStyle">姓名</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="5">
|
<uni-col :span="5">
|
||||||
<view class="titleStyle">基层单位</view>
|
<view class="titleStyle">基层单位</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="5">
|
<uni-col :span="5" v-if="selectedField.value !== 'zjmc'">
|
||||||
|
<view class="titleStyle">基层班组</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="5" v-else>
|
||||||
|
<view class="titleStyle">岗位</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">年龄</view>
|
<view class="titleStyle">年龄</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="6">
|
<uni-col :span="4">
|
||||||
<view class="titleStyle">操作</view>
|
<view class="titleStyle">操作</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
|
|
||||||
<scroll-view scroll-y :style="{ height: bottomHeight + 'px' }">
|
<scroll-view scroll-y :style="{ height: bottomHeight + 'px' }">
|
||||||
<uni-row style="margin-bottom: 10rpx; margin-left: 30rpx; margin-right: 30rpx">
|
<uni-row style="margin-bottom: 10px; margin-left: 20px; margin-right: 20px; font-size: 12px">
|
||||||
<view v-for="(item, index) in personnelList">
|
<view v-for="(item, index) in personnelList">
|
||||||
<uni-col :span="3">
|
<uni-col :span="2">
|
||||||
<view class="dataStyle">
|
<view class="dataStyle">
|
||||||
{{ index + 1 }}
|
{{ index + 1 }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="5">
|
<uni-col :span="4">
|
||||||
<view class="dataStyle">
|
<view class="dataStyle">
|
||||||
{{ item.xm }}
|
{{ item.xm }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
|
|
||||||
<uni-col :span="5">
|
<uni-col :span="5">
|
||||||
<view class="dataStyle">
|
<view class="dataStyle1">
|
||||||
|
{{ item.jcdw }}
|
||||||
|
</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="5" v-if="selectedField.value != 'zjmc'">
|
||||||
|
<view class="dataStyle1">
|
||||||
{{ item.jcxd }}
|
{{ item.jcxd }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="5">
|
<uni-col :span="4" v-else>
|
||||||
|
<view class="dataStyle">
|
||||||
|
{{ item.sdgw }}
|
||||||
|
</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="4">
|
||||||
<view class="dataStyle">
|
<view class="dataStyle">
|
||||||
{{ item.nl }}
|
{{ item.nl }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
<uni-col :span="6">
|
|
||||||
|
<uni-col :span="4">
|
||||||
<view class="dataStyle">
|
<view class="dataStyle">
|
||||||
<button size="mini" type="primary" @click="detail(item)">详情</button>
|
<span @click="detail(item)">详情</span>
|
||||||
|
<!-- <button size="mini" type="primary" @click="detail(item)">详情</button> -->
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</view>
|
</view>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
<uni-popup ref="showPopup" type="bottom" border-radius="10px 10px 0 0">
|
||||||
|
<uni-card>
|
||||||
|
<uni-title :title="'已选证书:'" align="left" type="h4"></uni-title>
|
||||||
|
<view style="color: red;font-weight: 300;margin-bottom: 10px;">{{dictData}}</view>
|
||||||
|
<scroll-view scroll-y style="height: 40vh;">
|
||||||
|
<view>
|
||||||
|
<cxc-szcx-dictSelect :dictCode="dictCode" @change="dictChange"></cxc-szcx-dictSelect>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
</uni-card>
|
||||||
|
</uni-popup>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -91,7 +117,7 @@
|
|||||||
onMounted,
|
onMounted,
|
||||||
computed
|
computed
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import * as echarts from 'echarts';
|
import * as echarts from 'echarts/dist/echarts.min'; // 引入ECharts的H5版本
|
||||||
import {
|
import {
|
||||||
cxcRyDatAstatistics,
|
cxcRyDatAstatistics,
|
||||||
cxcRyDatAstatisticsCertificate,
|
cxcRyDatAstatisticsCertificate,
|
||||||
@ -107,14 +133,15 @@
|
|||||||
text: '取证情况',
|
text: '取证情况',
|
||||||
value: 'zjmc',
|
value: 'zjmc',
|
||||||
isDict: false,
|
isDict: false,
|
||||||
dictCode: 'gzrlzy'
|
dictCode: 'gzrlzy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '岗位类别',
|
text: '岗位类别',
|
||||||
value: 'gwlb',
|
value: 'gwlb',
|
||||||
isDict: false,
|
isDict: false,
|
||||||
dictCode: ''
|
dictCode: ''
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
text: '性别',
|
text: '性别',
|
||||||
value: 'xb',
|
value: 'xb',
|
||||||
isDict: true,
|
isDict: true,
|
||||||
@ -135,6 +162,8 @@
|
|||||||
]); // 字段列表
|
]); // 字段列表
|
||||||
|
|
||||||
const dictCode = ref('');
|
const dictCode = ref('');
|
||||||
|
const dictData = ref('');
|
||||||
|
const showPopup = ref(null);
|
||||||
const fieldisDict = ref(true);
|
const fieldisDict = ref(true);
|
||||||
|
|
||||||
const selectedOrgCode = ref(''); // 当前选择的单位 orgCode
|
const selectedOrgCode = ref(''); // 当前选择的单位 orgCode
|
||||||
@ -164,11 +193,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// #ifdef APP
|
|
||||||
getHeight();
|
getHeight();
|
||||||
// #endif
|
|
||||||
});
|
});
|
||||||
// #ifdef APP
|
|
||||||
|
const dictChange = (e) => {
|
||||||
|
console.log(e)
|
||||||
|
dictData.value = e
|
||||||
|
}
|
||||||
|
|
||||||
const getHeight = () => {
|
const getHeight = () => {
|
||||||
// 获取屏幕高度
|
// 获取屏幕高度
|
||||||
@ -188,7 +221,7 @@
|
|||||||
.exec();
|
.exec();
|
||||||
};
|
};
|
||||||
|
|
||||||
// #endif
|
|
||||||
// 初始化 ECharts length departChange
|
// 初始化 ECharts length departChange
|
||||||
// 初始化图表
|
// 初始化图表
|
||||||
const initChart = () => {
|
const initChart = () => {
|
||||||
@ -675,14 +708,15 @@
|
|||||||
let res = [];
|
let res = [];
|
||||||
chartData.value = [];
|
chartData.value = [];
|
||||||
try {
|
try {
|
||||||
|
if (selectedField.value === 'zjmc') {
|
||||||
if (selectedField.value === "zjmc") {
|
console.log(dictCode.value);
|
||||||
console.log(dictCode.value)
|
console.log(dictData.value);
|
||||||
res = await cxcRyDatAstatisticsCertificate({
|
res = await cxcRyDatAstatisticsCertificate({
|
||||||
orgCode: selectedOrgCode.value,
|
orgCode: selectedOrgCode.value,
|
||||||
field: selectedField.value,
|
field: selectedField.value,
|
||||||
dictCode: dictCode.value,
|
dictCode: dictCode.value,
|
||||||
fieldisDict: fieldisDict.value
|
fieldisDict: fieldisDict.value,
|
||||||
|
typeOfWorkList: dictData.value
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
res = await cxcRyDatAstatistics({
|
res = await cxcRyDatAstatistics({
|
||||||
@ -740,7 +774,7 @@
|
|||||||
|
|
||||||
// 事件处理
|
// 事件处理
|
||||||
const onOrgCodeChange = (e, data) => {
|
const onOrgCodeChange = (e, data) => {
|
||||||
personnelList.value = []
|
personnelList.value = [];
|
||||||
selectedOrgCode.value = e;
|
selectedOrgCode.value = e;
|
||||||
// console.log(data.value.title);
|
// console.log(data.value.title);
|
||||||
selectedOrgCodeLabel.value = data.value.title;
|
selectedOrgCodeLabel.value = data.value.title;
|
||||||
@ -748,7 +782,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onFieldChange = (e) => {
|
const onFieldChange = (e) => {
|
||||||
personnelList.value = []
|
|
||||||
|
personnelList.value = [];
|
||||||
// console.log(e);
|
// console.log(e);
|
||||||
try {
|
try {
|
||||||
selectedField.value = e;
|
selectedField.value = e;
|
||||||
@ -761,6 +796,9 @@
|
|||||||
fieldisDict.value = element.isDict;
|
fieldisDict.value = element.isDict;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (selectedField.value === 'zjmc') {
|
||||||
|
showPopup.value.open()
|
||||||
|
}
|
||||||
fetchStatisticsData();
|
fetchStatisticsData();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
//TODO handle the exception
|
//TODO handle the exception
|
||||||
@ -769,7 +807,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onChartClick = (e) => {
|
const onChartClick = (e) => {
|
||||||
personnelList.value = []
|
personnelList.value = [];
|
||||||
const {
|
const {
|
||||||
ldhth
|
ldhth
|
||||||
} = chartData.value;
|
} = chartData.value;
|
||||||
@ -791,29 +829,29 @@
|
|||||||
|
|
||||||
/* 全局容器 */
|
/* 全局容器 */
|
||||||
.container {
|
.container {
|
||||||
margin: 10rpx 10rpx;
|
margin: 10px 10px;
|
||||||
padding: 10rpx;
|
padding: 10px;
|
||||||
background: linear-gradient(145deg, #f5f9ff, var(--light-blue));
|
background: linear-gradient(145deg, #f5f9ff, var(--light-blue));
|
||||||
border-radius: 24rpx;
|
border-radius: 12px;
|
||||||
box-shadow: 0 8rpx 24rpx rgba(64, 158, 255, 0.15);
|
box-shadow: 0 4px 12px rgba(64, 158, 255, 0.15);
|
||||||
border: 2rpx solid rgba(64, 158, 255, 0.1);
|
border: 1px solid rgba(64, 158, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 图表容器 */
|
/* 图表容器 */
|
||||||
.chart-container {
|
.chart-container {
|
||||||
height: 250px;
|
height: 250px;
|
||||||
margin: 20rpx 0;
|
margin: 10px 0;
|
||||||
border-radius: 24rpx;
|
border-radius: 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
box-shadow: 0 8rpx 32rpx rgba(64, 158, 255, 0.12);
|
box-shadow: 0 4px 16px rgba(64, 158, 255, 0.12);
|
||||||
border: 2rpx solid rgba(64, 158, 255, 0.08);
|
border: 1px solid rgba(64, 158, 255, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 表格标题行 */
|
/* 表格标题行 */
|
||||||
|
|
||||||
.titleStyle {
|
.titleStyle {
|
||||||
font-size: 12px;
|
font-size: 10px;
|
||||||
color: #747474;
|
color: #747474;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
@ -826,11 +864,21 @@
|
|||||||
|
|
||||||
/* 内容样式 */
|
/* 内容样式 */
|
||||||
.dataStyle {
|
.dataStyle {
|
||||||
max-font-size: 14px;
|
font-size: 10px;
|
||||||
/* 最大字体限制 */
|
color: #00007f;
|
||||||
min-font-size: 10px;
|
line-height: 30px;
|
||||||
/* 最小字体限制 */
|
height: 30px;
|
||||||
font-size: 12px;
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
border-bottom: 1px solid #919191;
|
||||||
|
border-left: 1px solid #919191;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 内容样式 */
|
||||||
|
.dataStyle1 {
|
||||||
|
font-size: 8px;
|
||||||
color: #00007f;
|
color: #00007f;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
@ -845,13 +893,13 @@
|
|||||||
/* 滚动区域 */
|
/* 滚动区域 */
|
||||||
scroll-view {
|
scroll-view {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 0 0 16rpx 16rpx;
|
border-radius: 0 0 8px 8px;
|
||||||
box-shadow: 0 8rpx 24rpx rgba(0, 35, 111, 0.08);
|
box-shadow: 0 4px 12px rgba(0, 35, 111, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 输入框聚焦效果 */
|
/* 输入框聚焦效果 */
|
||||||
.trq-depart-select:focus-within {
|
.trq-depart-select:focus-within {
|
||||||
box-shadow: 0 0 0 4rpx rgba(64, 158, 255, 0.2);
|
box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
|
||||||
border-color: var(--primary-blue);
|
border-color: var(--primary-blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -859,7 +907,7 @@
|
|||||||
@keyframes fadeIn {
|
@keyframes fadeIn {
|
||||||
from {
|
from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateY(20rpx);
|
transform: translateY(10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
to {
|
to {
|
||||||
@ -874,28 +922,28 @@
|
|||||||
|
|
||||||
/* 自定义滚动条美化 */
|
/* 自定义滚动条美化 */
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 8rpx;
|
width: 4px;
|
||||||
background: rgba(64, 158, 255, 0.05);
|
background: rgba(64, 158, 255, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
background: linear-gradient(45deg, var(--primary-blue), var(--deep-blue));
|
background: linear-gradient(45deg, var(--primary-blue), var(--deep-blue));
|
||||||
border-radius: 12rpx;
|
border-radius: 6px;
|
||||||
border: 2rpx solid white;
|
border: 1px solid white;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 筛选行间距优化 */
|
/* 筛选行间距优化 */
|
||||||
.filter-row {
|
.filter-row {
|
||||||
margin: 30rpx 0;
|
margin: 15px 0;
|
||||||
padding: 20rpx 0;
|
padding: 10px 0;
|
||||||
border-radius: 16rpx;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 响应式调整优化 */
|
/* 响应式调整优化 */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.chart-container {
|
.chart-container {
|
||||||
height: 250px;
|
height: 250px;
|
||||||
border-radius: 20rpx;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,195 +1,217 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="container" id="top1">
|
||||||
<scroll-view :scroll-y="true" style="height: 100vh;">
|
|
||||||
<uni-card>
|
<uni-card>
|
||||||
<view>
|
<view>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="11"><uni-title title="姓名 " align="left" type="h5"></uni-title></uni-col>
|
<uni-col :span="11"><uni-title title="姓名 " align="left" type="h5"></uni-title></uni-col>
|
||||||
<uni-col :span="11" :push="2"><uni-title title="劳动合同号" align="left"
|
<uni-col :span="11" :push="2"><uni-title title="劳动合同号" align="left" type="h5"></uni-title></uni-col>
|
||||||
type="h5"></uni-title></uni-col>
|
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="11"><uni-easyinput v-model="xm" suffixIcon="search" clearable
|
<uni-col :span="11"><uni-easyinput v-model="xm" suffixIcon="search" clearable placeholder="姓名模糊查询" @change="Search" @iconClick="Search" /></uni-col>
|
||||||
placeholder="姓名模糊查询" @change="Search" @iconClick="Search" /></uni-col>
|
|
||||||
<uni-col :span="11" :push="2">
|
<uni-col :span="11" :push="2">
|
||||||
<uni-easyinput v-model="ldhth" suffixIcon="search" clearable placeholder="劳动合同号模糊查询"
|
<uni-easyinput v-model="ldhth" suffixIcon="search" clearable placeholder="劳动合同号模糊查询" @change="Search" @iconClick="Search" />
|
||||||
@change="Search" @iconClick="Search" />
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
</view>
|
</view>
|
||||||
<view style="margin-bottom: 10rpx;">
|
<view style="margin-bottom: 10rpx">
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="24"><uni-title title="所属单位" align="left" type="h5"></uni-title></uni-col>
|
<uni-col :span="24"><uni-title title="所属单位" align="left" type="h5"></uni-title></uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<uni-row>
|
<uni-row>
|
||||||
<uni-col :span="24">
|
<uni-col :span="24">
|
||||||
<trq-depart-select v-model="departID" returnCodeOrID="orgCode"
|
<trq-depart-select v-model="departID" returnCodeOrID="orgCode" @change="departChange"></trq-depart-select>
|
||||||
@change="departChange"></trq-depart-select>
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
</view>
|
</view>
|
||||||
</uni-card>
|
</uni-card>
|
||||||
|
</view>
|
||||||
<uni-card>
|
<uni-card>
|
||||||
<zb-table :show-header="true" :highlight="true" :columns="column" :stripe="true" :fit="false"
|
<!-- 数据表格 -->
|
||||||
:border="true" :data="ryDataList" @detail="detail"></zb-table>
|
|
||||||
<uni-pagination :current="current" :pagerCount="pages" :total="total" prev-text="前一页" next-text="后一页"
|
<uni-row v-if="ryDataList.length > 0">
|
||||||
:show-icon="false" @change="pagechange" />
|
<uni-col :span="3">
|
||||||
<view>
|
<view class="titleStyle">序号</view>
|
||||||
<text class="example-info">当前页:{{ current }},数据总量:{{ total }}条,每页数据:{{ pageSize }}</text>
|
</uni-col>
|
||||||
|
<uni-col :span="5">
|
||||||
|
<view class="titleStyle">姓名</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="5">
|
||||||
|
<view class="titleStyle">性别</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="5">
|
||||||
|
<view class="titleStyle">年龄</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="6">
|
||||||
|
<view class="titleStyle">操作</view>
|
||||||
|
</uni-col>
|
||||||
|
</uni-row>
|
||||||
|
|
||||||
|
<scroll-view scroll-y :style="{ height: bottomHeight + 'px' }">
|
||||||
|
<uni-row>
|
||||||
|
<view v-for="(item, index) in ryDataList">
|
||||||
|
<uni-col :span="3">
|
||||||
|
<view class="dataStyle">
|
||||||
|
{{ index + 1 }}
|
||||||
|
</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="5">
|
||||||
|
<view class="dataStyle">
|
||||||
|
{{ item.xm }}
|
||||||
|
</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="5">
|
||||||
|
<view class="dataStyle">
|
||||||
|
{{ item.xb_dictText }}
|
||||||
|
</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="5">
|
||||||
|
<view class="dataStyle">
|
||||||
|
{{ item.nl }}
|
||||||
|
</view>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="6">
|
||||||
|
<view class="dataStyle">
|
||||||
|
<button size="mini" type="primary" @click="detail(item)">详情</button>
|
||||||
|
</view>
|
||||||
|
</uni-col>
|
||||||
|
</view>
|
||||||
|
</uni-row>
|
||||||
|
|
||||||
|
<view class="pagination">
|
||||||
|
<uni-pagination :current="current" :pagerCount="5" :total="total" prev-text="前一页" next-text="后一页" :show-icon="false" @change="pagechange" />
|
||||||
</view>
|
</view>
|
||||||
</uni-card>
|
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
</uni-card>
|
||||||
|
|
||||||
</view>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import { onReady, onLoad } from '@dcloudio/uni-app';
|
||||||
onReady,
|
import { reactive, ref, onMounted } from 'vue';
|
||||||
onLoad
|
import { useStore } from '@/store';
|
||||||
|
import { queryDepByCode, queryZbDepByLdhth } from '@/api/depart.js';
|
||||||
|
import { queryRenyuanByDepartID } from '@/api/renyuan.js';
|
||||||
|
let xm = ref('');
|
||||||
|
let ldhth = ref('');
|
||||||
|
let departID = ref(''); //部门树选中的ID
|
||||||
|
const ryDataList = ref([]);
|
||||||
|
|
||||||
} from '@dcloudio/uni-app';
|
const bottomHeight = ref(0);
|
||||||
import {
|
let status = ref('');
|
||||||
reactive,
|
|
||||||
ref,
|
|
||||||
onMounted
|
|
||||||
} from 'vue';
|
|
||||||
import {
|
|
||||||
useStore
|
|
||||||
} from '@/store';
|
|
||||||
import {
|
|
||||||
queryDepByCode,
|
|
||||||
queryZbDepByLdhth
|
|
||||||
} from '@/api/depart.js'
|
|
||||||
import {
|
|
||||||
queryRenyuanByDepartID
|
|
||||||
} from '@/api/renyuan.js'
|
|
||||||
let xm = ref("")
|
|
||||||
let ldhth = ref("")
|
|
||||||
let departID = ref("") //部门树选中的ID
|
|
||||||
const ryDataList = ref([])
|
|
||||||
|
|
||||||
let status = ref("")
|
|
||||||
let contentText = reactive({
|
let contentText = reactive({
|
||||||
contentdown: '点击查看更多',
|
contentdown: '点击查看更多',
|
||||||
contentrefresh: '加载中',
|
contentrefresh: '加载中',
|
||||||
contentnomore: '没有更多'
|
contentnomore: '没有更多'
|
||||||
})
|
});
|
||||||
|
|
||||||
let pageNo = ref(1)
|
let pageNo = ref(1);
|
||||||
let pageSize = ref(10)
|
let pageSize = ref(10);
|
||||||
let total = ref(0)
|
let total = ref(0);
|
||||||
let pages = ref(0)
|
let pages = ref(0);
|
||||||
let current = ref(0)
|
let current = ref(0);
|
||||||
let params = reactive({
|
let params = reactive({
|
||||||
pageNo: pageNo,
|
pageNo: pageNo,
|
||||||
pageSize: pageSize
|
pageSize: pageSize
|
||||||
})
|
});
|
||||||
let column = ref([{
|
|
||||||
label: '序号',
|
|
||||||
width: 60,
|
|
||||||
type: 'index',
|
|
||||||
color: 'blue',
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
onLoad((e) => {});
|
||||||
name: 'xm',
|
|
||||||
label: '姓名',
|
|
||||||
width: 70,
|
|
||||||
align: 'center'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'xb_dictText',
|
|
||||||
label: '性别',
|
|
||||||
align: 'center',
|
|
||||||
width: 60
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'nl',
|
|
||||||
label: '年龄',
|
|
||||||
align: 'center',
|
|
||||||
width: 60
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'operation',
|
|
||||||
type: 'operation',
|
|
||||||
width: 60,
|
|
||||||
fixed: true,
|
|
||||||
label: '操作',
|
|
||||||
align: 'center',
|
|
||||||
renders: [{
|
|
||||||
name: '详情',
|
|
||||||
func: 'detail',
|
|
||||||
size: 'mini'
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
])
|
|
||||||
|
|
||||||
onLoad((e) => {
|
|
||||||
|
|
||||||
})
|
|
||||||
onMounted((e) => {
|
onMounted((e) => {
|
||||||
departID.value = ""
|
// #ifdef APP
|
||||||
getRenyuanByDepID()
|
getHeight();
|
||||||
|
// #endif
|
||||||
|
departID.value = '';
|
||||||
|
getRenyuanByDepID();
|
||||||
|
});
|
||||||
|
|
||||||
|
// #ifdef APP
|
||||||
|
|
||||||
|
const getHeight = () => {
|
||||||
|
// 获取屏幕高度
|
||||||
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
|
const screenHeight = systemInfo.screenHeight;
|
||||||
|
// 创建选择器查询对象
|
||||||
|
const query = uni.createSelectorQuery();
|
||||||
|
// 获取上方组件的高度
|
||||||
|
query
|
||||||
|
.select('#top1')
|
||||||
|
.boundingClientRect((rect1) => {
|
||||||
|
// 计算上方组件高度总和
|
||||||
|
const topComponentsHeight = rect1.height;
|
||||||
|
// 计算下方组件的高度
|
||||||
|
bottomHeight.value = screenHeight - topComponentsHeight - 415;
|
||||||
})
|
})
|
||||||
|
.exec();
|
||||||
|
};
|
||||||
|
// #endif
|
||||||
|
|
||||||
function detail(record) {
|
function detail(record) {
|
||||||
// console.log(record)
|
// console.log(record)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/views/renliziyuan/renyuanxinxi/detail?data=" + encodeURIComponent(JSON.stringify(record))
|
url: '/pages/views/renliziyuan/renyuanxinxi/detail?data=' + encodeURIComponent(JSON.stringify(record))
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function pagechange(e) {
|
function pagechange(e) {
|
||||||
current.value = e.current
|
current.value = e.current;
|
||||||
pageNo.value = e.current
|
pageNo.value = e.current;
|
||||||
let params = {
|
let params = {
|
||||||
pageNo: pageNo.value,
|
pageNo: pageNo.value,
|
||||||
pageSize: pageSize.value,
|
pageSize: pageSize.value,
|
||||||
current: current.value
|
current: current.value
|
||||||
};
|
};
|
||||||
if (departID.value.length <= 9) {
|
if (departID.value.length <= 9) {
|
||||||
params.orgCode = departID.value
|
params.orgCode = departID.value;
|
||||||
} else {
|
} else {
|
||||||
params.jcxd_code = departID.value
|
params.jcxd_code = departID.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
getRenyuanByDepID(params)
|
getRenyuanByDepID(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
function departChange(e, data) {
|
function departChange(e, data) {
|
||||||
departID.value = e
|
departID.value = e;
|
||||||
let params = {
|
let params = {
|
||||||
pageNo: pageNo.value,
|
pageNo: pageNo.value,
|
||||||
pageSize: pageSize.value,
|
pageSize: pageSize.value,
|
||||||
current: current.value
|
current: current.value
|
||||||
};
|
};
|
||||||
console.log(e)
|
console.log(e);
|
||||||
if (e.length <= 9) {
|
if (e.length <= 9) {
|
||||||
params.orgCode = departID.value
|
params.orgCode = departID.value;
|
||||||
} else {
|
} else {
|
||||||
params.jcxd_code = departID.value
|
params.jcxd_code = departID.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
getRenyuanByDepID(params)
|
getRenyuanByDepID(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getRenyuanByDepID(queryParm) {
|
function getRenyuanByDepID(queryParm) {
|
||||||
ryDataList.value = []
|
// ryDataList.value = [];
|
||||||
console.log(queryParm)
|
console.log(queryParm);
|
||||||
queryRenyuanByDepartID(queryParm).then((res) => {
|
if (departID.value.length <= 6) {
|
||||||
console.log(res)
|
console.log(123242353);
|
||||||
if (res.success) {
|
uni.showToast({
|
||||||
ryDataList.value = res.result.records
|
title: '全厂数据较多,请选 下一层级...',
|
||||||
total.value = res.result.total
|
icon: 'none',
|
||||||
pages.value = res.result.pages
|
duration: 1000
|
||||||
current.value = res.result.current
|
});
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (queryParm) {
|
||||||
|
queryRenyuanByDepartID(queryParm)
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.success) {
|
||||||
|
ryDataList.value = res.result.records;
|
||||||
|
total.value = res.result.total;
|
||||||
|
pages.value = res.result.pages;
|
||||||
|
current.value = res.result.current;
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err);
|
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function Search() {
|
function Search() {
|
||||||
@ -207,22 +229,69 @@
|
|||||||
if (ldhth.value !== '') {
|
if (ldhth.value !== '') {
|
||||||
queryParm.ldhth = '*' + ldhth.value + '*';
|
queryParm.ldhth = '*' + ldhth.value + '*';
|
||||||
}
|
}
|
||||||
console.log(queryParm)
|
console.log(queryParm);
|
||||||
queryRenyuanByDepartID(queryParm).then((res) => {
|
queryRenyuanByDepartID(queryParm)
|
||||||
|
.then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
ryDataList.value = res.result.records
|
ryDataList.value = res.result.records;
|
||||||
total.value = res.result.total
|
total.value = res.result.total;
|
||||||
pages.value = res.result.pages
|
pages.value = res.result.pages;
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
|
||||||
console.log(err);
|
|
||||||
})
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
/* 全局容器 */
|
||||||
|
.container {
|
||||||
|
margin: 10rpx 10rpx;
|
||||||
|
padding: 10rpx;
|
||||||
|
background: linear-gradient(145deg, #ffaaff, var(--light-blue));
|
||||||
|
border-radius: 24rpx;
|
||||||
|
box-shadow: 0 8rpx 24rpx rgba(64, 158, 255, 0.15);
|
||||||
|
border: 2rpx solid rgba(64, 158, 255, 0.1);
|
||||||
|
}
|
||||||
.uni-group {
|
.uni-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
.titleStyle {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #747474;
|
||||||
|
line-height: 30px;
|
||||||
|
height: 30px;
|
||||||
|
background: #f2f9fc;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
border-left: 1px solid #919191;
|
||||||
|
border-bottom: 1px solid #919191;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 内容样式 */
|
||||||
|
.dataStyle {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #00007f;
|
||||||
|
line-height: 30px;
|
||||||
|
height: 30px;
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
border-bottom: 1px solid #919191;
|
||||||
|
border-left: 1px solid #919191;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
/* 内容样式 */
|
||||||
|
.pagination {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #00007f;
|
||||||
|
line-height: 30px;
|
||||||
|
height: 30px;
|
||||||
|
font-weight: 500;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
0
uni_modules/cxc-szcx-dictSelect/changelog.md
Normal file
0
uni_modules/cxc-szcx-dictSelect/changelog.md
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<uni-data-checkbox v-model="selectedValuesArray" :localdata="dictItems" :multiple="true" data-key="value"
|
||||||
|
data-value="label"></uni-data-checkbox>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onMounted,
|
||||||
|
watch
|
||||||
|
} from 'vue';
|
||||||
|
import {
|
||||||
|
getDictItemsApi
|
||||||
|
} from '@/api/api.js';
|
||||||
|
|
||||||
|
// 定义 props 和 emits
|
||||||
|
const props = defineProps({
|
||||||
|
dictCode: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
modelValue: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const emits = defineEmits(['update:modelValue', 'change']);
|
||||||
|
|
||||||
|
// 定义数据
|
||||||
|
const dictItems = ref([]);
|
||||||
|
const selectedValuesArray = ref(props.modelValue ? props.modelValue.split(',') : []);
|
||||||
|
|
||||||
|
// 加载字典数据
|
||||||
|
const loadDictItems = async () => {
|
||||||
|
try {
|
||||||
|
const response = await getDictItemsApi(props.dictCode);
|
||||||
|
dictItems.value = response.result; // 假设响应数据的格式为 { data: [...] }
|
||||||
|
} catch (error) {
|
||||||
|
console.error('加载字典数据失败:', error);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// 监听选中值的变化并通知父组件
|
||||||
|
watch(selectedValuesArray, (newValue) => {
|
||||||
|
console.log('selectedValuesArray 变化:', newValue);
|
||||||
|
const selectedValuesString = newValue.join(',');
|
||||||
|
emits('update:modelValue', selectedValuesString);
|
||||||
|
emits('change', selectedValuesString);
|
||||||
|
}, {
|
||||||
|
deep: true
|
||||||
|
});
|
||||||
|
|
||||||
|
// 监听 props.modelValue 的变化
|
||||||
|
watch(() => props.modelValue, (newValue) => {
|
||||||
|
console.log('props.modelValue 变化:', newValue);
|
||||||
|
selectedValuesArray.value = newValue ? newValue.split(',') : [];
|
||||||
|
}, {
|
||||||
|
immediate: true
|
||||||
|
});
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
loadDictItems();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
/* 可以添加组件的样式 */
|
||||||
|
</style>
|
83
uni_modules/cxc-szcx-dictSelect/package.json
Normal file
83
uni_modules/cxc-szcx-dictSelect/package.json
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
{
|
||||||
|
"id": "cxc-szcx-dictSelect",
|
||||||
|
"displayName": "cxc-szcx-dictSelect",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "cxc-szcx-dictSelect",
|
||||||
|
"keywords": [
|
||||||
|
"cxc-szcx-dictSelect"
|
||||||
|
],
|
||||||
|
"repository": "",
|
||||||
|
"engines": {
|
||||||
|
"HBuilderX": "^3.1.0"
|
||||||
|
},
|
||||||
|
"dcloudext": {
|
||||||
|
"type": "component-vue",
|
||||||
|
"sale": {
|
||||||
|
"regular": {
|
||||||
|
"price": "0.00"
|
||||||
|
},
|
||||||
|
"sourcecode": {
|
||||||
|
"price": "0.00"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"qq": ""
|
||||||
|
},
|
||||||
|
"declaration": {
|
||||||
|
"ads": "",
|
||||||
|
"data": "",
|
||||||
|
"permissions": ""
|
||||||
|
},
|
||||||
|
"npmurl": ""
|
||||||
|
},
|
||||||
|
"uni_modules": {
|
||||||
|
"dependencies": [],
|
||||||
|
"encrypt": [],
|
||||||
|
"platforms": {
|
||||||
|
"cloud": {
|
||||||
|
"tcb": "u",
|
||||||
|
"aliyun": "u",
|
||||||
|
"alipay": "u"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"Vue": {
|
||||||
|
"vue2": "u",
|
||||||
|
"vue3": "u"
|
||||||
|
},
|
||||||
|
"App": {
|
||||||
|
"app-vue": "u",
|
||||||
|
"app-nvue": "u",
|
||||||
|
"app-uvue": "u"
|
||||||
|
},
|
||||||
|
"H5-mobile": {
|
||||||
|
"Safari": "u",
|
||||||
|
"Android Browser": "u",
|
||||||
|
"微信浏览器(Android)": "u",
|
||||||
|
"QQ浏览器(Android)": "u"
|
||||||
|
},
|
||||||
|
"H5-pc": {
|
||||||
|
"Chrome": "u",
|
||||||
|
"IE": "u",
|
||||||
|
"Edge": "u",
|
||||||
|
"Firefox": "u",
|
||||||
|
"Safari": "u"
|
||||||
|
},
|
||||||
|
"小程序": {
|
||||||
|
"微信": "u",
|
||||||
|
"阿里": "u",
|
||||||
|
"百度": "u",
|
||||||
|
"字节跳动": "u",
|
||||||
|
"QQ": "u",
|
||||||
|
"钉钉": "u",
|
||||||
|
"快手": "u",
|
||||||
|
"飞书": "u",
|
||||||
|
"京东": "u"
|
||||||
|
},
|
||||||
|
"快应用": {
|
||||||
|
"华为": "u",
|
||||||
|
"联盟": "u"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
1
uni_modules/cxc-szcx-dictSelect/readme.md
Normal file
1
uni_modules/cxc-szcx-dictSelect/readme.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# cxc-szcx-dictSelect
|
3888
uni_modules/lime-shared/areaData/city-china.json
Normal file
3888
uni_modules/lime-shared/areaData/city-china.json
Normal file
File diff suppressed because it is too large
Load Diff
71
uni_modules/lime-shared/areaData/index.ts
Normal file
71
uni_modules/lime-shared/areaData/index.ts
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
import _areaList from './city-china.json';
|
||||||
|
export const areaList = _areaList
|
||||||
|
// #ifndef UNI-APP-X
|
||||||
|
type UTSJSONObject = Record<string, string>
|
||||||
|
// #endif
|
||||||
|
// #ifdef UNI-APP-X
|
||||||
|
type Object = UTSJSONObject
|
||||||
|
// #endif
|
||||||
|
type AreaList = {
|
||||||
|
province_list : Map<string, string>;
|
||||||
|
city_list : Map<string, string>;
|
||||||
|
county_list : Map<string, string>;
|
||||||
|
}
|
||||||
|
// type CascaderOption = {
|
||||||
|
// text : string;
|
||||||
|
// value : string;
|
||||||
|
// children ?: CascaderOption[];
|
||||||
|
// };
|
||||||
|
|
||||||
|
const makeOption = (
|
||||||
|
label : string,
|
||||||
|
value : string,
|
||||||
|
children ?: UTSJSONObject[],
|
||||||
|
) : UTSJSONObject => ({
|
||||||
|
label,
|
||||||
|
value,
|
||||||
|
children,
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export function useCascaderAreaData() : UTSJSONObject[] {
|
||||||
|
const city = areaList['city_list'] as UTSJSONObject
|
||||||
|
const county = areaList['county_list'] as UTSJSONObject
|
||||||
|
const province = areaList['province_list'] as UTSJSONObject
|
||||||
|
const provinceMap = new Map<string, UTSJSONObject>();
|
||||||
|
Object.keys(province).forEach((code) => {
|
||||||
|
provinceMap.set(code.slice(0, 2), makeOption(`${province[code]}`, code, []));
|
||||||
|
});
|
||||||
|
|
||||||
|
const cityMap = new Map<string, UTSJSONObject>();
|
||||||
|
|
||||||
|
Object.keys(city).forEach((code) => {
|
||||||
|
const option = makeOption(`${city[code]}`, code, []);
|
||||||
|
cityMap.set(code.slice(0, 4), option);
|
||||||
|
|
||||||
|
const _province = provinceMap.get(code.slice(0, 2));
|
||||||
|
if (_province != null) {
|
||||||
|
(_province['children'] as UTSJSONObject[]).push(option)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
Object.keys(county).forEach((code) => {
|
||||||
|
const _city = cityMap.get(code.slice(0, 4));
|
||||||
|
if (_city != null) {
|
||||||
|
(_city['children'] as UTSJSONObject[]).push(makeOption(`${county[code]}`, code, null));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// #ifndef APP-ANDROID || APP-IOS
|
||||||
|
return Array.from(provinceMap.values());
|
||||||
|
// #endif
|
||||||
|
// #ifdef APP-ANDROID || APP-IOS
|
||||||
|
const obj : UTSJSONObject[] = []
|
||||||
|
provinceMap.forEach((value, code) => {
|
||||||
|
obj.push(value)
|
||||||
|
})
|
||||||
|
return obj
|
||||||
|
// #endif
|
||||||
|
}
|
111
uni_modules/lime-shared/capitalizedAmount/index.ts
Normal file
111
uni_modules/lime-shared/capitalizedAmount/index.ts
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
import { isString } from "../isString";
|
||||||
|
import { isNumber } from "../isNumber";
|
||||||
|
/**
|
||||||
|
* 将金额转换为中文大写形式
|
||||||
|
* @param {number | string} amount - 需要转换的金额,可以是数字或字符串
|
||||||
|
* @returns {string} 转换后的中文大写金额
|
||||||
|
*/
|
||||||
|
function capitalizedAmount(amount : number) : string
|
||||||
|
function capitalizedAmount(amount : string) : string
|
||||||
|
function capitalizedAmount(amount : any | null) : string {
|
||||||
|
try {
|
||||||
|
let _amountStr :string;
|
||||||
|
let _amountNum :number = 0;
|
||||||
|
// 如果输入是字符串,先将其转换为数字,并去除逗号
|
||||||
|
if (typeof amount == 'string') {
|
||||||
|
_amountNum = parseFloat((amount as string).replace(/,/g, ''));
|
||||||
|
}
|
||||||
|
if(isNumber(amount)) {
|
||||||
|
_amountNum = amount as number
|
||||||
|
}
|
||||||
|
// 判断输入是否为有效的金额 || isNaN(amount)
|
||||||
|
if (amount == null) throw new Error('不是有效的金额!');
|
||||||
|
|
||||||
|
let result = '';
|
||||||
|
|
||||||
|
// 处理负数情况
|
||||||
|
if (_amountNum < 0) {
|
||||||
|
result = '欠';
|
||||||
|
_amountNum = Math.abs(_amountNum);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 金额不能超过千亿以上
|
||||||
|
if (_amountNum >= 10e11) throw new Error('计算金额过大!');
|
||||||
|
|
||||||
|
// 保留两位小数并转换为字符串
|
||||||
|
_amountStr = _amountNum.toFixed(2);
|
||||||
|
|
||||||
|
// 定义数字、单位和小数单位的映射
|
||||||
|
const digits = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
||||||
|
const units = ['', '拾', '佰', '仟'];
|
||||||
|
const bigUnits = ['', '万', '亿'];
|
||||||
|
const decimalUnits = ['角', '分'];
|
||||||
|
|
||||||
|
// 分离整数部分和小数部分
|
||||||
|
const amountArray = _amountStr.split('.');
|
||||||
|
let integerPart = amountArray[0]; // string| number[]
|
||||||
|
const decimalPart = amountArray[1];
|
||||||
|
|
||||||
|
// 处理整数部分
|
||||||
|
if (integerPart != '0') {
|
||||||
|
let _integerPart = integerPart.split('').map((item):number => parseInt(item));
|
||||||
|
|
||||||
|
// 将整数部分按四位一级进行分组
|
||||||
|
const levels = _integerPart.reverse().reduce((prev:string[][], item, index):string[][] => {
|
||||||
|
// const level = prev?.[0]?.length < 4 ? prev[0] : [];
|
||||||
|
const level = prev.length > 0 && prev[0].length < 4 ? prev[0]: []
|
||||||
|
|
||||||
|
const value = item == 0 ? digits[item] : digits[item] + units[index % 4];
|
||||||
|
|
||||||
|
level.unshift(value);
|
||||||
|
|
||||||
|
if (level.length == 1) {
|
||||||
|
prev.unshift(level);
|
||||||
|
} else {
|
||||||
|
prev[0] = level;
|
||||||
|
}
|
||||||
|
|
||||||
|
return prev;
|
||||||
|
}, [] as string[][]);
|
||||||
|
// 将分组后的整数部分转换为中文大写形式
|
||||||
|
result += levels.reduce((prev, item, index):string => {
|
||||||
|
let _level = bigUnits[levels.length - index - 1];
|
||||||
|
let _item = item.join('').replace(/(零)\1+/g, '$1');
|
||||||
|
|
||||||
|
if (_item == '零') {
|
||||||
|
_level = '';
|
||||||
|
_item = '';
|
||||||
|
} else if (_item.endsWith('零')) {
|
||||||
|
_item = _item.slice(0, _item.length - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return prev + _item + _level;
|
||||||
|
}, '');
|
||||||
|
} else {
|
||||||
|
result += '零';
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加元
|
||||||
|
result += '元';
|
||||||
|
|
||||||
|
// 处理小数部分
|
||||||
|
if (decimalPart != '00') {
|
||||||
|
if (result == '零元') result = '';
|
||||||
|
|
||||||
|
for (let i = 0; i < decimalPart.length; i++) {
|
||||||
|
const digit = parseInt(decimalPart.charAt(i));
|
||||||
|
|
||||||
|
if (digit != 0) {
|
||||||
|
result += digits[digit] + decimalUnits[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
result += '整';
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
} catch (error : Error) {
|
||||||
|
return error.message;
|
||||||
|
}
|
||||||
|
};
|
63
uni_modules/lime-shared/characterLimit/index.ts
Normal file
63
uni_modules/lime-shared/characterLimit/index.ts
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
/**
|
||||||
|
* 计算字符串字符的长度并可以截取字符串。
|
||||||
|
* @param char 传入字符串(maxcharacter条件下,一个汉字表示两个字符)
|
||||||
|
* @param max 规定最大字符串长度
|
||||||
|
* @returns 当没有传入maxCharacter/maxLength 时返回字符串字符长度,当传入maxCharacter/maxLength时返回截取之后的字符串和长度。
|
||||||
|
*/
|
||||||
|
export type CharacterLengthResult = {
|
||||||
|
length : number;
|
||||||
|
characters : string;
|
||||||
|
}
|
||||||
|
// #ifdef APP-ANDROID
|
||||||
|
type ChartType = any
|
||||||
|
// #endif
|
||||||
|
// #ifndef APP-ANDROID
|
||||||
|
type ChartType = string | number
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
export function characterLimit(type : string, char : ChartType, max : number) : CharacterLengthResult {
|
||||||
|
const str = `${char}`;
|
||||||
|
|
||||||
|
if (str.length == 0) {
|
||||||
|
return {
|
||||||
|
length: 0,
|
||||||
|
characters: '',
|
||||||
|
} as CharacterLengthResult
|
||||||
|
}
|
||||||
|
|
||||||
|
if (type == 'maxcharacter') {
|
||||||
|
let len = 0;
|
||||||
|
for (let i = 0; i < str.length; i += 1) {
|
||||||
|
let currentStringLength : number// = 0;
|
||||||
|
const code = str.charCodeAt(i)!
|
||||||
|
if (code > 127 || code == 94) {
|
||||||
|
currentStringLength = 2;
|
||||||
|
} else {
|
||||||
|
currentStringLength = 1;
|
||||||
|
}
|
||||||
|
if (len + currentStringLength > max) {
|
||||||
|
return {
|
||||||
|
length: len,
|
||||||
|
characters: str.slice(0, i),
|
||||||
|
} as CharacterLengthResult
|
||||||
|
}
|
||||||
|
len += currentStringLength;
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
length: len,
|
||||||
|
characters: str,
|
||||||
|
} as CharacterLengthResult
|
||||||
|
} else if (type == 'maxlength') {
|
||||||
|
const length = str.length > max ? max : str.length;
|
||||||
|
return {
|
||||||
|
length: length,
|
||||||
|
characters: str.slice(0, length),
|
||||||
|
} as CharacterLengthResult
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
length: str.length,
|
||||||
|
characters: str,
|
||||||
|
} as CharacterLengthResult
|
||||||
|
};
|
73
uni_modules/lime-shared/createCanvas/index.ts
Normal file
73
uni_modules/lime-shared/createCanvas/index.ts
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
|
||||||
|
// @ts-nocheck
|
||||||
|
// #ifndef UNI-APP-X && APP
|
||||||
|
import type { ComponentInternalInstance } from '@/uni_modules/lime-shared/vue'
|
||||||
|
import { getRect } from '@/uni_modules/lime-shared/getRect'
|
||||||
|
import { canIUseCanvas2d } from '@/uni_modules/lime-shared/canIUseCanvas2d'
|
||||||
|
export const isCanvas2d = canIUseCanvas2d()
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
|
export function createCanvas(canvasId : string, component : ComponentInternalInstance) {
|
||||||
|
// #ifdef UNI-APP-X
|
||||||
|
uni.createCanvasContextAsync({
|
||||||
|
canvasId,
|
||||||
|
component,
|
||||||
|
success(context : CanvasContext) {
|
||||||
|
|
||||||
|
},
|
||||||
|
fail(error : UniError) {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// #endif
|
||||||
|
// #ifndef UNI-APP-X
|
||||||
|
const isCanvas2d = canIUseCanvas2d()
|
||||||
|
getRect('#' + canvasId, context, isCanvas2d).then(res => {
|
||||||
|
if (res.node) {
|
||||||
|
res.node.width = res.width
|
||||||
|
res.node.height = res.height
|
||||||
|
return res.node
|
||||||
|
} else {
|
||||||
|
const ctx = uni.createCanvasContext(canvasId, context)
|
||||||
|
if (!ctx._drawImage) {
|
||||||
|
ctx._drawImage = ctx.drawImage
|
||||||
|
ctx.drawImage = function (...args) {
|
||||||
|
const { path } = args.shift()
|
||||||
|
ctx._drawImage(path, ...args)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!ctx.getImageData) {
|
||||||
|
ctx.getImageData = function () {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
uni.canvasGetImageData({
|
||||||
|
canvasId,
|
||||||
|
x: parseInt(arguments[0]),
|
||||||
|
y: parseInt(arguments[1]),
|
||||||
|
width: parseInt(arguments[2]),
|
||||||
|
height: parseInt(arguments[3]),
|
||||||
|
success(res) {
|
||||||
|
resolve(res)
|
||||||
|
},
|
||||||
|
fail(err) {
|
||||||
|
reject(err)
|
||||||
|
}
|
||||||
|
}, context)
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
getContext(type: string) {
|
||||||
|
if(type == '2d') {
|
||||||
|
return ctx
|
||||||
|
}
|
||||||
|
},
|
||||||
|
width: res.width,
|
||||||
|
height: res.height,
|
||||||
|
createImage
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// #endif
|
||||||
|
}
|
45
uni_modules/lime-shared/floatDiv/index.ts
Normal file
45
uni_modules/lime-shared/floatDiv/index.ts
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
import { floatMul } from '../floatMul';
|
||||||
|
import { isNumber } from '../isNumber';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 除法函数,用于处理浮点数除法并保持精度。
|
||||||
|
* @param {number} num1 - 被除数。
|
||||||
|
* @param {number} num2 - 除数。
|
||||||
|
* @returns {number} 除法运算的结果,保留正确的精度。
|
||||||
|
*/
|
||||||
|
export function floatDiv(num1:number, num2:number):number {
|
||||||
|
// 如果传入的不是数字类型,则打印警告并返回NaN
|
||||||
|
if (!isNumber(num1) || !isNumber(num2)) {
|
||||||
|
console.warn('请传入数字类型');
|
||||||
|
return NaN;
|
||||||
|
}
|
||||||
|
|
||||||
|
let m1 = 0, // 被除数小数点后的位数
|
||||||
|
m2 = 0, // 除数小数点后的位数
|
||||||
|
s1 = num1.toString(), // 将被除数转换为字符串
|
||||||
|
s2 = num2.toString(); // 将除数转换为字符串
|
||||||
|
|
||||||
|
// 计算被除数小数点后的位数
|
||||||
|
try {
|
||||||
|
m1 += s1.split('.')[1].length;
|
||||||
|
} catch (error) {}
|
||||||
|
|
||||||
|
// 计算除数小数点后的位数
|
||||||
|
try {
|
||||||
|
m2 += s2.split('.')[1].length;
|
||||||
|
} catch (error) {}
|
||||||
|
|
||||||
|
// 进行除法运算并处理小数点后的位数,使用之前定义的乘法函数保持精度
|
||||||
|
// #ifdef APP-ANDROID
|
||||||
|
return floatMul(
|
||||||
|
parseFloat(s1.replace('.', '')) / parseFloat(s2.replace('.', '')),
|
||||||
|
Math.pow(10, m2 - m1),
|
||||||
|
);
|
||||||
|
// #endif
|
||||||
|
// #ifndef APP-ANDROID
|
||||||
|
return floatMul(
|
||||||
|
Number(s1.replace('.', '')) / Number(s2.replace('.', '')),
|
||||||
|
Math.pow(10, m2 - m1),
|
||||||
|
);
|
||||||
|
// #endif
|
||||||
|
}
|
44
uni_modules/lime-shared/floatMul/index.ts
Normal file
44
uni_modules/lime-shared/floatMul/index.ts
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
import {isNumber} from '../isNumber';
|
||||||
|
// #ifdef APP-ANDROID
|
||||||
|
import BigDecimal from 'java.math.BigDecimal'
|
||||||
|
// import BigDecimal from 'java.math.BigDecimal'
|
||||||
|
// import StringBuilder from 'java.lang.StringBuilder'
|
||||||
|
// import java.math.BigDecimal;
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 乘法函数,用于处理浮点数乘法并保持精度。
|
||||||
|
* @param {number} num1 - 第一个乘数。
|
||||||
|
* @param {number} num2 - 第二个乘数。
|
||||||
|
* @returns {number} 乘法运算的结果,保留正确的精度。
|
||||||
|
*/
|
||||||
|
export function floatMul(num1 : number, num2 : number) : number {
|
||||||
|
if (!(isNumber(num1) || isNumber(num2))) {
|
||||||
|
console.warn('Please pass in the number type');
|
||||||
|
return NaN;
|
||||||
|
}
|
||||||
|
let m = 0;
|
||||||
|
// #ifdef APP-ANDROID
|
||||||
|
let s1 = BigDecimal.valueOf(num1.toDouble()).toPlainString(); //new UTSNumber(num1).toString() // //`${num1.toFloat()}`// num1.toString(),
|
||||||
|
let s2 = BigDecimal.valueOf(num2.toDouble()).toPlainString(); //new UTSNumber(num2).toString() //`${num2.toFloat()}`//.toString();
|
||||||
|
// #endif
|
||||||
|
// #ifndef APP-ANDROID
|
||||||
|
let s1:string = `${num1}`// num1.toString(),
|
||||||
|
let s2:string = `${num2}`//.toString();
|
||||||
|
// #endif
|
||||||
|
|
||||||
|
try {
|
||||||
|
m += s1.split('.')[1].length;
|
||||||
|
} catch (error) { }
|
||||||
|
try {
|
||||||
|
m += s2.split('.')[1].length;
|
||||||
|
} catch (error) { }
|
||||||
|
|
||||||
|
// #ifdef APP-ANDROID
|
||||||
|
return parseFloat(s1.replace('.', '')) * parseFloat(s2.replace('.', '')) / Math.pow(10, m);
|
||||||
|
// #endif
|
||||||
|
// #ifndef APP-ANDROID
|
||||||
|
return Number(s1.replace('.', '')) * Number(s2.replace('.', '')) / Math.pow(10, m);
|
||||||
|
// #endif
|
||||||
|
}
|
32
uni_modules/lime-shared/floatSub/index.ts
Normal file
32
uni_modules/lime-shared/floatSub/index.ts
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import { isNumber } from '../isNumber';
|
||||||
|
/**
|
||||||
|
* 减法函数,用于处理浮点数减法并保持精度。
|
||||||
|
* @param {number} num1 - 被减数。
|
||||||
|
* @param {number} num2 - 减数。
|
||||||
|
* @returns {number} 减法运算的结果,保留正确的精度。
|
||||||
|
*/
|
||||||
|
export function floatSub(num1 : number, num2 : number) : number {
|
||||||
|
if (!(isNumber(num1) || isNumber(num2))) {
|
||||||
|
console.warn('Please pass in the number type');
|
||||||
|
return NaN;
|
||||||
|
}
|
||||||
|
let r1:number, r2:number, m:number, n:number;
|
||||||
|
try {
|
||||||
|
r1 = num1.toString().split('.')[1].length;
|
||||||
|
} catch (error) {
|
||||||
|
r1 = 0;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
r2 = num2.toString().split('.')[1].length;
|
||||||
|
} catch (error) {
|
||||||
|
r2 = 0;
|
||||||
|
}
|
||||||
|
m = Math.pow(10, Math.max(r1, r2));
|
||||||
|
n = r1 >= r2 ? r1 : r2;
|
||||||
|
// #ifndef APP-ANDROID
|
||||||
|
return Number(((num1 * m - num2 * m) / m).toFixed(n));
|
||||||
|
// #endif
|
||||||
|
// #ifdef APP-ANDROID
|
||||||
|
return parseFloat(((num1 * m - num2 * m) / m).toFixed(n));
|
||||||
|
// #endif
|
||||||
|
}
|
11
uni_modules/lime-shared/obj2url/index.ts
Normal file
11
uni_modules/lime-shared/obj2url/index.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
// #ifndef UNI-APP-X
|
||||||
|
type UTSJSONObject = Record<string, any>
|
||||||
|
// #endif
|
||||||
|
export function obj2url(data: UTSJSONObject, isPrefix: boolean = false): string {
|
||||||
|
const prefix = isPrefix ? '?' : '';
|
||||||
|
const _result = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
16
uni_modules/lime-shared/shuffle/index.ts
Normal file
16
uni_modules/lime-shared/shuffle/index.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// @ts-nocheck
|
||||||
|
/**
|
||||||
|
* 随机化数组中元素的顺序,使用 Fisher-Yates 算法
|
||||||
|
* @description 函数接受一个数组作为参数,返回一个新的数组,其中包含原数组随机化顺序后的元素。
|
||||||
|
* @param arr 要随机化的数组
|
||||||
|
* @returns 一个新的数组,其中包含原数组随机化顺序后的元素。
|
||||||
|
*/
|
||||||
|
export function shuffle<T>(arr : T[]) : T[] {
|
||||||
|
for (let i = arr.length - 1; i > 0; i--) {
|
||||||
|
const j = Math.floor(Math.random() * (i + 1))
|
||||||
|
const temp = arr[i]
|
||||||
|
arr[i] = arr[j]
|
||||||
|
arr[j] = temp
|
||||||
|
}
|
||||||
|
return arr
|
||||||
|
}
|
@ -11,7 +11,6 @@
|
|||||||
{{ doEmptyString(item.value) }}
|
{{ doEmptyString(item.value) }}
|
||||||
</view>
|
</view>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
</template>
|
</template>
|
||||||
@ -21,24 +20,25 @@
|
|||||||
// 表格数据
|
// 表格数据
|
||||||
cellData: {
|
cellData: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => [{
|
default: () => [
|
||||||
title: "",
|
{
|
||||||
value: "",
|
title: '',
|
||||||
|
value: '',
|
||||||
titleSpan: 4,
|
titleSpan: 4,
|
||||||
valueSpan: 4
|
valueSpan: 4
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
//每行数据组数 title value
|
//每行数据组数 title value
|
||||||
rowDataCount: {
|
rowDataCount: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 3
|
default: 3
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
data: []
|
data: []
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
cellData: {
|
cellData: {
|
||||||
@ -46,9 +46,10 @@
|
|||||||
immediate: true,
|
immediate: true,
|
||||||
handler(val) {
|
handler(val) {
|
||||||
let totalSpan = 0;
|
let totalSpan = 0;
|
||||||
for (var i = 0; i < val.length; i++) { //根据每行数据组数 补齐栅格 24
|
for (var i = 0; i < val.length; i++) {
|
||||||
|
//根据每行数据组数 补齐栅格 24
|
||||||
if ((i + 1) % this.rowDataCount != 0) {
|
if ((i + 1) % this.rowDataCount != 0) {
|
||||||
totalSpan = totalSpan + val[i].titleSpan + val[i].valueSpan
|
totalSpan = totalSpan + val[i].titleSpan + val[i].valueSpan;
|
||||||
} else {
|
} else {
|
||||||
val[i].valueSpan = 24 - totalSpan - val[i].titleSpan;
|
val[i].valueSpan = 24 - totalSpan - val[i].titleSpan;
|
||||||
totalSpan = 0;
|
totalSpan = 0;
|
||||||
@ -63,35 +64,32 @@
|
|||||||
//数据如果为空,自动替换成/
|
//数据如果为空,自动替换成/
|
||||||
doEmptyString(obj) {
|
doEmptyString(obj) {
|
||||||
let str = '/';
|
let str = '/';
|
||||||
if (typeof(obj) == "undefined" || (obj) === null || (obj) === '') {
|
if (typeof obj == 'undefined' || obj === null || obj === '' || obj === 'Na' || obj === 'N' || obj === '0') {
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
return obj + '';
|
return obj + '';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/* 标签样式 */
|
/* 标签样式 */
|
||||||
.titleStyle {
|
.titleStyle {
|
||||||
font-size: 12px;
|
font-size: 10px;
|
||||||
color: #747474;
|
color: #747474;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
background: #F2F9FC;
|
background: #f2f9fc;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-left: 1px solid #919191;
|
border-left: 1px solid #919191;
|
||||||
border-right: 1px solid #919191;
|
border-right: 1px solid #919191;
|
||||||
border-bottom: 1px solid #919191;
|
border-bottom: 1px solid #919191;
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 内容样式 */
|
/* 内容样式 */
|
||||||
.dataStyle {
|
.dataStyle {
|
||||||
|
font-size: 12px;
|
||||||
font-size: 14px;
|
|
||||||
color: #00007f;
|
color: #00007f;
|
||||||
line-height: 35px;
|
line-height: 35px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
@ -105,8 +103,7 @@
|
|||||||
|
|
||||||
/* 内容样式 */
|
/* 内容样式 */
|
||||||
.dataStyle1 {
|
.dataStyle1 {
|
||||||
|
font-size: 10px;
|
||||||
font-size: 12px;
|
|
||||||
color: #00007f;
|
color: #00007f;
|
||||||
line-height: 15px;
|
line-height: 15px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
|
Loading…
Reference in New Issue
Block a user