修改注册提交工地不存在问题
parent
23860f7f20
commit
db5d46a4f1
pages/worker/sign
pagesB/enterDetail
unpackage/dist/dev
.sourcemap/mp-weixin
common
components
nothing
sign-calendar
status-nav
sub-nav
tabbar
pages/worker/sign
pagesA/information
pagesB/enterDetail
mp-weixin
|
@ -388,7 +388,7 @@
|
||||||
this.getSignList();
|
this.getSignList();
|
||||||
// 获取班组
|
// 获取班组
|
||||||
this.getTeamList();
|
this.getTeamList();
|
||||||
},500)
|
},800)
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|
||||||
|
@ -659,9 +659,10 @@
|
||||||
// 提交注册信息
|
// 提交注册信息
|
||||||
submitRegister(){
|
submitRegister(){
|
||||||
if(this.checkEmpty() && this.flag){
|
if(this.checkEmpty() && this.flag){
|
||||||
this.flag = false;
|
this.flag = false;
|
||||||
|
this.registerObj.worksite_id = uni.getStorageSync('worksite_id');
|
||||||
let params = this.registerObj;
|
let params = this.registerObj;
|
||||||
console.log(params)
|
console.log(this.registerObj.worksite_id)
|
||||||
this.$requst.post('/api/v1/worker/register',params).then(res=>{
|
this.$requst.post('/api/v1/worker/register',params).then(res=>{
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
this.$toolAll.tools.showToast('提交成功');
|
this.$toolAll.tools.showToast('提交成功');
|
||||||
|
|
|
@ -193,7 +193,7 @@
|
||||||
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||||
userType:'director', //账户类型 工人:worker 负责人:director
|
userType:'director', //账户类型 工人:worker 负责人:director
|
||||||
baseHttps:`${getApp().globalData.hostapi}`,
|
baseHttps:`${getApp().globalData.hostapi}`,
|
||||||
centerDetail:[], //工人信息
|
centerDetail:{}, //工人信息
|
||||||
reasonMsg:'', //退回理由
|
reasonMsg:'', //退回理由
|
||||||
ifReason:false, //是否退回
|
ifReason:false, //是否退回
|
||||||
id:0, //工人id
|
id:0, //工人id
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1524,7 +1524,7 @@ function initData(vueOptions, context) {
|
||||||
try {
|
try {
|
||||||
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||||
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8878,7 +8878,7 @@ function type(obj) {
|
||||||
|
|
||||||
function flushCallbacks$1(vm) {
|
function flushCallbacks$1(vm) {
|
||||||
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
|
||||||
if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||||
var mpInstance = vm.$scope;
|
var mpInstance = vm.$scope;
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||||
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
||||||
|
@ -8899,14 +8899,14 @@ function nextTick$1(vm, cb) {
|
||||||
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
||||||
//2.nextTick 之前存在 render watcher
|
//2.nextTick 之前存在 render watcher
|
||||||
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
|
||||||
if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||||
var mpInstance = vm.$scope;
|
var mpInstance = vm.$scope;
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||||
']:nextVueTick');
|
']:nextVueTick');
|
||||||
}
|
}
|
||||||
return nextTick(cb, vm)
|
return nextTick(cb, vm)
|
||||||
}else{
|
}else{
|
||||||
if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
|
if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
|
||||||
var mpInstance$1 = vm.$scope;
|
var mpInstance$1 = vm.$scope;
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
||||||
']:nextMPTick');
|
']:nextMPTick');
|
||||||
|
@ -9002,7 +9002,7 @@ var patch = function(oldVnode, vnode) {
|
||||||
});
|
});
|
||||||
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
||||||
if (Object.keys(diffData).length) {
|
if (Object.keys(diffData).length) {
|
||||||
if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"工地打卡","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
|
||||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
|
||||||
']差量更新',
|
']差量更新',
|
||||||
JSON.stringify(diffData));
|
JSON.stringify(diffData));
|
||||||
|
|
|
@ -367,7 +367,7 @@ var _default = {
|
||||||
_this.getSignList();
|
_this.getSignList();
|
||||||
// 获取班组
|
// 获取班组
|
||||||
_this.getTeamList();
|
_this.getTeamList();
|
||||||
}, 500);
|
}, 800);
|
||||||
},
|
},
|
||||||
onShow: function onShow() {},
|
onShow: function onShow() {},
|
||||||
onPullDownRefresh: function onPullDownRefresh() {
|
onPullDownRefresh: function onPullDownRefresh() {
|
||||||
|
@ -640,8 +640,9 @@ var _default = {
|
||||||
var _this12 = this;
|
var _this12 = this;
|
||||||
if (this.checkEmpty() && this.flag) {
|
if (this.checkEmpty() && this.flag) {
|
||||||
this.flag = false;
|
this.flag = false;
|
||||||
|
this.registerObj.worksite_id = uni.getStorageSync('worksite_id');
|
||||||
var params = this.registerObj;
|
var params = this.registerObj;
|
||||||
console.log(params);
|
console.log(this.registerObj.worksite_id);
|
||||||
this.$requst.post('/api/v1/worker/register', params).then(function (res) {
|
this.$requst.post('/api/v1/worker/register', params).then(function (res) {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
_this12.$toolAll.tools.showToast('提交成功');
|
_this12.$toolAll.tools.showToast('提交成功');
|
||||||
|
|
|
@ -186,7 +186,7 @@ var _default = {
|
||||||
userType: 'director',
|
userType: 'director',
|
||||||
//账户类型 工人:worker 负责人:director
|
//账户类型 工人:worker 负责人:director
|
||||||
baseHttps: "".concat(getApp().globalData.hostapi),
|
baseHttps: "".concat(getApp().globalData.hostapi),
|
||||||
centerDetail: [],
|
centerDetail: {},
|
||||||
//工人信息
|
//工人信息
|
||||||
reasonMsg: '',
|
reasonMsg: '',
|
||||||
//退回理由
|
//退回理由
|
||||||
|
|
|
@ -114,6 +114,13 @@
|
||||||
"query": "id=2595&userType=director",
|
"query": "id=2595&userType=director",
|
||||||
"launchMode": "default",
|
"launchMode": "default",
|
||||||
"scene": null
|
"scene": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"pathName": "pages/pagehome/pagehome",
|
||||||
|
"query": "",
|
||||||
|
"launchMode": "default",
|
||||||
|
"scene": null
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue