centaline-data-driven 1.1.18 → 1.1.23

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.
Files changed (56) hide show
  1. package/README.md +7 -7
  2. package/build/webpack.dev.conf.js +1 -1
  3. package/config/dev.env.js +2 -2
  4. package/package.json +1 -1
  5. package/src/Edit.vue +130 -23
  6. package/src/Form.vue +5 -3
  7. package/src/SearchList.vue +3 -2
  8. package/src/centaline/api/index.js +16 -8
  9. package/src/centaline/comfirm/src/comfirm.vue +1 -2
  10. package/src/centaline/common/index.js +9 -2
  11. package/src/centaline/css/common.css +1 -1
  12. package/src/centaline/dialogList/src/dialog.vue +2 -2
  13. package/src/centaline/dialogList/src/dialogList.vue +3 -1
  14. package/src/centaline/dialogList/src/dialogNew.vue +16 -16
  15. package/src/centaline/dynamicBtn/src/dynamicBtn.vue +16 -16
  16. package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +2 -4
  17. package/src/centaline/dynamicDtd/src/dynamicDtd.vue +4 -4
  18. package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +13 -13
  19. package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +4 -0
  20. package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +1 -1
  21. package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +6 -6
  22. package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +14 -14
  23. package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +4 -4
  24. package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +7 -3
  25. package/src/centaline/imgPreview/index.js +6 -6
  26. package/src/centaline/imgPreview/src/imgPreview.vue +3 -3
  27. package/src/centaline/index.js +14 -14
  28. package/src/centaline/loader/src/ctl/Button.js +3 -3
  29. package/src/centaline/loader/src/ctl/Checkbox.js +0 -1
  30. package/src/centaline/loader/src/ctl/ComboBoxWithTextBox.js +11 -11
  31. package/src/centaline/loader/src/ctl/D.js +2 -2
  32. package/src/centaline/loader/src/ctl/Dtd.js +18 -18
  33. package/src/centaline/loader/src/ctl/DtdOld.js +8 -8
  34. package/src/centaline/loader/src/ctl/File.js +1 -1
  35. package/src/centaline/loader/src/ctl/Form.js +11 -7
  36. package/src/centaline/loader/src/ctl/FormList.js +2 -0
  37. package/src/centaline/loader/src/ctl/SearchScreen.js +5 -5
  38. package/src/centaline/loader/src/ctl/lib/Enum.js +9 -1
  39. package/src/centaline/loader/src/ctl/lib/LibFunction.js +12 -1
  40. package/src/centaline/loader/src/ctl.js +5 -1
  41. package/src/centaline/mixins/dynamicElement.js +34 -34
  42. package/src/centaline/progress/src/progress.vue +37 -37
  43. package/src/centaline/templateControls/src/dynamicTableCurrency.vue +1 -0
  44. package/src/centaline/templates/src/ContractSearch.js +4 -4
  45. package/src/main.js +5 -4
  46. package/wwwroot/static/centaline/centaline-data-driven.js +2 -2
  47. package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
  48. package/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache.v2 +0 -0
  49. package/.vs/Centaline.Front_End.DataDriven/config/applicationhost.config +0 -1015
  50. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +0 -75
  51. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +0 -33
  52. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +0 -15
  53. package/obj/Debug/netcoreapp2.1/.NETCoreApp,Version=v2.1.AssemblyAttributes.cs +0 -4
  54. package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.AssemblyInfo.cs +0 -23
  55. package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.RazorAssemblyInfo.cs +0 -20
  56. package/obj/project.assets.json +0 -11914
@@ -97,7 +97,7 @@
97
97
  class: ['ct-dialog_header'],
98
98
  style: {
99
99
  'position': 'relative',
100
- 'padding': '10px 20px 10px 20px',
100
+ 'padding': '10px 20px 10px 20px',
101
101
  'height': '44px'
102
102
  },
103
103
  }, [
@@ -132,7 +132,7 @@
132
132
  item.on.loaded = (model) => {
133
133
  mySelf.vmodel.title = (model && model.title) ? model.title : mySelf.vmodel.title
134
134
  }
135
- }
135
+ }
136
136
 
137
137
  //加载失败关闭弹框
138
138
  if (typeof item.on.failLoad === "undefined") {
@@ -35,6 +35,7 @@
35
35
  },
36
36
  methods: {
37
37
  addDialog(vmodel) {
38
+
38
39
  vmodel.id = (new Date()).getTime();
39
40
  this.List.push(vmodel);
40
41
 
@@ -46,10 +47,11 @@
46
47
  }
47
48
  },
48
49
  deleteDialog(model) {
50
+
49
51
  model.dialogTableVisible = false;
50
52
  //改成删除
51
53
  let index = this.List.findIndex(v => {
52
- return v.id === model.vmodel.id;
54
+ return v.id === model.id || v.id === model.vmodel.id;
53
55
  });
54
56
  this.List.splice(index, 1);
55
57
 
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <div class="ct-dialog">
3
- <el-dialog :top="topHeigth"
3
+ <el-dialog :top="topHeigth"
4
4
  :title="vmodel.title" :close-on-click-modal="false"
5
5
  :visible.sync="dialogVisible"
6
6
  :width="vmodel.content[0].attrs.width"
7
- :before-close="handleClose">
7
+ :before-close="handleClose">
8
8
  <div :style="v.style" v-for="(v,index) in vmodel.content" :key="index">
9
9
  <component v-bind="v.attrs" :is="v.component" v-on="v.on"></component>
10
10
  </div>
@@ -26,10 +26,10 @@
26
26
  },
27
27
  mounted() {
28
28
  for (var index in this.vmodel.content) {
29
- const v = this.vmodel.content[index];
30
- if (v.component === 'ct-searchlist' && parseInt(v.attrs.height) < 300) {
31
- v.attrs.height = '450px';
32
- }
29
+ const v = this.vmodel.content[index];
30
+ if (v.component === 'ct-searchlist' && parseInt(v.attrs.height) < 300) {
31
+ v.attrs.height = '450px';
32
+ }
33
33
 
34
34
  this.$set(v, 'style', {
35
35
  width: '100%',
@@ -49,23 +49,23 @@
49
49
  computed: {
50
50
  topHeigth: function () {
51
51
  let height;
52
- let vh = 0;
52
+ let vh = 0;
53
53
  this.vmodel.content[0].attrs.height = '50px';
54
54
  if (this.vmodel.content[0].attrs.height) {
55
55
  height = parseInt(this.vmodel.content[0].attrs.height) + 20;
56
56
  }
57
57
  if (document.documentElement.clientHeight > height) {
58
- height = document.documentElement.clientHeight - height;
58
+ height = document.documentElement.clientHeight - height;
59
59
  height = parseInt(height/2);
60
- vh = height * 100 / document.documentElement.clientHeight;
60
+ vh = height * 100 / document.documentElement.clientHeight;
61
61
  vh = parseInt(vh);
62
- }
63
- if (vh < 3) {
64
- vh = 3;
65
- }
66
- if (vh > 13) {
67
- vh = 13;
68
- }
62
+ }
63
+ if (vh < 3) {
64
+ vh = 3;
65
+ }
66
+ if (vh > 13) {
67
+ vh = 13;
68
+ }
69
69
  return vh + 'vh';
70
70
  },
71
71
  },
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <el-button v-if="!model.isImport"
3
- :type="model.isHyperLink ? 'text' : 'primary'"
4
- v-bind="model.attrs" @click="$emit('click',model)"
2
+ <el-button v-if="!model.isImport"
3
+ :type="model.isHyperLink ? 'text' : 'primary'"
4
+ v-bind="model.attrs" @click="$emit('click',model)"
5
5
  :disabled="model.disabled">{{model.label}}</el-button>
6
6
  <el-upload v-else
7
7
  :action="model.action"
@@ -36,26 +36,26 @@
36
36
  this.model = this.vmodel;
37
37
  }
38
38
  },
39
- computed: {
40
- uploadData() {
41
- //因传输方式是FormData,故需要对Value是object的进行转化
42
- let data = {};
43
- for (var key in this.fileData) {
44
- if (typeof this.fileData[key] === "object") {
45
- data[key] = JSON.stringify(this.fileData[key]);
46
- }
47
- else {
48
- data[key] = this.fileData[key];
39
+ computed: {
40
+ uploadData() {
41
+ //因传输方式是FormData,故需要对Value是object的进行转化
42
+ let data = {};
43
+ for (var key in this.fileData) {
44
+ if (typeof this.fileData[key] === "object") {
45
+ data[key] = JSON.stringify(this.fileData[key]);
49
46
  }
50
- }
51
- return data;
47
+ else {
48
+ data[key] = this.fileData[key];
49
+ }
50
+ }
51
+ return data;
52
52
  },
53
53
  headers() {
54
54
  return this.$common.getDataDrivenOpts().handler.getRequestHeaders();
55
55
  }
56
56
  },
57
57
  methods: {
58
- handleAvatarSuccess(res) {
58
+ handleAvatarSuccess(res) {
59
59
  let self = this;
60
60
  this.$api.postThenHandler({ data: res}).then(function () {
61
61
  self.$emit('importComplete', res);
@@ -46,12 +46,10 @@
46
46
  self.$emit('loaded');
47
47
  }
48
48
  else if (typeof self.source !== 'undefined') {
49
- self.loaderObj.Seg(self.source, (data) => {
50
- self.load(data);
51
- });
49
+ this.model = self.loaderObj.Checkbox(self.source);
52
50
  }
53
51
  else if (typeof self.api !== 'undefined') {
54
- self.loaderObj.Seg(self.api, (data) => {
52
+ self.loaderObj.Checkbox(self.api, (data) => {
55
53
  self.load(data);
56
54
  });
57
55
  }
@@ -31,7 +31,7 @@
31
31
  {{validMessage}}
32
32
  </span>
33
33
  </transition>
34
- <ct-quick-input v-if="model.paramName && !model.lock" :pn="model.paramName" :action="api" @input=""></ct-quick-input>
34
+ <ct-quick-input v-if="model.paramName && !model.lock" :pn="model.paramName" :action="api" ></ct-quick-input>
35
35
  </div>
36
36
  </div>
37
37
  </template>
@@ -49,7 +49,9 @@
49
49
  pickerOptions: this.getPickerOptions()
50
50
  };
51
51
  },
52
+
52
53
  mounted() {
54
+
53
55
  var self = this;
54
56
  this.$nextTick(function () {
55
57
  if (self.vmodel) {
@@ -57,9 +59,7 @@
57
59
  self.$emit('loaded');
58
60
  }
59
61
  else if (typeof self.source !== 'undefined') {
60
- self.loaderObj.Dtd(self.source, (data) => {
61
- self.load(data);
62
- });
62
+ this.model = self.loaderObj.Dtd(self.source);
63
63
  }
64
64
  else if (typeof self.api !== 'undefined') {
65
65
  self.loaderObj.Dtd(self.api, (data) => {
@@ -59,13 +59,13 @@
59
59
  data: function () {
60
60
  return {
61
61
  }
62
- },
63
- methods: {
64
- getClass() {
65
- if (this.vmodel.is === "ct-inputNumber") {
66
- return 'ct-table-inputnumber';
67
- }
68
- }
62
+ },
63
+ methods: {
64
+ getClass() {
65
+ if (this.vmodel.is === "ct-inputNumber") {
66
+ return 'ct-table-inputnumber';
67
+ }
68
+ }
69
69
  },
70
70
  template: '<div :class="getClass()">{{vmodel.labelValue}}{{vmodel.unitName}}</div>'
71
71
  }
@@ -172,14 +172,14 @@
172
172
  },
173
173
  //删除
174
174
  deleteRow(index, sourceIndex) {
175
- var self = this;
175
+ var self = this;
176
176
  //判断是否已经保存所有操作
177
177
  for (let i of self.model.tableData) {
178
178
  if (i.isSet && self.model.currentRow.index !== index) {
179
179
  self.$message.warning("请先保存当前编辑项");
180
180
  return false;
181
181
  }
182
- }
182
+ }
183
183
 
184
184
  this.model.deleteRow(sourceIndex, () => {
185
185
  self.model.tableData.splice(index, 1);
@@ -300,9 +300,9 @@
300
300
  return Number(prev);
301
301
  }
302
302
  }, 0);
303
- //sums[index] += ' 元';
304
- if (data[0][column.property].decimals && data[0][column.property].decimals > 0) {
305
- sums[index] = sums[index].toFixed(data[0][column.property].decimals);
303
+ //sums[index] += ' 元';
304
+ if (data[0][column.property].decimals && data[0][column.property].decimals > 0) {
305
+ sums[index] = sums[index].toFixed(data[0][column.property].decimals);
306
306
  }
307
307
  } else {
308
308
  sums[index] = 'N/A';
@@ -342,7 +342,7 @@
342
342
  float: right;
343
343
  }
344
344
  .ct-table-inputnumber {
345
- text-align:right;
345
+ text-align:right;
346
346
  }
347
347
  .ct-form-list .el-table__footer-wrapper .el-table__footer .has-gutter div {
348
348
  text-align: right;
@@ -50,6 +50,10 @@
50
50
  var self = this;
51
51
  this.$nextTick(function () {
52
52
 
53
+ if (typeof self.vmodel === 'undefined') {
54
+ self.model = self.loaderObj.InputNumber(this.source);
55
+ }
56
+
53
57
  if (self.vmodel) {
54
58
  self.load(self.vmodel);
55
59
  self.$emit('loaded');
@@ -23,7 +23,7 @@
23
23
  'ct-popupSearchListTable' : dynamicPopupSearchListTable
24
24
  },
25
25
  props: {
26
- searchFormApi: String,
26
+ searchFormApi: String,
27
27
  apiParam: Object,
28
28
  searchDataApi: String,
29
29
  vmodel: Object,
@@ -155,12 +155,12 @@
155
155
  }
156
156
  },
157
157
  confirmClickHandler() {
158
- if (this.singleSelectio) {
158
+ if (this.singleSelectio) {
159
159
  if (this.currentRow) {
160
- this.$emit('submit', this.currentRow);
161
- }
162
- else {
163
- this.$message.error("请先选择数据");
160
+ this.$emit('submit', this.currentRow);
161
+ }
162
+ else {
163
+ this.$message.error("请先选择数据");
164
164
  }
165
165
  }
166
166
  else {
@@ -185,7 +185,7 @@
185
185
  searchComplate(searchModel) {
186
186
  var self = this;
187
187
  this.loading = true;
188
- this.$nextTick(function () {
188
+ this.$nextTick(function () {
189
189
  if (typeof self.api !== 'undefined' && typeof searchModel !== 'undefined') {
190
190
  var postData;
191
191
  postData = searchModel.searchData;
@@ -20,23 +20,23 @@
20
20
  props: {
21
21
  vmodel: Object,
22
22
  searchConditionApi: String,
23
- searchDataApi: String,
23
+ searchDataApi: String,
24
24
  pageHeight: String,
25
25
  apiParam: {
26
26
  type: Object,
27
27
  default: () => { }
28
28
  }
29
29
  },
30
- created() {
30
+ created() {
31
31
  this.model = this.vmodel;
32
- },
33
- computed: {
34
- searchListStyle: function() {
35
- if (this.pageHeight) {
36
- return { 'height': this.pageHeight };
37
- }
38
- return {};
39
- }
32
+ },
33
+ computed: {
34
+ searchListStyle: function() {
35
+ if (this.pageHeight) {
36
+ return { 'height': this.pageHeight };
37
+ }
38
+ return {};
39
+ }
40
40
  },
41
41
  data() {
42
42
  return {
@@ -70,10 +70,10 @@
70
70
  },
71
71
  refreshParentHandler() {
72
72
  this.$emit('refreshParent');
73
- },
74
- resize() {
75
- this.$refs.table.setTableHeight();
73
+ },
74
+ resize() {
75
+ this.$refs.table.setTableHeight();
76
76
  }
77
77
  }
78
78
  }
79
- </script>
79
+ </script>
@@ -123,13 +123,13 @@
123
123
  v.parent = parent;
124
124
  }
125
125
  });
126
- },
126
+ },
127
127
  //无任何筛选条件时,不显示该div
128
- setScreenShow() {
128
+ setScreenShow() {
129
129
  let showField = this.model.screen.find((v) => {
130
130
  return v.show !== false;
131
131
  });
132
- if (!showField) {
132
+ if (!showField) {
133
133
  showField = this.model.btnScreen.find((v) => {
134
134
  return v.show !== false;
135
135
  });
@@ -163,7 +163,7 @@
163
163
  box-shadow: none;
164
164
  -webkit-box-shadow: none;
165
165
  border-radius: 0px;
166
- background-color: #fafafa;
166
+ background-color: #fafafa;
167
167
  z-index:1990;
168
168
  }
169
169
  .SeachScreenPop .el-popper .el-time-panel {
@@ -22,7 +22,7 @@
22
22
  <thead ref="tableHead">
23
23
  <tr class="ct-tr" ref="headTr" v-for="(columns,columnsIndex) in model.columnsArr">
24
24
  <th v-if="model.isMulti && columnsIndex === 0" ref="headLeftThs" class="ct-td left-fixation-th checkbox-td">
25
- <input type="checkbox" @click="selectAll($event)" v-model="model.selectAll" />
25
+ <input type="checkbox" @click="selectAll($event)" v-model="model.selectAll" class="checkbox-td-1"/>
26
26
  </th>
27
27
  <th :ref="column.fixed?(column.fixed==='left'?'headLeftThs':'headRightThs'):'headThs'" v-for="(column,colIndex) in columns"
28
28
  v-if="column.show" class="ct-td ct-searchtable-th"
@@ -69,7 +69,7 @@
69
69
  class="ct-tr"
70
70
  :style="row.$style">
71
71
  <td v-if="model.isMulti" class="ct-td tdFiexd left-fixation checkbox-td" align="center">
72
- <input v-if="!model.rightMulti || row[model.rightMulti] == 1" type="checkbox" v-model="row.$select" @change="selectOne($event)" />
72
+ <input v-if="!model.rightMulti || row[model.rightMulti] == 1" type="checkbox" v-model="row.$select" @change="selectOne($event)" class="checkbox-td-1"/>
73
73
  </td>
74
74
  <td :ref="column.fixed?(column.fixed==='left'?'headLeftTds':'headRightTds'):null"
75
75
  v-for="(column,colIndex) in model.dataFieldcolumns"
@@ -577,6 +577,7 @@
577
577
  });
578
578
  },
579
579
  toolbarClickHandler(field) {
580
+ debugger;
580
581
  let self = this;
581
582
  let submitData = {};
582
583
  let action = field.action;
@@ -629,7 +630,7 @@
629
630
  routerClickHandler(field, submitData, action) {
630
631
  let self = this;
631
632
  action = action || field.action;
632
-
633
+
633
634
  var clickAcion = function () {
634
635
  //若不是客户端方法,则直接访问接口
635
636
  if (!field.isClientFuntion) {
@@ -1026,4 +1027,7 @@
1026
1027
  width: 20px;
1027
1028
  left: 0px;
1028
1029
  }
1030
+ .ct-table .checkbox-td .checkbox-td-1{
1031
+ vertical-align: inherit;
1032
+ }
1029
1033
  </style>
@@ -1,15 +1,15 @@
1
1
  import imgPreview from './src/imgPreview.vue'
2
2
 
3
3
  imgPreview.install = function (Vue) {
4
- Vue.component(imgPreview.name, imgPreview);
4
+ Vue.component(imgPreview.name, imgPreview);
5
5
  //import ElImageViewer from "element-ui/packages/image/src/image-viewer";
6
- //Vue.component("ElImageViewer", ElImageViewer);
6
+ //Vue.component("ElImageViewer", ElImageViewer);
7
7
 
8
8
  const PreviewConstructor = Vue.extend(imgPreview);
9
9
  const instance = new PreviewConstructor();
10
- instance.$mount(document.createElement("div"));
10
+ instance.$mount(document.createElement("div"));
11
11
  setTimeout(function () {
12
- document.body.appendChild(instance.$el);
12
+ document.body.appendChild(instance.$el);
13
13
  }, 1000);
14
14
 
15
15
 
@@ -24,8 +24,8 @@ imgPreview.install = function (Vue) {
24
24
  }
25
25
 
26
26
  if (typeof window !== 'undefined' && window.Vue) {
27
- window.Vue.use(imgPreview);
28
-
27
+ window.Vue.use(imgPreview);
28
+
29
29
  const PreviewConstructor = Vue.extend(imgPreview);
30
30
  const instance = new PreviewConstructor();
31
31
  instance.$mount(document.createElement("div"));
@@ -3,9 +3,9 @@
3
3
  :urlList="previewImages"
4
4
  :on-close="closeViewer"></el-image-viewer>
5
5
  </template>
6
- <script>
6
+ <script>
7
7
  //该组件打包被排除(会导致包大很多),不排除的话无法使用,todo待更新
8
- //import ElImageViewer from "element-ui/packages/image/src/image-viewer";
8
+ //import ElImageViewer from "element-ui/packages/image/src/image-viewer";
9
9
  export default {
10
10
  name: 'ctImgPreview',
11
11
  data() {
@@ -23,4 +23,4 @@
23
23
  }
24
24
  }
25
25
  };
26
- </script>
26
+ </script>
@@ -1,30 +1,30 @@
1
1
  const paths = require('../../build/centaline/centaline.path').default;
2
2
  //import './css/common.css'
3
3
  import babelpolyfill from 'babel-polyfill'
4
-
4
+
5
5
  let defaultInstallOpt = {
6
6
  baseUrl: '',
7
- zIndex: 2000,
7
+ zIndex: 2000,
8
8
  showRequestErrorMessage: true,
9
- handler: {
9
+ handler: {
10
10
  // 打开tab页
11
11
  openTab: function (action, submitData, pageTitle) {
12
12
 
13
- },
13
+ },
14
14
  // 关闭当前tab页
15
15
  closeTab: function () {
16
16
 
17
- },
18
- // 获取请求头
19
- getRequestHeaders: function () {
20
- return {};
21
- },
22
- // 请求完成事件,可判断是否登录过期执行响应操作
23
- requestComplete: function (response) {
24
-
17
+ },
18
+ // 获取请求头
19
+ getRequestHeaders: function () {
20
+ return {};
21
+ },
22
+ // 请求完成事件,可判断是否登录过期执行响应操作
23
+ requestComplete: function (response) {
24
+
25
25
  }
26
26
  }
27
- }
27
+ }
28
28
 
29
29
  const centaline = {
30
30
  install(Vue, opts = {}) {
@@ -37,7 +37,7 @@ const centaline = {
37
37
  var plug = require("./" + plugName + "/index.js").default;
38
38
  Vue.use(plug);
39
39
  }
40
-
40
+
41
41
  opts.handler = Object.assign(defaultInstallOpt.handler, opts.handler)
42
42
  const option = Object.assign(defaultInstallOpt, opts)
43
43
  Vue.prototype.$dataDrivenOpts = option
@@ -14,10 +14,10 @@ const Button = function (source, router) {
14
14
  set label(v) {
15
15
  source.controlLabel = v;
16
16
  },
17
- get isHyperLink() {
17
+ get isHyperLink() {
18
18
  if (router) {
19
- return router.isHyperLink;
20
- }
19
+ return router.isHyperLink;
20
+ }
21
21
  return false;
22
22
  },
23
23
  };
@@ -6,7 +6,6 @@ import Vue from 'vue';
6
6
  const box = function (source, callBack) {
7
7
  var self = this;
8
8
  var init = function (data) {
9
- debugger;
10
9
  var rtn = {
11
10
  get options() {
12
11
  return source.selectItems1;
@@ -3,7 +3,7 @@ import Base from './Base';
3
3
  import valid from '../../../validate/index';
4
4
  import common from '../../../common';
5
5
  import Vue from 'vue';
6
- const cbwt = function (source) {
6
+ const cbwt = function (source) {
7
7
  var rtn = {
8
8
  options: [{ code: source.code1, name: source.name1 }],
9
9
  options1: [{ code: source.code2, name: source.name2 }],
@@ -95,7 +95,7 @@ const cbwt = function (source) {
95
95
  action: apiAddrs,
96
96
  para: {
97
97
  paramName: self['paramName' + numStr],
98
- parentValue: parentValue,
98
+ parentValue: parentValue,
99
99
  extraData: rtn.getFormRefFieldPara()
100
100
  }
101
101
  };
@@ -105,11 +105,11 @@ const cbwt = function (source) {
105
105
  }
106
106
  });
107
107
  },
108
- getFormRefFieldPara() {
109
- if (rtn.form && typeof source.refFieldName !== 'undefined' && source.refFieldName.length > 0) {
110
- if (typeof rtn.form.getRefFieldPara === 'function') {
111
- return JSON.stringify(rtn.form.getRefFieldPara(source.refFieldName));
112
- }
108
+ getFormRefFieldPara() {
109
+ if (rtn.form && typeof source.refFieldName !== 'undefined' && source.refFieldName.length > 0) {
110
+ if (typeof rtn.form.getRefFieldPara === 'function') {
111
+ return JSON.stringify(rtn.form.getRefFieldPara(source.refFieldName));
112
+ }
113
113
  }
114
114
  return null;
115
115
  },
@@ -121,21 +121,21 @@ const cbwt = function (source) {
121
121
  },
122
122
  enumerable: true,
123
123
  configurable: true
124
- });
124
+ });
125
125
  Object.defineProperty(rtnFormObj, source.fieldName2, {
126
126
  get: function () {
127
127
  return source.code2;
128
128
  },
129
129
  enumerable: true,
130
130
  configurable: true
131
- });
131
+ });
132
132
  Object.defineProperty(rtnFormObj, source.fieldName3, {
133
133
  get: function () {
134
134
  return source.code3;
135
135
  },
136
136
  enumerable: true,
137
137
  configurable: true
138
- });
138
+ });
139
139
  Object.defineProperty(rtnFormObj, source.fieldName4, {
140
140
  get: function () {
141
141
  return source.code4;
@@ -160,7 +160,7 @@ const cbwt = function (source) {
160
160
  attrs: {
161
161
  clearable: true
162
162
  },
163
- };
163
+ };
164
164
  var baseSource = Base(source);
165
165
  //rtn.attrs = base.copy(baseSource.attrs, rtn.attrs);
166
166
  rtn = base.copy(baseSource, rtn);
@@ -12,9 +12,9 @@ const D = function (source, dateType) {
12
12
  if (typeof source.valueFormat !== 'undefined') {
13
13
  return source.valueFormat;
14
14
  }
15
- else {
15
+ else {
16
16
  if (dateType === "datetime") {
17
- return 'yyyy-MM-dd HH:mm:ss'
17
+ return 'yyyy-MM-dd HH:mm:ss'
18
18
  }
19
19
  return 'yyyy-MM-dd'
20
20
  }