centaline-data-driven 1.1.60 → 1.1.61
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/.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/build/centaline/webpack.centaline.conf.js +1 -1
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +73 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +29 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +15 -0
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.AssemblyInfo.cs +23 -0
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.RazorAssemblyInfo.cs +20 -0
- package/obj/project.assets.json +11907 -0
- package/package.json +1 -1
- package/src/Edit.vue +2 -36
- package/src/Form.vue +21 -6
- package/src/SearchList.vue +2 -1
- package/src/SearchTree.vue +2 -6
- package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +5 -7
- 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/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/SearchTable.js +4 -1
- package/src/main.js +12 -4
- package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Edit.vue
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app">
|
|
3
|
-
|
|
4
|
-
<el-button @click="copyField">test</el-button>
|
|
3
|
+
<formListTable></formListTable>
|
|
5
4
|
</div>
|
|
6
5
|
|
|
7
6
|
</template>
|
|
@@ -22,40 +21,7 @@
|
|
|
22
21
|
TestEdit() {
|
|
23
22
|
this.$api.post('http://10.88.22.52:2828//api/values/edit', { content: this.template }, (data) => {
|
|
24
23
|
});
|
|
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
|
-
},
|
|
24
|
+
}
|
|
59
25
|
},
|
|
60
26
|
created() {
|
|
61
27
|
//this.$api.get('http://10.88.22.52:2828//api/values/test', null, (data) => {
|
package/src/Form.vue
CHANGED
|
@@ -1,24 +1,39 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-form" class="data-driven" style="width:100%;height:100%;overflow:auto">
|
|
3
|
-
<ct-form :api="'/
|
|
3
|
+
<!-- <ct-form :api="'/api/third-dept-tran/transaction/detail'" :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="'Worklist/getLayoutOfAudit'" :apiParam="apiParam"></ct-form>
|
|
12
|
+
<!-- <ct-form :api="'/api/distribution/transaction/add'" :apiParam="apiParam"></ct-form> -->
|
|
9
13
|
<ct-dialog-list></ct-dialog-list>
|
|
10
14
|
</div>
|
|
11
15
|
</template>
|
|
12
16
|
|
|
13
17
|
<script>
|
|
14
18
|
export default {
|
|
15
|
-
name: '
|
|
19
|
+
name: 'DataDrivenForm',
|
|
16
20
|
data() {
|
|
17
21
|
return {
|
|
18
|
-
apiParam: {
|
|
19
|
-
actionType:
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
+
// apiParam: {originalTraId: "1481454808274235394", actionType: 3, pageTitle: "成交报告", pageOnly: true} ,
|
|
23
|
+
// apiParam: {headerParam: {}, urlParam: {contractID: "06cad32e-4d0d-4b6f-bd24-16a28629a550", actionType: "0"}}
|
|
24
|
+
// apiParam: {SN: "13557_132", UserID: "wuhan3"},
|
|
25
|
+
// apiParam: {actionType: 3,formId: "2c12649f-09c5-4aa9-8011-b6d1c7b56a41"} ,
|
|
26
|
+
// apiParam: {chanceID: "1", actionType: 2} ,
|
|
27
|
+
apiParam: {worklistID: "1491261975253094400", actionType: 2}
|
|
28
|
+
// apiParam: {
|
|
29
|
+
// actionType: 2,
|
|
30
|
+
// agentId: "1450283160825425922",
|
|
31
|
+
// estateId: "B6E6B3D8-FDF2-4AF8-91E6-B348D637E993",
|
|
32
|
+
// pageOnly: true,
|
|
33
|
+
// pageStyle: 2,
|
|
34
|
+
// propertyId: "14102015-0736-9265-205A-451687BF7062",
|
|
35
|
+
// relProId: "1475708315466829833",
|
|
36
|
+
// }
|
|
22
37
|
}
|
|
23
38
|
},
|
|
24
39
|
methods: {
|
package/src/SearchList.vue
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
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="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist>
|
|
5
|
+
<!-- <ct-searchlist :searchConditionApi="'/WorklistList/getLayoutOfSearch'" :searchDataApi="'/WorklistList/getListOfSearchModel'" :searchCategoryApi="'/WorklistList/getLayoutOfSearchCategory'"></ct-searchlist> -->
|
|
5
6
|
<!--<ct-searchlist :searchConditionApi="'/api/invoice-info/search-condition'" :searchDataApi="'/api/invoice-info/list'" :searchDataStatisticsApi="'api/ContractList/GetLayoutOfStatisticsTool'" :apiParam="para"></ct-searchlist>-->
|
|
6
7
|
<ct-dialog-list></ct-dialog-list>
|
|
7
8
|
</div>
|
package/src/SearchTree.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app-Tree" style="height:100%;position: fixed;width:100%">
|
|
3
3
|
<ct-treelist :flagsearch="true" :apiParam="apiParam"
|
|
4
|
-
:searchConditionApi="'/SystemParameterCatalogList/
|
|
4
|
+
:searchConditionApi="'/SystemParameterCatalogList/getLayoutOfSearch'"
|
|
5
5
|
:searchDataApi="'/SystemParameterCatalogList/getListOfSearchModel'" @loaded="loaded"></ct-treelist>
|
|
6
6
|
<ct-dialog-list></ct-dialog-list>
|
|
7
7
|
</div>
|
|
@@ -14,11 +14,7 @@
|
|
|
14
14
|
data() {
|
|
15
15
|
return {
|
|
16
16
|
isShowSearchlist: false,
|
|
17
|
-
apiParam: {
|
|
18
|
-
flagSearch: true,
|
|
19
|
-
searchFields: {},
|
|
20
|
-
pageAttribute: {pageIndex: 1}
|
|
21
|
-
}
|
|
17
|
+
apiParam: {}
|
|
22
18
|
}
|
|
23
19
|
},
|
|
24
20
|
methods: {
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
</div>
|
|
181
181
|
<div class="tablist-info base-box">
|
|
182
182
|
<div class="details-tabs-box">
|
|
183
|
-
<el-menu :default-active="model.activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
|
|
183
|
+
<el-menu :default-active="model.activeIndex" class="el-menu-demo el-menu-detail" mode="horizontal" @select="handleSelect">
|
|
184
184
|
<el-menu-item v-for="(col, index) in model.tags1" :key="col.appID" :index="index.toString()">
|
|
185
185
|
{{col.appName}}
|
|
186
186
|
</el-menu-item>
|
|
@@ -604,6 +604,7 @@
|
|
|
604
604
|
load(data) {
|
|
605
605
|
this.model = data;
|
|
606
606
|
this.loadFields();
|
|
607
|
+
this.setDetailHeight();
|
|
607
608
|
},
|
|
608
609
|
loadFields() {
|
|
609
610
|
var self = this;
|
|
@@ -657,14 +658,11 @@
|
|
|
657
658
|
},
|
|
658
659
|
setDetailHeight() {
|
|
659
660
|
this.$nextTick(() => {
|
|
660
|
-
if (this.$refs.detail) {
|
|
661
|
+
if (this.$refs.detail && this.$refs.main) {
|
|
661
662
|
var h1 = this.$refs.main.offsetHeight | 0;
|
|
662
|
-
var
|
|
663
|
-
let detailHeight = h1 -
|
|
663
|
+
var h3 = this.$refs.detail.offsetTop | 0;
|
|
664
|
+
let detailHeight = h1 - h3 - 65;
|
|
664
665
|
this.model.detailHeight = detailHeight < 40 ? 350 : detailHeight;
|
|
665
|
-
console.log(h1);
|
|
666
|
-
console.log(h2);
|
|
667
|
-
console.log(this.model.detailHeight);
|
|
668
666
|
}
|
|
669
667
|
});
|
|
670
668
|
},
|
|
@@ -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,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;
|
|
@@ -494,7 +494,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
494
494
|
var searchFields = this.searchModel ? this.searchModel.searchData : { fields: [] };
|
|
495
495
|
if (self.primaryKey) {
|
|
496
496
|
searchFields.fields.push({
|
|
497
|
-
fieldName1: self.primaryKey,
|
|
497
|
+
fieldName1: self.primaryFieldMappingDBName?self.primaryFieldMappingDBName:self.primaryKey,
|
|
498
498
|
groupName: self.primaryKey,
|
|
499
499
|
operation: 2,
|
|
500
500
|
searchDataType: 3,
|
|
@@ -563,6 +563,9 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
|
|
|
563
563
|
get primaryKey() {
|
|
564
564
|
return common.initialsToUpperCase(source.content.primaryFieldName);
|
|
565
565
|
},
|
|
566
|
+
get primaryFieldMappingDBName() {
|
|
567
|
+
return source.content.primaryFieldMappingDBName;
|
|
568
|
+
},
|
|
566
569
|
get $index() {
|
|
567
570
|
if (this.$rowCount > 0) {
|
|
568
571
|
return this.selectIndex + 1;
|
package/src/main.js
CHANGED
|
@@ -12,7 +12,8 @@ Vue.use(ElementUI, { size: 'mini'});
|
|
|
12
12
|
// 关闭生产模式下给出的提示
|
|
13
13
|
Vue.config.productionTip = false;
|
|
14
14
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl:
|
|
15
|
+
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
|
+
// baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
|
|
16
17
|
zindex: 999,
|
|
17
18
|
showRequestErrorMessage: true,
|
|
18
19
|
handler: {
|
|
@@ -20,6 +21,12 @@ Vue.use(centaline, {
|
|
|
20
21
|
openTab: function (action) {
|
|
21
22
|
alert("打开tab页:" + action)
|
|
22
23
|
},
|
|
24
|
+
openDetail: function (action) {
|
|
25
|
+
alert("打开tab页:" + action)
|
|
26
|
+
},
|
|
27
|
+
openPropertyDetailRET: function (submitData, pageTitle, parentModel) {
|
|
28
|
+
alert("打开tab页:" + pageTitle)
|
|
29
|
+
},
|
|
23
30
|
// 关闭当前tab
|
|
24
31
|
closeTab: function () {
|
|
25
32
|
alert("关闭当前tab")
|
|
@@ -27,9 +34,10 @@ Vue.use(centaline, {
|
|
|
27
34
|
// 获取请求头
|
|
28
35
|
getRequestHeaders: function () {
|
|
29
36
|
return {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
oldToken: '3007e478-86db-4d5a-8ce0-7253afb746b2',
|
|
38
|
+
estateId: '20210729104021C49F04B55C50F6AF58',
|
|
39
|
+
originalRequestURL: 'http://10.88.22.67:8080',
|
|
40
|
+
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
|
|
33
41
|
};
|
|
34
42
|
},
|
|
35
43
|
// 请求完成事件,可判断是否登录过期执行响应操作
|