Commit b0ca57a1 authored by 王向前's avatar 王向前

添加工作日报

parent 7ff80de5
...@@ -108,6 +108,13 @@ const routes = [ ...@@ -108,6 +108,13 @@ const routes = [
title: '工作日报详情', title: '工作日报详情',
}, },
}, },
{
path: '/pages/kqgl/work/work',
name: 'kqgl-work',
meta: {
title: '工作日报',
},
},
......
...@@ -8,7 +8,7 @@ export default [ ...@@ -8,7 +8,7 @@ export default [
mkid: '1804020200', mkid: '1804020200',
mkmc: '工作日报', mkmc: '工作日报',
image: '/static/icon/oa/gzrb.png', image: '/static/icon/oa/gzrb.png',
page: 'kqgl-gzrb' page: 'kqgl-work'
} }
] ]
} }
......
/**
* 常用服务
* useful server
*/
const icon_prefix="/static/home/128/"
const icon_xm="/static/xmtb/"
/**
* other server 其他服务
*/
export const epQusetions ={
moudles:[
{id:"HYJY",name:"会议决议",icon:"cuIcon-friend" ,color:"#00aaff",wtsl:0,},
{id:"SCWT",name:"市场反馈",icon:"cuIcon-pic",color:"orange",wtsl:0},
{id:"GSWT",name:"公司反馈",icon:"cuIcon-service",color:"#d3b100",wtsl:0},
{id:"GZXJ",name:"工作巡检",icon:"cuIcon-record",color:"#cd5cb1",wtsl:0},
{id:"FCSH",name:"分层审核",icon:"cuIcon-album",color:"#00aa00",wtsl:0},
{id:"TXGL",name:"体系管理审核",icon:"cuIcon-taoxiaopu",color:"#0081ff",wtsl:0},
{id:"KHSH",name:"客户审核",icon:"cuIcon-calendar",color:"#0081ff",wtsl:0},
{id:"GZZP",name:"工作指派",icon:"cuIcon-post",color:"#57ccce",wtsl:0},
{id:"ZYJY",name:"第三方专业建议",icon:"cuIcon-copy",color:"#215d7e",wtsl:0},
{id:"TAGS",name:"提案改善",icon:"cuIcon-skin",color:"#ff5500",wtsl:0},
{id:"MBGL",name:"目标管理",icon:"cuIcon-skin",color:"#ff5500",wtsl:0},
],
loveList:{
HYJY:{id:"HYJY",name:"会议决议",icon:"cuIcon-friend" ,color:"#00aaff",wtsl:0,},
SCWT:{id:"SCWT",name:"市场反馈",icon:"cuIcon-pic",color:"orange",wtsl:0},
GSWT:{id:"GSWT",name:"公司反馈",icon:"cuIcon-service",color:"#d3b100",wtsl:0},
GZXJ:{id:"GZXJ",name:"工作巡检",icon:"cuIcon-record",color:"#cd5cb1",wtsl:0},
FCSH:{id:"FCSH",name:"分层审核",icon:"cuIcon-album",color:"#00aa00",wtsl:0},
TXGL:{id:"TXGL",name:"体系管理审核",icon:"cuIcon-taoxiaopu",color:"#0081ff",wtsl:0},
KHSH:{id:"KHSH",name:"客户审核",icon:"cuIcon-calendar",color:"#0081ff",wtsl:0},
GZZP:{id:"GZZP",name:"工作指派",icon:"cuIcon-post",color:"#57ccce",wtsl:0},
ZYJY:{id:"ZYJY",name:"第三方专业建议",icon:"cuIcon-copy",color:"#215d7e",wtsl:0},
TAGS:{id:"TAGS",name:"提案改善",icon:"cuIcon-skin",color:"#ff5500",wtsl:0},
MBGL:{id:"MBGL",name:"目标管理",icon:"cuIcon-skin",color:"#aaaaff",wtsl:0},
},
types:[
{title:"效率",id:"1"},
{title:"质量",id:"2"},
{title:"成本",id:"3"},
{title:"安全",id:"4"},
// {title:"能力发展",id:"5"},
{title:"市场",id:"6"},
{title:"产品开发",id:"7"},
{title:"财务",id:"8"},
{title:"其它",id:"9"}
],
level:[
{title:"重要紧急",id:"1",bgColor:"#ff5500"},
{title:"重要不紧急",id:"2",bgColor:"#7a87eb"},
{title:"紧急不重要",id:"3",bgColor:"#ffa500"},
{title:"不重要,不紧急",id:"4",bgColor:"#91d3b5"},
],
levels:[
{title:"重要紧急",id:"1",bgColor:"#ff5500"},
{title:"重要不紧急",id:"2",bgColor:"#7a87eb"},
{title:"紧急不重要",id:"3",bgColor:"#ffa500"},
{title:"不重要,不紧急",id:"4",bgColor:"#91d3b5"},
],
csfs:{
"L":"领取","F":"分配","B":"驳回"
},
dfdxlx:{"USER":"用户","BM":"部门"},
gzjd:{
"JH":"计划",
"SS":"实施",
"YZ":"策略稳定验证",
"WC":"完成",
"BZH":"评估",
},
wccgObject:{
"Y":"完成",
"N":"处理失败",
"E":"逾期完成"
},
gzzt:{
"I":"待领取",
"P":"待执行",
"D":"执行中",
"BZH":"评估",
"PGZC":"评估仲裁",
// "S":"作废",
"E":"逾期",
"C":"完成"
}
}
\ No newline at end of file
...@@ -332,4 +332,5 @@ ...@@ -332,4 +332,5 @@
color: #666666; color: #666666;
font-size: 12px; font-size: 12px;
} }
.wid100{width: 100%};
</style> </style>
...@@ -65,6 +65,13 @@ ...@@ -65,6 +65,13 @@
"style": { "style": {
"navigationBarTitleText": "" "navigationBarTitleText": ""
} }
},
{
"path" : "pages/kqgl/work/work",
"style" :
{
"navigationBarTitleText" : ""
}
} }
......
<template> <template>
<view> <view class="bg-white">
<interfacepage :cur="PageCur" v-if="PageCur=='index'" :key="commponent1Key"></interfacepage> <interfacepage :cur="PageCur" v-if="PageCur=='index'" :key="commponent1Key"></interfacepage>
<people v-if="PageCur=='people'" :key="commponent2Key"></people> <people v-if="PageCur=='people'" :key="commponent2Key"></people>
<view class="cu-bar tabbar bg-white shadow foot"> <view class="cu-bar tabbar bg-white shadow foot">
<view :class="PageCur=='index'?'action text-green':'action text-gray'" @click="NavChange" data-cur="index"> <view :class="PageCur=='index'?'action text-blue':'action text-black'" @click="NavChange" data-cur="index">
<view class='cuIcon-homefill'></view>主页 <view :class="PageCur=='index'?'cuIcon-circlefill':'cuIcon-apps'"></view>工作台
</view> </view>
<view :class="PageCur=='people'?'action text-green':'action text-gray'" @click="NavChange" data-cur="people"> <view :class="PageCur=='people'?'action text-blue':'action text-black'" @click="NavChange" data-cur="people">
<view class='cuIcon-people'></view>个人 <view :class="PageCur=='people'?'cuIcon-peoplefill':'cuIcon-people'"></view>个人
</view> </view>
</view> </view>
</view> </view>
...@@ -37,5 +37,8 @@ ...@@ -37,5 +37,8 @@
</script> </script>
<style> <style>
page{
background: white;
}
</style> </style>
<template name="interfacepage"> <template name="interfacepage">
<view> <view class="bg-white">
<cu-custom bgColor="bg-gradual-blue"> <cu-custom bgColor="bg-blue">
<block slot="content">首页</block> <block slot="content">工作台</block>
</cu-custom> </cu-custom>
<scroll-view> <scroll-view>
<!-- 渲染列表 --> <!-- 渲染列表 -->
<view class="padding-sm" v-for="(item) in showList" :key="item.mkid"> <view class="padding-sm" v-for="(item) in showList" :key="item.mkid">
<view class="cu-bar bg-white solid-bottom"> <view class="title padding-tb-sm padding-left-sm border-bottom text-gray" style="font-size: 12px;">
<view class="action text-bold"> {{item.mkmc}}
<text class='cuIcon-title text-blue'></text>{{item.mkmc}} </view>
</view>
</view>
<view class="grid col-4 bg-white"> <view class="grid col-4 bg-white">
<view class="padding-sm" v-for="(citem,cindex) in item.children" :key="cindex" <view class="padding-sm" v-for="(citem,cindex) in item.children" :key="cindex"
@tap="goPage(citem.page,citem.index)"> @tap="goPage(citem.page,citem.index)">
...@@ -19,7 +17,7 @@ ...@@ -19,7 +17,7 @@
:style="{background: 'url('+ citem.image + ') no-repeat',backgroundSize:'56upx 56upx'}"> :style="{background: 'url('+ citem.image + ') no-repeat',backgroundSize:'56upx 56upx'}">
<view class="cu-tag badge" v-if="getTtemDotInfo(item)">{{getTtemDotInfo(item)}}</view> <view class="cu-tag badge" v-if="getTtemDotInfo(item)">{{getTtemDotInfo(item)}}</view>
</view> </view>
<view class="text-lg margin-top">{{citem.mkmc}}</view> <view class="margin-top-xs text-sm text-black">{{citem.mkmc}}</view>
</view> </view>
</view> </view>
</view> </view>
......
<template> <template>
<view class="bg-white"> <view class="bg-white">
<cu-custom bgColor="bg-gradual-blue" :isBack="true"> <cu-custom bgColor="bg-blue" :isBack="true">
<block slot="backText">返回</block> <block slot="backText">返回</block>
<block slot="content">{{$Route.meta.title}}</block> <block slot="content">{{$Route.meta.title}}</block>
<template #right> <template #right>
......
<template>
<view>
<cu-custom bgColor="bg-blue" :isBack="true">
<block slot="backText">返回</block>
<block slot="content">{{$Route.meta.title}}</block>
</cu-custom>
<view :style="[{top:CustomBar + 'px'}]" class="fixed-top">
<view class="cu-bar search bg-white ">
<view class="search-form round">
<text class="cuIcon-search" style="color: #007AFF;"></text>
<input style="color: #666;" v-model="wtinfo" :adjust-position="true" type="text"
confirm-type="search"></input>
<button class="cu-btn bg-blue shadow-blur round search-input-btn" @tap="serchlist()">搜索</button>
</view>
</view>
<view class="flex flex-wrap">
<view class="wcontent content">
<sl-filter :ref="'slFilter'" :themeColor="themeColor" :menuList="menuList" @result="result"
@resetResult="resetResult"></sl-filter>
</view>
<view class="action nav-last">
<text class="" @tap="showChoosePoup">更多筛选<text class="cuIcon cuIcon-filter"></text></text>
</view>
</view>
</view>
<view class="wid100" style="height: 140rpx;"></view>
<scroll-view scroll-y="true">
<!-- 基于 uni-list 的页面布局 -->
<view class="cu-list menu margin-top">
<view class="cu-item menu-avatar" v-for="(item,index) in myList" :key="index" @tap="gotoDetail(item)">
<view class="cu-avatar round lg bg-grey" v-if="item.zt=='C'">
<text style="font-size: 18px;font-weight: 600;color: white;" class="avatar-text"></text>
<view class="cu-tag badge" :style="{backgroundColor:wtWctatus(item)}">
<block>{{showText(item.jjcd,item)}}</block>
</view>
</view>
<view class="cu-avatar round lg" :style="{backgroundColor:ztColor(item.jjcd)}" v-else>
<text style="font-size: 18px;font-weight: 600;"
class="avatar-text">{{showText(item.jjcd,item)}}</text>
</view>
<view class="content text-overflow" style="display: block;padding: 0 10px;">
<view class="text-cut" style="color: black;font-size: 14px;font-weight: 600;"> {{item.gcxmName}}
</view>
<view class="text-cut text-gray text-sm text-cut" v-html="item.gznr">{{item.gznr}}</view>
</view>
<view class="action text-right">
<view class="text-grey text-xs text-right margin-bottom-sm">{{item.ywrq | formatDate }}</view>
<view class="" style="font-size: 13px;font-weight: 600;"
:style="{color:ztBg(item.zt,item.wccg)}">{{showGzzt(item.zt,item.wccg)}}</view>
</view>
</view>
</view>
</scroll-view>
<uni-load-more v-if="loading || options.status === 'noMore' " :status="options.status" />
<filter-popup :data="filterData" :form.sync="filterForm" v-model="popup.filter" themeColor="#f08c36"
title="更多筛选" height="1104rpx" @finsh="subFinsh" :ref="'poupFilter'"></filter-popup>
<uni-fab :pattern="pattern" :popMenu="false" horizontal="right" @fabClick="fabClick"></uni-fab>
</view>
</template>
<script>
import {
epQusetions
} from '@/common/util/work.js';
import slFilter from '@/components/sl-filter/sl-filter.vue';
import FilterPopup from "@/components/filter-popup/filter-popup";
import apiService from '@/api/api.js'
export default {
components: {
slFilter,
FilterPopup
},
data() {
return {
/* 条件参数 */
wtinfo: "",
orderType: "COMMON",
wtly: "",
wtlx: "",
jjcd: "",
wcpj: "",
wccgzt: "",
pageSize: 20,
pageNo: 1,
taskNumber: 0,
showBtn: 120,
gzztList: epQusetions.gzzt, //工作状态
CustomBar: this.CustomBar,
quedevelList: epQusetions.levels, //等级
popup: {
filter: false,
},
title: "日报",
modalName: null,
poupName: null,
myList: [],
loading: true,
tipShow: false,
listTouchStart: 0,
listTouchDirection: null,
API: apiService.API,
apiService: apiService,
queryApi: null,
themeColor: '#f08c36',
wtlxList: [],
filterResult: '',
jjcdDetailList: [],
options: {
status: "more"
},
zkdlq: "Y",
ztList: [],
wcpjList: [],
menuList: [{
'title': '事务类型',
'detailTitle': '请选择事务类型',
'isMutiple': true,
'key': 'wtlx',
'detailList': []
},
{
'title': '紧急程度',
'key': 'jjcd',
'isMutiple': true,
'detailTitle': '请选择紧急程度(可多选)',
'detailList': []
},
{
'title': '排序',
'key': 'orderType',
'isSort': true,
'defaultSelectedIndex': 0,
'detailList': [{
'title': '默认排序',
'value': 'COMMON'
},
{
'title': '创建时间',
'value': 'CJSJ'
},
{
'title': '需求日期',
'value': 'XQRQ'
}
]
}
],
userType: "all",
filterData: [{
children: false,
title: "类型",
key: "wtlx",
keyValue: "value",
data: [],
},
{
children: false, //是否有子项
title: "紧急程度",
key: "jjcd", //键名 接收对象名字
keyValue: "value", //获取的值是哪个
// isRadio: true, //是否单选 否则多选
data: [],
},
{
children: false,
title: "状态",
key: "wccgzt",
keyValue: "value",
data: [],
},
{
children: false,
title: "评估结果",
key: "wcpj",
keyValue: "value",
data: [],
},
], //筛选数据
filterForm: {
taskType: ["all"],
dlq: ["N"],
wtlx: [""],
jjcd: [""],
lqfs: [""],
wccgzt: [""],
wcpj: [""]
},
selectId: "",
loveList: epQusetions.loveList,
userid: null,
pattern: {
color: '#7A7E83',
backgroundColor: '#fff',
selectedColor: '#7A7E83',
},
wccgObject: epQusetions.wccgObject,
};
},
computed: {
},
mounted() {
},
filters: {
showIcon: function(value) {
const loveList = epQusetions.loveList;
return loveList[value].icon
},
formatTime: function(time) {
if (time != null && time != "") {
var date = new Date(time);
return date.Format("yy-MM-dd hh:mm")
} else {
return "";
}
},
formatDate: function(time) {
if (time != null && time != "") {
var date = new Date(time);
return date.Format("yyyy-MM-dd")
} else {
return "";
}
},
},
methods: {
wtWctatus(item) {
let wccgList = {
"FCMY": "#ff5500",
"MY": "#7a87eb",
"YBMY": "#ffa500",
"BMY": "#91d3b5"
};
if (item.zt == 'C' && item.wcpj) {
return wccgList[item.wcpj]
}
},
showText: function(e, a) {
let ztList = ['急', '重', '急', '普'];
let wccgList = {
"FCMY": "优",
"MY": "良",
"YBMY": "中",
"BMY": "差"
};
if (a.zt == 'C' && a.wcpj) {
return wccgList[a.wcpj]
} else {
return ztList[e - 1]
}
},
showGzzt(e, wccg) {
let text = this.gzztList[e]
if (e == "C" && wccg) {
return this.wccgObject[wccg]
} else {
return text
}
},
showColor: function(value) {
return this.loveList[value].color
},
serchlist() {
this.pageNo = 1
this.myList = []
this.getList()
},
InputFocus() {
},
InputBlur() {
},
ztColor: function(value) {
let colorList = {};
this.quedevelList.forEach(item => {
colorList[item.id] = item.bgColor;
})
return colorList[value]
},
ztBg: function(value, wccg) {
let ztList = {
I: "#666",
P: "#f2a200",
D: "#5555ff",
BZH: "#7a87eb",
PGZC: "red",
E: "#999",
C: "#00aa00"
}
if (value == "C" && wccg == "N") {
return "red"
} else if (value == "C" && wccg == "E") {
return "orange"
} else {
return ztList[value]
}
},
/* 请求类型 */
postWtzl() {
let _that = this;
_that.wtlxList = [];
this.$http.post("wf/common/wfstate", {}).then(res => {
if (res.data.success) {
let wtlxList = res.data.data.records;
wtlxList.forEach((item, index) => {
if (item.id == _that.wtlx) {
_that.menuList[0].defaultSelectedIndex = index
}
_that.wtlxList.push({
title: item["name"],
value: item["id"]
})
})
_that.changeMenuListDetailList();
} else {
_that.wtlxList = []
}
});
},
/* 请求完成成果接口 */
// postWccg(){
// let _that=this;
// apiService.postWccg({}).then(res=>{
// if (res.data.success) {
// let data=res.data.data.records||[]
// data.forEach(function(item,i){
// _that.wccgObject[item.id]=item.name
// })
// }
// })
// },
/* 请求状态 */
postZt() {
let _that = this;
this.$post('/kqgl/gzrb/init/zt', {}).then(res => {
if (res.data.success) {
let ztList = res.data.data.records || [];
ztList.forEach((item, index) => {
_that.ztList.push({
title: item["name"],
value: item["id"]
})
})
_that.filterData[2].data = [..._that.ztList];
}
})
},
// postPgjgZt(){
// let _that=this;
// apiService.postTaskPgjgZt({}).then(res=>{
// if (res.data.success) {
// let wcpjList=res.data.data.records||[];
// wcpjList.forEach((item,index)=>{
// _that.wcpjList.push({
// title:item["name"],
// value:item["id"]
// })
// })
// _that.filterData[3].data=[..._that.wcpjList];
// }
// })
// },
getList(isadd, isback) {
let _that = this;
_that.modalName = null;
_that.options.status = "loading";
let api = _that.queryApi;
if (isback) {
let newpageSize = this.pageSize * this.pageNo
let newpageNo = 1
_that.$http.post("/kqgl/gzrb/query", {
wtinfo: this.wtinfo,
orderType: this.orderType,
wtly: this.wtly,
wtlx: this.wtlx,
jjcd: this.jjcd,
zkdlq: 'Y',
pageNo: newpageNo,
pageSize: newpageSize,
wccgzt: this.wccgzt,
wcpj: this.wcpj
}).then(res => {
if (res.success) {
_that.taskNumber = res.data.total;
if (isadd) {
_that.myList = [..._that.myList, ...res.data.records];
_that.options.status = "more"
} else {
_that.myList = res.data.records;
_that.options.status = "noMore"
}
} else {
_that.myList = [];
if (_that.myList.length == 0) {
_that.options.status = "noMore"
}
}
_that.$forceUpdate()
});
} else {
_that.$http.post("/kqgl/gzrb/query", {
wtinfo: this.wtinfo,
orderType: this.orderType,
wtly: this.wtly,
wtlx: this.wtlx,
jjcd: this.jjcd,
zkdlq: 'Y',
pageNo: _that.pageNo,
pageSize: _that.pageSize,
wccgzt: this.wccgzt,
wcpj: this.wcpj
}).then(res => {
if (res.success) {
_that.taskNumber = res.data.total;
if (isadd) {
_that.myList = [..._that.myList, ...res.data.records];
_that.options.status = "more"
} else {
_that.myList = res.data.records;
_that.options.status = "noMore"
}
} else {
_that.myList = [];
if (_that.myList.length == 0) {
_that.options.status = "noMore"
}
}
_that.$forceUpdate()
});
}
},
changeMenuListDetailList() {
let tempDetailList = [...this.wtlxList];
let jjcdDetailList = [];
this.menuList[0].detailList = tempDetailList;
this.filterData[0].data = tempDetailList;
this.quedevelList.forEach(item => {
jjcdDetailList.push({
title: item.title,
value: item.id,
})
});
this.menuList[1].detailList = jjcdDetailList;
this.jjcdDetailList = jjcdDetailList;
this.filterData[1].data = jjcdDetailList;
this.$refs.slFilter.resetMenuList(this.menuList);
},
showChoosePoup() {
let _this = this;
this.filterForm["wtlx"] = this.wtlx.split(',');
this.filterForm["jjcd"] = this.jjcd.split(',');
this.filterForm["wccgzt"] = this.wccgzt.split(",");
this.$refs.poupFilter.setDefalutForm(this.filterForm);
this.popup.filter = true;
},
changeMenuListbyPoup(val) {
let defaultSelectedIndex = [],
defaultSelectedIndex2 = [];
let _this = this;
if (_this.filterForm && _this.filterForm["wtlx"]) {
this.menuList[0].detailList.forEach((item, index) => {
if (_this.filterForm["wtlx"].indexOf(item.value) > -1) {
defaultSelectedIndex.push(index);
}
})
}
if (_this.filterForm && _this.filterForm["jjcd"]) {
this.menuList[1].detailList.forEach((item, index) => {
if (_this.filterForm["jjcd"].indexOf(item.value) > -1) {
defaultSelectedIndex2.push(index);
}
})
}
this.menuList[0].defaultSelectedIndex = defaultSelectedIndex;
if (val) {
this.menuList[0].detailList.forEach(item => {
return item.isSelected = false
});
this.menuList[1].detailList.forEach(item => {
return item.isSelected = false
});
}
this.menuList[1].defaultSelectedIndex = defaultSelectedIndex2;
this.$refs.slFilter.resetMenuList(this.menuList);
},
resetResult(val) {
if (val) {
this.wtlx = "";
this.jjcd = "";
this.orderType = "COMMON";
this.filterForm["wtlx"] = [];
this.filterForm["jjcd"] = [];
this.serchlist();
}
},
result(val) {
let newWtlx = val.wtlx.filter(e => e);
this.wtlx = newWtlx.toString(',') || "";
let newJjcd = val.jjcd.filter(e => e)
this.jjcd = newJjcd.toString(',') || "";
this.orderType = val.orderType || "COMMON";
this.filterForm["wtlx"] = this.wtlx.split(',');
this.filterForm["jjcd"] = this.jjcd.split(',');
let orderTypeList = ["COMMON", "CJSJ", "XQRQ"];
this.menuList[2].defaultSelectedIndex = orderTypeList.indexOf(this.orderType);
this.serchlist();
this.changeMenuListbyPoup(false);
},
subFinsh(e, isReset) {
this.filterForm = e;
let val = this.filterForm;
let newWtlx = val.wtlx.filter(e => e);
this.wtlx = newWtlx.toString(',') || "";
let newJjcd = val.jjcd.filter(e => e);
this.jjcd = newJjcd.toString(',') || "";
let newWccgz = val.wccgzt.filter(e => e);
this.wccgzt = newWccgz.toString(',') || "";
let newWcpj = val.wcpj.filter(e => e);
this.wcpj = newWcpj.toString(',') || "";
let type = val.taskType[0];
this.zkdlq = 'Y';
if (isReset) {
this.zkdlq = "Y";
this.filterForm.dlq = ["N"];
this.filterForm.taskType = ["all"];
}
this.serchlist();
if (isReset) {
this.changeMenuListbyPoup(true);
} else {
this.changeMenuListbyPoup(false);
}
},
gotoDetail(item) {
this.$Router.push({
"name": "taskView",
params: {
id: item.id,
zt: item.zt
}
})
},
cancelModalName() {
this.poupName = null;
},
fabClick() {
this.$Router.push({
name: "taskPage",
params: {
wtly: this.wtly,
name: this.title,
wtlx: this.wtlx
}
})
}
},
onLoad(e) {
let that = this;
if (this.$Route.query.name) {
this.title = this.$Route.query.name
}
if (this.$Route.query.type) {
let type = this.$Route.query.type;
if (type == 1) {
this.queryApi = that.API.allinfoApi.allinfoApi;
} else {
this.queryApi = that.API.wtslApi.allQuery;
}
}
uni.getStorage({
key: 'userinfo',
success: function(res) {
that.userid = res.data.userid;
}
});
if (e.wtlx) {
this.wtlx = e.wtlx
}
if (this.$Route.query.wtly) {
this.wtly = this.$Route.query.wtly || ""
}
if (this.$Route.query.wtlx) {
this.wtlx = this.$Route.query.wtlx || ""
}
if (this.$Route.query.wtinfo) {
this.wtinfo = this.$Route.query.wtinfo || ""
}
if (this.wtly == "all") {
this.wtly = ""
}
this.postWtzl();
// this.postWccg();
this.postZt();
// this.postPgjgZt();
},
onShow() {
this.getList(false, true);
},
beforeDestroy() {
},
/**
* 下拉刷新回调函数
*/
onPullDownRefresh() {
this.serchlist()
uni.stopPullDownRefresh()
},
/**
* 上拉加载回调函数
*/
onReachBottom() {
if (this.pageNo < this.taskNumber / this.pageSize) {
this.pageNo++
this.getList(true)
} else {
this.options.status = "noMore"
}
},
};
</script>
<style lang="scss" scoped>
page {
// display: flex;
// flex-direction: column;
// box-sizing: border-box;
// background-color: #efeff4;
// min-height: 100%;
// height: auto;
}
.search-form {
border: 1px solid #5697f3;
background-color: white;
}
.search-input-btn {
height: 48rpx;
margin-right: 1px;
font-size: 12px;
}
.uni-list-box {
margin-top: 0;
}
.uni-content {
padding-right: 10px;
}
.uni-note {
display: flex;
margin: 0;
justify-content: space-between;
}
.tips {
color: #67c23a;
font-size: 14px;
line-height: 40px;
text-align: center;
background-color: #f0f9eb;
height: 0;
opacity: 0;
transform: translateY(-100%);
transition: all 0.3s;
}
.tips-ani {
transform: translateY(0);
height: 40px;
opacity: 1;
}
.content {
width: 100%;
display: flex;
}
.list-picture {
width: 100%;
height: 145px;
}
.thumb-image {
width: 100%;
height: 100%;
}
.ellipsis {
display: flex;
overflow: hidden;
}
.uni-ellipsis-1 {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.uni-ellipsis-2 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
/deep/ .cu-list.menu>.cu-item {
padding: 6px 15px;
}
.text-overflow {
// display:block; /*内联对象需加*/
width: calc(100% - 120px);
word-break: keep-all;
/* 不换行 */
white-space: nowrap;
/* 不换行 */
overflow: hidden;
/* 内容超出宽度时隐藏超出部分的内容 */
text-overflow: ellipsis;
/* 当对象内文本溢出时显示省略标记(...) ;
需与overflow:hidden;一起使用。*/
}
/deep/ .uni-title {
display: block;
}
.flex .action {
width: 140rpx;
display: flex;
justify-content: center;
align-items: center;
}
.flex .wcontent {
flex: 1 1 auto;
width: 0;
}
.flex .nav-last {
border-bottom: #F7F7F7 1px solid;
background-color: #FFFFFF;
color: rgb(102, 102, 102);
font-size: 12px;
}
.fixed-top {
position: fixed;
width: 100%;
top: 0;
z-index: 1024;
box-shadow: 0 0.5px 3px rgba(0, 0, 0, 0.1);
}
/deep/ .cu-list.menu>.cu-item {
padding: 6px 10px;
}
/deep/ .cu-avatar.lg {
width: 42px;
height: 42px;
}
.goTop {
width: 64rpx;
height: 64rpx;
border-radius: 50%;
background-color: #666666b5;
text-align: center;
line-height: 32px;
position: fixed;
font-size: 18px;
bottom: 180rpx;
right: 60rpx;
text {
color: #FFFFFF;
}
}
.fixed-top {
position: fixed;
width: 100%;
top: 0;
z-index: 1024;
box-shadow: 0 0.5px 3px rgba(0, 0, 0, 0.1);
}
/deep/ .cu-list>.cu-item.move-cur1 .move {
width: 180px;
}
/deep/ .cu-list>.cu-item.move-cur1 {
-webkit-transform: translateX(-180px);
transform: translateX(-180px);
}
.wid100{
width: 100%!important;
}
</style>
\ No newline at end of file
...@@ -3438,7 +3438,7 @@ scroll-view.cu-steps .cu-item { ...@@ -3438,7 +3438,7 @@ scroll-view.cu-steps .cu-item {
} }
.bg-blue { .bg-blue {
background-color: #0081ff; background-color: #5697f3;
color: #ffffff; color: #ffffff;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment