部分页面优化
This commit is contained in:
@@ -248,7 +248,6 @@ export default defineComponent({
|
||||
}
|
||||
const itemMoveMousedown = async (index:any,e:any)=>{
|
||||
if(detailData.selectDetail.id != detailData.frontBack.front[index].id)return
|
||||
let isOpen = false
|
||||
let isModal = false
|
||||
await new Promise((resolve, reject) => {
|
||||
// if(
|
||||
@@ -281,13 +280,10 @@ export default defineComponent({
|
||||
// isModal = false
|
||||
// }
|
||||
resolve(true)
|
||||
isOpen = true
|
||||
}).then((rv)=>{
|
||||
})
|
||||
if(isOpen){
|
||||
emit('canvasReload')
|
||||
store.commit('DesignDetail/setDesignColthes',detailData.frontBack.front[index].id)
|
||||
}
|
||||
// emit('canvasReload')
|
||||
// store.commit('DesignDetail/setDesignColthes',detailData.frontBack.front[index].id)
|
||||
if(isModal)return
|
||||
store.commit('DesignDetail/setDesignColthes',detailData.frontBack.front[index].id)
|
||||
selectItem.imgDomIndex = index
|
||||
|
||||
@@ -191,9 +191,10 @@ export default defineComponent({
|
||||
data.isShowMark = true
|
||||
Https.axiosPost(Https.httpUrls.brandDNAUpload, new_data,{headers:{'Content-Type': 'multipart/form-data'}}).then(
|
||||
(rv: any) => {
|
||||
// getLibraryList()
|
||||
rv.canvasUrl = rv.minIOPath
|
||||
dataDom.fall.push([rv]);
|
||||
dataDom.fall.clearData()
|
||||
getLibraryList()
|
||||
// rv.canvasUrl = rv.minIOPath
|
||||
// dataDom.fall.push([rv]);
|
||||
data.isNull = false
|
||||
data.isShowMark = false
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
ref="select"
|
||||
v-model:value="sex"
|
||||
:options="sexList"
|
||||
:fieldNames="{ label: 'name', value: 'value' }"
|
||||
@change="getPosition"
|
||||
>
|
||||
<template #suffixIcon>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<li class="newLabel setLabel_text">
|
||||
<input v-show="optionsItem.addOpenType" type="text" class="inputName" v-model="itemName" @keydown.enter="putName(-1,'affirm',optionsItem)">
|
||||
<i @click.stop="putName(-1,'affirm',optionsItem)" v-show="optionsItem.addOpenType" class="fi fi-br-check"></i>
|
||||
<div class="addLabel" v-show="!optionsItem.addOpenType" @click="newLabel(optionsItem,optionsItem.id)">+</div>
|
||||
<div class="addLabel" v-show="!optionsItem.addOpenType" @click="newLabel(optionsItem,optionsItem.id)"><i class="fi fi-rr-plus-small"></i></div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@@ -39,7 +39,7 @@
|
||||
<div @click.stop="">
|
||||
<input v-show="openType" type="text" class="inputName" v-model="itemName" @keydown.enter="putName(-1,'affirm','')">
|
||||
<i @click.stop="putName(-1,'affirm','')" v-show="openType" class="fi fi-br-check"></i>
|
||||
<div class="addLabel" v-show="!openType" @click.stop="newLabel('','')">+</div>
|
||||
<div class="addLabel" v-show="!openType" @click.stop="newLabel('','')"><i class="fi fi-rr-plus-small"></i></div>
|
||||
</div>
|
||||
<div class="started_btn" :class="{active:labelBor}" @click="removeLabel(options)">{{ $t('LibraryPage.Delete') }}</div>
|
||||
|
||||
@@ -296,6 +296,7 @@ export default defineComponent({
|
||||
onOk() {
|
||||
data.deleteConfirm = 1
|
||||
_this.deleteClass(data)
|
||||
_this.labelBor = false
|
||||
},
|
||||
onCancel(){
|
||||
|
||||
@@ -557,12 +558,14 @@ export default defineComponent({
|
||||
.addLabel{
|
||||
border-radius: 50%;
|
||||
border: 1px solid #000;
|
||||
display: inline-block;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
line-height: 2rem;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
i{
|
||||
cursor: pointer;
|
||||
|
||||
Reference in New Issue
Block a user