修改注册提交工地不存在问题

master
xcw 2023-02-20 14:06:32 +08:00
parent 23860f7f20
commit db5d46a4f1
15 changed files with 30 additions and 21 deletions

View File

@ -388,7 +388,7 @@
this.getSignList();
//
this.getTeamList();
},500)
},800)
},
onShow() {
@ -660,8 +660,9 @@
submitRegister(){
if(this.checkEmpty() && this.flag){
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('提交成功');

View File

@ -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

View File

@ -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));

View File

@ -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('提交成功');

View File

@ -186,7 +186,7 @@ var _default = {
userType: 'director',
//账户类型 工人worker 负责人director
baseHttps: "".concat(getApp().globalData.hostapi),
centerDetail: [],
centerDetail: {},
//工人信息
reasonMsg: '',
//退回理由

View File

@ -114,6 +114,13 @@
"query": "id=2595&userType=director",
"launchMode": "default",
"scene": null
},
{
"name": "",
"pathName": "pages/pagehome/pagehome",
"query": "",
"launchMode": "default",
"scene": null
}
]
}