centaline-data-driven 1.2.24 → 1.2.27

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.24",
3
+ "version": "1.2.27",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Form.vue CHANGED
@@ -8,7 +8,7 @@
8
8
  <!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
9
9
  <!-- <ct-form :api="'/forminfo/readDetail'" :apiParam="apiParam"></ct-form> -->
10
10
  <!-- <ct-form :api="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form> -->
11
- <ct-form :api="'PropertyRealLook/getLayoutOfNew'" :apiParam="para"></ct-form>
11
+ <ct-form :api="'PropertyDuty/getLayoutOfClearDuty'" :apiParam="para"></ct-form>
12
12
  <!-- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form> -->
13
13
  <ct-dialog-list></ct-dialog-list>
14
14
  </div>
@@ -25,7 +25,7 @@
25
25
  // apiParam: {actionType: 3,formId: "2c12649f-09c5-4aa9-8011-b6d1c7b56a41"} ,
26
26
  // apiParam: {chanceID: "1", actionType: 2} ,
27
27
  // apiParam: {worklistID: "1494206747714392064", actionType: 2}
28
- para: {chanceID: "1", actionType: 2}
28
+ para: {propertyID: "1", actionType: 2}
29
29
  // apiParam: {
30
30
  // actionType: 2,
31
31
  // agentId: "1450283160825425922",
@@ -2,8 +2,8 @@
2
2
  <div id="app-search" style="height:100%;position: fixed;">
3
3
  <!-- <ct-searchlist :searchConditionApi="'/api/third-dept-tran/tran-list/layout'" :searchDataApi="'/api/third-dept-tran/tran-list'"></ct-searchlist> -->
4
4
 
5
- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist>
6
- <!-- <ct-searchlist :searchConditionApi="'/WorklistList/getLayoutOfSearch'" :searchDataApi="'/WorklistList/getListOfSearchModel'" :searchCategoryApi="'/WorklistList/getLayoutOfSearchCategory'"></ct-searchlist> -->
5
+ <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
6
+ <ct-searchlist :searchConditionApi="'/exampleList/getLayoutOfSearch'" :searchDataApi="'/exampleList/getListOfSearchModel'"></ct-searchlist>
7
7
 
8
8
  <!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
9
9
  :searchDataApi="'/PropertyRETList/getListOfSearchModel'"
@@ -127,6 +127,10 @@ Axios.defaults.withCredentials = true;//允许带上跨域cookies
127
127
 
128
128
  const api = {
129
129
  get(url, params, callback) {
130
+ if(common.flagRouterSelf()){
131
+ url=url+params.action;
132
+ params=params.para;
133
+ }
130
134
  return Axios.get(url, params, {
131
135
  headers: {
132
136
  headers: common.getDataDrivenOpts().handler.getRequestHeaders()
@@ -138,6 +142,10 @@ const api = {
138
142
  );
139
143
  },
140
144
  post(url, params, callback) {
145
+ if(common.flagRouterSelf()){
146
+ url=url+params.action;
147
+ params=params.para;
148
+ }
141
149
  return Axios.post(url, params, {
142
150
  headers: {
143
151
  headers: common.getDataDrivenOpts().handler.getRequestHeaders()
@@ -230,6 +238,10 @@ const api = {
230
238
  return Promise.resolve(response.data);
231
239
  },
232
240
  postHandler(url, params, formData) {
241
+ if(common.flagRouterSelf()){
242
+ url=url+params.action;
243
+ params=params.para;
244
+ }
233
245
  return Axios.post(url, params, {
234
246
  headers: common.getDataDrivenOpts().handler.getRequestHeaders()
235
247
  }).then(this.postThenHandler).catch((ex) => {
@@ -487,6 +487,9 @@ const common = {
487
487
  globalUri() {
488
488
  return Vue.prototype.$dataDrivenOpts.baseUrl;
489
489
  },
490
+ flagRouterSelf() {
491
+ return Vue.prototype.$dataDrivenOpts.flagRouterSelf;
492
+ },
490
493
 
491
494
  /**
492
495
  * @method
@@ -48,7 +48,7 @@
48
48
  <el-input v-if="model.id3" v-bind="model.attrs"
49
49
  :placeholder="model.placeholder3" v-model="model.value3"
50
50
  @input="inputHandler($event)" @change="changeHandler($event)"
51
- :disabled="model.lock" :maxlength="model.max"></el-input>
51
+ :disabled="model.lock" :maxlength="maxlength4"></el-input>
52
52
  </div>
53
53
  </div>
54
54
  </div>
@@ -110,6 +110,15 @@
110
110
  set: function (v) {
111
111
 
112
112
  }
113
+ },
114
+ maxlength4()
115
+ {
116
+ if(this.model.max4)
117
+ {
118
+ return parseInt(this.model.max4)
119
+ }
120
+ return 99999
121
+
113
122
  }
114
123
  },
115
124
  mounted() {
@@ -10,6 +10,7 @@
10
10
  :picker-options="pickerOptions" :disabled="model.lock">
11
11
  </el-date-picker>
12
12
  </div>
13
+ <span v-if="model.sufLabel" class="spanMessage ct-flex-div-span">{{model.sufLabel}}</span>
13
14
  <transition name="el-fade-in">
14
15
  <span v-show="!valid" class="errorMessage">
15
16
  {{validMessage}}
@@ -50,6 +51,9 @@
50
51
  }
51
52
  },
52
53
  dateBlur(event) {
54
+ if(this.model.attrs && this.model.attrs.type && this.model.attrs.type=='month'){
55
+ return;
56
+ }
53
57
  var text = event.$el.querySelector("input").value;
54
58
  text = text.replace('-', '').replace('/', '').replace('\\', '');
55
59
  var nowDate = new Date();