2023-11-9-dist

This commit is contained in:
X1627315083
2023-11-09 10:16:18 +08:00
parent b596631b32
commit 4199833607
29 changed files with 722 additions and 103 deletions

View File

@@ -94,6 +94,7 @@
ref="cascader"
v-model:value="value"
style="width: 60%"
:field-names="{ label: 'classificationName', value: 'classificationName', children: 'childList'}"
multiple
@change="setLabel1"
max-tag-count="responsive"
@@ -317,7 +318,7 @@
</template>
<script lang="ts">
import { LoadingOutlined } from "@ant-design/icons-vue";
import { defineComponent,h ,ref,createVNode,nextTick} from 'vue'
import { defineComponent,h ,ref,createVNode,nextTick,provide} from 'vue'
import HeaderComponent from "@/component/HomePage/Header.vue";
import ModelPlacement from '@/component/LibraryPage/ModelPlacement.vue';
import setLabel from '@/component/LibraryPage/setLabel.vue';
@@ -401,7 +402,7 @@ export default defineComponent({
name:useI18n().t('LibraryPage.model')+'1'
})
let {t} = useI18n()
const options: CascaderProps['options'] = [
const options = ref([
{
label: 'Light',
value: 'light',
@@ -433,7 +434,14 @@ export default defineComponent({
},
],
},
];
]);
let type:any = {
selectCode:selectCode,
designType:designType
}
provide('options',options)
provide('type',type)
const filter: ShowSearchType['filter'] = (inputValue, path) => {
return path.some(option => option.label.toLowerCase().indexOf(inputValue.toLowerCase()) > -1);
};
@@ -476,9 +484,8 @@ export default defineComponent({
}
},
data(this_) {
console.log(this_);
return {
userInfo: {},
indicator: h(LoadingOutlined, {
style: {
fontSize: "2.4rem",
@@ -494,8 +501,11 @@ export default defineComponent({
};
},
async mounted(){
let userInfo:any = getCookie("userInfo")
this.userInfo = JSON.parse(userInfo);
this.uploadUrl = getUploadUrl()
this.getLibraryList()
this.getClass()
this.getSex()
this.token = getCookie("token") || "";
@@ -557,6 +567,7 @@ export default defineComponent({
this.selectImgList = []
this.selectSingleImg = {}
this.getLibraryList()
this.getClass()
this.uploadGenerate = 'Upload'
this.captionGeneration = ''
this.selectGenerateList = []
@@ -1038,6 +1049,29 @@ export default defineComponent({
// setLabel.init('remove')
// this.labelOpen = false
// }
getClass(){
let designType = this.selectCode == 'Sketchboard' || this.selectCode == 'MarketingSketch' ? this.designType : ''
let data = {
"classificationIdList": [],
"classificationName": "",
"createTime": "",
"deleteConfirm": '',
"id": '',
"libraryId": '',
"parentId": '',
"type": this.selectCode,
"updateTime": "",
"userId": ''
}
Https.axiosPost(Https.httpUrls.queryClassification, data).then(
(rv: any) => {
console.log(rv);
this.options = rv
}
).catch((res)=>{
});
},
}
})
</script>