centaline-data-driven 1.5.48 → 1.5.49

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,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.5.48",
3
+ "version": "1.5.49",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/release-log.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v1.5.48
2
+ 2023-08-10
3
+
4
+ bug修复
5
+
6
+ Layout 操作按钮权限问题修复
7
+
1
8
  ## v1.5.47
2
9
  2023-08-09
3
10
 
@@ -998,9 +998,13 @@
998
998
  }
999
999
  else {
1000
1000
  if (f.validMessage) {
1001
- if (f.validMessage == '必填' && f.model.label) {
1001
+ if (f.validMessage == '必填' && (f.model.label || (f.model.attrs && f.model.attrs.placeholder))) {
1002
+ let m=f.model.label;
1003
+ if(!m && f.model.attrs && f.model.attrs.placeholder){
1004
+ m=f.model.attrs.placeholder;
1005
+ }
1002
1006
  self.$message({
1003
- message: '【' + f.model.label + '】' + f.validMessage,
1007
+ message: '【' + m + '】' + f.validMessage,
1004
1008
  type: 'error',
1005
1009
  showClose:true,
1006
1010
  });
@@ -734,7 +734,13 @@ export default {
734
734
  var h7 = this.$refs.tableStats ? (this.$refs.tableStats.$el.offsetHeight + 7) | 0 : 0;
735
735
  var h8 = this.$refs.popupButton ? this.$refs.popupButton.offsetHeight + 21 : 0;
736
736
  var h9 = 0
737
- if (this.$parent.$parent.$parent.$children[0].$el.classList.contains('el-aside')) {
737
+ if (this.$parent
738
+ && this.$parent.$parent
739
+ && this.$parent.$parent.$parent
740
+ && this.$parent.$parent.$parent.$children
741
+ && this.$parent.$parent.$parent.$children[0]
742
+ && this.$parent.$parent.$parent.$children[0].$el
743
+ && this.$parent.$parent.$parent.$children[0].$el.classList.contains('el-aside')) {
738
744
  h9 = 4
739
745
  }
740
746
  let tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7 - h8 + h9 - 8 ;
@@ -200,7 +200,7 @@
200
200
  popupSearchListHandle: function (e) {
201
201
  var self = this;
202
202
  self.showDrop=false;
203
- self.$emit('popupSearchList', false, self.model, self.model.moreActionRouter, (optionArr) => {
203
+ self.$emit('popupSearchList', self.model.type===3?false:true, self.model, self.model.moreActionRouter, (optionArr) => {
204
204
  optionArr.forEach(row => {
205
205
  if(self.model.type===3){
206
206
  self.model.value=self.model.value+(self.model.value?'\r\n':'')+row[self.model.optionAttrs.label];
@@ -137,7 +137,8 @@ const LibFunction = {
137
137
  item.is = 'ct-so';
138
138
  break;
139
139
  case Enum.ControlType.TextBox: //单行文本框
140
- item = T(field, "text");
140
+ moreActionRouter = LibFunction.getRouter(source.actionRouters, field.moreActionRouterKey);
141
+ item = T(field, "text",false,false,moreActionRouter);
141
142
  item.is = 'ct-text';
142
143
  break;
143
144
  case Enum.ControlType.PasswordTextBox: //密码
package/src/main.js CHANGED
@@ -14,14 +14,14 @@ Vue.use(ElementUI, { size: 'mini'});
14
14
  // 关闭生产模式下给出的提示
15
15
  Vue.config.productionTip = false;
16
16
  Vue.use(centaline, {
17
- // baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
17
+ baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
18
18
  // baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
19
19
  // baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
20
20
  // baseUrl: "http://10.25.10.63:9999/service-api/v1/form/router",
21
21
  // baseUrl: "http://10.25.10.67:8080/",
22
22
  // baseUrl: "http://10.88.22.42:9999/service-api/v1/form/router",
23
23
  // baseUrl: "http://10.88.22.69:8080/api/",
24
- baseUrl: "http://10.88.22.16:8080/",
24
+ // baseUrl: "http://10.88.22.16:8080/",
25
25
  // baseUrl: "http://10.58.2.108:8080/",
26
26
  // baseUrl: "http://tjcptest.centaline.com.cn/",
27
27
  // baseUrl: "http://tjcpuat.centaline.com.cn:9090/",
@@ -58,7 +58,7 @@ Vue.use(centaline, {
58
58
  return {
59
59
  oldToken: '681f7eeb-e659-4c3b-a8c4-88d60c36a518',
60
60
  token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjsOwjAQRO_iOiv5s1570zn-NBwiIuBIoUIkkUCIuxMEdPRMMRq95s1dzOsgWmHIccikIFr0gKQsMJYCURKxKdKYlHr-BH7UNz26yCFkByg7Aiw2A-tYwLDtEubgUibRiHo9i1aRRy-dtdSIab-8gdNKvcA618uu3v5x7rRMm3YkOZAfR6BtAWp_3LQHBNI8KHbkqlHi8QQAAP__.RrBgBqaFlp478oO3g5k_EEtjPt_o8qpJBkzgSP78Wa4',
61
- authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjrEOgjAURf-lMy9p6aPvlY2-wuJHkAIlwckIJBrjv6tRN3fPcIeznHtT6z6oWkVuNEpnQdqyAoxUQdMRQxBmHUqyGLj3H-DHfOmNQU_GtdB4EkCHFtgIg6AT7GJrJURVqHw5qdo4b5CRNBZqSdtbWM_2JfY1nw_5-o9zx215Zj2lZFEbGGbUgKUfIc2ZIdPoHI5I05TV_QEAAP__.JcB2iXcfHNcB2eJQ_kEIhID-UXCMx-HDoIuv9ZIA33I"}',
61
+ authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOwjAMRe-SuZbixI2dbo3bLhwCNSiVyoRoK4EQdwcEbOy84Q9vef9mli2bxnTSWtLBg_auBuq4hnZggaQiNjn2lGQfP8CP-bJHpMgYemgjK1AgD4IqoBSUhq73mjpTmXI5mQZDdMgBLVZmHte3sBL5JbalnHfl-o9zx3V-ZicX-cBZYJqIgNAVkBgQfBYXQ03Zjc7cHwAAAP__.-lkfBY8Qlu2nt6fc_7LyMJb2c8Ki5dxMCR6fga2a1Ec"}',
62
62
 
63
63
  originalRequestURL: 'http://10.88.22.67:8080',
64
64
  EstateInfo: '{"estateId":"201806071109550C867184E8BCA56EC3","estateName":"C%E5%BE%A1%E6%9E%97%E5%B1%B1%E6%99%AF%E6%A5%BC"}',
@@ -4903,7 +4903,8 @@ var LibFunction = {
4903
4903
  break;
4904
4904
  case __WEBPACK_IMPORTED_MODULE_1__Enum__["default"].ControlType.TextBox:
4905
4905
  //单行文本框
4906
- item = Object(__WEBPACK_IMPORTED_MODULE_9__T__["default"])(field, "text");
4906
+ moreActionRouter = LibFunction.getRouter(source.actionRouters, field.moreActionRouterKey);
4907
+ item = Object(__WEBPACK_IMPORTED_MODULE_9__T__["default"])(field, "text", false, false, moreActionRouter);
4907
4908
  item.is = 'ct-text';
4908
4909
  break;
4909
4910
  case __WEBPACK_IMPORTED_MODULE_1__Enum__["default"].ControlType.PasswordTextBox:
@@ -5336,7 +5337,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABX
5336
5337
  "use strict";
5337
5338
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicForm_vue__ = __webpack_require__(188);
5338
5339
  /* unused harmony namespace reexport */
5339
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_986333ee_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicForm_vue__ = __webpack_require__(489);
5340
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_36ba1c23_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicForm_vue__ = __webpack_require__(489);
5340
5341
  function injectStyle (ssrContext) {
5341
5342
  __webpack_require__(483)
5342
5343
  }
@@ -5356,7 +5357,7 @@ var __vue_scopeId__ = null
5356
5357
  var __vue_module_identifier__ = null
5357
5358
  var Component = normalizeComponent(
5358
5359
  __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicForm_vue__["a" /* default */],
5359
- __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_986333ee_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicForm_vue__["a" /* default */],
5360
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_36ba1c23_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicForm_vue__["a" /* default */],
5360
5361
  __vue_template_functional__,
5361
5362
  __vue_styles__,
5362
5363
  __vue_scopeId__,
@@ -16867,7 +16868,7 @@ if (typeof window !== 'undefined' && window.Vue) {
16867
16868
  "use strict";
16868
16869
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicSearchTable_vue__ = __webpack_require__(164);
16869
16870
  /* unused harmony namespace reexport */
16870
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d8a4cc6_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchTable_vue__ = __webpack_require__(455);
16871
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_fc3a37d6_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchTable_vue__ = __webpack_require__(455);
16871
16872
  function injectStyle (ssrContext) {
16872
16873
  __webpack_require__(417)
16873
16874
  }
@@ -16887,7 +16888,7 @@ var __vue_scopeId__ = null
16887
16888
  var __vue_module_identifier__ = null
16888
16889
  var Component = normalizeComponent(
16889
16890
  __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicSearchTable_vue__["a" /* default */],
16890
- __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3d8a4cc6_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchTable_vue__["a" /* default */],
16891
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_fc3a37d6_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchTable_vue__["a" /* default */],
16891
16892
  __vue_template_functional__,
16892
16893
  __vue_styles__,
16893
16894
  __vue_scopeId__,
@@ -17619,7 +17620,7 @@ var Component = normalizeComponent(
17619
17620
  var h7 = _this3.$refs.tableStats ? _this3.$refs.tableStats.$el.offsetHeight + 7 | 0 : 0;
17620
17621
  var h8 = _this3.$refs.popupButton ? _this3.$refs.popupButton.offsetHeight + 21 : 0;
17621
17622
  var h9 = 0;
17622
- if (_this3.$parent.$parent.$parent.$children[0].$el.classList.contains('el-aside')) {
17623
+ if (_this3.$parent && _this3.$parent.$parent && _this3.$parent.$parent.$parent && _this3.$parent.$parent.$parent.$children && _this3.$parent.$parent.$parent.$children[0] && _this3.$parent.$parent.$parent.$children[0].$el && _this3.$parent.$parent.$parent.$children[0].$el.classList.contains('el-aside')) {
17623
17624
  h9 = 4;
17624
17625
  }
17625
17626
  var tableHeight = h1 - h2 - h3 - h4 - h5 - h6 - h7 - h8 + h9 - 8;
@@ -24104,9 +24105,13 @@ module.exports = g;
24104
24105
  });
24105
24106
  } else {
24106
24107
  if (f.validMessage) {
24107
- if (f.validMessage == '必填' && f.model.label) {
24108
+ if (f.validMessage == '必填' && (f.model.label || f.model.attrs && f.model.attrs.placeholder)) {
24109
+ var m = f.model.label;
24110
+ if (!m && f.model.attrs && f.model.attrs.placeholder) {
24111
+ m = f.model.attrs.placeholder;
24112
+ }
24108
24113
  self.$message({
24109
- message: '【' + f.model.label + '】' + f.validMessage,
24114
+ message: '【' + m + '】' + f.validMessage,
24110
24115
  type: 'error',
24111
24116
  showClose: true
24112
24117
  });
@@ -32522,7 +32527,7 @@ if (typeof window !== 'undefined' && window.Vue) {
32522
32527
  popupSearchListHandle: function popupSearchListHandle(e) {
32523
32528
  var self = this;
32524
32529
  self.showDrop = false;
32525
- self.$emit('popupSearchList', false, self.model, self.model.moreActionRouter, function (optionArr) {
32530
+ self.$emit('popupSearchList', self.model.type === 3 ? false : true, self.model, self.model.moreActionRouter, function (optionArr) {
32526
32531
  optionArr.forEach(function (row) {
32527
32532
  if (self.model.type === 3) {
32528
32533
  self.model.value = self.model.value + (self.model.value ? '\r\n' : '') + row[self.model.optionAttrs.label];
@@ -49698,7 +49703,7 @@ var content = __webpack_require__(418);
49698
49703
  if(typeof content === 'string') content = [[module.i, content, '']];
49699
49704
  if(content.locals) module.exports = content.locals;
49700
49705
  // add the styles to the DOM
49701
- var update = __webpack_require__(2)("04d26cc6", content, true, {});
49706
+ var update = __webpack_require__(2)("5ee3eb6b", content, true, {});
49702
49707
 
49703
49708
  /***/ }),
49704
49709
  /* 418 */
@@ -50952,7 +50957,7 @@ var content = __webpack_require__(484);
50952
50957
  if(typeof content === 'string') content = [[module.i, content, '']];
50953
50958
  if(content.locals) module.exports = content.locals;
50954
50959
  // add the styles to the DOM
50955
- var update = __webpack_require__(2)("1c9a8e0a", content, true, {});
50960
+ var update = __webpack_require__(2)("f5d57f3a", content, true, {});
50956
50961
 
50957
50962
  /***/ }),
50958
50963
  /* 484 */
@@ -56025,7 +56030,7 @@ var esExports = { render: render, staticRenderFns: staticRenderFns }
56025
56030
  "use strict";
56026
56031
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicT_vue__ = __webpack_require__(214);
56027
56032
  /* unused harmony namespace reexport */
56028
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_f813a064_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicT_vue__ = __webpack_require__(566);
56033
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_15570dea_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicT_vue__ = __webpack_require__(566);
56029
56034
  function injectStyle (ssrContext) {
56030
56035
  __webpack_require__(560)
56031
56036
  }
@@ -56040,12 +56045,12 @@ var __vue_template_functional__ = false
56040
56045
  /* styles */
56041
56046
  var __vue_styles__ = injectStyle
56042
56047
  /* scopeId */
56043
- var __vue_scopeId__ = "data-v-f813a064"
56048
+ var __vue_scopeId__ = "data-v-15570dea"
56044
56049
  /* moduleIdentifier (server only) */
56045
56050
  var __vue_module_identifier__ = null
56046
56051
  var Component = normalizeComponent(
56047
56052
  __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicT_vue__["a" /* default */],
56048
- __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_f813a064_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicT_vue__["a" /* default */],
56053
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_15570dea_hasScoped_true_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicT_vue__["a" /* default */],
56049
56054
  __vue_template_functional__,
56050
56055
  __vue_styles__,
56051
56056
  __vue_scopeId__,
@@ -56066,7 +56071,7 @@ var content = __webpack_require__(561);
56066
56071
  if(typeof content === 'string') content = [[module.i, content, '']];
56067
56072
  if(content.locals) module.exports = content.locals;
56068
56073
  // add the styles to the DOM
56069
- var update = __webpack_require__(2)("3bdc25be", content, true, {});
56074
+ var update = __webpack_require__(2)("b0c4141a", content, true, {});
56070
56075
 
56071
56076
  /***/ }),
56072
56077
  /* 561 */
@@ -56077,7 +56082,7 @@ exports = module.exports = __webpack_require__(1)(false);
56077
56082
 
56078
56083
 
56079
56084
  // module
56080
- exports.push([module.i, ".errorMessageMarginLeft[data-v-f813a064]{margin-left:108px}.hoverColor[data-v-f813a064]:hover{border-color:var(--centalineBlue)}.is-show-Span[data-v-f813a064]{display:none}.hoverColor:hover .is-show-Span[data-v-f813a064]{display:inline-block}.backdrop[data-v-f813a064]{position:absolute;z-index:1;border:1px solid #dcdfe6;background-color:#fff;pointer-events:none;overflow-y:auto;border-radius:4px;-webkit-transition:-webkit-transform 1s;transition:-webkit-transform 1s;transition:transform 1s;transition:transform 1s,-webkit-transform 1s}.highlights[data-v-f813a064]{white-space:pre-wrap;word-wrap:break-word;color:transparent;padding:5px 15px;line-height:1.5;font-family:monospace}.autoFill[data-v-f813a064]{width:100%}", ""]);
56085
+ exports.push([module.i, ".errorMessageMarginLeft[data-v-15570dea]{margin-left:108px}.hoverColor[data-v-15570dea]:hover{border-color:var(--centalineBlue)}.is-show-Span[data-v-15570dea]{display:none}.hoverColor:hover .is-show-Span[data-v-15570dea]{display:inline-block}.backdrop[data-v-15570dea]{position:absolute;z-index:1;border:1px solid #dcdfe6;background-color:#fff;pointer-events:none;overflow-y:auto;border-radius:4px;-webkit-transition:-webkit-transform 1s;transition:-webkit-transform 1s;transition:transform 1s;transition:transform 1s,-webkit-transform 1s}.highlights[data-v-15570dea]{white-space:pre-wrap;word-wrap:break-word;color:transparent;padding:5px 15px;line-height:1.5;font-family:monospace}.autoFill[data-v-15570dea]{width:100%}", ""]);
56081
56086
 
56082
56087
  // exports
56083
56088