1.1.9
This commit is contained in:
parent
5d7781710e
commit
4eb676bf08
@ -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.249:8080
|
VITE_REQUEST_BASE_URL = http://10.75.15.249:8080
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# 生产环境
|
# 生产环境
|
||||||
# 请求接口地址
|
# 请求接口地址
|
||||||
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
|
|
@ -2,8 +2,8 @@
|
|||||||
"name" : "数智产销",
|
"name" : "数智产销",
|
||||||
"appid" : "__UNI__9F097F0",
|
"appid" : "__UNI__9F097F0",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.1.7",
|
"versionName" : "1.1.9",
|
||||||
"versionCode" : 20250228,
|
"versionCode" : 20250302,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
@ -13,13 +13,24 @@
|
|||||||
@change="departChange"></trq-depart-select>
|
@change="departChange"></trq-depart-select>
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
|
<uni-row v-show="!username">
|
||||||
|
<uni-col :span="12"><uni-title title="姓名" align="left" type="h5"></uni-title></uni-col>
|
||||||
|
<uni-col :span="12"><uni-title title="劳动合同号" align="left" type="h5"></uni-title></uni-col>
|
||||||
|
</uni-row>
|
||||||
|
<uni-row v-show="!username">
|
||||||
|
<uni-col :span="12">
|
||||||
|
<uni-easyinput v-model="realname" placeholder="姓名模糊查询" @change="Search" @clear="Search"/>
|
||||||
|
</uni-col>
|
||||||
|
<uni-col :span="12">
|
||||||
|
<uni-easyinput v-model="contractNumber" placeholder="劳动合同号查询" @change="Search" @clear="Search"/>
|
||||||
|
</uni-col>
|
||||||
|
</uni-row>
|
||||||
<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">
|
||||||
<uni-datetime-picker v-model="range" type="daterange" rangeSeparator="至"
|
<uni-datetime-picker v-model="range" type="daterange" rangeSeparator="至" @input="handleInput" />
|
||||||
@input="handleInput" />
|
|
||||||
</uni-col>
|
</uni-col>
|
||||||
</uni-row>
|
</uni-row>
|
||||||
<!-- ECharts图表 -->
|
<!-- ECharts图表 -->
|
||||||
@ -73,6 +84,9 @@
|
|||||||
const range = ref('') //日期查询
|
const range = ref('') //日期查询
|
||||||
const type = ref('') //图表点击事件
|
const type = ref('') //图表点击事件
|
||||||
const username = ref('') //用户名
|
const username = ref('') //用户名
|
||||||
|
const realname = ref('') //姓名查询
|
||||||
|
const contractNumber = ref('') //劳动合同号查询
|
||||||
|
const timeout = ref(null)
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const list = ref([])
|
const list = ref([])
|
||||||
let pageNo = 1
|
let pageNo = 1
|
||||||
@ -95,21 +109,39 @@
|
|||||||
range.value = []
|
range.value = []
|
||||||
type.value = ''
|
type.value = ''
|
||||||
username.value = ''
|
username.value = ''
|
||||||
|
realname.value = ''
|
||||||
|
contractNumber.value = ''
|
||||||
queryLeave()
|
queryLeave()
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleInput(e) {
|
function handleInput(e) {
|
||||||
range.value = e;
|
|
||||||
queryLeave()
|
queryLeave()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Search() {
|
||||||
|
if (timeout.value) {
|
||||||
|
clearTimeout(timeout.value);
|
||||||
|
}
|
||||||
|
timeout.value = setTimeout(() => {
|
||||||
|
queryLeave()
|
||||||
|
}, 300); // 300ms 防抖时间
|
||||||
|
}
|
||||||
|
|
||||||
|
function clearSearch() {
|
||||||
|
console.log('-----',realname.value)
|
||||||
|
console.log('-----',contractNumber.value)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const queryLeave = (e) => {
|
const queryLeave = (e) => {
|
||||||
let param = {
|
let param = {
|
||||||
sysOrgCode: orgCode.value,
|
sysOrgCode: orgCode.value,
|
||||||
begin: range.value[0],
|
begin: range.value[0],
|
||||||
end: range.value[1],
|
end: range.value[1],
|
||||||
type: type.value,
|
type: type.value,
|
||||||
username: username.value
|
username: username.value,
|
||||||
|
realname: realname.value,
|
||||||
|
contractNumbers: contractNumber.value
|
||||||
}
|
}
|
||||||
if (e == 1) { // 下拉刷新时,pageNo++
|
if (e == 1) { // 下拉刷新时,pageNo++
|
||||||
pageNo++;
|
pageNo++;
|
||||||
@ -135,6 +167,7 @@
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
list.value = [...list.value, ...res.result.records]
|
list.value = [...list.value, ...res.result.records]
|
||||||
}
|
}
|
||||||
|
|
||||||
loading = false
|
loading = false
|
||||||
}).catch((err) => {})
|
}).catch((err) => {})
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view v-if="returnCodeOrID === 'orgCode'">
|
<view v-if="returnCodeOrID === 'orgCode'">
|
||||||
<uni-data-picker v-model="selectDepartID" ref="depart" :openSearch="true" :ellipsis="true"
|
<uni-data-picker v-model="selectDepartID" ref="depart" :openSearch="true" :ellipsis="true"
|
||||||
placeholder="请选择单位code" popup-title="请选择单位" :localdata="departList" @nodeclick="onnodeclick"
|
placeholder="请选择单位" popup-title="请选择单位" :localdata="departList" @nodeclick="onnodeclick"
|
||||||
@popupclosed="onpopupclosed" :map="{'text':'title','value':'orgCode'}"
|
@popupclosed="onpopupclosed" :map="{'text':'title','value':'orgCode'}"
|
||||||
class="no-wrap-picker"></uni-data-picker>
|
class="no-wrap-picker"></uni-data-picker>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
Reference in New Issue
Block a user