修改问题

master
sunzehua 1 year ago
parent 9bbf4e0b4e
commit aea5507a91

@ -206,7 +206,7 @@
</template> </template>
<template #atd="{ row, rowIndex }"> <template #atd="{ row, rowIndex }">
<a-spin :spinning="row.atdLoading"> <a-spin :spinning="row.atdLoading">
<a-icon v-if="row.atd" style="cursor: pointer;" @click="handleRefshAtd(row, rowIndex)" type="reload" /> <a-icon v-if="!row.atd" style="cursor: pointer;" @click="handleRefshAtd(row, rowIndex)" type="reload" />
<span v-if="row.atd"> {{ row.atd.substring(0, 10) }}</span> <span v-if="row.atd"> {{ row.atd.substring(0, 10) }}</span>
</a-spin> </a-spin>
</template> </template>

@ -116,7 +116,7 @@
<a-button @click="handleUnable" type="danger"> <a-button @click="handleUnable" type="danger">
取消启用 取消启用
</a-button> </a-button>
<a-button @click="handleSubmitEnable" type="primary"> <a-button @click="handleSubmit" type="primary">
保存并启用 保存并启用
</a-button> </a-button>
<a-button @click="handlePub" type="primary"> <a-button @click="handlePub" type="primary">
@ -303,24 +303,22 @@
<a-spin :spinning="timeLoading"> <a-spin :spinning="timeLoading">
<div v-if="timeForm.activitiesList && timeForm.activitiesList.length > 0" class="time"> <div v-if="timeForm.activitiesList && timeForm.activitiesList.length > 0" class="time">
<div class="time-title">{{ this.timeForm.serviceProjectName }}</div> <div class="time-title">{{ this.timeForm.serviceProjectName }}</div>
<div style=" position: absolute;top: 10px;left: 51px;display:flex"> <div class="item" v-for="(item,index) in timeForm.activitiesList" :key="item.actId">
<div class="top" v-for="item in timeForm.activitiesList" :key="item.actId"> <div class="top">
<div class="right"> <div class="line" :class="{active:item.isYield==1}"></div>
<div class="line" :class="{ active: item.isYield == 1 }"></div> <div class="point" :class="{active:item.isYield==1}"></div>
<div class="line" v-if="index!=timeForm.activitiesList.length-1" :class="{active:item.isYield==1}"></div>
</div> </div>
<div class="left">
<div class="point" :class="{ active: item.isYield == 1 }"></div>
</div>
</div>
</div>
<div class="item" v-for="item in timeForm.activitiesList" :key="item.actId">
<div class="bottom"> <div class="bottom">
<div class="text"> {{ item.showName }}</div> <div :title="item.showName+item.actDate">{{ item.showName }}</div>
<div class="text" v-if="item.isYield == 1"> {{ item.actDate.substring(0, 10) }}</div> <div v-if="item.isYield==1">{{ item.actDate?item.actDate.substring(0,11):'' }}</div>
<div class="sub"> <div class="subList">
<div class="subItem" :key="ite.actId" v-for="ite in item.subList"> <div class="sub" v-for="ite in item.subList" :key="ite.actId">
<div class="pointSub" :class="{ active: ite.isYield == 1 }"></div> <div :class="{active:ite.isYield==1}" class="subPoint"></div>
{{ ite.showName }} <div :title="ite.showName+ite.actDate" class="text">
<span style="margin-right: 4px;">{{ ite.showName }}</span>
<span>{{ ite.actDate?ite.actDate.substring(0,11):'' }}</span>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -703,10 +701,10 @@ export default {
}, },
handleSubmitEnable() { handleSubmitEnable() {
const { form: { validateFields } } = this const { form: { validateFields } } = this
this.confirmLoading = true
validateFields((errors, values) => { validateFields((errors, values) => {
if (!errors) { if (!errors) {
values.pkId = null values.pkId = null
this.confirmLoading = true
StatusSkuBaseSavAndEnable(values).then((res) => { StatusSkuBaseSavAndEnable(values).then((res) => {
this.confirmLoading = false this.confirmLoading = false
if (res.data.succ) { if (res.data.succ) {
@ -805,7 +803,6 @@ export default {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
padding-top: 10px; padding-top: 10px;
position: relative;
.time-title { .time-title {
padding: 10px; padding: 10px;
@ -817,86 +814,49 @@ export default {
.active { .active {
background: rgb(2, 167, 240) !important; background: rgb(2, 167, 240) !important;
} }
.item{
.item { min-width: 120px;
margin-top: 20px; margin-right: -3px;
&:nth-child(3) { .top{
margin-left: 92px; display: flex;
margin-right: 50px; align-items: center;
} .line{
width: 45%;
&:nth-child(4) {
margin-right: 30px;
}
&:nth-child(5) {
margin-right: 73px;
}
&:nth-child(6) {
margin-right: 30px;
}
&:nth-child(7) {
margin-right: 55px;
}
&:nth-child(8) {
margin-right: 30px;
}
&:nth-child(9) {
margin-right: 41px;
}
}
.line {
width: 100px;
height: 2px; height: 2px;
background: rgb(215, 215, 215); background: rgb(215, 215, 215);
} }
.point{
.point { width: 11px;
width: 10px; height: 11px;
height: 10px;
border-radius: 50%; border-radius: 50%;
margin: 0 6px;
background: rgb(215, 215, 215); background: rgb(215, 215, 215);
margin: 0 3px;
} }
.left {
text-align: center;
position: relative;
.text {
margin-top: 3px;
} }
.bottom{
text-align: center;
margin-top: 10px;
} }
.subList{
.right { margin-top: 10px;
padding-top: 5px; padding-left: 10px;
}
.top {
display: flex
} }
.sub{
.subItem { margin-top: 4px;
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 5px; .subPoint{
.pointSub {
width: 10px; width: 10px;
height: 10px; height: 10px;
background: rgb(215, 215, 215);
border-radius: 50%; border-radius: 50%;
background: rgb(215, 215, 215);
margin-right: 3px; margin-right: 3px;
} }
.text{
.active {
background: rgb(2, 167, 240) !important;
} }
} }
}
} }
</style> </style>

@ -306,6 +306,7 @@ export default {
this.getList() this.getList()
this.modelObj = res.data this.modelObj = res.data
this.$refs.manyModel.bcFileFlag = true this.$refs.manyModel.bcFileFlag = true
this.selectedRowKeys = []
}) })
} else { } else {
this.$message.warning('请选择') this.$message.warning('请选择')

@ -233,6 +233,7 @@ export default {
this.getList() this.getList()
this.modelObj = res.data this.modelObj = res.data
this.$refs.manyModel.bcFileFlag = true this.$refs.manyModel.bcFileFlag = true
this.selectedRowKeys = []
}) })
} else { } else {
this.$message.warning('请选择') this.$message.warning('请选择')

@ -238,6 +238,7 @@ export default {
this.getList() this.getList()
this.modelObj = res.data this.modelObj = res.data
this.$refs.manyModel.bcFileFlag = true this.$refs.manyModel.bcFileFlag = true
this.selectedRowKeys = []
}) })
} else { } else {
this.$message.warning('请选择') this.$message.warning('请选择')

Loading…
Cancel
Save