瀏覽代碼

修改门店与离职

shish 10 月之前
父節點
當前提交
63474ba725
共有 2 個文件被更改,包括 7 次插入10 次删除
  1. 3 9
      ghsApp/src/admin/shop/add.vue
  2. 4 1
      hdApp/src/admin/staff/dimission.vue

+ 3 - 9
ghsApp/src/admin/shop/add.vue

@@ -443,21 +443,15 @@ export default {
 				this.form.id = this.option.id
 			}
 			this.form = {...this.form,...this.region}
-			uni.showLoading({mask:true})
-			hostFn(this.form)
-				.then(() => {
+			uni.showLoading()
+			hostFn(this.form).then(() => {
+					uni.hideLoading()
 					let promptText = this.option.id ? '修改成功' : '添加成功'
 					this.$msg(promptText)
 					setTimeout(() => {
 						this.$util.pageTo(1)
 					}, 1000)
 				})
-				.catch(() => {
-					this.$msg('提交失败,请稍后重试')
-				})
-				.finally(() => {
-					uni.hideLoading()
-				})
 		},
 		// 表单验证
 		formSubmit(e) {

+ 4 - 1
hdApp/src/admin/staff/dimission.vue

@@ -7,7 +7,7 @@
         </div>
         <div class="confirm-btn">
           <button class="admin-button-com big blue" @click="confirmDim()">确认离职</button>
-          <button class="admin-button-com big default" style="margin-top:30upx;" @click="changeCg(1)">返回</button>
+          <button class="admin-button-com big default" style="margin-top:30upx;" @click="goBack()">返回</button>
         </div>
       </form>
     </div>
@@ -26,6 +26,9 @@ export default {
     ...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo",myShopInfo:"getMyShopInfo" })
   },
   methods: {
+    goBack(){
+      uni.navigateBack()
+    },
     init(){
     },
     confirmDim(){