修改注册提交工地不存在问题
parent
23860f7f20
commit
db5d46a4f1
|
@ -388,7 +388,7 @@
|
|||
this.getSignList();
|
||||
// 获取班组
|
||||
this.getTeamList();
|
||||
},500)
|
||||
},800)
|
||||
},
|
||||
onShow() {
|
||||
|
||||
|
@ -659,9 +659,10 @@
|
|||
// 提交注册信息
|
||||
submitRegister(){
|
||||
if(this.checkEmpty() && this.flag){
|
||||
this.flag = false;
|
||||
this.flag = false;
|
||||
this.registerObj.worksite_id = uni.getStorageSync('worksite_id');
|
||||
let params = this.registerObj;
|
||||
console.log(params)
|
||||
console.log(this.registerObj.worksite_id)
|
||||
this.$requst.post('/api/v1/worker/register',params).then(res=>{
|
||||
if(res.code == 0){
|
||||
this.$toolAll.tools.showToast('提交成功');
|
||||
|
|
|
@ -193,7 +193,7 @@
|
|||
statusHeight:uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
||||
userType:'director', //账户类型 工人:worker 负责人:director
|
||||
baseHttps:`${getApp().globalData.hostapi}`,
|
||||
centerDetail:[], //工人信息
|
||||
centerDetail:{}, //工人信息
|
||||
reasonMsg:'', //退回理由
|
||||
ifReason:false, //是否退回
|
||||
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 {
|
||||
data = data.call(context); // 支持 Vue.prototype 上挂的数据
|
||||
} 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);
|
||||
}
|
||||
}
|
||||
|
@ -8878,7 +8878,7 @@ function type(obj) {
|
|||
|
||||
function flushCallbacks$1(vm) {
|
||||
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;
|
||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||
']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
|
||||
|
@ -8899,14 +8899,14 @@ function nextTick$1(vm, cb) {
|
|||
//1.nextTick 之前 已 setData 且 setData 还未回调完成
|
||||
//2.nextTick 之前存在 render watcher
|
||||
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;
|
||||
console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
|
||||
']:nextVueTick');
|
||||
}
|
||||
return nextTick(cb, vm)
|
||||
}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;
|
||||
console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
|
||||
']:nextMPTick');
|
||||
|
@ -9002,7 +9002,7 @@ var patch = function(oldVnode, vnode) {
|
|||
});
|
||||
var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
|
||||
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 +
|
||||
']差量更新',
|
||||
JSON.stringify(diffData));
|
||||
|
|
|
@ -367,7 +367,7 @@ var _default = {
|
|||
_this.getSignList();
|
||||
// 获取班组
|
||||
_this.getTeamList();
|
||||
}, 500);
|
||||
}, 800);
|
||||
},
|
||||
onShow: function onShow() {},
|
||||
onPullDownRefresh: function onPullDownRefresh() {
|
||||
|
@ -640,8 +640,9 @@ var _default = {
|
|||
var _this12 = this;
|
||||
if (this.checkEmpty() && this.flag) {
|
||||
this.flag = false;
|
||||
this.registerObj.worksite_id = uni.getStorageSync('worksite_id');
|
||||
var params = this.registerObj;
|
||||
console.log(params);
|
||||
console.log(this.registerObj.worksite_id);
|
||||
this.$requst.post('/api/v1/worker/register', params).then(function (res) {
|
||||
if (res.code == 0) {
|
||||
_this12.$toolAll.tools.showToast('提交成功');
|
||||
|
|
|
@ -186,7 +186,7 @@ var _default = {
|
|||
userType: 'director',
|
||||
//账户类型 工人:worker 负责人:director
|
||||
baseHttps: "".concat(getApp().globalData.hostapi),
|
||||
centerDetail: [],
|
||||
centerDetail: {},
|
||||
//工人信息
|
||||
reasonMsg: '',
|
||||
//退回理由
|
||||
|
|
|
@ -114,6 +114,13 @@
|
|||
"query": "id=2595&userType=director",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"pathName": "pages/pagehome/pagehome",
|
||||
"query": "",
|
||||
"launchMode": "default",
|
||||
"scene": null
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue