centaline-data-driven 1.1.50 → 1.1.51
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 +1 -1
- package/src/Edit.vue +36 -2
- package/src/Form.vue +6 -19
- package/src/SearchList.vue +1 -1
- package/src/centaline/dynamicForm/src/dynamicForm.vue +2 -2
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicTableStatistics.vue +11 -11
- package/src/centaline/formData/index.js +2 -1
- package/src/centaline/loader/src/ctl/HyperLink.js +1 -1
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/Router.js +3 -2
- package/src/main.js +5 -12
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
- package/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/db.lock +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/storage.ide +0 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +0 -73
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +0 -29
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +0 -15
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.AssemblyInfo.cs +0 -23
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.RazorAssemblyInfo.cs +0 -20
- package/obj/project.assets.json +0 -11907
package/package.json
CHANGED
package/src/Edit.vue
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app">
|
|
3
|
-
<formListTable></formListTable>
|
|
3
|
+
<!-- <formListTable></formListTable> -->
|
|
4
|
+
<el-button @click="copyField">test</el-button>
|
|
4
5
|
</div>
|
|
5
6
|
|
|
6
7
|
</template>
|
|
@@ -21,7 +22,40 @@
|
|
|
21
22
|
TestEdit() {
|
|
22
23
|
this.$api.post('http://10.88.22.52:2828//api/values/edit', { content: this.template }, (data) => {
|
|
23
24
|
});
|
|
24
|
-
}
|
|
25
|
+
},
|
|
26
|
+
copyField()
|
|
27
|
+
{
|
|
28
|
+
debugger;
|
|
29
|
+
var self = this;
|
|
30
|
+
var dialogOption = {
|
|
31
|
+
title: "复制控件",
|
|
32
|
+
content: [
|
|
33
|
+
{
|
|
34
|
+
component: "ct-form",
|
|
35
|
+
attrs: {
|
|
36
|
+
showTitle: false,
|
|
37
|
+
api: "/forminfo/readTargetDetail",
|
|
38
|
+
apiParam: {
|
|
39
|
+
formId: "1ae27876-a938-4ea5-aeab-fb2a7b067a2f",
|
|
40
|
+
actionType: 3,
|
|
41
|
+
},
|
|
42
|
+
width: "1300px",
|
|
43
|
+
height: "650px",
|
|
44
|
+
},
|
|
45
|
+
on: {
|
|
46
|
+
submit(ev) {
|
|
47
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
48
|
+
},
|
|
49
|
+
closeDialog() {
|
|
50
|
+
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
self.$common.openDialog(dialogOption);
|
|
57
|
+
|
|
58
|
+
},
|
|
25
59
|
},
|
|
26
60
|
created() {
|
|
27
61
|
//this.$api.get('http://10.88.22.52:2828//api/values/test', null, (data) => {
|
package/src/Form.vue
CHANGED
|
@@ -1,37 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
|
-
|
|
3
|
+
<ct-form :api="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form>
|
|
4
4
|
<!-- <ct-form :source="formdata.content" :apiParam="apiParam"></ct-form> -->
|
|
5
5
|
<!--:api="'FormSample/formdata'"-->
|
|
6
6
|
<!--<ct-form :source="formdata.content"></ct-form>-->
|
|
7
7
|
<!--<ct-form :api="'/api/form/formdata/contractDetail'" :apiParam="apiParam"></ct-form>-->
|
|
8
8
|
<!--<ct-form :api="'api/Form/formdata'"></ct-form>-->
|
|
9
|
-
<!-- <ct-form :api="'/forminfo/readDetail'" :apiParam="apiParam"></ct-form> -->
|
|
10
|
-
<ct-form :api="'PropertyKey/getLayoutOfNew'" :apiParam="apiParam"></ct-form>
|
|
11
|
-
<!-- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form> -->
|
|
12
9
|
<ct-dialog-list></ct-dialog-list>
|
|
13
10
|
</div>
|
|
14
11
|
</template>
|
|
15
12
|
|
|
16
13
|
<script>
|
|
17
14
|
export default {
|
|
18
|
-
name: '
|
|
15
|
+
name: 'App',
|
|
19
16
|
data() {
|
|
20
17
|
return {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
apiParam: {chanceID: "1", actionType: 2} ,
|
|
26
|
-
// apiParam: {
|
|
27
|
-
// actionType: 2,
|
|
28
|
-
// agentId: "1450283160825425922",
|
|
29
|
-
// estateId: "B6E6B3D8-FDF2-4AF8-91E6-B348D637E993",
|
|
30
|
-
// pageOnly: true,
|
|
31
|
-
// pageStyle: 2,
|
|
32
|
-
// propertyId: "14102015-0736-9265-205A-451687BF7062",
|
|
33
|
-
// relProId: "1475708315466829833",
|
|
34
|
-
// }
|
|
18
|
+
apiParam: {
|
|
19
|
+
actionType: 2,
|
|
20
|
+
propertyID: "1"
|
|
21
|
+
} ,
|
|
35
22
|
}
|
|
36
23
|
},
|
|
37
24
|
methods: {
|
package/src/SearchList.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
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
|
+
<ct-searchlist :searchConditionApi="'/system/menulist/getLayoutOfSearch'" :searchDataApi="'/system/menulist/getList'"></ct-searchlist>
|
|
5
5
|
<!--<ct-searchlist :searchConditionApi="'/api/invoice-info/search-condition'" :searchDataApi="'/api/invoice-info/list'" :searchDataStatisticsApi="'api/ContractList/GetLayoutOfStatisticsTool'" :apiParam="para"></ct-searchlist>-->
|
|
6
6
|
<ct-dialog-list></ct-dialog-list>
|
|
7
7
|
</div>
|
|
@@ -410,12 +410,12 @@
|
|
|
410
410
|
var self = this;
|
|
411
411
|
var submitData = {};
|
|
412
412
|
var tempFormData = self.model.getFormObj();
|
|
413
|
+
|
|
413
414
|
var check = true;
|
|
414
415
|
var checkMsg;
|
|
415
416
|
router.submitFormField.forEach((v) => {
|
|
416
417
|
submitData[v] = tempFormData[v];
|
|
417
|
-
|
|
418
|
-
if (typeof tempFormData[v] === "undefined" || tempFormData[v] === '') {
|
|
418
|
+
if (typeof tempFormData[v] === "undefined") {
|
|
419
419
|
if (self.model.fieldsDic[v]) {
|
|
420
420
|
checkMsg = "请先录入" + self.model.fieldsDic[v].label;
|
|
421
421
|
}
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
data() {
|
|
17
17
|
return {
|
|
18
18
|
activeName: '1',
|
|
19
|
-
editableTabs: [
|
|
20
|
-
{ name: '1', title: '用户管理' },
|
|
21
|
-
{ name: '2', title: '配置管理' },
|
|
22
|
-
{ name: '3', title: '角色管理' },
|
|
23
|
-
{ name: '4', title: '定时任务补偿' },
|
|
24
|
-
{ name: '5', title: '定时任务补偿2' },
|
|
25
|
-
{ name: '6', title: '定时任务补偿3' },
|
|
26
|
-
{ name: '7', title: '定时任务补偿4' },
|
|
27
|
-
{ name: '8', title: '定时任务补偿5' },
|
|
28
|
-
{ name: '9', title: '定时任务补偿6' },
|
|
29
|
-
{ name: '10', title: '定时任务补偿7' }
|
|
19
|
+
editableTabs: [
|
|
20
|
+
{ name: '1', title: '用户管理' },
|
|
21
|
+
{ name: '2', title: '配置管理' },
|
|
22
|
+
{ name: '3', title: '角色管理' },
|
|
23
|
+
{ name: '4', title: '定时任务补偿' },
|
|
24
|
+
{ name: '5', title: '定时任务补偿2' },
|
|
25
|
+
{ name: '6', title: '定时任务补偿3' },
|
|
26
|
+
{ name: '7', title: '定时任务补偿4' },
|
|
27
|
+
{ name: '8', title: '定时任务补偿5' },
|
|
28
|
+
{ name: '9', title: '定时任务补偿6' },
|
|
29
|
+
{ name: '10', title: '定时任务补偿7' }
|
|
30
30
|
],
|
|
31
31
|
}
|
|
32
32
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Vue from 'vue';
|
|
2
2
|
import common from '../common';
|
|
3
|
+
import Enum from '../loader/src/ctl/lib/Enum';
|
|
3
4
|
import Axios from 'axios';
|
|
4
5
|
const formData = {
|
|
5
6
|
install(Vue) {
|
|
@@ -230,7 +231,7 @@ const formData = {
|
|
|
230
231
|
//获取后台数据,并返回脚本。
|
|
231
232
|
execServerScript(action, object, successCallback) {
|
|
232
233
|
let formData = this;//作用域保存
|
|
233
|
-
|
|
234
|
+
debugger;
|
|
234
235
|
//是否是行内触发的
|
|
235
236
|
let data = this.getListField(this.form.scripts.$fd, null, null);
|
|
236
237
|
object.editMode = data ? 1 : 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import base from '../../index';
|
|
2
|
-
import Base from './Base';
|
|
2
|
+
import Base from './Base';
|
|
3
3
|
|
|
4
4
|
const PlaceHolder = function (source) {
|
|
5
5
|
var rtn = {
|
|
@@ -14,4 +14,4 @@ const PlaceHolder = function (source) {
|
|
|
14
14
|
return rtn;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export default PlaceHolder;
|
|
17
|
+
export default PlaceHolder;
|
|
@@ -146,7 +146,8 @@ const Router = function (source) {
|
|
|
146
146
|
return source.rightField;
|
|
147
147
|
},
|
|
148
148
|
get submitFormField() {
|
|
149
|
-
|
|
149
|
+
|
|
150
|
+
if (typeof source.refFieldName === 'undefined' || source.refFieldName === null|| source.refFieldName.trim() === '') {
|
|
150
151
|
return [];
|
|
151
152
|
}
|
|
152
153
|
var submitArr = [];
|
|
@@ -156,7 +157,7 @@ const Router = function (source) {
|
|
|
156
157
|
return submitArr;
|
|
157
158
|
},
|
|
158
159
|
get submitListField() {
|
|
159
|
-
if (typeof source.refFieldName === 'undefined' || source.refFieldName === null) {
|
|
160
|
+
if (typeof source.refFieldName === 'undefined' || source.refFieldName === null|| source.refFieldName.trim() === '') {
|
|
160
161
|
return [];
|
|
161
162
|
}
|
|
162
163
|
var submitArr = [];
|
package/src/main.js
CHANGED
|
@@ -12,8 +12,7 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl:
|
|
16
|
-
// baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
|
|
15
|
+
baseUrl: 'http://10.88.22.13:7070/v1/form/router',
|
|
17
16
|
zindex: 999,
|
|
18
17
|
showRequestErrorMessage: true,
|
|
19
18
|
handler: {
|
|
@@ -21,12 +20,6 @@ Vue.use(centaline, {
|
|
|
21
20
|
openTab: function (action) {
|
|
22
21
|
alert("打开tab页:" + action)
|
|
23
22
|
},
|
|
24
|
-
openDetail: function (action) {
|
|
25
|
-
alert("打开tab页:" + action)
|
|
26
|
-
},
|
|
27
|
-
openPropertyDetailRET: function (submitData, pageTitle, parentModel) {
|
|
28
|
-
alert("打开tab页:" + pageTitle)
|
|
29
|
-
},
|
|
30
23
|
// 关闭当前tab
|
|
31
24
|
closeTab: function () {
|
|
32
25
|
alert("关闭当前tab")
|
|
@@ -34,10 +27,10 @@ Vue.use(centaline, {
|
|
|
34
27
|
// 获取请求头
|
|
35
28
|
getRequestHeaders: function () {
|
|
36
29
|
return {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
Authorization: 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI4Mzg3ZjkwLTI3YWItNDA4Yy1hNjRjLTE3ODIxNDM1M2FiNyJ9.4EFMLNBVU1ZCoJ5o-CjXum7IC-Lb2ljZsi-qCNAQcfdw8NIYp7Ul93in3iZCI69sLZz2N6F7Gnxh6Hbj5JLEJg',
|
|
31
|
+
oldToken: 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjQwY2ExYmMyLWNiNzMtNDI2Mi05NmM0LThiYjg0NDBkODE3ZCJ9.AIXWKaRyCwxYiPAqGhT0A01YN7tpX_nW9oU5YDwuC3GIRSn5DQS82Kh1Q7u6eHIz1BySWc-SOEqSTB3283_Z7A',
|
|
32
|
+
estateId: '201509230915485D942241BBA30FF49F',
|
|
33
|
+
originalRequestURL: 'http://localhost:8080'
|
|
41
34
|
};
|
|
42
35
|
},
|
|
43
36
|
// 请求完成事件,可判断是否登录过期执行响应操作
|