kz-ui-base 2.5.164 → 2.5.166
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.
|
@@ -248,6 +248,31 @@
|
|
|
248
248
|
<span v-else>{{ scope.row[scope.column.property] }}</span>
|
|
249
249
|
</el-link>
|
|
250
250
|
</div>
|
|
251
|
+
<el-switch
|
|
252
|
+
v-else-if="
|
|
253
|
+
column.displayType == 'Switch' &&
|
|
254
|
+
column.setting &&
|
|
255
|
+
column.setting.valType &&
|
|
256
|
+
column.setting.valType === 'number'
|
|
257
|
+
"
|
|
258
|
+
v-model="scope.row[column.property]"
|
|
259
|
+
:disabled="true"
|
|
260
|
+
@change="onChangeEvent"
|
|
261
|
+
active-color="#13ce66"
|
|
262
|
+
inactive-color="#ff4949"
|
|
263
|
+
active-value="1"
|
|
264
|
+
inactive-value="0"
|
|
265
|
+
>
|
|
266
|
+
</el-switch>
|
|
267
|
+
<el-switch
|
|
268
|
+
v-else-if="column.displayType == 'Switch'"
|
|
269
|
+
v-model="scope.row[column.property]"
|
|
270
|
+
:disabled="true"
|
|
271
|
+
@change="onChangeEvent"
|
|
272
|
+
active-color="#13ce66"
|
|
273
|
+
inactive-color="#ff4949"
|
|
274
|
+
>
|
|
275
|
+
</el-switch>
|
|
251
276
|
<div v-else>
|
|
252
277
|
{{ scope.row[scope.column.property] }}
|
|
253
278
|
</div>
|
|
@@ -518,6 +543,31 @@
|
|
|
518
543
|
}}</span>
|
|
519
544
|
</el-link>
|
|
520
545
|
</div>
|
|
546
|
+
<el-switch
|
|
547
|
+
v-else-if="
|
|
548
|
+
column.displayType == 'Switch' &&
|
|
549
|
+
column.setting &&
|
|
550
|
+
column.setting.valType &&
|
|
551
|
+
column.setting.valType === 'number'
|
|
552
|
+
"
|
|
553
|
+
v-model="scope.row[column.property]"
|
|
554
|
+
:disabled="true"
|
|
555
|
+
@change="onChangeEvent"
|
|
556
|
+
active-color="#13ce66"
|
|
557
|
+
inactive-color="#ff4949"
|
|
558
|
+
active-value="1"
|
|
559
|
+
inactive-value="0"
|
|
560
|
+
>
|
|
561
|
+
</el-switch>
|
|
562
|
+
<el-switch
|
|
563
|
+
v-else-if="column.displayType == 'Switch'"
|
|
564
|
+
v-model="scope.row[column.property]"
|
|
565
|
+
:disabled="true"
|
|
566
|
+
@change="onChangeEvent"
|
|
567
|
+
active-color="#13ce66"
|
|
568
|
+
inactive-color="#ff4949"
|
|
569
|
+
>
|
|
570
|
+
</el-switch>
|
|
521
571
|
<div v-else>
|
|
522
572
|
{{ scope.row[scope.column.property] }}
|
|
523
573
|
</div>
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
:data="treeShapeOptions"
|
|
82
82
|
node-key="id"
|
|
83
83
|
:props="defaultProps"
|
|
84
|
-
default-expand-all
|
|
84
|
+
:default-expand-all="treeExpandAll"
|
|
85
85
|
:expand-on-click-node="false"
|
|
86
86
|
:filter-node-method="filterNode"
|
|
87
87
|
:current-node-key="currentNodekey"
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
:expand-on-click-node="false"
|
|
103
103
|
:filter-node-method="filterNode"
|
|
104
104
|
ref="tree"
|
|
105
|
-
default-expand-all
|
|
105
|
+
:default-expand-all="treeExpandAll"
|
|
106
106
|
highlight-current
|
|
107
107
|
@node-click="handleNodeClick"
|
|
108
108
|
/>
|
|
@@ -1334,6 +1334,7 @@ export default class listBasePage extends Vue {
|
|
|
1334
1334
|
value;
|
|
1335
1335
|
@Prop()
|
|
1336
1336
|
setting;
|
|
1337
|
+
treeExpandAll = true;
|
|
1337
1338
|
pageSizes = [5, 10, 20, 30, 50];
|
|
1338
1339
|
//合同表格变色
|
|
1339
1340
|
salesContractStatus = false;
|