@panpanzhao/component-ui 0.0.20 → 0.0.21

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.
@@ -6932,8 +6932,8 @@ table_operate_src.install = function (Vue) {
6932
6932
  Vue.component(table_operate_src.name, table_operate_src);
6933
6933
  };
6934
6934
  /* harmony default export */ var table_operate = (table_operate_src);
6935
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/crud/src/index.vue?vue&type=template&id=9139e8a2&
6936
- var srcvue_type_template_id_9139e8a2_render = function render() {
6935
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/crud/src/index.vue?vue&type=template&id=2155e5c4&
6936
+ var srcvue_type_template_id_2155e5c4_render = function render() {
6937
6937
  var _vm = this,
6938
6938
  _c = _vm._self._c
6939
6939
  return _c("div", [
@@ -6999,11 +6999,11 @@ var srcvue_type_template_id_9139e8a2_render = function render() {
6999
6999
  ),
7000
7000
  ])
7001
7001
  }
7002
- var srcvue_type_template_id_9139e8a2_staticRenderFns = []
7003
- srcvue_type_template_id_9139e8a2_render._withStripped = true
7002
+ var srcvue_type_template_id_2155e5c4_staticRenderFns = []
7003
+ srcvue_type_template_id_2155e5c4_render._withStripped = true
7004
7004
 
7005
7005
 
7006
- // CONCATENATED MODULE: ./src/components/crud/src/index.vue?vue&type=template&id=9139e8a2&
7006
+ // CONCATENATED MODULE: ./src/components/crud/src/index.vue?vue&type=template&id=2155e5c4&
7007
7007
 
7008
7008
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/crud/src/index.vue?vue&type=script&lang=js&
7009
7009
 
@@ -7215,7 +7215,13 @@ srcvue_type_template_id_9139e8a2_render._withStripped = true
7215
7215
  if (typeof detailApi.after === "function") {
7216
7216
  res = detailApi.after.call(_this2, res);
7217
7217
  }
7218
- _this2.$refs.updateFormDialog.setFormModel(res);
7218
+ if (Promise.resolve(res) === res) {
7219
+ res.then(function (resData) {
7220
+ _this2.$refs.updateFormDialog.setFormModel(resData);
7221
+ });
7222
+ } else {
7223
+ _this2.$refs.updateFormDialog.setFormModel(res);
7224
+ }
7219
7225
  }).catch(function (error) {
7220
7226
  that.loading = false;
7221
7227
  });
@@ -7313,8 +7319,8 @@ srcvue_type_template_id_9139e8a2_render._withStripped = true
7313
7319
 
7314
7320
  var crud_src_component = normalizeComponent(
7315
7321
  components_crud_srcvue_type_script_lang_js_,
7316
- srcvue_type_template_id_9139e8a2_render,
7317
- srcvue_type_template_id_9139e8a2_staticRenderFns,
7322
+ srcvue_type_template_id_2155e5c4_render,
7323
+ srcvue_type_template_id_2155e5c4_staticRenderFns,
7318
7324
  false,
7319
7325
  null,
7320
7326
  null,
@@ -2059,7 +2059,7 @@ module.exports = require("element-ui/lib/message-box");
2059
2059
  // ESM COMPAT FLAG
2060
2060
  __webpack_require__.r(__webpack_exports__);
2061
2061
 
2062
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/crud/src/index.vue?vue&type=template&id=9139e8a2&
2062
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/crud/src/index.vue?vue&type=template&id=2155e5c4&
2063
2063
  var render = function render() {
2064
2064
  var _vm = this,
2065
2065
  _c = _vm._self._c
@@ -2130,7 +2130,7 @@ var staticRenderFns = []
2130
2130
  render._withStripped = true
2131
2131
 
2132
2132
 
2133
- // CONCATENATED MODULE: ./src/components/crud/src/index.vue?vue&type=template&id=9139e8a2&
2133
+ // CONCATENATED MODULE: ./src/components/crud/src/index.vue?vue&type=template&id=2155e5c4&
2134
2134
 
2135
2135
  // EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/components/table-search"
2136
2136
  var table_search_ = __webpack_require__(27);
@@ -2362,7 +2362,13 @@ var external_lodash_ = __webpack_require__(2);
2362
2362
  if (typeof detailApi.after === "function") {
2363
2363
  res = detailApi.after.call(_this2, res);
2364
2364
  }
2365
- _this2.$refs.updateFormDialog.setFormModel(res);
2365
+ if (Promise.resolve(res) === res) {
2366
+ res.then(function (resData) {
2367
+ _this2.$refs.updateFormDialog.setFormModel(resData);
2368
+ });
2369
+ } else {
2370
+ _this2.$refs.updateFormDialog.setFormModel(res);
2371
+ }
2366
2372
  }).catch(function (error) {
2367
2373
  that.loading = false;
2368
2374
  });