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
package/README.md CHANGED
@@ -62,7 +62,7 @@ Vue.use(centaline, {
62
62
  ```
63
63
 
64
64
  ## ct-form的js内置对象formData的方法(供手写js进行取值或设置值)
65
- ```
65
+ ```
66
66
 
67
67
  /**
68
68
  * @method
@@ -113,8 +113,8 @@ getListFieldValue(tableName, rowNum, fiedlId, attrName, defaultValue)
113
113
  * @desc 设置指定列表中的指定Field的指定属性
114
114
  * @returns {boolean} 是否成功
115
115
  */
116
- setListFieldValue(value, tableName, rowNum, fiedlId, attrName)
117
-
116
+ setListFieldValue(value, tableName, rowNum, fiedlId, attrName)
117
+
118
118
  /**
119
119
  * @method
120
120
  * @param {String} action action。
@@ -122,9 +122,9 @@ setListFieldValue(value, tableName, rowNum, fiedlId, attrName)
122
122
  * @param {Function} successCallback 成功后的回调,只请求成功且response.clientActionType==1时才执行。
123
123
  * @desc 获取后台数据,并返回脚本或执行回调。
124
124
  */
125
- execServerScript(action, object, successCallback)
126
-
127
-
125
+ execServerScript(action, object, successCallback)
126
+
127
+
128
128
  /**
129
129
  * @method
130
130
  * @param {string} message 消息文字。
@@ -134,7 +134,7 @@ execServerScript(action, object, successCallback)
134
134
  * @param {boolean} showClose 是否显示关闭按钮。
135
135
  * @desc 消息提示。常用于主动操作后的反馈提示。
136
136
  */
137
- message(message, type, center, duration, showClose)
137
+ message(message, type, center, duration, showClose)
138
138
 
139
139
  ```
140
140
 
@@ -50,7 +50,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
50
50
  // pathRewrite: {
51
51
  // "^/gateway": "/gateway" //将以 /gateway 开头的接口重写http://116.66.65.193:8081/gateway ,调用时直接以 /gateway开头即表示调用http://116.66.65.193:8081/gateway
52
52
  // }
53
- // },
53
+ // },
54
54
  // "/api": {
55
55
  // target: "http://10.1.245.37:5208", //对应服务端的接口地址
56
56
  // changeOrigin: true, // 开启跨域
package/config/dev.env.js CHANGED
@@ -3,7 +3,7 @@ const merge = require('webpack-merge')
3
3
  const prodEnv = require('./prod.env')
4
4
 
5
5
  module.exports = merge(prodEnv, {
6
- NODE_ENV: '"development"',
7
- BASE_API: '"http://10.1.245.37:5208/api/doaction/router"',
6
+ NODE_ENV: '"development"',
7
+ BASE_API: '"http://10.88.200.16:9999/v1/form/router"',
8
8
  //BASE_API: '"http://10.88.22.71:5008/api/doaction/router"'
9
9
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.1.18",
3
+ "version": "1.1.23",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
package/src/Edit.vue CHANGED
@@ -1,32 +1,139 @@
1
1
  <template>
2
2
  <div id="app">
3
- <formListTable></formListTable>
3
+ <!-- <formListTable></formListTable> -->
4
+
5
+ <ct-inputNumber
6
+ :source="col"
7
+ api="/SystemReference/GetParamList"
8
+ ></ct-inputNumber>
4
9
  </div>
5
-
6
10
  </template>
7
11
 
8
12
  <script>
9
- import formListTable from './centaline/dynamicForm/src/dynamicFormListTable'
10
- export default {
11
- name: 'App',
12
- components: {
13
- 'formListTable': formListTable
14
- },
15
- data() {
16
- return {
17
- template: ""
18
- }
13
+ import formListTable from "./centaline/dynamicForm/src/dynamicFormListTable";
14
+ export default {
15
+ name: "App",
16
+ components: {
17
+ formListTable: formListTable,
18
+ },
19
+ data() {
20
+ return {
21
+ template: "",
22
+ col: {
23
+ formItemId: "fa526f18-dacc-0fae-f45d-0df7fa278e6e",
24
+ formId: "4A5531CB-248F-44ED-96DC-8071C080010E",
25
+ tenantId: 3314680389615653000,
26
+ controlLabel: "排序号",
27
+ controlType: 4,
28
+ description: "",
29
+ moreActionRouterKey: "",
30
+ singleLine: true,
31
+ rows: 2,
32
+ spanCols: 1,
33
+ groupExpand: 1,
34
+ required: false,
35
+ locked: false,
36
+ refFieldName: "",
37
+ orderNo: 4,
38
+ parentField: "",
39
+ hiddenRelationField: "",
40
+ hiddenRelationFieldValue: "",
41
+ requiredRelationField: "",
42
+ requiredRelationFieldValue: "",
43
+ onChanged: "",
44
+ onAfterChanged: "",
45
+ applyNew: true,
46
+ applyEdit: true,
47
+ applyBrowse: true,
48
+ fieldName1: "orderNo",
49
+ name1: "",
50
+ code1: "",
51
+ placeholder1: "",
52
+ unitName1: "",
53
+ defaultCode1: "",
54
+ defaultName1: "",
55
+ paramName1: "",
56
+ paramAction1: "",
57
+ selectItems1: [
58
+ { code: "1", name: "虚拟数据1", flagDeleted: false },
59
+ { code: "2", name: "虚拟数据2", flagDeleted: false },
60
+ ],
61
+ decimals1: 0,
62
+ maxLength1: 0,
63
+ maxValue1: "",
64
+ minValue1: "",
65
+ fileAccept1: "",
66
+ preLabel1: "",
67
+ sufLabel1: "",
68
+ fieldName2: "",
69
+ code2: "",
70
+ name2: "",
71
+ placeholder2: "",
72
+ fileAccept2: "",
73
+ decimals2: 0,
74
+ paramName2: "",
75
+ paramAction2: "",
76
+ maxValue2: "",
77
+ minValue2: "",
78
+ preLabel2: "",
79
+ sufLabel2: "",
80
+ defaultCode2: "",
81
+ defaultName2: "",
82
+ selectItems2: "",
83
+ fieldName3: "",
84
+ code3: "",
85
+ name3: "",
86
+ placeholder3: "",
87
+ fileAccept3: "",
88
+ decimals3: 0,
89
+ paramName3: "",
90
+ paramAction3: "",
91
+ maxValue3: "",
92
+ minValue3: "",
93
+ preLabel3: "",
94
+ sufLabel3: "",
95
+ defaultCode3: "",
96
+ defaultName3: "",
97
+ selectItems3: "",
98
+ fieldName4: "",
99
+ code4: "",
100
+ name4: "",
101
+ placeholder4: "",
102
+ fileAccept4: "",
103
+ decimals4: 0,
104
+ paramName4: "",
105
+ paramAction4: "",
106
+ maxValue4: "",
107
+ minValue4: "",
108
+ preLabel4: "",
109
+ sufLabel4: "",
110
+ defaultCode4: "",
111
+ defaultName4: "",
112
+ selectItems4: "",
113
+ is: "ct-inputNumber",
114
+ },
115
+ };
116
+ },
117
+ methods: {
118
+ TestEdit() {
119
+ this.$api.post(
120
+ "http://10.88.22.52:2828/api/values/edit",
121
+ { content: this.template },
122
+ (data) => {}
123
+ );
19
124
  },
20
- methods: {
21
- TestEdit() {
22
- this.$api.post('http://10.88.22.52:2828//api/values/edit', { content: this.template }, (data) => {
23
- });
24
- }
125
+ test() {
126
+ debugger;
127
+ this.$common.confirm("", "123", {
128
+ confirmButtonText: "0",
129
+ cancelButtonText: "1",
130
+ });
25
131
  },
26
- created() {
27
- //this.$api.get('http://10.88.22.52:2828//api/values/test', null, (data) => {
28
- // this.$set(this, 'template', JSON.stringify(data, null, 4));
29
- //});
30
- }
31
- }
132
+ },
133
+ created() {
134
+ //this.$api.get('http://10.88.22.52:2828//api/values/test', null, (data) => {
135
+ // this.$set(this, 'template', JSON.stringify(data, null, 4));
136
+ //});
137
+ },
138
+ };
32
139
  </script>