centaline-data-driven 1.6.71 → 1.6.73

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.
@@ -1,112 +1,227 @@
1
1
  <template>
2
2
  <div class="ct-form-list" v-focus="foucus">
3
- <!-- :class="{'tableDisabled':model.tableDisabled}" -->
4
- <div v-if="model.title" class="list-title">
5
- <h5>{{model.title}}</h5>
6
- </div>
7
- <div v-else-if="model.create || (model.selectRouter && model.selectRouter.id) || model.toolButtonsShow.length>0" class="list-title"></div>
8
- <div class="list-button">
9
- <template v-if="!model.tableDisabled">
10
- <ul>
11
- <li v-for="(v,i) in model.toolButtonsShow" >
12
- <component :is="v.is" :vmodel="v" :parentModel="model" @click="toolButtonsClick" @importComplete="importComplete" @change="toolButtonsChangeHandler(v,$event)"></component>
13
- </li>
14
- <li v-if="model.selectRouter!==null">
15
- <component :is="model.selectRouter.is" :vmodel="model.selectRouter" @click="popupSearchListHandle" ></component>
16
- </li>
17
- <li v-if="model.create" >
18
- <el-button :disabled="model.disabled" type="success" class="max-btn-add" style="width: auto;" size="mini" icon="el-icon-circle-plus-outline" @click="addRow">
19
- {{model.createText}}
20
- </el-button>
21
- </li>
22
- </ul>
23
- </template>
24
- </div>
25
-
26
- <div id="listTable">
27
- <el-row>
28
- <el-col :span="24">
29
- <el-table size="mini" class="max-table--border" :data="model.tableData" border
30
- style="width: 100%" highlight-current-row :show-summary="model.showSummary" :summary-method="getSummaries">
31
- <!--操作列-->
32
- <template v-if="model.rowActionRoutersAlign === 1">
33
- <el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
34
- <template slot-scope="scope">
35
- <template v-if="!model.tableDisabled">
36
- <span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
37
- {{scope.row.isSet?'保存':"修改"}}
38
- </span>
39
- <span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
40
- 删除
41
- </span>
42
- <span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
43
- 取消
44
- </span>
45
- <span v-for="(v,i) in model.buttons"
46
- v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
47
- class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
48
- {{v.label}}
49
- </span>
50
- </template>
51
- </template>
52
- </el-table-column>
3
+ <el-collapse v-if="model.flagCollapse" v-model="activeName" :class="'el-collapse-saveLine'">
4
+ <el-collapse-item :key="collapseIndex" :title="model.title" :name="model.title"
5
+ :disabled="model.tableDisabled" :class="model.tableDisabled ? 'ct-collapse-item-title' : ''">
6
+ <template slot="title">
7
+ <i class="sign"></i>
8
+ <span>{{ model.title }}</span>
9
+ </template>
10
+ <el-row>
11
+ <div class="list-button">
12
+ <template v-if="!model.tableDisabled">
13
+ <ul>
14
+ <li v-for="(v,i) in model.toolButtonsShow" >
15
+ <component :is="v.is" :vmodel="v" :parentModel="model" @click="toolButtonsClick" @importComplete="importComplete" @change="toolButtonsChangeHandler(v,$event)"></component>
16
+ </li>
17
+ <li v-if="model.selectRouter!==null">
18
+ <component :is="model.selectRouter.is" :vmodel="model.selectRouter" @click="popupSearchListHandle" ></component>
19
+ </li>
20
+ <li v-if="model.create" >
21
+ <el-button :disabled="model.disabled" type="success" class="max-btn-add" style="width: auto;" size="mini" icon="el-icon-circle-plus-outline" @click="addRow">
22
+ {{model.createText}}
23
+ </el-button>
24
+ </li>
25
+ </ul>
53
26
  </template>
27
+ </div>
54
28
 
55
- <!--数据列-->
56
- <el-table-column v-for="(v,i) in model.rows[0].field" :key="i" :prop="v.id" :label="v.label" :width="v.width" :fixed="model.frozenColumns.includes(v.id)" v-if="v.show !== false && v.type!==13" :render-header="renderHeader" :min-width="tableColumnWith">
57
- <template slot="header" slot-scope="scope">
58
- <div :class="[{'ct-table-required':v.required&&model.rows[0].edit&& model.rows[0].delete&&!model.tableDisabled},getHeadClass(v)]">
59
- {{v.label}}
60
- </div>
61
- </template>
62
- <template slot-scope="scope">
63
- <span v-if="scope.row.isSet">
64
- <component ref="Fields" :is="model.currentRow.data[v.id].locked || model.currentRow.data[v.id].is!==v.is?model.currentRow.data[v.id].is:v.is"
65
- :vmodel="model.currentRow.data[v.id]" :api="model.OptApi" :key="model.currentRow.data[v.id].rowKey+itemKey"
66
- @change="changeHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"
67
- @input="inputHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"></component>
68
- </span>
69
- <span v-else-if="v.is=='ct-sensitiveeye'">
70
- <component ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :vrowmodel="scope.row" :api="model.OptApi" :key="itemKey"></component>
71
- </span>
72
- <!--可点击的列-->
73
- <span v-else-if="v.router" :class="'cell'" style="display: flex;">
74
- <ct-tablecurrency :router="v.router" :colValue="scope.row[v.id].code1" :rowData="scope.row" @click="rolRouterClickHandler">
75
- </ct-tablecurrency>
76
- </span>
77
- <ct-span v-else :vmodel="scope.row[v.id]" :rowNum="scope.row.$sourceIndex" :rowData="scope.row" :key="scope.row[v.id].rowKey+itemKey" ref="FieldsLabel"></ct-span>
29
+ <div id="listTable">
30
+ <el-row>
31
+ <el-col :span="24">
32
+ <el-table size="mini" class="max-table--border" :data="model.tableData" border
33
+ style="width: 100%" highlight-current-row :show-summary="model.showSummary" :summary-method="getSummaries">
34
+ <!--操作列-->
35
+ <template v-if="model.rowActionRoutersAlign === 1">
36
+ <el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
37
+ <template slot-scope="scope">
38
+ <template v-if="!model.tableDisabled">
39
+ <span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
40
+ {{scope.row.isSet?'保存':"修改"}}
41
+ </span>
42
+ <span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
43
+ 删除
44
+ </span>
45
+ <span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
46
+ 取消
47
+ </span>
48
+ <span v-for="(v,i) in model.buttons"
49
+ v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
50
+ class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
51
+ {{v.label}}
52
+ </span>
53
+ </template>
54
+ </template>
55
+ </el-table-column>
56
+ </template>
57
+
58
+ <!--数据列-->
59
+ <el-table-column v-for="(v,i) in model.rows[0].field" :key="i" :prop="v.id" :label="v.label" :width="v.width" :fixed="model.frozenColumns.includes(v.id)" v-if="v.show !== false && v.type!==13" :render-header="renderHeader" :min-width="tableColumnWith">
60
+ <template slot="header" slot-scope="scope">
61
+ <div :class="[{'ct-table-required':v.required&&model.rows[0].edit&& model.rows[0].delete&&!model.tableDisabled},getHeadClass(v)]">
62
+ {{v.label}}
63
+ </div>
64
+ </template>
65
+ <template slot-scope="scope">
66
+ <span v-if="scope.row.isSet">
67
+ <component ref="Fields" :is="model.currentRow.data[v.id].locked || model.currentRow.data[v.id].is!==v.is?model.currentRow.data[v.id].is:v.is"
68
+ :vmodel="model.currentRow.data[v.id]" :api="model.OptApi" :key="model.currentRow.data[v.id].rowKey+itemKey"
69
+ @change="changeHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"
70
+ @input="inputHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"></component>
71
+ </span>
72
+ <span v-else-if="v.is=='ct-sensitiveeye'">
73
+ <component ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :vrowmodel="scope.row" :api="model.OptApi" :key="itemKey"></component>
74
+ </span>
75
+ <!--可点击的列-->
76
+ <span v-else-if="v.router" :class="'cell'" style="display: flex;">
77
+ <ct-tablecurrency :router="v.router" :colValue="scope.row[v.id].code1" :rowData="scope.row" @click="rolRouterClickHandler">
78
+ </ct-tablecurrency>
79
+ </span>
80
+ <ct-span v-else :vmodel="scope.row[v.id]" :rowNum="scope.row.$sourceIndex" :rowData="scope.row" :key="scope.row[v.id].rowKey+itemKey" ref="FieldsLabel"></ct-span>
81
+ </template>
82
+ </el-table-column>
83
+
84
+ <!--操作列-->
85
+ <template v-if="model.rowActionRoutersAlign !== 1">
86
+ <el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
87
+ <template slot-scope="scope">
88
+ <template v-if="!model.tableDisabled">
89
+ <span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
90
+ {{scope.row.isSet?'保存':"修改"}}
91
+ </span>
92
+ <span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
93
+ 删除
94
+ </span>
95
+ <span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
96
+ 取消
97
+ </span>
98
+ <span v-for="(v,i) in model.buttons"
99
+ v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
100
+ class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
101
+ {{v.label}}
102
+ </span>
103
+ </template>
104
+ </template>
105
+ </el-table-column>
106
+ </template>
107
+ </el-table>
108
+ </el-col>
109
+ </el-row>
110
+ </div>
111
+
112
+ <div v-if="model.description" v-html="model.description"></div>
113
+ </el-row>
114
+ </el-collapse-item>
115
+ </el-collapse>
116
+
117
+ <template v-else>
118
+ <div v-if="model.title" class="list-title">
119
+ <h5>{{model.title}}</h5>
120
+ </div>
121
+ <div v-else-if="model.create || (model.selectRouter && model.selectRouter.id) || model.toolButtonsShow.length>0" class="list-title"></div>
122
+ <div class="list-button">
123
+ <template v-if="!model.tableDisabled">
124
+ <ul>
125
+ <li v-for="(v,i) in model.toolButtonsShow" >
126
+ <component :is="v.is" :vmodel="v" :parentModel="model" @click="toolButtonsClick" @importComplete="importComplete" @change="toolButtonsChangeHandler(v,$event)"></component>
127
+ </li>
128
+ <li v-if="model.selectRouter!==null">
129
+ <component :is="model.selectRouter.is" :vmodel="model.selectRouter" @click="popupSearchListHandle" ></component>
130
+ </li>
131
+ <li v-if="model.create" >
132
+ <el-button :disabled="model.disabled" type="success" class="max-btn-add" style="width: auto;" size="mini" icon="el-icon-circle-plus-outline" @click="addRow">
133
+ {{model.createText}}
134
+ </el-button>
135
+ </li>
136
+ </ul>
137
+ </template>
138
+ </div>
139
+
140
+ <div id="listTable">
141
+ <el-row>
142
+ <el-col :span="24">
143
+ <el-table size="mini" class="max-table--border" :data="model.tableData" border
144
+ style="width: 100%" highlight-current-row :show-summary="model.showSummary" :summary-method="getSummaries">
145
+ <!--操作列-->
146
+ <template v-if="model.rowActionRoutersAlign === 1">
147
+ <el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
148
+ <template slot-scope="scope">
149
+ <template v-if="!model.tableDisabled">
150
+ <span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
151
+ {{scope.row.isSet?'保存':"修改"}}
152
+ </span>
153
+ <span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
154
+ 删除
155
+ </span>
156
+ <span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
157
+ 取消
158
+ </span>
159
+ <span v-for="(v,i) in model.buttons"
160
+ v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
161
+ class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
162
+ {{v.label}}
163
+ </span>
164
+ </template>
165
+ </template>
166
+ </el-table-column>
78
167
  </template>
79
- </el-table-column>
80
168
 
81
- <!--操作列-->
82
- <template v-if="model.rowActionRoutersAlign !== 1">
83
- <el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
84
- <template slot-scope="scope">
85
- <template v-if="!model.tableDisabled">
86
- <span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
87
- {{scope.row.isSet?'保存':"修改"}}
88
- </span>
89
- <span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
90
- 删除
91
- </span>
92
- <span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
93
- 取消
94
- </span>
95
- <span v-for="(v,i) in model.buttons"
96
- v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
97
- class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
98
- {{v.label}}
99
- </span>
169
+ <!--数据列-->
170
+ <el-table-column v-for="(v,i) in model.rows[0].field" :key="i" :prop="v.id" :label="v.label" :width="v.width" :fixed="model.frozenColumns.includes(v.id)" v-if="v.show !== false && v.type!==13" :render-header="renderHeader" :min-width="tableColumnWith">
171
+ <template slot="header" slot-scope="scope">
172
+ <div :class="[{'ct-table-required':v.required&&model.rows[0].edit&& model.rows[0].delete&&!model.tableDisabled},getHeadClass(v)]">
173
+ {{v.label}}
174
+ </div>
100
175
  </template>
176
+ <template slot-scope="scope">
177
+ <span v-if="scope.row.isSet">
178
+ <component ref="Fields" :is="model.currentRow.data[v.id].locked || model.currentRow.data[v.id].is!==v.is?model.currentRow.data[v.id].is:v.is"
179
+ :vmodel="model.currentRow.data[v.id]" :api="model.OptApi" :key="model.currentRow.data[v.id].rowKey+itemKey"
180
+ @change="changeHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"
181
+ @input="inputHandler(model.currentRow.data[v.id], model.currentRow.data.$sourceIndex)"></component>
182
+ </span>
183
+ <span v-else-if="v.is=='ct-sensitiveeye'">
184
+ <component ref="Fields" :is="v.is" :vmodel="scope.row[v.id]" :vrowmodel="scope.row" :api="model.OptApi" :key="itemKey"></component>
185
+ </span>
186
+ <!--可点击的列-->
187
+ <span v-else-if="v.router" :class="'cell'" style="display: flex;">
188
+ <ct-tablecurrency :router="v.router" :colValue="scope.row[v.id].code1" :rowData="scope.row" @click="rolRouterClickHandler">
189
+ </ct-tablecurrency>
190
+ </span>
191
+ <ct-span v-else :vmodel="scope.row[v.id]" :rowNum="scope.row.$sourceIndex" :rowData="scope.row" :key="scope.row[v.id].rowKey+itemKey" ref="FieldsLabel"></ct-span>
101
192
  </template>
102
193
  </el-table-column>
103
- </template>
104
- </el-table>
105
- </el-col>
106
- </el-row>
107
- </div>
108
194
 
109
- <div v-if="model.description" v-html="model.description"></div>
195
+ <!--操作列-->
196
+ <template v-if="model.rowActionRoutersAlign !== 1">
197
+ <el-table-column label="操作" v-if="model.rows[0].edit || model.rows[0].delete || (model.buttons.length > 0 && model.buttonsShow.length > 0)" :fixed="fixedButtons" :width="'100%'" :render-header="renderHeader" :min-width="tableColumnWith">
198
+ <template slot-scope="scope">
199
+ <template v-if="!model.tableDisabled">
200
+ <span v-if="scope.row.edit || scope.row.isSet" class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,true)">
201
+ {{scope.row.isSet?'保存':"修改"}}
202
+ </span>
203
+ <span v-if="scope.row.delete && !scope.row.isSet" class="el-tag el-tag--danger el-tag--mini" style="cursor: pointer;" @click="deleteRow(scope.$index, scope.row.$sourceIndex)">
204
+ 删除
205
+ </span>
206
+ <span v-else-if="scope.row.isSet" class="el-tag el-tag--mini" style="cursor: pointer;" @click="saveRow(scope.row,scope.$index,false)">
207
+ 取消
208
+ </span>
209
+ <span v-for="(v,i) in model.buttons"
210
+ v-if="!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 )"
211
+ class="el-tag el-tag--info el-tag--mini" style="cursor: pointer;" @click="buttonClick(scope.row, v)">
212
+ {{v.label}}
213
+ </span>
214
+ </template>
215
+ </template>
216
+ </el-table-column>
217
+ </template>
218
+ </el-table>
219
+ </el-col>
220
+ </el-row>
221
+ </div>
222
+
223
+ <div v-if="model.description" v-html="model.description"></div>
224
+ </template>
110
225
  </div>
111
226
  </template>
112
227
  <script>
@@ -208,6 +323,8 @@
208
323
  itemKey: Math.random(),
209
324
  tableColumnWith: 0,
210
325
  fixedButtons:false,
326
+ collapseIndex:0,
327
+ activeName:'',
211
328
  }
212
329
  },
213
330
  created() {
@@ -215,6 +332,7 @@
215
332
  this.model = this.vmodel;
216
333
  this.model.OptApi = this.api;
217
334
  this.model.$self=self;
335
+ if(this.model.groupExpand) this.activeName = this.model.title;
218
336
 
219
337
  this.$nextTick(function () {
220
338
  self.model.refField = this.$refs.Fields;
@@ -538,6 +656,9 @@
538
656
  </script>
539
657
 
540
658
  <style>
659
+ .el-collapse-saveLine .el-collapse-item__wrap {
660
+ border-bottom: none;
661
+ }
541
662
  .el-table-add-row {
542
663
  margin-top: 10px;
543
664
  width: 100%;
@@ -1192,9 +1192,9 @@ export default {
1192
1192
  submitData.columnGroupId=columnGroupId;
1193
1193
  }
1194
1194
 
1195
- this.routerClickHandler(field, submitData, action);
1195
+ this.routerClickHandler(field, submitData, action, rowindex);
1196
1196
  },
1197
- routerClickHandler(field, submitData, action) {
1197
+ routerClickHandler(field, submitData, action, rowindex) {
1198
1198
  let self = this;
1199
1199
  action = action || field.action;
1200
1200
  var clickAcion = function () {
@@ -1710,6 +1710,9 @@ export default {
1710
1710
  }
1711
1711
  else {
1712
1712
  self.operationLoading = true;
1713
+ if(rowindex!=undefined && rowindex!=null && self.$refs["router"+ field.id + rowindex] && self.$refs["router"+ field.id + rowindex][0]){
1714
+ self.$refs["router"+ field.id + rowindex][0].disabled=true;
1715
+ }
1713
1716
  field.doAction(submitData, (data) => {
1714
1717
  self.operationLoading = false;
1715
1718
  if (field.isCallTel) {
@@ -1753,6 +1756,9 @@ export default {
1753
1756
  }
1754
1757
 
1755
1758
  }
1759
+ if(rowindex!=undefined && rowindex!=null && self.$refs["router"+ field.id + rowindex] && self.$refs["router"+ field.id + rowindex][0]){
1760
+ self.$refs["router"+ field.id + rowindex][0].disabled=false;
1761
+ }
1756
1762
  });
1757
1763
  }
1758
1764
  }
@@ -448,6 +448,9 @@ const Base = function (source) {
448
448
  set displayRelationFieldValue(v) {
449
449
  source.displayRelationFieldValue = v;
450
450
  },
451
+ get flagCollapse() {
452
+ return source.flagCollapse || false;
453
+ },
451
454
  };
452
455
 
453
456
  return rtn;
@@ -90,7 +90,10 @@ const Dtd = function (source, dateType) {
90
90
  },
91
91
  //'value-format': 'yyyy-MM-dd',
92
92
  align: 'left'
93
- }
93
+ },
94
+ get selectItems1() {
95
+ return source.selectItems1;
96
+ },
94
97
  };
95
98
  rtn = base.copy(Base(data), rtn);
96
99
  rtn = base.copy(rtn, valid.Init(rtn));
@@ -41,6 +41,15 @@ const FormList = function (source, master) {
41
41
  get title() {
42
42
  return master.controlLabel || '';
43
43
  },
44
+ set title(v) {
45
+ master.controlLabel = v;
46
+ },
47
+ get flagCollapse() {
48
+ return master.flagCollapse || false;
49
+ },
50
+ get groupExpand() {
51
+ return master.groupExpand === true;
52
+ },
44
53
  get description() {
45
54
  return master.description || '';
46
55
  },
@@ -694,7 +694,7 @@ const SearchTable = function (data, callBack, searchModel, flagSearch, defaultSe
694
694
  rtn.dataDictionary[row[rtn.primaryKey]][vkey] = row[vkey];
695
695
  }
696
696
  for (var vkey in rtn.dataDictionary[row[rtn.primaryKey]]) {
697
- rtn.dataDictionary[row[rtn.primaryKey]][vkey] = row[vkey] || '';
697
+ rtn.dataDictionary[row[rtn.primaryKey]][vkey] = row[vkey]!=undefined && row[vkey]!=null ? row[vkey] : '' ;
698
698
  }
699
699
  });
700
700
  if (rtn.cellLayout) {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="isOperationalColumn?'subdiv_allinline':''" v-if="isShowLabel" @click="isOperationalColumn?clickHandler($event):null">
2
+ <div :class="{'subdiv_allinline':isOperationalColumn, 'domDisabled': disabled}" v-if="isShowLabel" @click="isOperationalColumn?clickHandler($event):null">
3
3
  <div v-if="isShowVoice" style="line-height: 16px;padding-top: 3px;">
4
4
  <video ref="video" v-if="rowData[router.submitFormField] && (!router.rightField || rowData[router.rightField] == 1)"
5
5
  :src="rowData[router.submitFormField]" controls="true" controlslist="nodownload"
@@ -88,6 +88,7 @@
88
88
  data() {
89
89
  return {
90
90
  visible:false,
91
+ disabled:false,
91
92
  listenSeconds:-1,
92
93
  option: {
93
94
  isHidden: true,//是否开启操作栏隐藏设置,默认开启
package/src/main.js CHANGED
@@ -5,7 +5,7 @@ import ElementUI from 'element-ui';
5
5
  import 'element-ui/lib/theme-chalk/index.css';
6
6
  import './centaline/css/common.css'
7
7
  import './centaline/css/max.css'
8
- // import './centaline/css/ccai.css'
8
+ import './centaline/css/ccai.css'
9
9
  import App from './App';
10
10
  import router from './router';
11
11
  import centaline from './centaline/index';
@@ -16,29 +16,31 @@ Vue.config.productionTip = false;
16
16
  Vue.use(centaline, {
17
17
  // baseUrl: "http://10.88.22.46:17070/max-uplink-api/",
18
18
  // baseUrl: "http://10.88.22.46:9004/max-uplink-api/",
19
+ // baseUrl: "http://10.88.22.13:9004/max-uplink-api/",
20
+ // baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
21
+ // baseUrl: "http://10.28.21.164:9004/max-uplink-api/",
22
+ // baseUrl:"http://szamaxbusiness-api-test2.centaline.com.cn/max-uplink-api/",
23
+ // baseUrl: "http://10.88.22.13:7070/onecard-api/",
24
+ // baseUrl: "https://kq-api.centaline.com.cn/onecard-api/"
19
25
  // baseUrl: "http://10.88.22.46:6060/onecard-api/",
20
26
  baseUrl: "http://10.88.22.46:9999/service-api/",
21
27
  // baseUrl: "http://10.88.22.46:20808/service-api",
22
28
  // baseUrl: "http://10.88.22.42:9999/service-api/",
29
+ // baseUrl: "http://10.25.10.63:9999/service-api/",
30
+ // baseUrl: "http://10.25.10.67:9999/service-api/",
31
+ // baseUrl: "http://10.1.245.111:38908/service-api/",
32
+ // baseUrl: "http://10.1.245.111:31574/service-api/",
33
+ // baseUrl: "https://ccesusj.centaline.com.cn/service-api/",
23
34
  // baseUrl: "http://10.88.22.46:22324/service-api/v1/form/router",
24
35
  // baseUrl: "http://10.25.10.67:8999/service-api/v1/form/router",
25
36
  // baseUrl: "http://10.88.22.46:8999/service-api/v1/form/router",
26
- // baseUrl: "http://10.88.22.13:17070/max-uplink-api/",
27
- // baseUrl: "http://10.88.22.13:7080/ibs-api/",
28
- // baseUrl: "http://10.88.22.13:9004/max-uplink-api/",
29
- // baseUrl:"http://szamaxbusiness-api-test2.centaline.com.cn/max-uplink-api/",
30
- // baseUrl: "http://10.88.22.13:7070/onecard-api/",
31
37
  // baseUrl: "http://10.6.1.163:9000/max-uplink-api/v1/form/router",
32
- // baseUrl: "http://10.28.21.164:9004/max-uplink-api/",
33
- // baseUrl: "http://10.25.10.63:9999/service-api/",
34
- // baseUrl: "http://10.25.10.67:9999/service-api/",
35
- // baseUrl: "http://10.25.10.69:8080/",
36
38
  // baseUrl: "https://ccesutest.centaline.com.cn/service-api/v1/form/router",
37
- // baseUrl: "http://10.88.22.69:8080/",
38
- // baseUrl: "http://10.1.245.111:38908/service-api/",
39
- // baseUrl: "http://10.1.245.111:31574/service-api/",
39
+ // baseUrl: "http://10.25.10.69:8080/",
40
+ // baseUrl: "http://10.1.245.111:37728/",
40
41
  // baseUrl: "https://tjcptest.centaline.com.cn/",
41
- // baseUrl: "https://shccai.centaline.com.cn/api/",
42
+ // baseUrl: "https://shccai.centaline.com.cn/",
43
+ // baseUrl: "http://10.88.22.13:7080/ibs-api/",
42
44
  //   baseUrl:"http://10.88.22.66/IBS.Mvc/api/",
43
45
  flagRouterSelf: true,
44
46
  zindex: 999,
@@ -71,9 +73,9 @@ Vue.use(centaline, {
71
73
  // 获取请求头
72
74
  getRequestHeaders: function (action) {
73
75
  return {
74
- // oldToken: '1094eb9c-0ec7-4fcf-952f-7fc4258ca3b0',
76
+ oldToken: '7ba4b6b9-62d1-455c-a99f-6bb302e894c7',
75
77
  // token:'aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjksOwjAMBe-SdS05tuPE7PpJNhwCBWglWCHaSiDE3SniEGznjfTm5eb16HYuIUWltoc-sYKkYGDcF_ApGWYzjrE_CHOHKANQxAJSYgYTCYBoahaC0qAHJc6lbRW8bLuUbpNIBDS3QTJhZiHXuPFxczsfmXxCJG3cpS4_gMb6Bes83vfj8x9x1-Wy3eJ48seQJuCaziATTWDRIlSazCNrlerd-wMAAP__.93H7c7k4TLTqbKpozp0aTSU4U_WrQu3eS990iS-TCpw',
76
- // authObject: '{token:"aplus eyJhbGciOiJIUzI1NiIsInppcCI6IkRFRiJ9.eNrEjjEOgkAQRe-yNZPssrM7s3TsAI2HICBjgpURSDTGu6tRO3tf8YvXvH8zyzaayjRcW5TOg7RlAGwoQN0RQxZmm0vymLlPH-DHfOmdw0QutlAnEsCIHtgJg2AU7JrWS25MYfRyMpUjDhgDWleYeVjfwlOyL7Etet7p9R_njuv8zPJklad9gqgxAo40AKMlUOt8qU4PA1pzfwAAAP__.AhTuiD7eEL6iMN4iqr9tazgm8v3ZR4ounA2g7IAWia8"}',
78
+ // authObject: '{token:"1080-2100479224115802112-jt",platform:"WEB"}',
77
79
 
78
80
  // originalRequestURL: 'http://10.88.22.67:8080',
79
81
  // EstateInfo: '{"estateId":"1c581b7c-d629-4670-8a7c-6d622860bc58","estateName":"0%E9%87%91%E9%9A%85%E4%BA%91%E7%AD%91%E5%A4%A9%E6%B4%A5","estDeptPath":"009.014.001.001"}',
@@ -81,8 +83,8 @@ Vue.use(centaline, {
81
83
  // appinfo:'{"appId":"7e4d0521-4e26-4beb-8627-e76977ad8aa5","appName":"CCAI-PLUS"}',
82
84
  // authorization:'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjkzNDU5NjFkLWM2NmItNDU0ZS1hMTE4LTUzMWRkMjliZTdmYyJ9.ehMpxkFnyTFlJQ_43SbCTGZZTMFht3isTj3gUKmNoJBWCV5X8ez5Z2AgT7vMBwmmG1FdEHWZTnJhIj0ox86bCA',
83
85
 
84
- AuthObject: '{"currentEstate":{},"platform":1,"osVersion":"","machineCode":"372a227879461e4442bd0d800a0a967a","token":"","random":"BumW3g","time":"2026-08-17 15:52:04","timestamp":1786953124397,"sign":"","systemSource":"CCESU","empNo":"cshqxtgl","empId":"2411121446336B97FBEB7FD54905A903","clientVersion":"12.5","empName":"hq%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86","roleName":"%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98","deptFullName":"%E9%9B%86%E5%9B%A2IT%2FCCES%E7%BB%84"}',
85
- AuthorizationCode:'Bearer eyJhbGciOiJIUzI1NiJ9.eyJsb2dpbl91c2VyX2tleSI6IjRiMDFlNmNmLWVlMzgtNDgyOS05OTMzLTFmZjM2MWZiOTc4YSJ9.7E7Oymd_y_nTg17o05YP7ytQqELuy197jNLgKviGza0',
86
+ AuthObject: '{"currentEstate":{"estateId":"241113105409757BFF2887A7472E99D2","estateName":"U%E7%89%88%E6%A5%BC%E7%9B%98%E6%8C%89%E7%82%B9%E4%BD%8D1","estDeptPath":"001.200.063.001"},"platform":1,"osVersion":"","machineCode":"372a227879461e4442bd0d800a0a967a","token":"","random":"HdVxkk","time":"2026-09-29 13:14:13","timestamp":1790658853554,"sign":"","systemSource":"CCESU","empNo":"cshqxtgl","empId":"2411121446336B97FBEB7FD54905A903","clientVersion":"12.5","empName":"hq%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86","roleName":"%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%91%98","deptFullName":"%E9%9B%86%E5%9B%A2IT%2FCCES%E7%BB%84"}',
87
+ AuthorizationCode:'Bearer eyJhbGciOiJIUzI1NiJ9.eyJsb2dpbl91c2VyX2tleSI6IjhlM2RkNDFkLTM5ZTEtNGM3OS1hMTIwLWNlZjA0NjNhY2ViMiJ9.WDCWLV-ENeNO8e_IVBiwhxsH_mTh6kuuZi3LCzIatxM',
86
88
  };
87
89
  },
88
90
  // 请求完成事件,可判断是否登录过期执行响应操作