提交代码
parent
556c4ce1b3
commit
8bf9907bc1
|
@ -2,10 +2,9 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
appId: "wx46466c7828eede2b",
|
appId: "wx46466c7828eede2b",
|
||||||
baseUrl: 'https://xiangguan.sxyanzhu.com',
|
baseUrl: 'https://xiangguan.sxyanzhu.com/wechat',
|
||||||
//baseUrl: 'http://127.0.0.1:8080',
|
//baseUrl: 'http://127.0.0.1:8080',
|
||||||
baseImgUrl: 'https://xiangguan.sxyanzhu.com',
|
baseImgUrl: 'https://xiangguan.sxyanzhu.com/wechat',
|
||||||
//baseImgUrl: 'https:xiangguan.sxyanzhu.com/file',
|
|
||||||
//baseImgUrl: 'http://127.0.0.1:9300',
|
//baseImgUrl: 'http://127.0.0.1:9300',
|
||||||
noSecuritys:['/code','/auth/wxLogin','/auth/getMaOpenId','/auth/getMaPhoneNumber','/auth/maLogin']
|
noSecuritys:['/code','/auth/wxLogin','/auth/getMaOpenId','/auth/getMaPhoneNumber','/auth/maLogin']
|
||||||
};
|
};
|
|
@ -472,11 +472,13 @@ Page({
|
||||||
|
|
||||||
// 页签选中事件
|
// 页签选中事件
|
||||||
selectedTab(e) {
|
selectedTab(e) {
|
||||||
this.setData({
|
if(e.target.dataset.set!==undefined){
|
||||||
nactive: e.target.dataset.set,
|
this.setData({
|
||||||
labourImg: this.data.labourTypeList[e.target.dataset.set].img,
|
nactive: e.target.dataset.set,
|
||||||
})
|
labourImg: this.data.labourTypeList[e.target.dataset.set].img,
|
||||||
this.initSubDeptUsersCharts();
|
})
|
||||||
|
this.initSubDeptUsersCharts();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//项目切换 返回值
|
//项目切换 返回值
|
||||||
|
|
|
@ -31,8 +31,8 @@ Page({
|
||||||
projectId: "",
|
projectId: "",
|
||||||
projectName: "",
|
projectName: "",
|
||||||
infoType: "",
|
infoType: "",
|
||||||
problemType: "1",
|
problemType: '1',
|
||||||
dangerType: "1",
|
dangerType: null,
|
||||||
workParts: "",
|
workParts: "",
|
||||||
changeInfo: "",
|
changeInfo: "",
|
||||||
nickedTime: "",
|
nickedTime: "",
|
||||||
|
@ -82,7 +82,7 @@ Page({
|
||||||
"form.recheckSend": proUserInfo.userId,
|
"form.recheckSend": proUserInfo.userId,
|
||||||
"form.recheckSendUser": proUserInfo.nickName
|
"form.recheckSendUser": proUserInfo.nickName
|
||||||
});
|
});
|
||||||
this.getDictCache();
|
this.getDictCache(options.type);
|
||||||
this.getHisInfo(options.type);
|
this.getHisInfo(options.type);
|
||||||
this.getProjectUsers();
|
this.getProjectUsers();
|
||||||
},
|
},
|
||||||
|
@ -90,7 +90,7 @@ Page({
|
||||||
/**
|
/**
|
||||||
* 获取字典缓存数据
|
* 获取字典缓存数据
|
||||||
*/
|
*/
|
||||||
getDictCache() {
|
getDictCache(type) {
|
||||||
// 初始化检查类型
|
// 初始化检查类型
|
||||||
findDictCache("ssp_proble_type").then(res => {
|
findDictCache("ssp_proble_type").then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
@ -112,10 +112,12 @@ Page({
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
let list = [];
|
let list = [];
|
||||||
res.data.forEach(item => {
|
res.data.forEach(item => {
|
||||||
list.push({
|
if(item.remark==type){
|
||||||
"id": item.dictValue,
|
list.push({
|
||||||
"text": item.dictLabel
|
"id": item.dictValue,
|
||||||
});
|
"text": item.dictLabel
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
this.setData({
|
this.setData({
|
||||||
problemSubTypeList: list
|
problemSubTypeList: list
|
||||||
|
|
|
@ -26,43 +26,10 @@ Component({
|
||||||
},
|
},
|
||||||
/**数据监听 */
|
/**数据监听 */
|
||||||
observers: {
|
observers: {
|
||||||
columns: function (vals) {
|
|
||||||
if(vals.length>0){
|
|
||||||
this.setData({
|
|
||||||
item: []
|
|
||||||
})
|
|
||||||
let _vals = this.data.value;
|
|
||||||
if(_vals!='' && typeof _vals === 'number'){
|
|
||||||
for (let i = 0; i < vals.length; i++) {
|
|
||||||
if (_vals == columns[i].id) {
|
|
||||||
this.setData({
|
|
||||||
value: columns[i].text
|
|
||||||
})
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
this.setData({
|
|
||||||
item: [],
|
|
||||||
value: ''
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
selectValue: function (val) {
|
selectValue: function (val) {
|
||||||
let columns = this.data.columns;
|
setTimeout(() => {
|
||||||
if (val && columns) {
|
this.timeOutValue(val)
|
||||||
for (let i = 0; i < columns.length; i++) {
|
}, 500);
|
||||||
if (val == columns[i].id) {
|
|
||||||
val = columns[i].text;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.setData({
|
|
||||||
value: val
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
selectIndex: function (val) {
|
selectIndex: function (val) {
|
||||||
this.setData({
|
this.setData({
|
||||||
|
@ -99,6 +66,21 @@ Component({
|
||||||
* 组件的方法列表
|
* 组件的方法列表
|
||||||
*/
|
*/
|
||||||
methods: {
|
methods: {
|
||||||
|
timeOutValue(val){
|
||||||
|
let columns = this.data.columns;
|
||||||
|
if (val && columns) {
|
||||||
|
console.log("ssssssss",columns,val)
|
||||||
|
for (let i = 0; i < columns.length; i++) {
|
||||||
|
if (val == columns[i].id) {
|
||||||
|
val = columns[i].text;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.setData({
|
||||||
|
value: val
|
||||||
|
})
|
||||||
|
},
|
||||||
showPopup() {
|
showPopup() {
|
||||||
this.setData({
|
this.setData({
|
||||||
show: true
|
show: true
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<image wx:if="{{false}}" src="https://xiangguan.sxyanzhu.com/profile/static/sys_logo.png"></image>
|
<image wx:if="{{false}}" src="https://xiangguan.sxyanzhu.com/profile/static/sys_logo.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="login_title">
|
<view class="login_title">
|
||||||
<text>数字工程项目管理系统</text>
|
<image src="https://xiangguan.sxyanzhu.com/profile/static/yanzhu_logo.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<view wx:if="{{false}}" class="loadings">
|
<view wx:if="{{false}}" class="loadings">
|
||||||
<!-- <image src="/images/loading_i.gif"></image> -->
|
<!-- <image src="/images/loading_i.gif"></image> -->
|
||||||
|
|
|
@ -15,14 +15,18 @@ page {
|
||||||
}
|
}
|
||||||
|
|
||||||
.login_title {
|
.login_title {
|
||||||
height: 100rpx;
|
height: 158rpx;
|
||||||
line-height: 100rpx;
|
line-height: 158rpx;
|
||||||
color: #DDDDDD;
|
color: #DDDDDD;
|
||||||
font-size: 40rpx;
|
font-size: 40rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
word-spacing: 30rpx;
|
word-spacing: 30rpx;
|
||||||
background: url("https://xiangguan.sxyanzhu.com/profile/static/yanzhu_title.png") no-repeat left/100% 100%;
|
background: url("https://xiangguan.sxyanzhu.com/profile/static/yanzhu_title.png") no-repeat left/100% 100%;
|
||||||
|
margin-bottom: 50px;
|
||||||
|
}
|
||||||
|
.login_title image{
|
||||||
|
height: 148rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login_bg {
|
.login_bg {
|
||||||
|
|
Loading…
Reference in New Issue