Merge branch 'develop' of http://git.reelshort2.com/jianghaifeng/ReelShortWeb into develop
This commit is contained in:
commit
982346045d
1 file changed
+19
-3
@@ -55,6 +55,7 @@ const form = reactive({
|
|||||||
favoriteCount: 0,
|
favoriteCount: 0,
|
||||||
heat: 0,
|
heat: 0,
|
||||||
isHot: false,
|
isHot: false,
|
||||||
|
sort: 0,
|
||||||
cover: ''
|
cover: ''
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -168,6 +169,7 @@ function openCreate() {
|
|||||||
favoriteCount: 0,
|
favoriteCount: 0,
|
||||||
heat: 0,
|
heat: 0,
|
||||||
isHot: false,
|
isHot: false,
|
||||||
|
sort: 0,
|
||||||
cover: ''
|
cover: ''
|
||||||
})
|
})
|
||||||
coverFileName.value = ''
|
coverFileName.value = ''
|
||||||
@@ -200,6 +202,7 @@ function openEdit(row) {
|
|||||||
favoriteCount: row.favoriteCount ?? 0,
|
favoriteCount: row.favoriteCount ?? 0,
|
||||||
heat: row.views ?? 0,
|
heat: row.views ?? 0,
|
||||||
isHot: !!row.isHot,
|
isHot: !!row.isHot,
|
||||||
|
sort: row.sort ?? 0,
|
||||||
cover: row.cover || ''
|
cover: row.cover || ''
|
||||||
})
|
})
|
||||||
coverFileName.value = row.cover ? coverBasename(row.cover) : ''
|
coverFileName.value = row.cover ? coverBasename(row.cover) : ''
|
||||||
@@ -658,9 +661,22 @@ onMounted(async () => {
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<el-form-item label="是否热门">
|
<div class="editor-grid editor-grid--two">
|
||||||
<el-switch v-model="form.isHot" />
|
<el-form-item label="是否热门">
|
||||||
</el-form-item>
|
<el-switch v-model="form.isHot" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="排序权重">
|
||||||
|
<el-input-number
|
||||||
|
v-model="form.sort"
|
||||||
|
class="editor-number"
|
||||||
|
controls-position="right"
|
||||||
|
:min="0"
|
||||||
|
:max="99999"
|
||||||
|
:precision="0"
|
||||||
|
/>
|
||||||
|
<p class="readonly-stat-hint">数值越大越靠前,相同权重按 ID 倒序</p>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="editor-section">
|
<section class="editor-section">
|
||||||
|
|||||||
Reference in new issue
Block a user