mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 08:16:46 +08:00
持续时间可修改
This commit is contained in:
@@ -2250,7 +2250,7 @@ export default defineComponent({
|
||||
const store = useStore();
|
||||
const sysTypeOptions = computed(() => store.state.content_type);
|
||||
const durationText = computed(() => state.xjkkinputV3?.length?dayjs(state.xjkkinputV3[1]).diff(dayjs(state.xjkkinputV3[0]),'minute'):'请输入持续时间');
|
||||
|
||||
|
||||
const state = reactive({
|
||||
permissions:null,
|
||||
createId:null,
|
||||
@@ -2896,7 +2896,13 @@ export default defineComponent({
|
||||
|
||||
codeType: null, //二维码类型
|
||||
});
|
||||
|
||||
const nums = ref(0)
|
||||
watch(durationText,(val)=>{
|
||||
nums.value++
|
||||
if(nums.value>1){
|
||||
state.duration = val;
|
||||
}
|
||||
})
|
||||
// function timeChange(time, timeStr) {
|
||||
// // state.duration || (state.duration = dayjs(timeStr[1]).diff(dayjs(timeStr[0]),'minute'))
|
||||
// }
|
||||
@@ -3967,6 +3973,7 @@ function onFocusEnd(){
|
||||
let editBeginClass = ref(false)
|
||||
//编辑开课
|
||||
const handelEditStu = async (item) => {
|
||||
nums.value = 0
|
||||
editBeginClass.value = false
|
||||
if (item.expenseStatus && item.expenseStatus !== 'A10' && item.expenseStatus !== 'S00') {
|
||||
editBeginClass.value = true
|
||||
@@ -3993,7 +4000,7 @@ function onFocusEnd(){
|
||||
// }
|
||||
console.log("获取面授课开课详情", item);
|
||||
state.xjkkinputV2 = item.address;
|
||||
// state.duration = item.duration;
|
||||
state.duration = item.duration;
|
||||
state.checked1 = item.applyFlag === 1 ? true : false;
|
||||
state.attach = item.attach;
|
||||
|
||||
@@ -5179,6 +5186,7 @@ function onFocusEnd(){
|
||||
om_exit,
|
||||
ckxq_hs,
|
||||
durationText,
|
||||
nums,
|
||||
ftsr_exit,
|
||||
stm_exit,
|
||||
ft_exit_see,
|
||||
|
||||
Reference in New Issue
Block a user