页面调整
This commit is contained in:
@@ -36,7 +36,7 @@ const install = (Vue, vm) => {
|
||||
authInfo: (params = {}) => vm.$u.get(config.adminPath+'/authInfo', params),
|
||||
menuTree: (params = {}) => vm.$u.get(config.adminPath+'/menuTree', params),
|
||||
switchSys: (params = {}) => vm.$u.get(config.adminPath+'/switch/'+params.sysCode),
|
||||
dictData: (params = {}) => vm.$u.get(config.adminPath+'/system/dict/data/type/'+params.dictType),
|
||||
dictData: (params = {}) => vm.$u.get(config.adminPath+'/system/dict/data/type/'+params),
|
||||
|
||||
// 账号服务:验证码接口、忘记密码接口、注册账号接口等
|
||||
validCode: (params = {}) => vm.$u.getText('/validCode', params),
|
||||
|
@@ -40,7 +40,7 @@
|
||||
<view class="table-cell">{{ item.interviewedPerson }}</view>
|
||||
<view class="table-cell">{{ item.interviewedPhone }}</view>
|
||||
<view class="table-cell">{{ item.interviewedUnit || '无' }}</view>
|
||||
<view class="table-cell">{{ item.visitingReason }}</view>
|
||||
<view class="table-cell">{{ getReasonText(item.visitingReason) }}</view>
|
||||
<view class="table-cell">{{ item.visitingBeginTime }}</view>
|
||||
<!-- <view class="table-cell">{{ item.bookingParkingSpace === 1 ? '是' : '否' }}</view>
|
||||
<view class="table-cell" :class="{'status-confirm': item.serveStatus === 1, 'status-wait': item.serveStatus === 0}">
|
||||
@@ -83,6 +83,7 @@ export default {
|
||||
bookStatus: '',
|
||||
phoneSuffix: ''
|
||||
},
|
||||
reasonDict:[],
|
||||
statusOptions: ['已确认', '待确认']
|
||||
}
|
||||
},
|
||||
@@ -109,6 +110,7 @@ export default {
|
||||
plus.screen.lockOrientation('default');
|
||||
// #endif
|
||||
this.onload();
|
||||
this.loadReasonDict();
|
||||
},
|
||||
methods: {
|
||||
handleDetail(item) {
|
||||
@@ -119,6 +121,9 @@ export default {
|
||||
closeDetailModal() {
|
||||
this.showDetailModal = false;
|
||||
},
|
||||
getReasonText(code) {
|
||||
return this.reasonDict[code] || code;
|
||||
},
|
||||
handleAudit(item) {
|
||||
console.log("eee", item)
|
||||
this.loading = true;
|
||||
@@ -140,6 +145,19 @@ export default {
|
||||
uni.showToast({title: '获取数据失败', icon: 'none'});
|
||||
});
|
||||
},
|
||||
// 加载拜访事由字典
|
||||
loadReasonDict() {
|
||||
this.$u.api.dictData('reason_for_visit').then(res => {
|
||||
const dict = {};
|
||||
res.data.forEach(item => {
|
||||
dict[item.dictValue] = item.dictLabel;
|
||||
});
|
||||
this.reasonDict = dict;
|
||||
}).catch(err => {
|
||||
console.error('获取字典数据失败:', err);
|
||||
uni.showToast({title: '获取字典数据失败', icon: 'none'});
|
||||
});
|
||||
},
|
||||
onStatusChange(e) {
|
||||
const index = e.detail.value;
|
||||
this.searchParams.bookStatus = this.statusOptions[index];
|
||||
|
Reference in New Issue
Block a user