centaline-data-driven 1.2.66 → 1.2.67

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.2.66",
3
+ "version": "1.2.67",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -48,7 +48,7 @@
48
48
  </li>
49
49
  </ul>
50
50
  </button>
51
- <component v-else-if="model.actionRouters!==null && model.actionRouters.legth===3" class="max-report"
51
+ <component v-else-if="model.actionRouters!==null && model.actionRouters.length===3" class="max-report"
52
52
  :is="model.actionRouters[2].is" :vmodel="model.actionRouters[2]" :api="model.optionApi" @click="fieldClickHandler(model.actionRouters[2],$event)">
53
53
  </component>
54
54
  </div>
@@ -1,12 +1,11 @@
1
1
  <template>
2
2
  <div class="field-top">
3
3
  <template v-if="model !== null">
4
+ <div v-if="model.label" style="width:100%;padding-bottom: 5px;"><h5 :class="[model.labelClass]">{{model.label}}</h5></div>
4
5
  <div class="ct-rich-text" style="width:100%;display:flex" v-if="model.lock">
5
6
  <p v-html="model.value"></p>
6
7
  </div>
7
- <div class="ct-rich-text"
8
- style="width: 100%;"
9
- v-else>
8
+ <div class="ct-rich-text" style="width: 100%;" v-else>
10
9
  <vue-ueditor-wrap ref="editor" v-model="model.value" :config="config"></vue-ueditor-wrap>
11
10
  </div>
12
11
  </template>
@@ -237,19 +236,18 @@
237
236
  }
238
237
  },
239
238
  created() {
240
- debugger
241
239
  if (typeof this.vmodel === "undefined") {
242
240
  this.model = this.loaderObj.Base(this.source);
243
241
  } else {
244
242
  this.model = this.vmodel;
245
243
  }
246
-
244
+
247
245
  if (this.model.action == "" && !this.model.lock) {
248
246
  this.$message.warning("请配置富文本Action!");
249
247
  this.config.toolbars = [['help']];
250
248
  return;
251
249
  }
252
- this.config.maximumWords = this.model && this.model.maxValue1 ? parseFloat(this.model.maxValue1) : 5000;
250
+ this.config.maximumWords = this.model && this.model.max ? parseFloat(this.model.max) : 5000;
253
251
  this.config.serverUrl = this.model.action;
254
252
  this.config.imageUrl = this.model.action;
255
253
  },