修复了一些bug
This commit is contained in:
@@ -171,7 +171,9 @@
|
||||
</a-form-item>
|
||||
<a-form-item :wrapper-col="{ span: 4, offset: 0 }">
|
||||
<a-button @click="onSubmit">{{ lan.$t("fabuzhibo") }}</a-button>
|
||||
<a-button style="margin-left:0.15rem;background-color: red;" @click="isquxiao = true" v-if="isbianji">{{ lan.$t("quxiaozhibo") }}</a-button>
|
||||
</a-form-item>
|
||||
|
||||
</a-form>
|
||||
<div class="modal-container">
|
||||
<a-modal
|
||||
@@ -206,6 +208,14 @@
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
<a-modal
|
||||
:title="lan.$t('quxiaozhibo')"
|
||||
v-model:visible="isquxiao"
|
||||
:confirm-loading="confirmLoading"
|
||||
@ok="onquxiao()"
|
||||
>
|
||||
<p>{{ lan.$t("querenquxiao") }}</p>
|
||||
</a-modal>
|
||||
<nav-bottom></nav-bottom>
|
||||
</div>
|
||||
</template>
|
||||
@@ -226,7 +236,7 @@ import RankList from "./RankList.vue";
|
||||
import { previewCover } from "@/utils/common";
|
||||
import { FromSend, ImgInfo } from "@/types/index";
|
||||
import { uploadflie } from "@/utils/vod";
|
||||
import { getlivest, liveadd, liveinfo, setlive } from "@/api";
|
||||
import { cancellive, getlivest, liveadd, liveinfo, setlive } from "@/api";
|
||||
import { useRoute } from "vue-router";
|
||||
import dayjs from "dayjs";
|
||||
import { message } from "ant-design-vue";
|
||||
@@ -255,7 +265,7 @@ export default defineComponent({
|
||||
livenumber: "",
|
||||
desc: "",
|
||||
});
|
||||
|
||||
const isquxiao = ref(false)
|
||||
const uploadprogress: Ref<number> = ref(0);
|
||||
const uploadpicprogress: Ref<number> = ref(0);
|
||||
const videofile = ref<File>();
|
||||
@@ -344,6 +354,7 @@ export default defineComponent({
|
||||
* todo 需要后台返回年份
|
||||
*/
|
||||
const id = useRoute().query.id;
|
||||
const isbianji = ref(id);
|
||||
if (id != null && typeof id == "string") {
|
||||
liveinfo(parseInt(id)).then((res) => {
|
||||
form.value = res;
|
||||
@@ -519,6 +530,17 @@ export default defineComponent({
|
||||
return current && current < now;
|
||||
}
|
||||
|
||||
function onquxiao(){
|
||||
isquxiao.value = false;
|
||||
if (id != null && typeof id == "string") {
|
||||
cancellive(parseInt(id), 3).then((res)=>{
|
||||
if(res){
|
||||
router.push("/regime/live")
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
labelCol: { span: 4 },
|
||||
wrapperCol: { span: 14 },
|
||||
@@ -549,7 +571,10 @@ export default defineComponent({
|
||||
ifallowupload,
|
||||
fankui,
|
||||
lan,
|
||||
disabledDate
|
||||
disabledDate,
|
||||
isbianji,
|
||||
onquxiao,
|
||||
isquxiao
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user