doctor-admin-components 1.0.13-pro.0 → 1.0.13-pro.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "doctor-admin-components",
3
3
  "version1": "1.0.11",
4
- "version": "1.0.13-pro.0",
4
+ "version": "1.0.13-pro.1",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -996,13 +996,13 @@ export default {
996
996
  submitShipment() {
997
997
  this.$refs['form'].validate((valid) => {
998
998
  if (valid) {
999
+ let loadingInstance = Loading.service({
1000
+ text: '请稍候',
1001
+ spinner: 'el-icon-loading',
1002
+ background: 'rgba(0, 0, 0, 0.7)',
1003
+ customClass: 'custom-loading-class'
1004
+ })
999
1005
  if (this.form.shipmentId == null) {
1000
- let loadingInstance = Loading.service({
1001
- text: '请稍候',
1002
- spinner: 'el-icon-loading',
1003
- background: 'rgba(0, 0, 0, 0.7)',
1004
- customClass: 'custom-loading-class'
1005
- })
1006
1006
  addWithContainer(this.form).then((response) => {
1007
1007
  if (response.code == 200) {
1008
1008
  this.open = false
@@ -1026,6 +1026,8 @@ export default {
1026
1026
  })
1027
1027
  } else {
1028
1028
  updateWithContainer(this.form).then((res) => {
1029
+ loadingInstance.close()
1030
+ this.open = false
1029
1031
  this.$modal.msgSuccess('修改成功')
1030
1032
  this.$emit('refresh')
1031
1033
  })
@@ -1128,6 +1130,8 @@ export default {
1128
1130
  loadingInstance.close()
1129
1131
  })
1130
1132
  } else {
1133
+ loadingInstance.close()
1134
+ this.open = false
1131
1135
  this.$emit('openGenerateLive', { ...this.form, quoteType: this.contract.quoteType })
1132
1136
  }
1133
1137
  }