|
@@ -20,7 +20,7 @@
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
// import { checkUserAddAble } from '/@/api/corporation/modal';
|
|
// import { checkUserAddAble } from '/@/api/corporation/modal';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
- import { updateCompnayApi } from '/@/api/corporation/list';
|
|
|
|
|
|
+ import { updateLiveRoomInfoApi } from '/@/api/device/list';
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components: { BasicModal, BasicForm },
|
|
components: { BasicModal, BasicForm },
|
|
@@ -139,9 +139,11 @@
|
|
const handleSubmit = async () => {
|
|
const handleSubmit = async () => {
|
|
const values = await validate();
|
|
const values = await validate();
|
|
//TODO hack parameter
|
|
//TODO hack parameter
|
|
- const res = await updateCompnayApi({
|
|
|
|
|
|
+ console.log('values', values);
|
|
|
|
+ const res = await updateLiveRoomInfoApi({
|
|
id: values.id,
|
|
id: values.id,
|
|
- expirationTime: values.expirationTime,
|
|
|
|
|
|
+ canShow: values.canShow,
|
|
|
|
+ liveRoomCapacities: values.liveRoomCapacities,
|
|
});
|
|
});
|
|
// let res = await checkUserAddAble({ phoneNum: values.managerPhone });
|
|
// let res = await checkUserAddAble({ phoneNum: values.managerPhone });
|
|
console.log('insertData', res);
|
|
console.log('insertData', res);
|