centaline-data-driven 1.2.34 → 1.2.35

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.34",
3
+ "version": "1.2.35",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -1,10 +1,8 @@
1
1
  <template>
2
2
  <div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
3
- <ct-form :api="'/api/third-dept-tran/profit-return/applyUI'" :apiParam="apiParam"></ct-form>
4
- <!-- <ct-form :api="'/PropertyPublish/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
3
+ <!-- <ct-form :api="'/api/third-dept-tran/profit-return/applyUI'" :apiParam="apiParam"></ct-form> -->
4
+ <ct-form :api="'/PropertyRET/getLayoutOfNewStepOne'" :apiParam="apiParam"></ct-form>
5
5
  <!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
6
- <!--:api="'FormSample/formdata'"-->
7
- <!--<ct-form :source="formdata.content"></ct-form>-->
8
6
  <!--<ct-form :api="'/api/form/formdata/contractDetail'" :apiParam="apiParam"></ct-form>-->
9
7
  <!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
10
8
  <ct-dialog-list></ct-dialog-list>
@@ -16,10 +14,10 @@
16
14
  name: 'App',
17
15
  data() {
18
16
  return {
19
- apiParam: {profitReturnId: "1504359257134055426", actionType: 1, pageStyle: 2, pageTitle: "查看返利", pageOnly: true} ,
17
+ // apiParam: {profitReturnId: "1504359257134055426", actionType: 1, pageStyle: 2, pageTitle: "查看返利", pageOnly: true} ,
20
18
  // apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
21
19
  // apiParam: {originalTraId: "1475658732246241281", actionType: 2, chanceID: "1"} ,
22
- // apiParam: {SN: "13557_132", UserID: "wuhan3"},
20
+ apiParam: {actionType: "2", pageStyle: "2", pageTitle: "新增盘源", pageOnly: "true"},
23
21
  }
24
22
  },
25
23
  methods: {
@@ -308,6 +308,7 @@ html {
308
308
  }
309
309
 
310
310
  .errorMessage {
311
+ height: 26px;
311
312
  font-size: 12px;
312
313
  color: #ff5b5b !important;
313
314
  padding: 3px 5px;
@@ -298,6 +298,11 @@
298
298
  }
299
299
  }
300
300
  else {
301
+ if(field.flagAttachSearchCondition){
302
+ if (!self.validExcute()){
303
+ return;
304
+ }
305
+ }
301
306
  if (typeof field.onClick !== 'undefined') {
302
307
  verified = self.$common.excute.call(self.model.scripts, field.onClick);
303
308
  }
@@ -305,9 +310,14 @@
305
310
  if (!submitData) {
306
311
  submitData = {};
307
312
  var tempFormData = self.model.getFormObj();
308
- field.submitFormField.forEach((v) => {
309
- submitData[v] = tempFormData[v];
310
- });
313
+ if(field.flagAttachSearchCondition){
314
+ submitData.jsonData=tempFormData;
315
+ }
316
+ else{
317
+ field.submitFormField.forEach((v) => {
318
+ submitData[v] = tempFormData[v];
319
+ });
320
+ }
311
321
  }
312
322
 
313
323
  if (field.isOpenForm) {
@@ -11,9 +11,9 @@
11
11
  <div ref="cttags" class="el-select__tags" :style="{'max-width':tagsWidth + 'px'}" @click="clickHandle">
12
12
  <span>
13
13
  <span class="ct-tags-value-label">{{model.valueLabel}}</span>
14
- <span class="el-tag el-tag--info" :class="[model.attrs.size?'el-tag--'+model.attrs.size:'']" v-for="item in model.value">
14
+ <span class="el-tag el-tag--info" :class="[model.attrs.size?'el-tag--'+model.attrs.size:'']" v-for="(item, index) in model.value" :key="index">
15
15
  <span class="el-select__tags-text">{{getOptionText(item)}}</span>
16
- <i v-if="!model.lock" class="el-tag__close el-icon-close" @click="deleteOption(item,$event)"></i>
16
+ <i v-if="!model.lock && !getOptionLocked(item)" class="el-tag__close el-icon-close" @click="deleteOption(item,$event)"></i>
17
17
  </span>
18
18
  </span>
19
19
  </div>
@@ -240,6 +240,16 @@
240
240
  return "";
241
241
  }
242
242
  },
243
+ getOptionLocked: function (value) {
244
+ var self = this;
245
+ var option = this.globalOptions.find((v) => { return v[self.model.optionAttrs.value] === value });
246
+ if (option) {
247
+ return option[self.model.optionAttrs.locked];
248
+ }
249
+ else {
250
+ return "";
251
+ }
252
+ },
243
253
  deleteOption(value, event) {
244
254
  var self = this;
245
255
  this.model.value.splice(
@@ -303,7 +313,13 @@
303
313
  this.$set(this, 'showClear', false);
304
314
  },
305
315
  clearClickHandle: function (event) {
316
+ var self =this;
306
317
  this.model.value.splice(0);
318
+ if(this.model.lockedValue.length>0){
319
+ this.model.lockedValue.forEach((v) => {
320
+ self.model.value.push(v);
321
+ });
322
+ }
307
323
  this.resize();
308
324
  this.tagsChange();
309
325
  this.$emit('input', this.model.value);
@@ -14,8 +14,10 @@ const Tags = function (source, moreActionRouter) {
14
14
  label: 'name',
15
15
  displayLabel:'displayName',
16
16
  actionType: 'actionType',
17
- flagDeleted: 'flagDeleted'
17
+ flagDeleted: 'flagDeleted',
18
+ locked: 'locked'
18
19
  },
20
+ _lockedValue: null,
19
21
  _value: null,
20
22
  get value() {
21
23
  if (this._value !== null) {
@@ -102,6 +104,11 @@ const Tags = function (source, moreActionRouter) {
102
104
  //},
103
105
  reset() {
104
106
  this.value.splice(0);
107
+ if(this.model.lockedValue.length>0){
108
+ this.model.lockedValue.forEach((v) => {
109
+ this.model.value.push(v);
110
+ });
111
+ }
105
112
  this.defaultValue.forEach((v1) => {
106
113
  this.value.push(v1);
107
114
  });
@@ -183,6 +190,20 @@ const Tags = function (source, moreActionRouter) {
183
190
 
184
191
  return null;
185
192
  },
193
+ get lockedValue() {
194
+ if (this._lockedValue !== null) {
195
+ return this._lockedValue;
196
+ }
197
+ else {
198
+ this._lockedValue = [];
199
+ this.options.forEach((v) => {
200
+ if(v[this.optionAttrs.locked]){
201
+ this._lockedValue.push(v[this.optionAttrs.value]);
202
+ }
203
+ });
204
+ return this._lockedValue;
205
+ }
206
+ },
186
207
  };
187
208
  rtn = base.copy(Base(source), rtn);
188
209
  rtn = base.copy(rtn, valid.Init(rtn));
package/src/main.js CHANGED
@@ -12,8 +12,8 @@ Vue.use(ElementUI, { size: 'mini'});
12
12
  // 关闭生产模式下给出的提示
13
13
  Vue.config.productionTip = false;
14
14
  Vue.use(centaline, {
15
- // baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
- baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
15
+ baseUrl: "http://10.88.22.46:7070/v1/form/router",
16
+ // baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
17
17
  // baseUrl: "http://10.88.22.46:7070/",
18
18
  // flagRouterSelf: true,
19
19
  zindex: 999,