feat(custom): 增加游戏列表排序
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -25,7 +25,7 @@
|
||||
},
|
||||
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
"source.fixAll.eslint": "explicit"
|
||||
},
|
||||
"files.associations": {
|
||||
"*.env.*": "dotenv",
|
||||
|
||||
@@ -188,6 +188,7 @@ const model = ref({
|
||||
introduction: '',
|
||||
cover: [],
|
||||
status: 2,
|
||||
sort: 0,
|
||||
})
|
||||
|
||||
const submit = () => {
|
||||
@@ -211,6 +212,7 @@ const clear = () => {
|
||||
introduction: '',
|
||||
cover: [],
|
||||
status: 2,
|
||||
sort: 0,
|
||||
}
|
||||
formRef.value?.restoreValidation()
|
||||
showModal.value = false
|
||||
@@ -266,6 +268,9 @@ const dropdownSelect = (e) => {
|
||||
<n-form-item-gi :span="16" label="是否显示:" path="status">
|
||||
<n-switch v-model:value="model.status" :unchecked-value="2" :checked-value="1" />
|
||||
</n-form-item-gi>
|
||||
<n-form-item-gi :span="16" label="序号:" path="sort">
|
||||
<n-input-number v-model:value="model.sort" :min="0" placeholder="请输入游戏序号" />
|
||||
</n-form-item-gi>
|
||||
<n-form-item-gi :span="12">
|
||||
<div m-auto p-10>
|
||||
<n-button type="primary" @click="submit">提交</n-button>
|
||||
|
||||
Reference in New Issue
Block a user