fix
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<div class="modal_title_text_intro"></div>
|
||||
</div>
|
||||
<div class="habitSetStyle_content_bottom">
|
||||
<div class="content_bottom_item" v-for="item in styleList">
|
||||
<div class="content_bottom_item" v-for="item in mannequinStyle">
|
||||
<div class="content_bottom_item_border" :class="{active:item.name == selectStyle.name}" @click="setItemSelect(item)">
|
||||
{{ item.name}}
|
||||
</div>
|
||||
@@ -61,7 +61,12 @@ import { downloadIamge } from "@/tool/util";
|
||||
import { useI18n } from "vue-i18n";
|
||||
export default defineComponent({
|
||||
emits:['setParentData','setWorkspaceStyle'],
|
||||
|
||||
props:{
|
||||
mannequinStyle:{
|
||||
type:Array,
|
||||
default:()=>[]
|
||||
}
|
||||
},
|
||||
setup(props,{emit}) {
|
||||
let habitSetStyle: any = ref(false);//弹窗
|
||||
let habitSetStyleMask:any = ref(false)//弹窗遮罩
|
||||
@@ -94,9 +99,9 @@ setup(props,{emit}) {
|
||||
}
|
||||
let init = (data:any)=>{
|
||||
habitSetStyle.value = true
|
||||
if(habitSetStyleData.styleList.length == 0){
|
||||
getStyleList()
|
||||
}
|
||||
// if(habitSetStyleData.styleList.length == 0){
|
||||
// getStyleList()
|
||||
// }
|
||||
oldDataId = data.styleId
|
||||
habitSetStyleData.selectStyle.id = data.styleId
|
||||
habitSetStyleData.selectStyle.name = data.styleName
|
||||
@@ -130,25 +135,27 @@ setup(props,{emit}) {
|
||||
if(oldDataId == data.id){
|
||||
cleardata()
|
||||
}else{
|
||||
let _this = this
|
||||
Modal.confirm({
|
||||
title: t('Habit.jsContent3'),
|
||||
icon: createVNode(ExclamationCircleOutlined),
|
||||
okText: 'Yes',
|
||||
cancelText: 'No',
|
||||
mask:false,
|
||||
centered:true,
|
||||
zIndex:1050,
|
||||
onOk() {
|
||||
data.isRevampModel = true
|
||||
emit('setWorkspaceStyle',data)
|
||||
cleardata()
|
||||
},
|
||||
onCancel() {
|
||||
emit('setWorkspaceStyle',data)
|
||||
cleardata()
|
||||
},
|
||||
});
|
||||
// let _this = this
|
||||
// Modal.confirm({
|
||||
// title: t('Habit.jsContent3'),
|
||||
// icon: createVNode(ExclamationCircleOutlined),
|
||||
// okText: 'Yes',
|
||||
// cancelText: 'No',
|
||||
// mask:false,
|
||||
// centered:true,
|
||||
// zIndex:1050,
|
||||
// onOk() {
|
||||
// data.isRevampModel = true
|
||||
// emit('setWorkspaceStyle',data)
|
||||
// cleardata()
|
||||
// },
|
||||
// onCancel() {
|
||||
// emit('setWorkspaceStyle',data)
|
||||
// cleardata()
|
||||
// },
|
||||
// });
|
||||
emit('setWorkspaceStyle',data)
|
||||
cleardata()
|
||||
}
|
||||
}
|
||||
let setClear = ()=>{
|
||||
|
||||
Reference in New Issue
Block a user