File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,15 @@ const redoDialog = ref(false)
1818// TMDB编号
1919const redoTmdbId = ref (' ' )
2020
21+ // 类型
22+ const redoType = ref (' 电影' )
23+
24+ // 类型下拉框:电影、电视剧
25+ const redoTypeItems = ref ([
26+ { title: ' 电影' , value: ' 电影' },
27+ { title: ' 电视剧' , value: ' 电视剧' },
28+ ])
29+
2130// 当前操作记录
2231const currentHistory = ref <TransferHistory >()
2332
@@ -145,7 +154,7 @@ async function removeHistory(item: TransferHistory) {
145154// 重新整理
146155async function rehandleHistory() {
147156 try {
148- if (! redoTmdbId .value )
157+ if (! redoTmdbId .value || ! redoType . value )
149158 return
150159
151160 redoDialog .value = false
@@ -161,6 +170,7 @@ async function rehandleHistory() {
161170 requestData ,
162171 {
163172 params: {
173+ mtype: redoType .value ,
164174 new_tmdbid: parseInt (redoTmdbId .value ),
165175 },
166176 },
@@ -321,10 +331,18 @@ const dropdownItems = ref([
321331 <VCard title =" 重新整理" >
322332 <VCardText >
323333 <VRow >
324- <VCol cols =" 12" >
334+ <VCol cols =" 12" md =" 4" >
335+ <VSelect
336+ v-model =" redoType"
337+ label =" 类型"
338+ :rules =" [requiredValidator]"
339+ :items =" redoTypeItems"
340+ />
341+ </VCol >
342+ <VCol cols =" 12" md =" 8" >
325343 <VTextField
326344 v-model =" redoTmdbId"
327- label =" 请输入TMDB编号 "
345+ label =" TMDB编号 "
328346 :rules =" [requiredValidator, numberValidator]"
329347 />
330348 </VCol >
You can’t perform that action at this time.
0 commit comments