zydx-plus 1.30.169 → 1.30.171
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/package.json +1 -1
- package/src/components/biz_header/src/button_name.js +16 -16
- package/src/components/lesson_template/index.js +7 -0
- package/src/components/lesson_template/src/lessonTemplate.vue +226 -0
- package/src/components/word/src/word.css +1 -0
- package/src/components/word/src/word.vue +6 -2
- package/src/index.js +6 -3
package/package.json
CHANGED
|
@@ -66,29 +66,29 @@ let buttonNames = {
|
|
|
66
66
|
headLevel: {
|
|
67
67
|
default: "demand",
|
|
68
68
|
demand: '调查要求',
|
|
69
|
-
|
|
69
|
+
singletonClass: this.getPrefix(item) + '调查'
|
|
70
70
|
},
|
|
71
71
|
otherLevel: {
|
|
72
|
-
default: "
|
|
73
|
-
|
|
72
|
+
default: "singletonClass",
|
|
73
|
+
singletonClass: this.getPrefix(item) + '调查'
|
|
74
74
|
},
|
|
75
75
|
lowLevel: {
|
|
76
|
-
default: "
|
|
77
|
-
|
|
76
|
+
default: "singletonClass",
|
|
77
|
+
singletonClass: this.getPrefix(item) + '调查'
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
80
|
2: {
|
|
81
81
|
headLevel: {
|
|
82
|
-
default: "
|
|
83
|
-
|
|
82
|
+
default: "singletonClass",
|
|
83
|
+
singletonClass: this.getPrefix(item) + '调查'
|
|
84
84
|
},
|
|
85
85
|
otherLevel: {
|
|
86
|
-
default: "
|
|
87
|
-
|
|
86
|
+
default: "singletonClass",
|
|
87
|
+
singletonClass: this.getPrefix(item) + '调查'
|
|
88
88
|
},
|
|
89
89
|
lowLevel: {
|
|
90
|
-
default: "
|
|
91
|
-
|
|
90
|
+
default: "singletonClass",
|
|
91
|
+
singletonClass: this.getPrefix(item) + '调查'
|
|
92
92
|
},
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -1172,15 +1172,15 @@ let buttonNames = {
|
|
|
1172
1172
|
headLevel: {
|
|
1173
1173
|
default: "demand",
|
|
1174
1174
|
demand: '调查要求',
|
|
1175
|
-
|
|
1175
|
+
singletonClass: this.getPrefix(item) + '调查'
|
|
1176
1176
|
},
|
|
1177
1177
|
otherLevel: {
|
|
1178
|
-
default: "
|
|
1179
|
-
|
|
1178
|
+
default: "singletonClass",
|
|
1179
|
+
singletonClass: this.getPrefix(item) + '调查'
|
|
1180
1180
|
},
|
|
1181
1181
|
lowLevel: {
|
|
1182
|
-
default: "
|
|
1183
|
-
|
|
1182
|
+
default: "singletonClass",
|
|
1183
|
+
singletonClass: this.getPrefix(item) + '调查'
|
|
1184
1184
|
},
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @描述: 上下插槽组件,可以有多个层级, 最下层带滚动
|
|
3
|
+
* @创建时间: 2022-08-19 9:00:00
|
|
4
|
+
*/
|
|
5
|
+
<template>
|
|
6
|
+
<div class="lesson_template_main_div">
|
|
7
|
+
<template v-if="!readonly">
|
|
8
|
+
<div v-if="topText !== ''" class="title_box display_flex">
|
|
9
|
+
<div style="width: 100%">{{topText}}</div>
|
|
10
|
+
<div class="z-button" @click="clearSelectAction">清空已选</div>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="main_center_div select_margin">
|
|
13
|
+
<template v-if="selectActionSort.length != 0">
|
|
14
|
+
<div v-for="(item, index) in selectActionSort" @click="cancel(item)" :key="index" class="item_div select_item_margin display_flex">
|
|
15
|
+
<div class="width70">{{item[viewName]}}</div>
|
|
16
|
+
<div class="display_flex flex_center">
|
|
17
|
+
<div class="x_style">+</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
<template v-else>
|
|
22
|
+
<div class="tip_text">暂未添加{{tipText}},现在添加吧...</div>
|
|
23
|
+
</template>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
<div v-if="allText !== ''" class="title_box">{{allText}}</div>
|
|
27
|
+
<div class="main_center_div">
|
|
28
|
+
<div v-for="(item, index) in dataList" :key="index" class="item_div all_item width70" :class="isIncludeItem(item)? '' : 'select_item'" @click="save(item)" >{{item[viewName]}}</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
export default {
|
|
36
|
+
name: 'zydx-lesson-template',
|
|
37
|
+
model: {
|
|
38
|
+
prop: "selectDataList",
|
|
39
|
+
event: "update:modelValue"
|
|
40
|
+
},
|
|
41
|
+
props: {
|
|
42
|
+
selectDataList: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: () => []
|
|
45
|
+
},
|
|
46
|
+
dataList: {
|
|
47
|
+
type: Array,
|
|
48
|
+
default: () => []
|
|
49
|
+
},
|
|
50
|
+
topText: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: ''
|
|
53
|
+
},
|
|
54
|
+
allText: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: ''
|
|
57
|
+
},
|
|
58
|
+
sortName: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ''
|
|
61
|
+
},
|
|
62
|
+
viewName: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: ''
|
|
65
|
+
},
|
|
66
|
+
tipText: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: ''
|
|
69
|
+
},
|
|
70
|
+
readonly: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: false
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
computed: {
|
|
76
|
+
selectActionSort () {
|
|
77
|
+
let _that = this
|
|
78
|
+
if (this.sortName != '' && this.selectAction.length != 0) {
|
|
79
|
+
return _that.selectAction.sort(function(a, b){
|
|
80
|
+
return parseInt(a[_that.sortName]) > parseInt(b[_that.sortName]) ? 1: -1
|
|
81
|
+
})
|
|
82
|
+
}
|
|
83
|
+
return this.selectAction;
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
data () {
|
|
87
|
+
return {
|
|
88
|
+
selectAction: this.selectDataList
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
watch: {
|
|
92
|
+
selectActionSort: {
|
|
93
|
+
deep: true,
|
|
94
|
+
handler(newValue) {
|
|
95
|
+
this.$emit('update:modelValue', this.selectAction)
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
methods: {
|
|
100
|
+
cancel (param) {
|
|
101
|
+
this.selectAction.splice(this.selectAction.indexOf(param),1)
|
|
102
|
+
},
|
|
103
|
+
save (param) {
|
|
104
|
+
if (!this.readonly && this.isIncludeItem(param)) {
|
|
105
|
+
this.selectAction.push(param)
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
clearSelectAction () {
|
|
109
|
+
this.selectAction = []
|
|
110
|
+
},
|
|
111
|
+
isIncludeItem (item) {
|
|
112
|
+
if (this.readonly) {
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
return JSON.stringify(this.selectDataList).indexOf(JSON.stringify(item)) === -1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
</script>
|
|
120
|
+
|
|
121
|
+
<style scoped>
|
|
122
|
+
.lesson_template_main_div {
|
|
123
|
+
width: 100%;
|
|
124
|
+
}
|
|
125
|
+
.select_margin {
|
|
126
|
+
padding: 10px 2px 10px 7px !important;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.main_center_div {
|
|
130
|
+
width: 922px;
|
|
131
|
+
display: flex;
|
|
132
|
+
padding: 7px 4px;
|
|
133
|
+
flex-direction: row;
|
|
134
|
+
align-content: center;
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
border: 1px solid #cccccc;
|
|
137
|
+
flex-wrap: wrap;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.item_div {
|
|
141
|
+
box-sizing: border-box;
|
|
142
|
+
border: 1px solid rgba(204, 204, 204, 1);
|
|
143
|
+
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
border-radius: 2px;
|
|
146
|
+
height: 32px;
|
|
147
|
+
line-height: 32px;
|
|
148
|
+
border: 1px solid #cccccc;
|
|
149
|
+
text-align: center;
|
|
150
|
+
}
|
|
151
|
+
.display_flex {
|
|
152
|
+
display: flex;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.select_item_margin {
|
|
156
|
+
width: 86px;
|
|
157
|
+
margin: 3px 5px 3px 0px;
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
.all_item {
|
|
161
|
+
width: 70px;
|
|
162
|
+
margin: 3px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.width70 {
|
|
166
|
+
width: 70px;
|
|
167
|
+
font-size: 14px;
|
|
168
|
+
font-weight: 400;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.title_box {
|
|
172
|
+
font-size: 16px;
|
|
173
|
+
font-weight: 400;
|
|
174
|
+
width: 100%;
|
|
175
|
+
margin: 5px 0px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
.select_item {
|
|
182
|
+
background: rgba(255, 255, 255, 1);
|
|
183
|
+
color: #cccccc;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.tip_text {
|
|
187
|
+
font-size: 16px;
|
|
188
|
+
font-weight: 400;
|
|
189
|
+
color: rgba(0, 0, 0, 0.6);
|
|
190
|
+
text-align: center;
|
|
191
|
+
width: 100%;
|
|
192
|
+
}
|
|
193
|
+
.z-button {
|
|
194
|
+
margin: 1px;
|
|
195
|
+
width: auto;
|
|
196
|
+
min-width: 60px;
|
|
197
|
+
max-width: 60px;
|
|
198
|
+
text-overflow: ellipsis;
|
|
199
|
+
white-space: nowrap;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
height: 20px;
|
|
202
|
+
background-color: #FFFFFF;
|
|
203
|
+
color: #000000;
|
|
204
|
+
border: #000000 1px solid;
|
|
205
|
+
line-height: 18px;
|
|
206
|
+
border-radius: 3px;
|
|
207
|
+
font-size: 12px !important;
|
|
208
|
+
letter-spacing: 0px !important;
|
|
209
|
+
text-align: center;
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
padding: 0 5px;
|
|
212
|
+
font-weight: normal;
|
|
213
|
+
box-sizing: border-box;
|
|
214
|
+
}
|
|
215
|
+
.flex_center {
|
|
216
|
+
display: flex;
|
|
217
|
+
justify-content: center;
|
|
218
|
+
align-items: center;
|
|
219
|
+
}
|
|
220
|
+
.x_style {
|
|
221
|
+
transform: rotate(45deg);
|
|
222
|
+
height: 8px;
|
|
223
|
+
line-height: 8px;
|
|
224
|
+
width: 8px;
|
|
225
|
+
}
|
|
226
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="paper">
|
|
3
|
-
<div class="parer-cont">
|
|
2
|
+
<div :class="{paper: borderShow}">
|
|
3
|
+
<div class="parer-cont" ref="parer">
|
|
4
4
|
<div class="paper-choice" :class="{'array-ch': !styleText(item.testKey)}" v-for="(item,index) in data">
|
|
5
5
|
<div class="subject">
|
|
6
6
|
<div class="subject-title">
|
|
@@ -53,6 +53,10 @@ export default {
|
|
|
53
53
|
multiple: {
|
|
54
54
|
type: Boolean,
|
|
55
55
|
default: false
|
|
56
|
+
},
|
|
57
|
+
borderShow: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: true
|
|
56
60
|
}
|
|
57
61
|
},
|
|
58
62
|
watch: {
|
package/src/index.js
CHANGED
|
@@ -29,6 +29,7 @@ import choice from './components/choice/index';
|
|
|
29
29
|
import word from './components/word/index';
|
|
30
30
|
import sketchpad from './components/sketchpad/index';
|
|
31
31
|
import pictureViewer from './components/pictureViewer/index';
|
|
32
|
+
import lessonTemplate from './components/lesson_template/index';
|
|
32
33
|
|
|
33
34
|
const components = [
|
|
34
35
|
Calendar,
|
|
@@ -59,7 +60,8 @@ const components = [
|
|
|
59
60
|
choice,
|
|
60
61
|
word,
|
|
61
62
|
sketchpad,
|
|
62
|
-
pictureViewer
|
|
63
|
+
pictureViewer,
|
|
64
|
+
lessonTemplate
|
|
63
65
|
];
|
|
64
66
|
|
|
65
67
|
function install(app) {
|
|
@@ -71,7 +73,7 @@ function install(app) {
|
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
export default {
|
|
74
|
-
version: '1.30.
|
|
76
|
+
version: '1.30.171',
|
|
75
77
|
install,
|
|
76
78
|
Calendar,
|
|
77
79
|
Message,
|
|
@@ -103,6 +105,7 @@ export default {
|
|
|
103
105
|
choice,
|
|
104
106
|
word,
|
|
105
107
|
sketchpad,
|
|
106
|
-
pictureViewer
|
|
108
|
+
pictureViewer,
|
|
109
|
+
lessonTemplate
|
|
107
110
|
};
|
|
108
111
|
|