cnhis-design-vue 0.1.65-beta → 0.1.69-beta
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/es/affix/index.js +8 -8
- package/es/age/index.js +10 -10
- package/es/alert/index.js +8 -8
- package/es/anchor/index.js +8 -8
- package/es/auto-complete/index.js +8 -8
- package/es/avatar/index.js +8 -8
- package/es/back-top/index.js +8 -8
- package/es/badge/index.js +8 -8
- package/es/base/index.js +8 -8
- package/es/big-table/index.js +97 -97
- package/es/big-table/style.css +1 -1
- package/es/breadcrumb/index.js +8 -8
- package/es/button/index.js +20 -20
- package/es/calendar/index.js +8 -8
- package/es/captcha/index.js +3 -3
- package/es/card/index.js +8 -8
- package/es/carousel/index.js +8 -8
- package/es/cascader/index.js +8 -8
- package/es/checkbox/index.js +9 -9
- package/es/col/index.js +8 -8
- package/es/collapse/index.js +8 -8
- package/es/color-picker/index.js +1 -1
- package/es/comment/index.js +8 -8
- package/es/config-provider/index.js +8 -8
- package/es/date-picker/index.js +8 -8
- package/es/descriptions/index.js +8 -8
- package/es/divider/index.js +8 -8
- package/es/drag-layout/index.js +3 -3
- package/es/drawer/index.js +8 -8
- package/es/dropdown/index.js +8 -8
- package/es/editor/index.js +1 -1
- package/es/empty/index.js +8 -8
- package/es/fabric-chart/index.js +9 -9
- package/es/form/index.js +8 -8
- package/es/form-model/index.js +8 -8
- package/es/index/index.js +732 -601
- package/es/index/style.css +1 -1
- package/es/input/index.js +9 -9
- package/es/input-number/index.js +8 -8
- package/es/layout/index.js +8 -8
- package/es/list/index.js +8 -8
- package/es/locale-provider/index.js +8 -8
- package/es/map/index.js +9 -9
- package/es/mentions/index.js +8 -8
- package/es/menu/index.js +8 -8
- package/es/message/index.js +8 -8
- package/es/multi-chat/index.js +57 -57
- package/es/multi-chat-client/index.js +48 -48
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +14 -14
- package/es/multi-chat-setting/index.js +22 -22
- package/es/multi-chat-sip/index.js +1 -1
- package/es/notification/index.js +8 -8
- package/es/page-header/index.js +8 -8
- package/es/pagination/index.js +8 -8
- package/es/popconfirm/index.js +8 -8
- package/es/popover/index.js +8 -8
- package/es/progress/index.js +8 -8
- package/es/radio/index.js +9 -9
- package/es/rate/index.js +8 -8
- package/es/result/index.js +8 -8
- package/es/row/index.js +8 -8
- package/es/scale-view/index.js +302 -281
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +11 -11
- package/es/select-label/index.js +10 -10
- package/es/select-person/index.js +39 -27
- package/es/select-person/style.css +1 -1
- package/es/skeleton/index.js +8 -8
- package/es/slider/index.js +8 -8
- package/es/space/index.js +8 -8
- package/es/spin/index.js +8 -8
- package/es/statistic/index.js +8 -8
- package/es/steps/index.js +8 -8
- package/es/switch/index.js +8 -8
- package/es/table-filter/index.js +134 -164
- package/es/tabs/index.js +8 -8
- package/es/tag/index.js +9 -9
- package/es/time-picker/index.js +8 -8
- package/es/timeline/index.js +8 -8
- package/es/tooltip/index.js +8 -8
- package/es/transfer/index.js +8 -8
- package/es/tree/index.js +8 -8
- package/es/tree-select/index.js +8 -8
- package/es/upload/index.js +8 -8
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +738 -561
- package/lib/cui.umd.js +738 -561
- package/lib/cui.umd.min.js +93 -93
- package/package.json +9 -9
- package/packages/big-table/src/Fieldset.vue +12 -12
- package/packages/scale-view/answerParse.vue +106 -0
- package/packages/scale-view/evaluateCountdown.vue +3 -1
- package/packages/scale-view/formitem/r-choice.vue +20 -9
- package/packages/scale-view/scaleView.vue +126 -46
- package/packages/select-person/select-person.vue +5 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.69-beta",
|
|
4
4
|
"description": "基于 Ant Desgin Vue 的UI库",
|
|
5
5
|
"keyword": "cnhis-design-vue vue cnhis",
|
|
6
6
|
"homepage": "http://dv.cnhis.com/",
|
|
@@ -45,7 +45,13 @@
|
|
|
45
45
|
"vuedraggable": "^2.24.3",
|
|
46
46
|
"vxe-table": "^3.4.1",
|
|
47
47
|
"wangeditor": "^4.7.5",
|
|
48
|
-
"xe-utils": "^3.4.0"
|
|
48
|
+
"xe-utils": "^3.4.0",
|
|
49
|
+
"recorder-core": "^1.1.21080800",
|
|
50
|
+
"socket.io-client": "^2.4.0",
|
|
51
|
+
"stompjs": "^2.3.3",
|
|
52
|
+
"trtc-js-sdk": "^4.11.7",
|
|
53
|
+
"video.js": "^7.8.4",
|
|
54
|
+
"vue-infinite-scroll": "^2.0.2"
|
|
49
55
|
},
|
|
50
56
|
"devDependencies": {
|
|
51
57
|
"@babel/cli": "^7.15.7",
|
|
@@ -67,13 +73,7 @@
|
|
|
67
73
|
"less": "^3.9.0",
|
|
68
74
|
"less-loader": "^4.1.0",
|
|
69
75
|
"prettier": "^1.19.1",
|
|
70
|
-
"recorder-core": "^1.1.21080800",
|
|
71
|
-
"socket.io-client": "^2.4.0",
|
|
72
|
-
"stompjs": "^2.3.3",
|
|
73
|
-
"trtc-js-sdk": "^4.11.7",
|
|
74
|
-
"video.js": "^7.8.4",
|
|
75
76
|
"vue": "^2.6.14",
|
|
76
|
-
"vue-infinite-scroll": "^2.0.2",
|
|
77
77
|
"vue-router": "^3.5.1",
|
|
78
78
|
"vue-template-compiler": "^2.6.14",
|
|
79
79
|
"webpack-node-externals": "^3.0.0"
|
|
@@ -93,4 +93,4 @@
|
|
|
93
93
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
}
|
|
96
|
+
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
<!-- 字段名称 -->
|
|
9
9
|
<span class="width-large"> 所有字段 </span>
|
|
10
10
|
<!-- 编辑 -->
|
|
11
|
-
<span v-if="false" class="width-show">
|
|
11
|
+
<!-- <span v-if="false" class="width-show">
|
|
12
12
|
<c-checkbox v-if="showCheckBox('isEdit')" :checked="calculateCheck('isEdit')" @change="handleAllCheck($event, 'isEdit')" />
|
|
13
13
|
编辑
|
|
14
|
-
</span>
|
|
14
|
+
</span> -->
|
|
15
15
|
<!-- 显示 -->
|
|
16
16
|
<span class="width-show">
|
|
17
17
|
<c-checkbox v-if="showCheckBox('isShow')" :checked="calculateCheck('isShow')" @change="handleAllCheck($event, 'isShow')" />
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
</span>
|
|
105
105
|
</span>
|
|
106
106
|
<!-- 编辑 -->
|
|
107
|
-
<span v-if="false" class="width-show">
|
|
107
|
+
<!-- <span v-if="false" class="width-show">
|
|
108
108
|
<c-checkbox v-show="ele.sid != '0001'" :defaultChecked="ele.isEdit == '1'" :checked="ele.isEdit == '1' ? true : false" @change="onChangeEdit($event, ele, j)"></c-checkbox>
|
|
109
|
-
</span>
|
|
109
|
+
</span> -->
|
|
110
110
|
<!-- 显示 -->
|
|
111
111
|
<span class="width-show">
|
|
112
112
|
<c-checkbox v-show="ele.sid != '0001'" :defaultChecked="ele.isShow == '1'" :checked="ele.isShow == '1' ? true : false" @change="onChangeShow($event, ele, j)"></c-checkbox>
|
|
@@ -170,9 +170,9 @@
|
|
|
170
170
|
<!-- 固定 -->
|
|
171
171
|
<span class="width-showed">
|
|
172
172
|
<select class="is-sort-style" v-model="ele.isFixed">
|
|
173
|
-
<option value="0">不固定</option>
|
|
174
|
-
<option value="1">左固定</option>
|
|
175
|
-
<option value="2">右固定</option>
|
|
173
|
+
<option :value="0">不固定</option>
|
|
174
|
+
<option :value="1">左固定</option>
|
|
175
|
+
<option :value="2">右固定</option>
|
|
176
176
|
</select>
|
|
177
177
|
</span>
|
|
178
178
|
<slot>
|
|
@@ -1465,24 +1465,24 @@ export default create({
|
|
|
1465
1465
|
return document.getElementsByClassName('setting-tabs-about')[0];
|
|
1466
1466
|
},
|
|
1467
1467
|
showCheckBox(key) {
|
|
1468
|
-
return this.
|
|
1468
|
+
return this.fields.some(i => Object.prototype.hasOwnProperty.call(i, key));
|
|
1469
1469
|
},
|
|
1470
1470
|
calculateCheck(key) {
|
|
1471
|
-
if (!this.
|
|
1472
|
-
return this.
|
|
1471
|
+
if (!this.fields.length) return false;
|
|
1472
|
+
return this.fields.every(i => {
|
|
1473
1473
|
if (!Object.prototype.hasOwnProperty.call(i, key)) return true;
|
|
1474
1474
|
return i[key];
|
|
1475
1475
|
});
|
|
1476
1476
|
},
|
|
1477
1477
|
handleAllCheck(e, key) {
|
|
1478
1478
|
const value = e.target.checked ? 1 : 0;
|
|
1479
|
-
this.
|
|
1479
|
+
this.fields.forEach(i => {
|
|
1480
1480
|
if (Object.prototype.hasOwnProperty.call(i, key)) {
|
|
1481
1481
|
i[key] = value;
|
|
1482
1482
|
}
|
|
1483
1483
|
return i;
|
|
1484
1484
|
});
|
|
1485
|
-
this.
|
|
1485
|
+
this.fields = [].concat(this.fields);
|
|
1486
1486
|
},
|
|
1487
1487
|
hanldeSaveAboutItem() {
|
|
1488
1488
|
this.saveSetting();
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="answerParse" :class="{ 'answerParse-success': answerSuccess }">
|
|
3
|
+
<div class="answer-res">
|
|
4
|
+
<svg-icon :iconClass="answerIcon"></svg-icon>
|
|
5
|
+
{{ answerResText }}
|
|
6
|
+
</div>
|
|
7
|
+
<div class="correct-answer" v-if="correctAnswer">
|
|
8
|
+
<p>正确答案:</p>
|
|
9
|
+
<span>{{ correctAnswer }}</span>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="answer-key">
|
|
12
|
+
<p>答案解析:</p>
|
|
13
|
+
<span>{{ answerKeyText }}</span>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<script>
|
|
18
|
+
export default {
|
|
19
|
+
name: "answerParse",
|
|
20
|
+
components: {},
|
|
21
|
+
props: ["item"],
|
|
22
|
+
data() {
|
|
23
|
+
return {};
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
computed: {
|
|
27
|
+
answerSuccess() {
|
|
28
|
+
let { questionScore } = this.item;
|
|
29
|
+
// let { questionScore, maxScore } = this.item?.scoreConfigs || {};
|
|
30
|
+
// if (questionScore && questionScore == maxScore) return true;
|
|
31
|
+
return questionScore > 0;
|
|
32
|
+
},
|
|
33
|
+
answerIcon() {
|
|
34
|
+
return this.answerSuccess ? "xitongtubiaodui" : "xitongtubiaocuo";
|
|
35
|
+
},
|
|
36
|
+
answerResText() {
|
|
37
|
+
return this.answerSuccess ? "回答正确" : "回答错误";
|
|
38
|
+
},
|
|
39
|
+
correctAnswer() {
|
|
40
|
+
let { correctAnswer } = this.item?.scoreConfigs || {};
|
|
41
|
+
return correctAnswer;
|
|
42
|
+
},
|
|
43
|
+
answerKeyText() {
|
|
44
|
+
let { answerKey } = this.item?.scoreConfigs || {};
|
|
45
|
+
return answerKey || "无";
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
watch: {},
|
|
49
|
+
// 生命周期
|
|
50
|
+
created() {},
|
|
51
|
+
mounted() {},
|
|
52
|
+
|
|
53
|
+
// 方法
|
|
54
|
+
methods: {}
|
|
55
|
+
};
|
|
56
|
+
</script>
|
|
57
|
+
<style lang="less" scoped>
|
|
58
|
+
.answerParse {
|
|
59
|
+
padding: 16px;
|
|
60
|
+
color: #2e2e2e;
|
|
61
|
+
border-radius: 8px;
|
|
62
|
+
background: rgba(253, 246, 246, 0.6);
|
|
63
|
+
margin-top: 6px;
|
|
64
|
+
margin-bottom: 12px;
|
|
65
|
+
.answer-res {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
padding: 0 18px;
|
|
68
|
+
line-height: 36px;
|
|
69
|
+
color: #fff;
|
|
70
|
+
background: #f06f64;
|
|
71
|
+
border-radius: 18px;
|
|
72
|
+
margin-bottom: 16px;
|
|
73
|
+
svg {
|
|
74
|
+
margin-right: 8px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.correct-answer {
|
|
78
|
+
line-height: 20px;
|
|
79
|
+
margin-bottom: 16px;
|
|
80
|
+
p {
|
|
81
|
+
display: inline-block;
|
|
82
|
+
}
|
|
83
|
+
span {
|
|
84
|
+
word-break: break-all;
|
|
85
|
+
color: #91c850;
|
|
86
|
+
font-size: 16px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.answer-key {
|
|
90
|
+
line-height: 20px;
|
|
91
|
+
p {
|
|
92
|
+
line-height: 20px;
|
|
93
|
+
margin-bottom: 16px;
|
|
94
|
+
}
|
|
95
|
+
span {
|
|
96
|
+
word-break: break-all;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
&.answerParse-success {
|
|
100
|
+
background: rgba(234, 251, 228, 0.6);
|
|
101
|
+
.answer-res {
|
|
102
|
+
background: #91c850;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
</style>
|
|
@@ -66,7 +66,9 @@ export default {
|
|
|
66
66
|
if (!useFormArray || !useFormArray.length) return;
|
|
67
67
|
let useForm = {};
|
|
68
68
|
useFormArray.forEach(item => {
|
|
69
|
-
|
|
69
|
+
const key = item.databaseTitle || item.title;
|
|
70
|
+
// useForm[item.title] = form[item.title];
|
|
71
|
+
useForm[key] = form[key];
|
|
70
72
|
});
|
|
71
73
|
console.log(useForm);
|
|
72
74
|
let num = 0;
|
|
@@ -16,15 +16,16 @@
|
|
|
16
16
|
:disabled="isLock"
|
|
17
17
|
:style="{ color: choiceColor(o) }"
|
|
18
18
|
>
|
|
19
|
-
<text-over-tooltip
|
|
19
|
+
<!-- <text-over-tooltip
|
|
20
20
|
:refName="'chooseValue' + curIndex + i"
|
|
21
21
|
class="choose-value"
|
|
22
22
|
:content="o.label"
|
|
23
23
|
:textColor="choiceColor(o)"
|
|
24
|
-
></text-over-tooltip>
|
|
24
|
+
></text-over-tooltip> -->
|
|
25
25
|
<!-- <a-tooltip :title="o.label">
|
|
26
26
|
{{ o.label }}
|
|
27
27
|
</a-tooltip> -->
|
|
28
|
+
{{ o.label }}
|
|
28
29
|
|
|
29
30
|
<a-input
|
|
30
31
|
v-model="othersText"
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
>
|
|
45
46
|
<a-checkbox
|
|
46
47
|
class="choice-checkbox"
|
|
47
|
-
v-for="(o
|
|
48
|
+
v-for="(o) in curOptions"
|
|
48
49
|
:key="o.value"
|
|
49
50
|
:value="o.value"
|
|
50
51
|
:class="{ 'block-checkbox': !item.setting.isHorizontal }"
|
|
@@ -53,11 +54,14 @@
|
|
|
53
54
|
<!-- <a-tooltip :title="o.label">
|
|
54
55
|
{{ o.label }}
|
|
55
56
|
</a-tooltip> -->
|
|
56
|
-
<
|
|
57
|
+
<span style="white-space: initial;">
|
|
58
|
+
{{ o.label }}
|
|
59
|
+
</span>
|
|
60
|
+
<!-- <text-over-tooltip
|
|
57
61
|
:refName="'chooseValue' + curIndex + i"
|
|
58
62
|
class="choose-value"
|
|
59
63
|
:content="o.label"
|
|
60
|
-
></text-over-tooltip>
|
|
64
|
+
></text-over-tooltip> -->
|
|
61
65
|
<a-input
|
|
62
66
|
v-model="othersText"
|
|
63
67
|
:disabled="isLock"
|
|
@@ -105,7 +109,7 @@
|
|
|
105
109
|
import { Select, Input, Radio, Checkbox, Cascader } from "ant-design-vue";
|
|
106
110
|
import { judgeTypes } from "../mixin/judgeTypes";
|
|
107
111
|
// import format from "@/components/table/mixins/format";
|
|
108
|
-
import TextOverTooltip from "./text-over-tooltip/TextOverTooltip.vue";
|
|
112
|
+
// import TextOverTooltip from "./text-over-tooltip/TextOverTooltip.vue";
|
|
109
113
|
import utils from "@/utils/utils-map";
|
|
110
114
|
import axios from 'axios';
|
|
111
115
|
export default {
|
|
@@ -129,7 +133,7 @@ export default {
|
|
|
129
133
|
},
|
|
130
134
|
},
|
|
131
135
|
components: {
|
|
132
|
-
TextOverTooltip,
|
|
136
|
+
// TextOverTooltip,
|
|
133
137
|
[Input.name]: Input,
|
|
134
138
|
[Cascader.name]: Cascader,
|
|
135
139
|
[Checkbox.name]: Checkbox,
|
|
@@ -437,7 +441,7 @@ export default {
|
|
|
437
441
|
/deep/ .choice-radio,
|
|
438
442
|
/deep/ .choice-checkbox {
|
|
439
443
|
display: inline-flex;
|
|
440
|
-
align-items:
|
|
444
|
+
align-items: flex-start;
|
|
441
445
|
margin-bottom: 5px;
|
|
442
446
|
margin-right: 8px;
|
|
443
447
|
margin-left: 0px;
|
|
@@ -488,7 +492,7 @@ export default {
|
|
|
488
492
|
/deep/.ant-radio-wrapper span.ant-radio + * {
|
|
489
493
|
display: inline-flex;
|
|
490
494
|
align-items: center;
|
|
491
|
-
white-space:
|
|
495
|
+
white-space: initial;
|
|
492
496
|
}
|
|
493
497
|
&.choice-wrap-1 label {
|
|
494
498
|
width: 100%;
|
|
@@ -502,6 +506,13 @@ export default {
|
|
|
502
506
|
&.choice-wrap-4 label {
|
|
503
507
|
width: 25%;
|
|
504
508
|
}
|
|
509
|
+
/deep/ .ant-checkbox {
|
|
510
|
+
// margin-top: -0.2em;
|
|
511
|
+
margin-top: 5px;
|
|
512
|
+
}
|
|
513
|
+
/deep/ .ant-checkbox-inner {
|
|
514
|
+
vertical-align: top;
|
|
515
|
+
}
|
|
505
516
|
}
|
|
506
517
|
/deep/.choice-radio span,
|
|
507
518
|
/deep/.choice-checkbox span {
|