修复detail bug和取消教育版管理员获取用户使用的地区接口
This commit is contained in:
@@ -34,7 +34,7 @@ const DesignDetail : Module<DesignDetail,RootState> = {
|
||||
}
|
||||
let front:any = []
|
||||
let back:any = []
|
||||
console.log(data)
|
||||
state.designDetail = data
|
||||
// let printZIndex =
|
||||
data.clothes.forEach((v:any,index:any)=>{
|
||||
// if(!v?.partialDesignDTO){
|
||||
@@ -72,11 +72,9 @@ const DesignDetail : Module<DesignDetail,RootState> = {
|
||||
})
|
||||
state.frontBack.front = front
|
||||
state.frontBack.back = back
|
||||
state.designDetail = data
|
||||
},
|
||||
updataDetailItem(state,data){
|
||||
state.designDetail.clothes.forEach((item:any) => {
|
||||
console.log(state.selectDetail)
|
||||
if(item.id == state.selectDetail.id){
|
||||
for (const key in data) {
|
||||
item[key] = data[key]
|
||||
@@ -193,10 +191,11 @@ const DesignDetail : Module<DesignDetail,RootState> = {
|
||||
state.selectDetail = data
|
||||
},
|
||||
async setPraeview(state,value){//preview
|
||||
let data = value.rv
|
||||
let currentType = value.currentType
|
||||
let data = value?.rv || value
|
||||
console.log(data,'preview')
|
||||
let currentType = value?.currentType
|
||||
if(state.designDetail.oldModel?.url)state.frontBack.body.path = state.designDetail.oldModel.url
|
||||
state.designDetail.currentFullBodyView = value.rv.currentFullBodyView
|
||||
if(value?.rv?.currentFullBodyView)state.designDetail.currentFullBodyView = value.rv.currentFullBodyView
|
||||
for (let j = 0; j < data.clothes.length; j++) {
|
||||
const item = data.clothes[j];
|
||||
if(!item.id)continue
|
||||
@@ -279,9 +278,10 @@ const DesignDetail : Module<DesignDetail,RootState> = {
|
||||
state.designDetail.clothes.push(state.selectDetail)
|
||||
}
|
||||
state.selectDetail.id = item.id
|
||||
if(state.selectDetail.newDetail?.[currentType])delete state.selectDetail.newDetail[currentType]
|
||||
if(currentType)if(state.selectDetail.newDetail?.[currentType])delete state.selectDetail.newDetail[currentType]
|
||||
}
|
||||
}
|
||||
if(value.fun)value.fun()
|
||||
},
|
||||
|
||||
// setDesignItemOthers(state,data){
|
||||
|
||||
@@ -267,7 +267,7 @@ const userHabit : Module<UserHabit,RootState> = {
|
||||
if(data.systemUser != 0)state.userDetail.systemList.push(1)
|
||||
if(data.affiliate)state.userDetail.systemList.push(2)
|
||||
|
||||
let adminIdList = [88,6,46,31,73,83,87,4,11482,11630,12201,12592,23534,23705]
|
||||
let adminIdList = [88,6,46,31,73,83,87,4,11482,11630,12201,12592,23534,23705,23705]
|
||||
// if(data.email == '' || data.email)state.userDetail.systemList.push(3)
|
||||
if(adminIdList.indexOf(data.userId) > -1 || data.systemUser == 6 || data.systemUser == 7){
|
||||
state.userDetail.systemList.push(3)
|
||||
|
||||
Reference in New Issue
Block a user