fix
This commit is contained in:
@@ -55,6 +55,14 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="habit_Overal_Single habit_style">
|
||||
<div class="habit_style_left">
|
||||
<div>Style:</div>
|
||||
<span :title="workspaceItem.styleName">{{ workspaceItem.styleName }}</span>
|
||||
</div>
|
||||
<!-- <div class="button_second">选择</div> -->
|
||||
<div class="started_btn" @click="setStyle">选择</div>
|
||||
</div>
|
||||
<div class="habit_Overal_Single">
|
||||
<div
|
||||
class="habit_Overal_Single_text"
|
||||
@@ -157,6 +165,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<habitSetStyle ref="habitSetStyle" @setParentData=setParentData @setWorkspaceStyle=setWorkspaceStyle></habitSetStyle>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -170,11 +179,13 @@ import { Modal,message,Upload} from 'ant-design-vue';
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||
import { openGuide,driverObj__ } from "@/tool/guide";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import habitSetStyle from "@/component/Detail/habitSetStyle.vue";
|
||||
import { position } from "html2canvas/dist/types/css/property-descriptors/position";
|
||||
export default defineComponent({
|
||||
components: {
|
||||
DownOutlined,
|
||||
UserOutlined,
|
||||
habitSetStyle,
|
||||
},
|
||||
setup(){
|
||||
const store = useStore();
|
||||
@@ -225,6 +236,7 @@ export default defineComponent({
|
||||
},
|
||||
])
|
||||
const {t} = useI18n()
|
||||
let styleList = ref([])
|
||||
return{
|
||||
systemSeleves,
|
||||
mannequins,
|
||||
@@ -237,7 +249,8 @@ export default defineComponent({
|
||||
singleTypeList,
|
||||
sex,
|
||||
position,
|
||||
t
|
||||
t,
|
||||
styleList
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
@@ -288,17 +301,6 @@ export default defineComponent({
|
||||
this.workspace.workspaceList.forEach((item:any) => {
|
||||
item.putName = false
|
||||
});
|
||||
// this.workspace.workspaceList.forEach((v:any)=>{
|
||||
// if(v.id == this.workspaceItem.id_){
|
||||
// this.workspaceItem = v
|
||||
// this.workspaceItem.id_ = v.id
|
||||
// }
|
||||
// if(v.id == oldVal){
|
||||
// delete v.isLastIndex
|
||||
// this.putWorkspace(v,newVal)
|
||||
// // this.getDetail(newVal)
|
||||
// }
|
||||
// })
|
||||
}
|
||||
},
|
||||
'workspaceItem.overallSingle':{
|
||||
@@ -315,15 +317,7 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
},
|
||||
// 'openType.model':{
|
||||
// handler(newVal:any,oldVal:any){
|
||||
// if(this.driver__.driver){
|
||||
// console.log(213);
|
||||
|
||||
// driverObj__.refresh();
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
|
||||
workspaceItem:{
|
||||
handler(newVal:any,oldVal:any){
|
||||
this.store.commit("setWorkspace", this.workspaceItem);
|
||||
@@ -340,7 +334,11 @@ export default defineComponent({
|
||||
// this.getPosition(resolve)
|
||||
// })
|
||||
await this.getPosition()
|
||||
this.getworkspace()
|
||||
if(this.workspaceItem.id == -1){
|
||||
console.log(123123123123);
|
||||
|
||||
this.getworkspace()
|
||||
}
|
||||
this.getSex()
|
||||
},
|
||||
directives:{
|
||||
@@ -527,7 +525,7 @@ export default defineComponent({
|
||||
if(index){
|
||||
// this.getDetail(index)
|
||||
}else{
|
||||
this.getworkspace()
|
||||
// this.getworkspace()
|
||||
}
|
||||
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
||||
this.workspace.workspaceList[index].putName = false
|
||||
@@ -709,7 +707,6 @@ export default defineComponent({
|
||||
nextTick().then(()=>{
|
||||
driverObj__.moveNext();
|
||||
// driverObj__.moveTo(29);
|
||||
|
||||
})
|
||||
}
|
||||
}else if(v == 'workspace'){
|
||||
@@ -763,6 +760,20 @@ export default defineComponent({
|
||||
// sureSelectModel(event: any) {
|
||||
// this.store.commit("setTemplateData", event);
|
||||
// },
|
||||
setWorkspaceStyle(data: any){
|
||||
this.workspaceItem.styleId = data
|
||||
this.putWorkspace(this.workspaceItem,'')
|
||||
},
|
||||
setStyle(){
|
||||
this.openType.habit = false
|
||||
let habitSetStyle:any = this.$refs.habitSetStyle;
|
||||
habitSetStyle.habitSetStyleMask = true
|
||||
// habitSetStyle.styleList = this.styleList
|
||||
habitSetStyle.init();
|
||||
},
|
||||
setParentData(){
|
||||
this.openType.habit = true
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
@@ -856,6 +867,24 @@ export default defineComponent({
|
||||
justify-content: center;
|
||||
margin: calc(3rem*1.2) 0;
|
||||
position: relative;
|
||||
&.habit_style{
|
||||
justify-content: space-between;
|
||||
.habit_style_left{
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
div{
|
||||
font-weight: 900;
|
||||
margin-right: 2rem;
|
||||
}
|
||||
span{
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
.habit_Overal_Single_text {
|
||||
font-weight: 600;
|
||||
color: rgba(0, 0, 0, 0.5);
|
||||
|
||||
Reference in New Issue
Block a user