xbx #134
@ -7,6 +7,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
v-model:value="form.title"
|
v-model:value="form.title"
|
||||||
:placeholder="lan.$t('shuruzhibobiaoti')"
|
:placeholder="lan.$t('shuruzhibobiaoti')"
|
||||||
|
@click="isEntitled = jinzhi"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :label="lan.$t('zhibofengmian')" class="item-cover" :rules="{ required: true, message: 'Please input Activity name', trigger: 'blur'}">
|
<a-form-item :label="lan.$t('zhibofengmian')" class="item-cover" :rules="{ required: true, message: 'Please input Activity name', trigger: 'blur'}">
|
||||||
@ -110,7 +111,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div> -->
|
</div> -->
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :label="lan.$t('kaishishijian')" :rules="{ required: true, message: 'Please input Activity name', trigger: 'blur'}">
|
<a-form-item :label="lan.$t('kaishishijian')" @click="isEntitled = jinzhi" :rules="{ required: true, message: 'Please input Activity name', trigger: 'blur'}">
|
||||||
|
|
||||||
<!-- <a-input
|
<!-- <a-input
|
||||||
size="small"
|
size="small"
|
||||||
@ -123,6 +124,7 @@
|
|||||||
format="YYYY-MM-DD HH:mm"
|
format="YYYY-MM-DD HH:mm"
|
||||||
:value="form.dateline"
|
:value="form.dateline"
|
||||||
:disabled-date="disabledDate"
|
:disabled-date="disabledDate"
|
||||||
|
@click="isEntitled = jinzhi"
|
||||||
@change="startchange"
|
@change="startchange"
|
||||||
:placeholder="lan.$t('shezhikaishishijian')"
|
:placeholder="lan.$t('shezhikaishishijian')"
|
||||||
:getCalendarContainer="
|
:getCalendarContainer="
|
||||||
@ -139,6 +141,7 @@
|
|||||||
<a-input
|
<a-input
|
||||||
size="small"
|
size="small"
|
||||||
v-model:value="form.livetime"
|
v-model:value="form.livetime"
|
||||||
|
@click="isEntitled = jinzhi"
|
||||||
:placeholder="lan.$t('shuruzhiboshijian')"
|
:placeholder="lan.$t('shuruzhiboshijian')"
|
||||||
type="number"
|
type="number"
|
||||||
/>
|
/>
|
||||||
@ -153,6 +156,7 @@
|
|||||||
<a-input
|
<a-input
|
||||||
size="small"
|
size="small"
|
||||||
v-model:value="form.livenumber"
|
v-model:value="form.livenumber"
|
||||||
|
@click="isEntitled = jinzhi"
|
||||||
:placeholder="lan.$t('shuruzhiborenshu')"
|
:placeholder="lan.$t('shuruzhiborenshu')"
|
||||||
type="number"
|
type="number"
|
||||||
/>
|
/>
|
||||||
@ -162,6 +166,7 @@
|
|||||||
<a-form-item :label="lan.$t('zhibojianjie')" class="brief">
|
<a-form-item :label="lan.$t('zhibojianjie')" class="brief">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
v-model:value="form.desc"
|
v-model:value="form.desc"
|
||||||
|
@click="isEntitled = jinzhi"
|
||||||
:autoSize="true"
|
:autoSize="true"
|
||||||
class="brief-textarea"
|
class="brief-textarea"
|
||||||
:maxlength="200"
|
:maxlength="200"
|
||||||
@ -274,6 +279,9 @@ export default defineComponent({
|
|||||||
const videofile = ref<File>();
|
const videofile = ref<File>();
|
||||||
const videos = ref<Array<any>>([]);
|
const videos = ref<Array<any>>([]);
|
||||||
const lives = ref<any>({});
|
const lives = ref<any>({});
|
||||||
|
const jinzhi = ref(false)
|
||||||
|
const isEntitled: Ref<boolean> = ref(false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证直播时间
|
* 验证直播时间
|
||||||
*/
|
*/
|
||||||
@ -365,6 +373,10 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
const seting = computed(() => store.state.seting)
|
const seting = computed(() => store.state.seting)
|
||||||
const onSubmit = (e: FromSend) => {
|
const onSubmit = (e: FromSend) => {
|
||||||
|
if(jinzhi.value){
|
||||||
|
isEntitled.value = true;
|
||||||
|
|
||||||
|
}
|
||||||
if(!issum){
|
if(!issum){
|
||||||
message.error(lan.$t("shangchuanwancheng"))
|
message.error(lan.$t("shangchuanwancheng"))
|
||||||
return;
|
return;
|
||||||
@ -426,7 +438,6 @@ export default defineComponent({
|
|||||||
console.log("error", err);
|
console.log("error", err);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const isEntitled: Ref<boolean> = ref(false);
|
|
||||||
/**
|
/**
|
||||||
* 隐藏无资格提示
|
* 隐藏无资格提示
|
||||||
*/
|
*/
|
||||||
@ -517,11 +528,11 @@ export default defineComponent({
|
|||||||
// picinfo.url=res.video.url
|
// picinfo.url=res.video.url
|
||||||
form.value.img = res.video.url;
|
form.value.img = res.video.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
getlivest().then((res) => {
|
getlivest().then((res) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
isEntitled.value = true;
|
isEntitled.value = true;
|
||||||
lives.value = res;
|
lives.value = res;
|
||||||
|
jinzhi.value = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
function beforeUploadpic(info?: any) {
|
function beforeUploadpic(info?: any) {
|
||||||
@ -552,9 +563,17 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function video(file: any){
|
function video(file: any){
|
||||||
|
if(jinzhi.value){
|
||||||
|
isEntitled.value = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return provenvideo(file)
|
return provenvideo(file)
|
||||||
}
|
}
|
||||||
function imgs(file: any){
|
function imgs(file: any){
|
||||||
|
if(jinzhi.value){
|
||||||
|
isEntitled.value = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return provenimg(file)
|
return provenimg(file)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -593,7 +612,8 @@ export default defineComponent({
|
|||||||
onquxiao,
|
onquxiao,
|
||||||
isquxiao,
|
isquxiao,
|
||||||
video,
|
video,
|
||||||
imgs
|
imgs,
|
||||||
|
jinzhi
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user