|
@@ -20,7 +20,9 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="创作人">
|
|
<el-form-item label="创作人">
|
|
|
- <el-input v-model="queryForm.authorName" placeholder="请输入创作人" clearable style="width:150px" />
|
|
|
|
|
|
|
+ <el-select v-model="queryForm.authorName" placeholder="全部" clearable filterable style="width:150px">
|
|
|
|
|
+ <el-option v-for="name in authorOptions" :key="name" :label="name" :value="name" />
|
|
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="状态">
|
|
<el-form-item label="状态">
|
|
|
<el-select v-model="queryForm.status" placeholder="全部" clearable style="width:110px">
|
|
<el-select v-model="queryForm.status" placeholder="全部" clearable style="width:110px">
|
|
@@ -413,7 +415,8 @@ import {
|
|
|
publishPlan,
|
|
publishPlan,
|
|
|
batchPublishPlan,
|
|
batchPublishPlan,
|
|
|
offshelfPlan,
|
|
offshelfPlan,
|
|
|
- batchOffshelfPlan
|
|
|
|
|
|
|
+ batchOffshelfPlan,
|
|
|
|
|
+ getPlanAuthors
|
|
|
} from '@/api/plan'
|
|
} from '@/api/plan'
|
|
|
import { getAcupointList } from '@/api/acupoint'
|
|
import { getAcupointList } from '@/api/acupoint'
|
|
|
import { getTechniqueList } from '@/api/moxibustion'
|
|
import { getTechniqueList } from '@/api/moxibustion'
|
|
@@ -447,18 +450,21 @@ const userStore = useUserStore()
|
|
|
// ============ 选项列表(用于选择框) ============
|
|
// ============ 选项列表(用于选择框) ============
|
|
|
const acupointOptions = ref([])
|
|
const acupointOptions = ref([])
|
|
|
const techniqueOptions = ref([])
|
|
const techniqueOptions = ref([])
|
|
|
|
|
+const authorOptions = ref([])
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 加载穴位、手法选项列表
|
|
|
|
|
|
|
+ * 加载穴位、手法、创作人选项列表
|
|
|
*/
|
|
*/
|
|
|
async function loadOptions() {
|
|
async function loadOptions() {
|
|
|
try {
|
|
try {
|
|
|
- const [acupointRes, techniqueRes] = await Promise.all([
|
|
|
|
|
|
|
+ const [acupointRes, techniqueRes, authorRes] = await Promise.all([
|
|
|
getAcupointList(),
|
|
getAcupointList(),
|
|
|
- getTechniqueList()
|
|
|
|
|
|
|
+ getTechniqueList(),
|
|
|
|
|
+ getPlanAuthors().catch(() => ({ data: [] }))
|
|
|
])
|
|
])
|
|
|
acupointOptions.value = acupointRes.data || []
|
|
acupointOptions.value = acupointRes.data || []
|
|
|
techniqueOptions.value = techniqueRes.data || []
|
|
techniqueOptions.value = techniqueRes.data || []
|
|
|
|
|
+ authorOptions.value = authorRes.data || []
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
// 选项加载失败不影响主流程
|
|
// 选项加载失败不影响主流程
|
|
|
}
|
|
}
|