commit
This commit is contained in:
@@ -125,7 +125,6 @@ export default defineComponent({
|
||||
type2:prop.msg
|
||||
},
|
||||
store: useStore(),
|
||||
workspaceCom:{}
|
||||
}
|
||||
},
|
||||
directives:{
|
||||
@@ -175,9 +174,7 @@ export default defineComponent({
|
||||
},
|
||||
},
|
||||
mounted () {
|
||||
this.workspaceCom = computed(()=>{
|
||||
return this.store?.state?.Workspace?.workspace
|
||||
})
|
||||
|
||||
// let loding = document.getElementsByClassName("material_content_list_loding")[0]
|
||||
// let bodyLoding = document.getElementsByClassName("material_content_body")[0]
|
||||
// const ob = new IntersectionObserver(callback,{
|
||||
@@ -200,10 +197,6 @@ export default defineComponent({
|
||||
// }
|
||||
},
|
||||
watch:{
|
||||
workspaceCom(newVal,oldVal){
|
||||
this.workspace = newVal
|
||||
this.getPosition()
|
||||
},
|
||||
sketchboardList:{
|
||||
handler(newVal:any,oldVal:any){
|
||||
// this.store.state.Workspace.workspace
|
||||
@@ -260,27 +253,6 @@ export default defineComponent({
|
||||
this.getLibraryList()
|
||||
|
||||
},
|
||||
getPosition(){
|
||||
let params
|
||||
if(this.workspace.sex == 'Female'){
|
||||
params = 'FemalePosition'
|
||||
}else{
|
||||
params = 'MalePosition'
|
||||
}
|
||||
Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:params}}).then((rv: any) => {
|
||||
if (rv) {
|
||||
let arr:any = []
|
||||
rv.forEach((item:any) => {
|
||||
let obj = {
|
||||
value:item.name,
|
||||
label:item.name,
|
||||
}
|
||||
arr.push(obj)
|
||||
});
|
||||
this.disignTypeList = arr
|
||||
}
|
||||
})
|
||||
},
|
||||
selectImgItem(imgData:any){
|
||||
imgData.type_ = this.type_
|
||||
imgData.resData = JSON.parse(JSON.stringify(imgData))
|
||||
@@ -341,7 +313,6 @@ export default defineComponent({
|
||||
}
|
||||
aa.push(item)
|
||||
});
|
||||
|
||||
this.imgList = aa
|
||||
this.total = rv.total
|
||||
this.isShowLoading = false
|
||||
|
||||
Reference in New Issue
Block a user