选择线稿图后下一步
This commit is contained in:
@@ -3,6 +3,7 @@ import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue";
|
||||
import { Https } from '@/tool/https'
|
||||
import { setPubDate } from "@/tool/util";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useStore } from "vuex";
|
||||
|
||||
const props = defineProps({
|
||||
getCollectionListData: {
|
||||
@@ -14,6 +15,7 @@ const emit = defineEmits([
|
||||
'selectCollectionItem',
|
||||
])
|
||||
const {t} = useI18n()
|
||||
const store = useStore()
|
||||
const page = ref(1)
|
||||
const size = ref(6)
|
||||
const total = ref(0)
|
||||
@@ -29,9 +31,13 @@ const getListData = ()=>{
|
||||
}
|
||||
const getCreateList = ()=>{
|
||||
let data = getListData()
|
||||
store.commit("set_loading", true)
|
||||
Https.axiosPost(Https.httpUrls.historyProject, data).then((rv)=>{
|
||||
list.value = rv.content || []
|
||||
total.value = rv.total || 0
|
||||
store.commit("set_loading", false)
|
||||
}).catch(()=>{
|
||||
store.commit("set_loading", false)
|
||||
})
|
||||
}
|
||||
const selectCollectionItem = (item:any)=>{
|
||||
|
||||
@@ -11,8 +11,8 @@ import { useRouter } from "vue-router"
|
||||
//])
|
||||
const router = useRouter()
|
||||
let getCollectionListData = reactive({
|
||||
searchType: '',
|
||||
searchText: '',
|
||||
process: [],
|
||||
projectName: '',
|
||||
|
||||
})
|
||||
const isShowMark = ref(false)
|
||||
@@ -20,8 +20,12 @@ const historyListRef = ref(null) as any
|
||||
const handleSearch = () => {
|
||||
historyListRef.value.getCreateList()
|
||||
}
|
||||
const setSearchType = (type:any) => {
|
||||
getCollectionListData.searchType = type
|
||||
const setProcess = (type:any) => {
|
||||
if(type){
|
||||
getCollectionListData.process = [type]
|
||||
}else{
|
||||
getCollectionListData.process = []
|
||||
}
|
||||
historyListRef.value.getCreateList()
|
||||
}
|
||||
const selectCollectionItem = (item:any) => {
|
||||
@@ -47,15 +51,15 @@ defineExpose({})
|
||||
<div class="content">
|
||||
<div class="title">
|
||||
<div class="left">
|
||||
<div :class="{active:getCollectionListData.searchType == ''}" @click="setSearchType('')">All</div>
|
||||
<div :class="{active:getCollectionListData.searchType == 'SERIES_DESIGN'}" @click="setSearchType('SERIES_DESIGN')">Series Design</div>
|
||||
<div :class="{active:getCollectionListData.searchType == 'SINGLE_DESIGN'}" @click="setSearchType('SINGLE_DESIGN')">Single Design</div>
|
||||
<div :class="{active:!getCollectionListData.process?.[0]}" @click="setProcess('')">All</div>
|
||||
<div :class="{active:getCollectionListData.process[0] == 'SERIES_DESIGN'}" @click="setProcess('SERIES_DESIGN')">Series Design</div>
|
||||
<div :class="{active:getCollectionListData.process[0] == 'SINGLE_DESIGN'}" @click="setProcess('SINGLE_DESIGN')">Single Design</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="search_input flex flex-align-center">
|
||||
<input
|
||||
class="search_input_inner"
|
||||
v-model="getCollectionListData.searchText"
|
||||
v-model="getCollectionListData.projectName"
|
||||
:bordered="false"
|
||||
@keydown.enter="handleSearch"
|
||||
placeholder="123123"
|
||||
|
||||
Reference in New Issue
Block a user