centaline-data-driven 1.2.13 → 1.2.14
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/Detail.vue +2 -2
- package/src/Edit.vue +4 -48
- package/src/Form.vue +22 -6
- package/src/SearchList.vue +4 -2
- package/src/centaline/css/common.css +3 -0
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/loader/src/ctl/Detail.js +16 -10
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/main.js +12 -5
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
package/package.json
CHANGED
package/src/Detail.vue
CHANGED
package/src/Edit.vue
CHANGED
|
@@ -1,71 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app">
|
|
3
|
-
|
|
4
|
-
<img v-for="src in pics" :src="src" :key="src">
|
|
5
|
-
</viewer>
|
|
3
|
+
<formListTable></formListTable>
|
|
6
4
|
</div>
|
|
7
5
|
|
|
8
6
|
</template>
|
|
9
7
|
|
|
10
8
|
<script>
|
|
11
9
|
import formListTable from './centaline/dynamicForm/src/dynamicFormListTable'
|
|
12
|
-
import Viewer from 'v-viewer'
|
|
13
|
-
import 'viewerjs/dist/viewer.css'
|
|
14
|
-
import Vue from 'vue'
|
|
15
|
-
Vue.use(Viewer)
|
|
16
10
|
export default {
|
|
17
11
|
name: 'App',
|
|
18
12
|
components: {
|
|
19
|
-
'formListTable': formListTable
|
|
13
|
+
'formListTable': formListTable
|
|
20
14
|
},
|
|
21
15
|
data() {
|
|
22
16
|
return {
|
|
23
|
-
template: ""
|
|
24
|
-
pics:[
|
|
25
|
-
'https://wpimg.wallstcn.com/4c69009c-0fd4-4153-b112-6cb53d1cf943',
|
|
26
|
-
'https://wpimg.wallstcn.com/4c69009c-0fd4-4153-b112-6cb53d1cf943',
|
|
27
|
-
'https://wpimg.wallstcn.com/4c69009c-0fd4-4153-b112-6cb53d1cf943',
|
|
28
|
-
],
|
|
17
|
+
template: ""
|
|
29
18
|
}
|
|
30
19
|
},
|
|
31
20
|
methods: {
|
|
32
21
|
TestEdit() {
|
|
33
22
|
this.$api.post('http://10.88.22.52:2828//api/values/edit', { content: this.template }, (data) => {
|
|
34
23
|
});
|
|
35
|
-
}
|
|
36
|
-
copyField()
|
|
37
|
-
{
|
|
38
|
-
debugger;
|
|
39
|
-
var self = this;
|
|
40
|
-
var dialogOption = {
|
|
41
|
-
title: "复制控件",
|
|
42
|
-
content: [
|
|
43
|
-
{
|
|
44
|
-
component: "ct-form",
|
|
45
|
-
attrs: {
|
|
46
|
-
showTitle: false,
|
|
47
|
-
api: "/forminfo/readTargetDetail",
|
|
48
|
-
apiParam: {
|
|
49
|
-
formId: "1ae27876-a938-4ea5-aeab-fb2a7b067a2f",
|
|
50
|
-
actionType: 3,
|
|
51
|
-
},
|
|
52
|
-
width: "1300px",
|
|
53
|
-
height: "650px",
|
|
54
|
-
},
|
|
55
|
-
on: {
|
|
56
|
-
submit(ev) {
|
|
57
|
-
self.$common.closeDialog(dialogOption.dialog);
|
|
58
|
-
},
|
|
59
|
-
closeDialog() {
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
};
|
|
66
|
-
self.$common.openDialog(dialogOption);
|
|
67
|
-
|
|
68
|
-
},
|
|
24
|
+
}
|
|
69
25
|
},
|
|
70
26
|
created() {
|
|
71
27
|
//this.$api.get('http://10.88.22.52:2828//api/values/test', null, (data) => {
|
package/src/Form.vue
CHANGED
|
@@ -1,24 +1,40 @@
|
|
|
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="'PropertyRealLook/getLayoutOfNew'" :apiParam="para"></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: "1494206747714392064", actionType: 2}
|
|
28
|
+
para: {chanceID: "1", actionType: 2}
|
|
29
|
+
// apiParam: {
|
|
30
|
+
// actionType: 2,
|
|
31
|
+
// agentId: "1450283160825425922",
|
|
32
|
+
// estateId: "B6E6B3D8-FDF2-4AF8-91E6-B348D637E993",
|
|
33
|
+
// pageOnly: true,
|
|
34
|
+
// pageStyle: 2,
|
|
35
|
+
// propertyId: "14102015-0736-9265-205A-451687BF7062",
|
|
36
|
+
// relProId: "1475708315466829833",
|
|
37
|
+
// }
|
|
22
38
|
}
|
|
23
39
|
},
|
|
24
40
|
methods: {
|
package/src/SearchList.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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="'/
|
|
5
|
+
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'" :searchDataApi="'/PropertyRETList/getListOfSearchModel'" :searchCategoryApi="'/PropertyRETList/getLayoutOfSearchCategory'"></ct-searchlist> -->
|
|
6
6
|
<!-- <ct-searchlist :searchConditionApi="'/WorklistList/getLayoutOfSearch'" :searchDataApi="'/WorklistList/getListOfSearchModel'" :searchCategoryApi="'/WorklistList/getLayoutOfSearchCategory'"></ct-searchlist> -->
|
|
7
7
|
|
|
8
8
|
<!-- <ct-searchlist :searchConditionApi="'/PropertyRETList/getLayoutOfSearch'"
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
></ct-searchlist> -->
|
|
13
13
|
|
|
14
14
|
<!--<ct-searchlist :searchConditionApi="'/api/invoice-info/search-condition'" :searchDataApi="'/api/invoice-info/list'" :searchDataStatisticsApi="'api/ContractList/GetLayoutOfStatisticsTool'" :apiParam="para"></ct-searchlist>-->
|
|
15
|
+
<ct-searchlist :searchConditionApi="'/PropertyStatusList/getLayoutOfSearch'" :searchDataApi="'/PropertyStatusList/getListOfSearchModel'" :apiParam="para"></ct-searchlist>
|
|
15
16
|
<ct-dialog-list></ct-dialog-list>
|
|
16
17
|
</div>
|
|
17
18
|
</template>
|
|
@@ -23,7 +24,8 @@
|
|
|
23
24
|
data() {
|
|
24
25
|
return {
|
|
25
26
|
//para: { agentId: "1424932685198864386", estateId: "L201402181627000007233", estateName: "271医院宿舍区", pageOnly: "true", pageTitle: "销控房源列表" }
|
|
26
|
-
para: {}
|
|
27
|
+
// para: {}
|
|
28
|
+
para: {paramKey: "PropertyStatusID", code: "002.001", name: "盘源状态", paramName: "盘源状态"}
|
|
27
29
|
}
|
|
28
30
|
},
|
|
29
31
|
mounted() {
|
|
@@ -270,15 +270,17 @@ const Detail = function (source,para ,callBack) {
|
|
|
270
270
|
rtn._operationList=response.content;
|
|
271
271
|
if(rtn._operationList && rtn._operationList.length>0){
|
|
272
272
|
rtn._operationList.forEach((v,i) => {
|
|
273
|
-
if (v.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
router.
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
273
|
+
if (v.modelRouters) {
|
|
274
|
+
v.modelRouters.forEach((f,i2) => {
|
|
275
|
+
var router = Router(f);
|
|
276
|
+
router.is = "ct-btn";
|
|
277
|
+
router.attrs = { size: "mini" }
|
|
278
|
+
if(router.rightField){
|
|
279
|
+
router.show=v[router.rightField];
|
|
280
|
+
}
|
|
281
|
+
if(router.show)rtn._operationList[i].router=router;
|
|
282
|
+
rtn._operationRouters.push(router);
|
|
283
|
+
});
|
|
282
284
|
}
|
|
283
285
|
});
|
|
284
286
|
}
|
|
@@ -296,9 +298,13 @@ const Detail = function (source,para ,callBack) {
|
|
|
296
298
|
|| field.id=='RealLook'
|
|
297
299
|
|| field.id=='StatusAdjust'
|
|
298
300
|
|| field.id=='OperationKey'
|
|
301
|
+
|| field.id=='OperationKeyCommon'
|
|
302
|
+
|| field.id=='OperationKeyPassword'
|
|
299
303
|
|| field.id=='Key'){
|
|
300
304
|
let id=field.id;
|
|
301
|
-
if(field.id=='OperationKey'
|
|
305
|
+
if(field.id=='OperationKey'
|
|
306
|
+
|| field.id=='OperationKeyCommon'
|
|
307
|
+
|| field.id=='OperationKeyPassword'){
|
|
302
308
|
id='Key';
|
|
303
309
|
}
|
|
304
310
|
var advIndex = rtn.tags1.findIndex((v) => {
|
|
@@ -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;
|
package/src/main.js
CHANGED
|
@@ -8,12 +8,12 @@ import App from './App';
|
|
|
8
8
|
import router from './router';
|
|
9
9
|
import centaline from './centaline/index';
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
Vue.use(ElementUI, { size: 'mini'});
|
|
13
12
|
// 关闭生产模式下给出的提示
|
|
14
13
|
Vue.config.productionTip = false;
|
|
15
14
|
Vue.use(centaline, {
|
|
16
|
-
baseUrl:
|
|
15
|
+
baseUrl: "http://10.88.22.46:7070/v1/form/router",
|
|
16
|
+
// baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
|
|
17
17
|
zindex: 999,
|
|
18
18
|
showRequestErrorMessage: true,
|
|
19
19
|
handler: {
|
|
@@ -21,6 +21,12 @@ Vue.use(centaline, {
|
|
|
21
21
|
openTab: function (action) {
|
|
22
22
|
alert("打开tab页:" + action)
|
|
23
23
|
},
|
|
24
|
+
openDetail: function (action) {
|
|
25
|
+
alert("打开tab页:" + action)
|
|
26
|
+
},
|
|
27
|
+
openPropertyDetailRET: function (submitData, pageTitle, parentModel) {
|
|
28
|
+
alert("打开tab页:" + pageTitle)
|
|
29
|
+
},
|
|
24
30
|
// 关闭当前tab
|
|
25
31
|
closeTab: function () {
|
|
26
32
|
alert("关闭当前tab")
|
|
@@ -28,9 +34,10 @@ Vue.use(centaline, {
|
|
|
28
34
|
// 获取请求头
|
|
29
35
|
getRequestHeaders: function () {
|
|
30
36
|
return {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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',
|
|
34
41
|
};
|
|
35
42
|
},
|
|
36
43
|
// 请求完成事件,可判断是否登录过期执行响应操作
|