centaline-data-driven 1.2.12 → 1.2.13
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/build/centaline/webpack.centaline.conf.js +1 -1
- package/package.json +1 -1
- package/src/Detail.vue +2 -2
- package/src/Edit.vue +48 -4
- package/src/Form.vue +6 -22
- package/src/SearchList.vue +2 -4
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicT/src/dynamicT.vue +5 -1
- package/src/centaline/dynamicTree/src/dynamicTreeList.vue +7 -1
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/QuickInputSos.js +127 -0
- package/src/centaline/loader/src/ctl.js +1 -0
- package/src/centaline/quickInput/src/quickInput.vue +2 -2
- package/src/centaline/quickInputSos/src/quickInput.vue +96 -0
- package/src/main.js +5 -12
- package/wwwroot/static/centaline/centaline-data-driven.js +3 -3
- 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/Detail.vue
CHANGED
package/src/Edit.vue
CHANGED
|
@@ -1,27 +1,71 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app">
|
|
3
|
-
|
|
3
|
+
<viewer :images="pics">
|
|
4
|
+
<img v-for="src in pics" :src="src" :key="src">
|
|
5
|
+
</viewer>
|
|
4
6
|
</div>
|
|
5
7
|
|
|
6
8
|
</template>
|
|
7
9
|
|
|
8
10
|
<script>
|
|
9
11
|
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)
|
|
10
16
|
export default {
|
|
11
17
|
name: 'App',
|
|
12
18
|
components: {
|
|
13
|
-
'formListTable': formListTable
|
|
19
|
+
'formListTable': formListTable,
|
|
14
20
|
},
|
|
15
21
|
data() {
|
|
16
22
|
return {
|
|
17
|
-
template: ""
|
|
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
|
+
],
|
|
18
29
|
}
|
|
19
30
|
},
|
|
20
31
|
methods: {
|
|
21
32
|
TestEdit() {
|
|
22
33
|
this.$api.post('http://10.88.22.52:2828//api/values/edit', { content: this.template }, (data) => {
|
|
23
34
|
});
|
|
24
|
-
}
|
|
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
|
+
},
|
|
25
69
|
},
|
|
26
70
|
created() {
|
|
27
71
|
//this.$api.get('http://10.88.22.52:2828//api/values/test', null, (data) => {
|
package/src/Form.vue
CHANGED
|
@@ -1,40 +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="'/roomtype/readDetail'" :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> -->
|
|
13
9
|
<ct-dialog-list></ct-dialog-list>
|
|
14
10
|
</div>
|
|
15
11
|
</template>
|
|
16
12
|
|
|
17
13
|
<script>
|
|
18
14
|
export default {
|
|
19
|
-
name: '
|
|
15
|
+
name: 'App',
|
|
20
16
|
data() {
|
|
21
17
|
return {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
// }
|
|
18
|
+
apiParam: {
|
|
19
|
+
actionType: 2,
|
|
20
|
+
jsonData: {searchFields: {fields: []}}
|
|
21
|
+
},
|
|
38
22
|
}
|
|
39
23
|
},
|
|
40
24
|
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
|
-
|
|
5
|
+
<ct-searchlist :searchConditionApi="'/estatemanage/estatlist/getLayoutOfSearch'" :searchDataApi="'/estatemanage/estatlist/getList'"></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,7 +12,6 @@
|
|
|
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>
|
|
16
15
|
<ct-dialog-list></ct-dialog-list>
|
|
17
16
|
</div>
|
|
18
17
|
</template>
|
|
@@ -24,8 +23,7 @@
|
|
|
24
23
|
data() {
|
|
25
24
|
return {
|
|
26
25
|
//para: { agentId: "1424932685198864386", estateId: "L201402181627000007233", estateName: "271医院宿舍区", pageOnly: "true", pageTitle: "销控房源列表" }
|
|
27
|
-
|
|
28
|
-
para: {paramKey: "PropertyStatusID", code: "002.001", name: "盘源状态", paramName: "盘源状态"}
|
|
26
|
+
para: {}
|
|
29
27
|
}
|
|
30
28
|
},
|
|
31
29
|
mounted() {
|
|
@@ -24,15 +24,19 @@
|
|
|
24
24
|
{{validMessage}}
|
|
25
25
|
</span>
|
|
26
26
|
</transition>
|
|
27
|
-
<
|
|
27
|
+
<ctQuickInputSos v-if="!model.lock && model.paramName" class="ct-flex-div-span" :pn="model.paramName" :action="api" @click="model.value=$event"></ctQuickInputSos>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
</template>
|
|
31
31
|
<script>
|
|
32
32
|
import dynamicElement from '../../mixins/dynamicElement';
|
|
33
|
+
import ctQuickInputSos from '../../quickInputSos/src/quickInput'
|
|
33
34
|
export default {
|
|
34
35
|
name: 'ct-text',
|
|
35
36
|
mixins: [dynamicElement],
|
|
37
|
+
components: {
|
|
38
|
+
'ctQuickInputSos': ctQuickInputSos,
|
|
39
|
+
},
|
|
36
40
|
props: {
|
|
37
41
|
vmodel: Object
|
|
38
42
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<template v-if="pageType=='form'">
|
|
10
10
|
<div style="height: calc(100vh - 120px);">
|
|
11
|
-
<div
|
|
11
|
+
<div class="ct-form" :style="{'width':(width?width+'px':'auto'),'height':(height?height+'px':'auto')}">
|
|
12
12
|
<ct-form :api="formApi" :api-param="apiParam" :width="width" :height="height"></ct-form>
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
@@ -99,4 +99,10 @@
|
|
|
99
99
|
#app-Tree .el-main .ct-table-content {
|
|
100
100
|
padding: 0;
|
|
101
101
|
}
|
|
102
|
+
|
|
103
|
+
#app-Tree .el-main ct-form{border: 1px solid #cfcece;
|
|
104
|
+
-webkit-box-shadow: #cfcece 0px 7px 9px 0px!important;
|
|
105
|
+
border-radius: 6px !important;
|
|
106
|
+
margin-top: 14px;}
|
|
107
|
+
|
|
102
108
|
</style>
|
|
@@ -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;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import base from '../../index';
|
|
2
|
+
import Base from './Base';
|
|
3
|
+
import valid from '../../../validate/index';
|
|
4
|
+
import Axios from 'axios';
|
|
5
|
+
import common from '../../../common';
|
|
6
|
+
import Vue from 'vue';
|
|
7
|
+
const QuickInput = function (source, moreActionRouter) {
|
|
8
|
+
var rtn = {
|
|
9
|
+
options: [{ code: source.code1, name: source.name1 }],
|
|
10
|
+
get text() {
|
|
11
|
+
if (source.isList && source.name1 && rtn.attrs.placeholder && rtn.displayLabelAfterSelected) {
|
|
12
|
+
return rtn.attrs.placeholder + ":" + source.name1;
|
|
13
|
+
}
|
|
14
|
+
return source.name1;
|
|
15
|
+
},
|
|
16
|
+
set text(v) {
|
|
17
|
+
if(source.displayName1)
|
|
18
|
+
{
|
|
19
|
+
source.displayName1 = v;
|
|
20
|
+
}else
|
|
21
|
+
{
|
|
22
|
+
source.name1 = v;
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
get optionColCount() {
|
|
26
|
+
return parseInt(source.optCount) || 5;
|
|
27
|
+
},
|
|
28
|
+
set optionColCount(v) {
|
|
29
|
+
source.optCount = v;
|
|
30
|
+
},
|
|
31
|
+
get parentName() {
|
|
32
|
+
return source.parentField;
|
|
33
|
+
},
|
|
34
|
+
reset() {
|
|
35
|
+
this.value = this.defaultValue;
|
|
36
|
+
this.text = this.defaultText;
|
|
37
|
+
},
|
|
38
|
+
defaultText: source.defaultName1,
|
|
39
|
+
get labelValue() {
|
|
40
|
+
if (source.name1) {
|
|
41
|
+
return source.name1;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
optionAttrs: {
|
|
48
|
+
value: 'code',
|
|
49
|
+
label: 'name',
|
|
50
|
+
displayLabel:'displayName',
|
|
51
|
+
actionType: 'actionType',
|
|
52
|
+
flagDeleted: 'flagDeleted'
|
|
53
|
+
},
|
|
54
|
+
attrs: {
|
|
55
|
+
style: {
|
|
56
|
+
width: '100%'
|
|
57
|
+
},
|
|
58
|
+
clearable: true,
|
|
59
|
+
filterable: true,
|
|
60
|
+
remote: true
|
|
61
|
+
},
|
|
62
|
+
apiParams: {
|
|
63
|
+
paramName: 'k',
|
|
64
|
+
parentName: 'pk',
|
|
65
|
+
parentValue: 'pv',
|
|
66
|
+
search: 't'
|
|
67
|
+
},
|
|
68
|
+
get clearable() {
|
|
69
|
+
if (typeof source.clear === 'undefined') {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
if (source.clear) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
set clearable(v) {
|
|
80
|
+
source.clear = v;
|
|
81
|
+
},
|
|
82
|
+
get searchTick() {
|
|
83
|
+
return parseInt(source.searchTick) || 250;
|
|
84
|
+
},
|
|
85
|
+
set searchTick(v) {
|
|
86
|
+
source.searchTick = v;
|
|
87
|
+
},
|
|
88
|
+
getOptions(paramsAction,key) {
|
|
89
|
+
var self = this;
|
|
90
|
+
var apiAddrs = paramsAction || this.api;
|
|
91
|
+
var params = {
|
|
92
|
+
action: apiAddrs,
|
|
93
|
+
para: {
|
|
94
|
+
paramName: self.paramName,
|
|
95
|
+
parentValue: rtn.getFormParentFieldPara(),
|
|
96
|
+
key: key,
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
Vue.prototype.$api.postHandler(common.globalUri(), params).then((response) => {
|
|
100
|
+
if (response.rtnCode === 200) {
|
|
101
|
+
self.options = response.content;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
moreActionRouter: moreActionRouter,//更多高级查询
|
|
106
|
+
//弹出SearchList类型,0不弹框,1点按钮弹框,2直接点搜索框弹框
|
|
107
|
+
get popupSearchListType() {
|
|
108
|
+
if (moreActionRouter) {
|
|
109
|
+
return 1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return 0;
|
|
113
|
+
},
|
|
114
|
+
get moreActionBtnName() {
|
|
115
|
+
if (moreActionRouter) {
|
|
116
|
+
return moreActionRouter.label;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return null;
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
rtn = base.copy(Base(source), rtn);
|
|
123
|
+
rtn = base.copy(rtn, valid.Init(rtn));
|
|
124
|
+
return rtn;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export default QuickInput;
|
|
@@ -35,6 +35,7 @@ const loader = {
|
|
|
35
35
|
Detail: require("./ctl/Detail.js").default,
|
|
36
36
|
PhotoSelect: require("./ctl/PhotoSelect.js").default,
|
|
37
37
|
PhotoSelectList: require("./ctl/PhotoSelectList.js").default,
|
|
38
|
+
QuickInputSos: require("./ctl/QuickInputSos.js").default,
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
export default loader;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<el-dropdown @command="handleCommand" @visible-change="getOptions">
|
|
4
4
|
<i class="el-icon-more"></i>
|
|
5
5
|
<el-dropdown-menu ref="dropdown" slot="dropdown">
|
|
6
|
-
<el-dropdown-item v-for="(op, index) in options" :key="index" :command="op.
|
|
6
|
+
<el-dropdown-item v-for="(op, index) in options" :key="index" :command="op.code">{{op.name}}</el-dropdown-item>
|
|
7
7
|
</el-dropdown-menu>
|
|
8
8
|
</el-dropdown>
|
|
9
9
|
</div>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
var params = {
|
|
31
31
|
action: this.action,
|
|
32
32
|
para: {
|
|
33
|
-
paramName: this.
|
|
33
|
+
paramName: this.pn
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
this.$api.postHandler(this.$common.globalUri(), params).then((response) => {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ct-quickInput">
|
|
3
|
+
|
|
4
|
+
<el-popover ref="pop" placement="bottom-start" v-model="showDrop" trigger="click">
|
|
5
|
+
<div>
|
|
6
|
+
<div>
|
|
7
|
+
<el-input ref="searchInput" size="mini" suffix-icon="el-icon-search" v-model="searchText" @input="searchInputHandle"></el-input>
|
|
8
|
+
</div>
|
|
9
|
+
<ctSelectOptionVertical :model="model" @click="selectOption($event)"></ctSelectOptionVertical>
|
|
10
|
+
</div>
|
|
11
|
+
<i slot="reference" class="el-icon-more"></i>
|
|
12
|
+
</el-popover>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
<script>
|
|
16
|
+
|
|
17
|
+
import selectOption from '../../selectOption/src/selectOption'
|
|
18
|
+
import dynamicElement from '../../mixins/dynamicElement'
|
|
19
|
+
import ctSelectOptionVertical from '../../selectOption/src/selectOptionVertical'
|
|
20
|
+
export default {
|
|
21
|
+
name: 'ctQuickInput',
|
|
22
|
+
mixins: [dynamicElement],
|
|
23
|
+
props: {
|
|
24
|
+
pn: String,
|
|
25
|
+
action: String
|
|
26
|
+
},
|
|
27
|
+
components: {
|
|
28
|
+
'ctSelectOption': selectOption,
|
|
29
|
+
'ctSelectOptionVertical': ctSelectOptionVertical
|
|
30
|
+
},
|
|
31
|
+
created() {
|
|
32
|
+
let that=this;
|
|
33
|
+
if (typeof this.vmodel === 'undefined') {
|
|
34
|
+
this.model = this.loaderObj.QuickInputSos(
|
|
35
|
+
{
|
|
36
|
+
code1:'',
|
|
37
|
+
name1:'',
|
|
38
|
+
paramName1:that.pn,
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
this.model = this.vmodel;
|
|
44
|
+
}
|
|
45
|
+
this.searchInputHandle();
|
|
46
|
+
},
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
options:[],
|
|
50
|
+
searchText: "",
|
|
51
|
+
showDrop: false,
|
|
52
|
+
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
methods: {
|
|
56
|
+
|
|
57
|
+
getOptions: function () {
|
|
58
|
+
var self = this;
|
|
59
|
+
this.model.getOptions(this.action, self.searchText);
|
|
60
|
+
|
|
61
|
+
},
|
|
62
|
+
searchInputHandle: function () {
|
|
63
|
+
var currentSeatch = this.searchText;
|
|
64
|
+
this.searchTickControl(currentSeatch);
|
|
65
|
+
},
|
|
66
|
+
searchTickControl: function (search) {
|
|
67
|
+
var self = this;
|
|
68
|
+
setTimeout(function () {
|
|
69
|
+
if (search === self.searchText) {
|
|
70
|
+
self.getOptions(self.searchText);
|
|
71
|
+
}
|
|
72
|
+
}, self.model.searchTick);
|
|
73
|
+
},
|
|
74
|
+
selectOption(value) {
|
|
75
|
+
if (this.model.value === value) {
|
|
76
|
+
this.$set(this, 'showDrop', false);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
this.model.value = value;
|
|
81
|
+
}
|
|
82
|
+
this.$set(this, 'showDrop', false);
|
|
83
|
+
this.$emit('click', value);
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
mounted() {
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
</script>
|
|
91
|
+
<style>
|
|
92
|
+
.ct-quickInput .el-icon-more:hover {
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
color: #409EFF;
|
|
95
|
+
}
|
|
96
|
+
</style>
|
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
|
+
|
|
11
12
|
Vue.use(ElementUI, { size: 'mini'});
|
|
12
13
|
// 关闭生产模式下给出的提示
|
|
13
14
|
Vue.config.productionTip = false;
|
|
14
15
|
Vue.use(centaline, {
|
|
15
|
-
baseUrl:
|
|
16
|
-
// baseUrl: "http://tjcptest.centaline.com.cn/v1/form/router",
|
|
16
|
+
baseUrl: 'http://10.88.22.67:9999/v1/form/router',
|
|
17
17
|
zindex: 999,
|
|
18
18
|
showRequestErrorMessage: true,
|
|
19
19
|
handler: {
|
|
@@ -21,12 +21,6 @@ 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
|
-
},
|
|
30
24
|
// 关闭当前tab
|
|
31
25
|
closeTab: function () {
|
|
32
26
|
alert("关闭当前tab")
|
|
@@ -34,10 +28,9 @@ Vue.use(centaline, {
|
|
|
34
28
|
// 获取请求头
|
|
35
29
|
getRequestHeaders: function () {
|
|
36
30
|
return {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjE0NmU5ZjEzLTVjMmYtNGVlMy1hM2U5LWIxM2QyZThjZTBhZSJ9.Gl8K5lbG7t5DyCqouu7Ux7Oh9xuAxqdOXr4JnoHCN-YwC3b2zPO-C2sHbYJUZHYQPa7kTNRmg1xJiwugpVo5Xw',
|
|
31
|
+
Authorization: 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJhMjA1MWJmLTM3MTQtNGQ2Yi1iMmMzLTM0YzBlOWE4ZjBiNSJ9.Aery7bMGAE_HTh1yX3vFFczELt0dB97ca5jwXXcp8hdhJ_2o8XTrQi314GVz4YoM2dfh8i9qFiU0FCr7TJgZyA',
|
|
32
|
+
originalRequestURL: 'http://10.88.23.22:9999',
|
|
33
|
+
EstateInfo: '{"estateId":"201509230915485D942241BBA30FF49F","estateName":"A-%E7%88%B1%E7%90%B4%E6%B5%B7B%E7%BB%84"}'
|
|
41
34
|
};
|
|
42
35
|
},
|
|
43
36
|
// 请求完成事件,可判断是否登录过期执行响应操作
|