@jx3box/jx3box-common-ui 8.3.4 → 8.3.6
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/bread/DesignTask.vue +22 -11
package/package.json
CHANGED
package/src/bread/DesignTask.vue
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog custom-class="m-design-task" :visible="modelValue" @close="close" title="快捷推送" append-to-body>
|
|
3
|
-
<el-form :model="form"
|
|
4
|
-
<el-form-item label="标题"
|
|
2
|
+
<el-dialog custom-class="m-design-task" :width="isPhone ? '95%' : '600px'" :visible="modelValue" @close="close" title="快捷推送" append-to-body>
|
|
3
|
+
<el-form :model="form" ref="form" :label-position="isPhone ? 'top' : 'left'" label-width="80px">
|
|
4
|
+
<el-form-item label="标题">
|
|
5
5
|
<el-input v-model="form.title" placeholder="请输入标题"></el-input>
|
|
6
6
|
</el-form-item>
|
|
7
7
|
<el-form-item label="类型">
|
|
8
|
-
<el-select v-model="form.type" placeholder="请选择类型" style="width:100%;">
|
|
8
|
+
<el-select v-model="form.type" placeholder="请选择类型" style="width:100%;" filterable>
|
|
9
9
|
<el-option v-for="item in config" :key="item.id" :label="item.label" :value="item.name"></el-option>
|
|
10
10
|
</el-select>
|
|
11
11
|
</el-form-item>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
近期推送
|
|
22
22
|
</el-divider>
|
|
23
23
|
<template v-if="logs && logs.length">
|
|
24
|
-
<el-table :data="logs" border size="small">
|
|
24
|
+
<el-table :data="logs" border size="small" max-height="300px">
|
|
25
25
|
<el-table-column label="推送时间" prop="push_at" align="center">
|
|
26
26
|
<template #default="{row}">
|
|
27
27
|
{{ formatTime(row.push_at) }}
|
|
@@ -76,12 +76,9 @@ export default {
|
|
|
76
76
|
colors: ['#99A9BF', '#F7BA2A', '#FF9900'],
|
|
77
77
|
|
|
78
78
|
logs: [],
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
config: []
|
|
79
|
+
config: [],
|
|
80
|
+
|
|
81
|
+
isPhone: window.innerWidth < 768
|
|
85
82
|
}
|
|
86
83
|
},
|
|
87
84
|
watch: {
|
|
@@ -141,6 +138,7 @@ export default {
|
|
|
141
138
|
loadConfig() {
|
|
142
139
|
getConfigBannerTypes({ _no_page: 1 }).then(res => {
|
|
143
140
|
this.config = res.data.data || [];
|
|
141
|
+
this.config = this.config.filter(item => item.parent_id == 1);
|
|
144
142
|
})
|
|
145
143
|
},
|
|
146
144
|
formatTime(time) {
|
|
@@ -152,6 +150,9 @@ export default {
|
|
|
152
150
|
|
|
153
151
|
<style lang="less">
|
|
154
152
|
.m-design-task {
|
|
153
|
+
.el-form-item {
|
|
154
|
+
margin-bottom: 12px;
|
|
155
|
+
}
|
|
155
156
|
.m-star-line {
|
|
156
157
|
.el-form-item__content {
|
|
157
158
|
top: 10px;
|
|
@@ -161,4 +162,14 @@ export default {
|
|
|
161
162
|
color: #c0c4cc;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
165
|
+
|
|
166
|
+
@media screen and (max-width: @phone) {
|
|
167
|
+
.m-design-task {
|
|
168
|
+
.m-star-line {
|
|
169
|
+
.el-form-item__content {
|
|
170
|
+
top: 0;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
164
175
|
</style>
|