@jx3box/jx3box-common-ui 8.0.9 → 8.0.11
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/Admin.vue +8 -8
package/package.json
CHANGED
package/src/bread/Admin.vue
CHANGED
|
@@ -99,16 +99,16 @@
|
|
|
99
99
|
</div>
|
|
100
100
|
|
|
101
101
|
<div class="c-admin-extend" v-if="showExtend">
|
|
102
|
-
<div class="u-condition u-map" v-if="Object.keys(subtypeMap)">
|
|
103
|
-
<span class="u-prepend el-input-group__prepend"
|
|
102
|
+
<div class="u-condition u-map" v-if="subtypeMap && Object.keys(subtypeMap)">
|
|
103
|
+
<span class="u-prepend el-input-group__prepend">类型</span>
|
|
104
104
|
<el-select v-model="post_subtype" filterable placeholder="请选择" clearable>
|
|
105
105
|
<el-option v-for="(label, value) in subtypeMap" :value="value" :label="label" :key="value">
|
|
106
106
|
</el-option>
|
|
107
107
|
</el-select>
|
|
108
108
|
</div>
|
|
109
109
|
<div class="u-condition u-map">
|
|
110
|
-
<span class="u-prepend el-input-group__prepend"
|
|
111
|
-
<el-select v-model="
|
|
110
|
+
<span class="u-prepend el-input-group__prepend">主题</span>
|
|
111
|
+
<el-select v-model="topics" filterable placeholder="请选择" clearable multiple collapse-tags>
|
|
112
112
|
<el-option v-for="value in tags" :value="value" :label="value" :key="value"> </el-option>
|
|
113
113
|
</el-select>
|
|
114
114
|
</div>
|
|
@@ -222,7 +222,7 @@ export default {
|
|
|
222
222
|
post_type: "",
|
|
223
223
|
type_options: [],
|
|
224
224
|
post_subtype: "",
|
|
225
|
-
|
|
225
|
+
topics: [],
|
|
226
226
|
tags: [],
|
|
227
227
|
|
|
228
228
|
// 作者
|
|
@@ -242,7 +242,7 @@ export default {
|
|
|
242
242
|
mark: this.mark || [],
|
|
243
243
|
sticky: this.isSticky ? Date.now() : null,
|
|
244
244
|
star: this.isStar,
|
|
245
|
-
|
|
245
|
+
topics: this.topics,
|
|
246
246
|
post_subtype: this.post_subtype,
|
|
247
247
|
};
|
|
248
248
|
},
|
|
@@ -301,7 +301,7 @@ export default {
|
|
|
301
301
|
// 拉
|
|
302
302
|
pull: function () {
|
|
303
303
|
getSetting(this.pid).then((data) => {
|
|
304
|
-
let { ID, color, mark, post_status, post_author, sticky, post_banner, post_type, visible, star, post_subtype,
|
|
304
|
+
let { ID, color, mark, post_status, post_author, sticky, post_banner, post_type, visible, star, post_subtype, topics } = data;
|
|
305
305
|
this.pid = ID;
|
|
306
306
|
this.post_status = post_status;
|
|
307
307
|
this.visible = visible;
|
|
@@ -315,7 +315,7 @@ export default {
|
|
|
315
315
|
if (this.sticky) this.isSticky = true;
|
|
316
316
|
|
|
317
317
|
this.isStar = star || 0;
|
|
318
|
-
this.
|
|
318
|
+
this.topics = topics?.map(item => item.topic) || [];
|
|
319
319
|
this.post_subtype = post_subtype || "";
|
|
320
320
|
|
|
321
321
|
// 设置加载完成标识
|