|
@@ -470,7 +470,7 @@ const _sfc_main = {
|
|
|
url: `${common_config.apiBaseUrl}/api/voice_interview_interaction/`,
|
|
url: `${common_config.apiBaseUrl}/api/voice_interview_interaction/`,
|
|
|
method: "POST",
|
|
method: "POST",
|
|
|
data: {
|
|
data: {
|
|
|
- tenant_id: userInfo.tenant_id || 1,
|
|
|
|
|
|
|
+ tenant_id: common_vendor.index.getStorageSync("tenant_id") || userInfo.tenant_id || 1,
|
|
|
question_id: jobPositionQuestionId,
|
|
question_id: jobPositionQuestionId,
|
|
|
position_config_id: positionConfigId,
|
|
position_config_id: positionConfigId,
|
|
|
application_id: appId
|
|
application_id: appId
|
|
@@ -1696,7 +1696,7 @@ const _sfc_main = {
|
|
|
uploadFileWithXHRBackground(task) {
|
|
uploadFileWithXHRBackground(task) {
|
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
|
const openid = userInfo ? JSON.parse(userInfo).openid || "" : "";
|
|
const openid = userInfo ? JSON.parse(userInfo).openid || "" : "";
|
|
|
- const tenant_id = JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
|
|
|
|
+ const tenant_id = common_vendor.index.getStorageSync("tenant_id") || JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
const formData = new FormData();
|
|
const formData = new FormData();
|
|
|
formData.append("file", task.file);
|
|
formData.append("file", task.file);
|
|
|
formData.append("openid", openid);
|
|
formData.append("openid", openid);
|
|
@@ -1750,7 +1750,7 @@ const _sfc_main = {
|
|
|
uploadFileWithUniBackground(task) {
|
|
uploadFileWithUniBackground(task) {
|
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
|
const openid = userInfo ? JSON.parse(userInfo).openid || "" : "";
|
|
const openid = userInfo ? JSON.parse(userInfo).openid || "" : "";
|
|
|
- const tenant_id = JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
|
|
|
|
+ const tenant_id = common_vendor.index.getStorageSync("tenant_id") || JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
const uploadTask = common_vendor.index.uploadFile({
|
|
const uploadTask = common_vendor.index.uploadFile({
|
|
|
url: `${common_config.apiBaseUrl}/api/upload/`,
|
|
url: `${common_config.apiBaseUrl}/api/upload/`,
|
|
|
filePath: task.file,
|
|
filePath: task.file,
|
|
@@ -1822,7 +1822,7 @@ const _sfc_main = {
|
|
|
submitVideoToInterviewBackground(videoUrl, task) {
|
|
submitVideoToInterviewBackground(videoUrl, task) {
|
|
|
const followUpRequestData = {
|
|
const followUpRequestData = {
|
|
|
application_id: common_vendor.index.getStorageSync("appId"),
|
|
application_id: common_vendor.index.getStorageSync("appId"),
|
|
|
- tenant_id: JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1",
|
|
|
|
|
|
|
+ tenant_id: common_vendor.index.getStorageSync("tenant_id") || JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1",
|
|
|
video_url: videoUrl,
|
|
video_url: videoUrl,
|
|
|
original_question_id: this.parentJobPositionQuestionId,
|
|
original_question_id: this.parentJobPositionQuestionId,
|
|
|
// 使用保存的job_position_question_id
|
|
// 使用保存的job_position_question_id
|
|
@@ -1933,7 +1933,7 @@ const _sfc_main = {
|
|
|
uploadFileWithXHR(task) {
|
|
uploadFileWithXHR(task) {
|
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
|
const openid = userInfo ? JSON.parse(userInfo).openid || "" : "";
|
|
const openid = userInfo ? JSON.parse(userInfo).openid || "" : "";
|
|
|
- const tenant_id = JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
|
|
|
|
+ const tenant_id = common_vendor.index.getStorageSync("tenant_id") || JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
const formData = new FormData();
|
|
const formData = new FormData();
|
|
|
formData.append("file", task.file);
|
|
formData.append("file", task.file);
|
|
|
formData.append("openid", openid);
|
|
formData.append("openid", openid);
|
|
@@ -1988,7 +1988,7 @@ const _sfc_main = {
|
|
|
uploadFileWithUni(task) {
|
|
uploadFileWithUni(task) {
|
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
const userInfo = common_vendor.index.getStorageSync("userInfo");
|
|
|
const openid = userInfo ? JSON.parse(userInfo).openid || "" : "";
|
|
const openid = userInfo ? JSON.parse(userInfo).openid || "" : "";
|
|
|
- const tenant_id = JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
|
|
|
|
+ const tenant_id = common_vendor.index.getStorageSync("tenant_id") || JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
const uploadTask = common_vendor.index.uploadFile({
|
|
const uploadTask = common_vendor.index.uploadFile({
|
|
|
url: `${common_config.apiBaseUrl}/api/upload/`,
|
|
url: `${common_config.apiBaseUrl}/api/upload/`,
|
|
|
filePath: task.file,
|
|
filePath: task.file,
|
|
@@ -2057,7 +2057,7 @@ const _sfc_main = {
|
|
|
application_id: common_vendor.index.getStorageSync("appId"),
|
|
application_id: common_vendor.index.getStorageSync("appId"),
|
|
|
question_id: task.questionId,
|
|
question_id: task.questionId,
|
|
|
video_url: videoUrl,
|
|
video_url: videoUrl,
|
|
|
- tenant_id: JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1",
|
|
|
|
|
|
|
+ tenant_id: common_vendor.index.getStorageSync("tenant_id") || JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1",
|
|
|
is_follow_up: task.isFollowUp ? 1 : 0,
|
|
is_follow_up: task.isFollowUp ? 1 : 0,
|
|
|
question_form: task.questionForm,
|
|
question_form: task.questionForm,
|
|
|
question_text: task.questionText
|
|
question_text: task.questionText
|
|
@@ -2066,7 +2066,7 @@ const _sfc_main = {
|
|
|
if (task.isFollowUp) {
|
|
if (task.isFollowUp) {
|
|
|
const followUpRequestData = {
|
|
const followUpRequestData = {
|
|
|
application_id: common_vendor.index.getStorageSync("appId"),
|
|
application_id: common_vendor.index.getStorageSync("appId"),
|
|
|
- tenant_id: JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1",
|
|
|
|
|
|
|
+ tenant_id: common_vendor.index.getStorageSync("tenant_id") || JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1",
|
|
|
video_url: videoUrl,
|
|
video_url: videoUrl,
|
|
|
original_question_id: this.parentJobPositionQuestionId,
|
|
original_question_id: this.parentJobPositionQuestionId,
|
|
|
// 使用保存的job_position_question_id
|
|
// 使用保存的job_position_question_id
|
|
@@ -2782,7 +2782,7 @@ const _sfc_main = {
|
|
|
// 添加获取问题数据的方法
|
|
// 添加获取问题数据的方法
|
|
|
fetchQuestions() {
|
|
fetchQuestions() {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
- const tenant_id = JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
|
|
|
|
+ const tenant_id = common_vendor.index.getStorageSync("tenant_id") || JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
let position_id = 1;
|
|
let position_id = 1;
|
|
|
try {
|
|
try {
|
|
|
const selectedJob = JSON.parse(common_vendor.index.getStorageSync("selectedJob") || "{}");
|
|
const selectedJob = JSON.parse(common_vendor.index.getStorageSync("selectedJob") || "{}");
|
|
@@ -3185,7 +3185,7 @@ const _sfc_main = {
|
|
|
},
|
|
},
|
|
|
// 添加获取追问问题的方法
|
|
// 添加获取追问问题的方法
|
|
|
fetchFollowUpQuestions() {
|
|
fetchFollowUpQuestions() {
|
|
|
- const tenant_id = JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
|
|
|
|
+ const tenant_id = common_vendor.index.getStorageSync("tenant_id") || JSON.parse(common_vendor.index.getStorageSync("userInfo")).tenant_id || "1";
|
|
|
let position_id = 1;
|
|
let position_id = 1;
|
|
|
try {
|
|
try {
|
|
|
const selectedJob = JSON.parse(common_vendor.index.getStorageSync("selectedJob") || "{}");
|
|
const selectedJob = JSON.parse(common_vendor.index.getStorageSync("selectedJob") || "{}");
|