แก้ data probation
This commit is contained in:
parent
c776d4e7f1
commit
7c63c3c32c
22 changed files with 167 additions and 118 deletions
|
|
@ -314,7 +314,7 @@ function deleteProductivitys(item: number) {
|
|||
*/
|
||||
async function getAssignNew(id: string) {
|
||||
await http.get(config.API.newAssign(id)).then((res: any) => {
|
||||
const data = res.data.data;
|
||||
const data = res.data.result;
|
||||
|
||||
const monthOption = {
|
||||
value: data.assign_month,
|
||||
|
|
@ -375,7 +375,7 @@ async function getCompetencyGroup(id: string) {
|
|||
});
|
||||
|
||||
// await http.get(config.API.competencyGroupOptions(id)).then((res: any) => {
|
||||
// const data = res.data.data;
|
||||
// const data = res.data.result;
|
||||
// OPgroup.value = data;
|
||||
// group.value = data[0];
|
||||
// group2.value = data[1];
|
||||
|
|
@ -389,7 +389,7 @@ async function getCompetencyGroup(id: string) {
|
|||
*/
|
||||
async function getKnowledge(id: string) {
|
||||
await http.get(config.API.knowledgeOptions(id)).then((res: any) => {
|
||||
OPknowledge.value = res.data.data;
|
||||
OPknowledge.value = res.data.result;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -399,7 +399,7 @@ async function getKnowledge(id: string) {
|
|||
*/
|
||||
async function getSkill(id: string) {
|
||||
await http.get(config.API.skillOptions(id)).then((res: any) => {
|
||||
const skillData = res.data.data;
|
||||
const skillData = res.data.result;
|
||||
OPcomputer.value = [skillData.computer];
|
||||
OPenglish.value = [skillData.english];
|
||||
OPinfomation.value = [skillData.information];
|
||||
|
|
@ -417,7 +417,7 @@ async function getSkill(id: string) {
|
|||
*/
|
||||
async function getLaw(id: string) {
|
||||
await http.get(config.API.lawOptions(id)).then((res: any) => {
|
||||
checkRule.value = res.data.data;
|
||||
checkRule.value = res.data.result;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -762,7 +762,7 @@ async function DataSave(id: string) {
|
|||
async function getAssign() {
|
||||
await http.get(config.API.probationsGetAssign(assignId.value)).then((res) => {
|
||||
isEdit.value = false;
|
||||
const data = res.data.data;
|
||||
const data = res.data.result;
|
||||
fullname.value = data.profile.name;
|
||||
appointTopic.value = data.assign.appointId;
|
||||
position.value = data.profile.positionName;
|
||||
|
|
@ -974,7 +974,7 @@ async function getAppoint(id: string) {
|
|||
http
|
||||
.get(config.API.appointMainList(id))
|
||||
.then((res) => {
|
||||
const data = res.data.data;
|
||||
const data = res.data.result;
|
||||
appointOp.value = data;
|
||||
appointAll.value = data;
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue