培训考核方式
This commit is contained in:
parent
93c763afd2
commit
d43856191b
@ -143,6 +143,9 @@
|
|||||||
import {
|
import {
|
||||||
getRequest,
|
getRequest,
|
||||||
} from '../../../../services/apply/FOServices/FOServices';
|
} from '../../../../services/apply/FOServices/FOServices';
|
||||||
|
import {
|
||||||
|
getEnum
|
||||||
|
} from '../../../../services/common'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -349,7 +352,10 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else if (this.currSearchType == "Nav_TrainCheckType") {
|
} else if (this.currSearchType == "Nav_TrainCheckType") {
|
||||||
getRequest(json, "/SE/TrainCheckTypeEnum/OrderPaged").then(res => {
|
var dataParm = {
|
||||||
|
'name': "PlanCheckType"
|
||||||
|
}
|
||||||
|
getEnum(dataParm).then(res => {
|
||||||
this.Lists = res.map(i => {
|
this.Lists = res.map(i => {
|
||||||
return {
|
return {
|
||||||
...i,
|
...i,
|
||||||
@ -357,6 +363,14 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
// getRequest(json, "/SE/TrainCheckTypeEnum/OrderPaged").then(res => {
|
||||||
|
// this.Lists = res.map(i => {
|
||||||
|
// return {
|
||||||
|
// ...i,
|
||||||
|
// name: i.NAME,
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// })
|
||||||
} else if (this.currSearchType == "Nav_RecordUser") {
|
} else if (this.currSearchType == "Nav_RecordUser") {
|
||||||
getRequest(json, "/FM/FMUser/OrderPagedUseful").then(res => {
|
getRequest(json, "/FM/FMUser/OrderPagedUseful").then(res => {
|
||||||
this.Lists = res.map(i => {
|
this.Lists = res.map(i => {
|
||||||
@ -376,7 +390,7 @@
|
|||||||
this.model.TRAIN_TYPE = val.ID;
|
this.model.TRAIN_TYPE = val.ID;
|
||||||
} else if (this.currSearchType == 'Nav_TrainCheckType') {
|
} else if (this.currSearchType == 'Nav_TrainCheckType') {
|
||||||
this.model.Nav_TrainCheckType = val;
|
this.model.Nav_TrainCheckType = val;
|
||||||
this.model.CHECK_TYPE_ID = val.ID;
|
this.model.CHECKTYPE = val.ID;
|
||||||
} else if (this.currSearchType == 'Nav_RecordUser') {
|
} else if (this.currSearchType == 'Nav_RecordUser') {
|
||||||
this.model.Nav_RecordUser = val;
|
this.model.Nav_RecordUser = val;
|
||||||
this.model.RECORD_USER_ID = val.ID;
|
this.model.RECORD_USER_ID = val.ID;
|
||||||
@ -503,7 +517,7 @@
|
|||||||
extendInclude(json, "Nav_TrainContentList.Nav_Point")
|
extendInclude(json, "Nav_TrainContentList.Nav_Point")
|
||||||
extendInclude(json, "Nav_LaunchDepartment")
|
extendInclude(json, "Nav_LaunchDepartment")
|
||||||
extendInclude(json, "Nav_TrainType")
|
extendInclude(json, "Nav_TrainType")
|
||||||
extendInclude(json, "Nav_TrainCheckType")
|
// extendInclude(json, "Nav_TrainCheckType")
|
||||||
extendInclude(json, "Nav_RecordUser")
|
extendInclude(json, "Nav_RecordUser")
|
||||||
extendInclude(json, "Nav_TrainContentList")
|
extendInclude(json, "Nav_TrainContentList")
|
||||||
extendInclude(json, "Nav_TrainUserList.Nav_User.Nav_Person")
|
extendInclude(json, "Nav_TrainUserList.Nav_User.Nav_Person")
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="field">
|
<view class="field">
|
||||||
<text class="label">考核方式:</text>
|
<text class="label">考核方式:</text>
|
||||||
<text class="value">{{item.Nav_TrainCheckType?item.Nav_TrainCheckType.NAME:''}}</text>
|
<text class="value">{{item.CHECKTYPE_NAME}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="field">
|
<view class="field">
|
||||||
<text class="label">状态:</text>
|
<text class="label">状态:</text>
|
||||||
@ -90,7 +90,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.fetchEnums(['SETrainNotifyStatus']);
|
this.fetchEnums(['SETrainNotifyStatus','PlanCheckType']);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async fetchEnums(enumNames) {
|
async fetchEnums(enumNames) {
|
||||||
@ -145,7 +145,7 @@
|
|||||||
extendInclude(json, "Nav_LaunchDepartment")
|
extendInclude(json, "Nav_LaunchDepartment")
|
||||||
extendInclude(json, "Nav_LaunchUser")
|
extendInclude(json, "Nav_LaunchUser")
|
||||||
extendInclude(json, "Nav_TrainType")
|
extendInclude(json, "Nav_TrainType")
|
||||||
extendInclude(json, "Nav_TrainCheckType")
|
// extendInclude(json, "Nav_TrainCheckType")
|
||||||
if (this.keyword) {
|
if (this.keyword) {
|
||||||
extendRule(json, 'NAME', 9, this.keyword)
|
extendRule(json, 'NAME', 9, this.keyword)
|
||||||
}
|
}
|
||||||
@ -161,7 +161,8 @@
|
|||||||
return {
|
return {
|
||||||
...i,
|
...i,
|
||||||
title: i.NAME,
|
title: i.NAME,
|
||||||
STATUS: i.STATUS !== undefined ? this.enumsData['SETrainNotifyStatus'].find(item => item.code === i.STATUS).name : ''
|
STATUS: i.STATUS !== undefined ? this.enumsData['SETrainNotifyStatus'].find(item => item.code === i.STATUS).name : '',
|
||||||
|
CHECKTYPE_NAME:i.CHECKTYPE !== undefined ? this.enumsData['PlanCheckType'].find(item => item.code === i.CHECKTYPE).name : '',
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,7 @@
|
|||||||
disabledColor="#ffffff" fontSize="14px"></u--input>
|
disabledColor="#ffffff" fontSize="14px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="考核方式:" prop="Nav_TrainCheckType.NAME" borderBottom>
|
<u-form-item label="考核方式:" prop="Nav_TrainCheckType.NAME" borderBottom>
|
||||||
<u--input v-if="model.Nav_TrainCheckType" v-model="model.Nav_TrainCheckType.NAME" border="none"
|
<u--input v-model="model.CHECKTYPE_NAME" border="none"
|
||||||
slot="right" inputAlign="right" disabled disabledColor="#ffffff" fontSize="14px"></u--input>
|
slot="right" inputAlign="right" disabled disabledColor="#ffffff" fontSize="14px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="培训内容:" prop="TRAINCONTENT" borderBottom>
|
<u-form-item label="培训内容:" prop="TRAINCONTENT" borderBottom>
|
||||||
@ -101,6 +101,9 @@
|
|||||||
import '../../../../utils/showMsg.js'
|
import '../../../../utils/showMsg.js'
|
||||||
import color from '../../../../uni_modules/uview-ui/libs/config/color'
|
import color from '../../../../uni_modules/uview-ui/libs/config/color'
|
||||||
import config from '../../../../config/common'
|
import config from '../../../../config/common'
|
||||||
|
import {
|
||||||
|
getEnum
|
||||||
|
} from '../../../../services/common';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -114,22 +117,38 @@
|
|||||||
orgId: uni.getStorageSync('orgId'),
|
orgId: uni.getStorageSync('orgId'),
|
||||||
listPropUpload: ['NOTIFY_ID'],
|
listPropUpload: ['NOTIFY_ID'],
|
||||||
listPropValUpload: [],
|
listPropValUpload: [],
|
||||||
|
Lists: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.model.ID = option.ID;
|
this.model.ID = option.ID;
|
||||||
this.TaskID = option.taskID;
|
this.TaskID = option.taskID;
|
||||||
this.tableKey = option.tableKey ? option.tableKey : '0'
|
this.tableKey = option.tableKey ? option.tableKey : '0'
|
||||||
this.loadData()
|
|
||||||
|
this.getEnums()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getEnums(){
|
||||||
|
var dataParm = {
|
||||||
|
'name': "PlanCheckType"
|
||||||
|
}
|
||||||
|
getEnum(dataParm).then(res => {
|
||||||
|
this.Lists = res.map(i => {
|
||||||
|
return {
|
||||||
|
...i,
|
||||||
|
name: i.NAME,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.loadData()
|
||||||
|
})
|
||||||
|
},
|
||||||
loadData() {
|
loadData() {
|
||||||
const json = initFilter(this.orgId, "", "CODE", 1)
|
const json = initFilter(this.orgId, "", "CODE", 1)
|
||||||
extendRule(json, 'ID', 1, this.model.ID);
|
extendRule(json, 'ID', 1, this.model.ID);
|
||||||
extendInclude(json, 'Nav_LaunchDepartment');
|
extendInclude(json, 'Nav_LaunchDepartment');
|
||||||
extendInclude(json, 'Nav_LaunchUser');
|
extendInclude(json, 'Nav_LaunchUser');
|
||||||
extendInclude(json, 'Nav_TrainType');
|
extendInclude(json, 'Nav_TrainType');
|
||||||
extendInclude(json, 'Nav_TrainCheckType');
|
// extendInclude(json, 'Nav_TrainCheckType');
|
||||||
extendInclude(json, 'Nav_TrainContentList');
|
extendInclude(json, 'Nav_TrainContentList');
|
||||||
extendInclude(json, 'Nav_TrainContentList.Nav_Point');
|
extendInclude(json, 'Nav_TrainContentList.Nav_Point');
|
||||||
extendInclude(json, 'Nav_TrainUserList');
|
extendInclude(json, 'Nav_TrainUserList');
|
||||||
@ -161,6 +180,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.model.CHECKTYPE_NAME = res.CHECKTYPE !== undefined ? this.Lists.find(item => item.ID === res.CHECKTYPE).name : '';
|
||||||
this.model.TRAIN_MODEL = this.returnModel(this.model.TRAIN_MODEL);
|
this.model.TRAIN_MODEL = this.returnModel(this.model.TRAIN_MODEL);
|
||||||
this.model.LEVEL = this.transLevel(this.model.LEVEL);
|
this.model.LEVEL = this.transLevel(this.model.LEVEL);
|
||||||
this.model.TRAINCONTENT = trainContent;
|
this.model.TRAINCONTENT = trainContent;
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
inputAlign="right" disabled disabledColor="#fff" fontSize="14px"></u--input>
|
inputAlign="right" disabled disabledColor="#fff" fontSize="14px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="考核方式:" prop="Nav_TrainCheckType.NAME" borderBottom>
|
<u-form-item label="考核方式:" prop="Nav_TrainCheckType.NAME" borderBottom>
|
||||||
<u--input v-if="model.Nav_Notify" v-model="model.Nav_Notify.Nav_TrainCheckType.NAME"
|
<u--input v-if="model.Nav_Notify" v-model="model.Nav_Notify.CHECKTYPE_NAME"
|
||||||
border="none" inputAlign="right" disabled disabledColor="#fff" fontSize="14px"></u--input>
|
border="none" inputAlign="right" disabled disabledColor="#fff" fontSize="14px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item class="custom-form-item" label="培训内容:" prop="DetailPost" :borderBottom="false">
|
<u-form-item class="custom-form-item" label="培训内容:" prop="DetailPost" :borderBottom="false">
|
||||||
@ -113,6 +113,9 @@
|
|||||||
import {
|
import {
|
||||||
getRequest,
|
getRequest,
|
||||||
} from '../../../../services/apply/FOServices/FOServices';
|
} from '../../../../services/apply/FOServices/FOServices';
|
||||||
|
import {
|
||||||
|
getEnum
|
||||||
|
} from '../../../../services/common';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -166,9 +169,23 @@
|
|||||||
this.TaskID = option.taskID ? option.taskID : '';
|
this.TaskID = option.taskID ? option.taskID : '';
|
||||||
this.model.ID = option.ID ? option.ID : '';
|
this.model.ID = option.ID ? option.ID : '';
|
||||||
this.tableKey = option.tableKey ? option.tableKey : '0';
|
this.tableKey = option.tableKey ? option.tableKey : '0';
|
||||||
this.loadData();
|
this.getEnums();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getEnums(){
|
||||||
|
var dataParm = {
|
||||||
|
'name': "PlanCheckType"
|
||||||
|
}
|
||||||
|
getEnum(dataParm).then(res => {
|
||||||
|
this.Lists = res.map(i => {
|
||||||
|
return {
|
||||||
|
...i,
|
||||||
|
name: i.NAME,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.loadData()
|
||||||
|
})
|
||||||
|
},
|
||||||
sectionChange(index, item) {
|
sectionChange(index, item) {
|
||||||
item.STATUS = index;
|
item.STATUS = index;
|
||||||
},
|
},
|
||||||
@ -223,7 +240,7 @@
|
|||||||
extendInclude(json, "Nav_Notify")
|
extendInclude(json, "Nav_Notify")
|
||||||
extendInclude(json, "Nav_Notify.Nav_TrainType")
|
extendInclude(json, "Nav_Notify.Nav_TrainType")
|
||||||
extendInclude(json, "Nav_Notify.Nav_LaunchDepartment")
|
extendInclude(json, "Nav_Notify.Nav_LaunchDepartment")
|
||||||
extendInclude(json, "Nav_Notify.Nav_TrainCheckType")
|
// extendInclude(json, "Nav_Notify.Nav_TrainCheckType")
|
||||||
extendInclude(json, "Nav_Notify.Nav_TrainContentList.Nav_Point")
|
extendInclude(json, "Nav_Notify.Nav_TrainContentList.Nav_Point")
|
||||||
extendInclude(json, "Nav_Files.Nav_ImgFile")
|
extendInclude(json, "Nav_Files.Nav_ImgFile")
|
||||||
extendRule(json, 'ID', 1, this.model.ID)
|
extendRule(json, 'ID', 1, this.model.ID)
|
||||||
@ -248,6 +265,7 @@
|
|||||||
} else if (this.model.Nav_Notify.TRAIN_MODEL.indexOf(4) > 0) {
|
} else if (this.model.Nav_Notify.TRAIN_MODEL.indexOf(4) > 0) {
|
||||||
this.model.Nav_Notify.TRAIN_MODEL_SHOW += "演示法 ";
|
this.model.Nav_Notify.TRAIN_MODEL_SHOW += "演示法 ";
|
||||||
}
|
}
|
||||||
|
this.model.Nav_Notify.CHECKTYPE_NAME = res.Nav_Notify.CHECKTYPE !== undefined ? this.Lists.find(item => item.ID === res.Nav_Notify.CHECKTYPE).name : '';
|
||||||
this.model.Nav_TrainContentList_SHOW = "";
|
this.model.Nav_TrainContentList_SHOW = "";
|
||||||
for (let i = 0; i < this.model.Nav_Notify.Nav_TrainContentList.length; i++) {
|
for (let i = 0; i < this.model.Nav_Notify.Nav_TrainContentList.length; i++) {
|
||||||
this.model.Nav_TrainContentList_SHOW += (i + 1) + "." + this.model.Nav_Notify
|
this.model.Nav_TrainContentList_SHOW += (i + 1) + "." + this.model.Nav_Notify
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="field">
|
<view class="field">
|
||||||
<text class="label">考核方式:</text>
|
<text class="label">考核方式:</text>
|
||||||
<text class="value">{{item.Nav_Notify.Nav_TrainCheckType.NAME}}</text>
|
<text class="value">{{item.Nav_Notify.CHECKTYPE_NAME}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="field">
|
<view class="field">
|
||||||
<text class="label">状态:</text>
|
<text class="label">状态:</text>
|
||||||
@ -67,6 +67,9 @@
|
|||||||
extendRule,
|
extendRule,
|
||||||
initFilter
|
initFilter
|
||||||
} from '../../../../utils/common'
|
} from '../../../../utils/common'
|
||||||
|
import {
|
||||||
|
getEnum
|
||||||
|
} from '../../../../services/common';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -84,13 +87,28 @@
|
|||||||
columns: [],
|
columns: [],
|
||||||
title: '',
|
title: '',
|
||||||
name: ''
|
name: ''
|
||||||
}
|
},
|
||||||
|
Lists:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.loadData()
|
this.getEnums()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getEnums(){
|
||||||
|
var dataParm = {
|
||||||
|
'name': "PlanCheckType"
|
||||||
|
}
|
||||||
|
getEnum(dataParm).then(res => {
|
||||||
|
this.Lists = res.map(i => {
|
||||||
|
return {
|
||||||
|
...i,
|
||||||
|
name: i.NAME,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.loadData()
|
||||||
|
})
|
||||||
|
},
|
||||||
handleSearch(obj) {
|
handleSearch(obj) {
|
||||||
this.keyword = obj.value
|
this.keyword = obj.value
|
||||||
},
|
},
|
||||||
@ -103,7 +121,7 @@
|
|||||||
extendInclude(json, "Nav_Notify.Nav_LaunchDepartment")
|
extendInclude(json, "Nav_Notify.Nav_LaunchDepartment")
|
||||||
extendInclude(json, "Nav_Notify.Nav_RecordUser")
|
extendInclude(json, "Nav_Notify.Nav_RecordUser")
|
||||||
extendInclude(json, "Nav_Notify.Nav_TrainType")
|
extendInclude(json, "Nav_Notify.Nav_TrainType")
|
||||||
extendInclude(json, "Nav_Notify.Nav_TrainCheckType")
|
// extendInclude(json, "Nav_Notify.Nav_TrainCheckType")
|
||||||
if (this.keyword) {
|
if (this.keyword) {
|
||||||
extendRule(json, 'Nav_Notify.NAME', 9, this.keyword)
|
extendRule(json, 'Nav_Notify.NAME', 9, this.keyword)
|
||||||
}
|
}
|
||||||
@ -125,6 +143,7 @@
|
|||||||
} else if (res.Data[i].STATUS == 3) {
|
} else if (res.Data[i].STATUS == 3) {
|
||||||
res.Data[i].STATUS = "归档";
|
res.Data[i].STATUS = "归档";
|
||||||
}
|
}
|
||||||
|
res.Data[i].Nav_Notify.CHECKTYPE_NAME = res.Data[i].Nav_Notify.CHECKTYPE !== undefined ? this.Lists.find(item => item.ID === res.Data[i].Nav_Notify.CHECKTYPE).name : ''
|
||||||
}
|
}
|
||||||
let newRes = (res.Data || []).map(i => {
|
let newRes = (res.Data || []).map(i => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
<u--input v-if="model.Nav_Notify" v-model="model.TRAIN_MODEL" border="none" inputAlign="right" disabled disabledColor="#ffffff" fontSize="14px"></u--input>
|
<u--input v-if="model.Nav_Notify" v-model="model.TRAIN_MODEL" border="none" inputAlign="right" disabled disabledColor="#ffffff" fontSize="14px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="考核方式:" prop="Nav_TrainCheckType.NAME" borderBottom>
|
<u-form-item label="考核方式:" prop="Nav_TrainCheckType.NAME" borderBottom>
|
||||||
<u--input v-if="model.Nav_Notify" v-model="model.Nav_Notify.Nav_TrainCheckType.NAME" border="none" slot="right" inputAlign="right" disabled disabledColor="#ffffff" fontSize="14px"></u--input>
|
<u--input v-if="model.Nav_Notify" v-model="model.Nav_Notify.CHECKTYPE_NAME" border="none" slot="right" inputAlign="right" disabled disabledColor="#ffffff" fontSize="14px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="培训内容:" prop="TRAINCONTENT" borderBottom>
|
<u-form-item label="培训内容:" prop="TRAINCONTENT" borderBottom>
|
||||||
<u-textarea autoHeight v-html="model.TRAINCONTENT" border="none" disabled></u-textarea>
|
<u-textarea autoHeight v-html="model.TRAINCONTENT" border="none" disabled></u-textarea>
|
||||||
@ -52,7 +52,7 @@
|
|||||||
</u-form-item>
|
</u-form-item>
|
||||||
<rich-text autoHeight v-html="model.Users" border="none" disabled style="font-size: 14px;"></rich-text>
|
<rich-text autoHeight v-html="model.Users" border="none" disabled style="font-size: 14px;"></rich-text>
|
||||||
<view style="margin-top: 10px;">
|
<view style="margin-top: 10px;">
|
||||||
<u-button type="primary" class="bottom" v-if='isLoadOK&&tableKey!=1&&model.Nav_Notify.Nav_TrainCheckType.NAME=="笔试"' @click="openTest(model.ID)">查看试卷</u-button>
|
<u-button type="primary" class="bottom" v-if='isLoadOK&&tableKey!=1&&model.Nav_Notify.CHECKTYPE==51' @click="openTest(model.ID)">查看试卷</u-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</u--form>
|
</u--form>
|
||||||
@ -79,6 +79,9 @@
|
|||||||
import '../../../../utils/showMsg.js'
|
import '../../../../utils/showMsg.js'
|
||||||
import color from '../../../../uni_modules/uview-ui/libs/config/color'
|
import color from '../../../../uni_modules/uview-ui/libs/config/color'
|
||||||
import config from '../../../../config/common'
|
import config from '../../../../config/common'
|
||||||
|
import {
|
||||||
|
getEnum
|
||||||
|
} from '../../../../services/common';
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -90,22 +93,37 @@
|
|||||||
listPropUpload: ['RECORD_ID'],
|
listPropUpload: ['RECORD_ID'],
|
||||||
listPropValUpload: [],
|
listPropValUpload: [],
|
||||||
isAgree: false,
|
isAgree: false,
|
||||||
|
Lists:[]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
this.model.ID = option.ID;
|
this.model.ID = option.ID;
|
||||||
this.TaskID = option.taskID;
|
this.TaskID = option.taskID;
|
||||||
this.tableKey = option.tableKey ? option.tableKey : '0'
|
this.tableKey = option.tableKey ? option.tableKey : '0'
|
||||||
this.loadData()
|
this.getEnums()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getEnums(){
|
||||||
|
var dataParm = {
|
||||||
|
'name': "PlanCheckType"
|
||||||
|
}
|
||||||
|
getEnum(dataParm).then(res => {
|
||||||
|
this.Lists = res.map(i => {
|
||||||
|
return {
|
||||||
|
...i,
|
||||||
|
name: i.NAME,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.loadData()
|
||||||
|
})
|
||||||
|
},
|
||||||
loadData() {
|
loadData() {
|
||||||
const json = initFilter(this.ORG_ID, "", "", 1)
|
const json = initFilter(this.ORG_ID, "", "", 1)
|
||||||
extendRule(json, 'ID', 1, this.model.ID);
|
extendRule(json, 'ID', 1, this.model.ID);
|
||||||
extendInclude(json, 'Nav_Notify.Nav_LaunchDepartment');
|
extendInclude(json, 'Nav_Notify.Nav_LaunchDepartment');
|
||||||
extendInclude(json, 'Nav_Notify.Nav_LaunchUser');
|
extendInclude(json, 'Nav_Notify.Nav_LaunchUser');
|
||||||
extendInclude(json, 'Nav_Notify.Nav_TrainType');
|
extendInclude(json, 'Nav_Notify.Nav_TrainType');
|
||||||
extendInclude(json, 'Nav_Notify.Nav_TrainCheckType');
|
// extendInclude(json, 'Nav_Notify.Nav_TrainCheckType');
|
||||||
extendInclude(json, 'Nav_Notify.Nav_TrainContentList');
|
extendInclude(json, 'Nav_Notify.Nav_TrainContentList');
|
||||||
extendInclude(json, 'Nav_Notify.Nav_TrainContentList.Nav_Point');
|
extendInclude(json, 'Nav_Notify.Nav_TrainContentList.Nav_Point');
|
||||||
extendInclude(json, 'Nav_Users.Nav_User');
|
extendInclude(json, 'Nav_Users.Nav_User');
|
||||||
@ -156,6 +174,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.model.Nav_Notify.CHECKTYPE_NAME = res.Nav_Notify.CHECKTYPE !== undefined ? this.Lists.find(item => item.ID === res.Nav_Notify.CHECKTYPE).name : '';
|
||||||
this.model.TRAIN_MODEL = this.returnModel(this.model.Nav_Notify.TRAIN_MODEL);
|
this.model.TRAIN_MODEL = this.returnModel(this.model.Nav_Notify.TRAIN_MODEL);
|
||||||
this.model.LEVEL = this.transLevel(this.model.Nav_Notify.LEVEL);
|
this.model.LEVEL = this.transLevel(this.model.Nav_Notify.LEVEL);
|
||||||
this.model.TRAIN_TIME = this.model.Nav_Notify.TRAIN_START_TIME?.substring(0, 16) + "~" + this
|
this.model.TRAIN_TIME = this.model.Nav_Notify.TRAIN_START_TIME?.substring(0, 16) + "~" + this
|
||||||
|
|||||||
@ -192,7 +192,7 @@
|
|||||||
extendInclude(json, 'Nav_Record.Nav_Notify.Nav_LaunchUser');
|
extendInclude(json, 'Nav_Record.Nav_Notify.Nav_LaunchUser');
|
||||||
extendInclude(json, 'Nav_Record.Nav_Notify.Nav_TrainContentList');
|
extendInclude(json, 'Nav_Record.Nav_Notify.Nav_TrainContentList');
|
||||||
extendInclude(json, 'Nav_Record.Nav_Notify.Nav_TrainType');
|
extendInclude(json, 'Nav_Record.Nav_Notify.Nav_TrainType');
|
||||||
extendInclude(json, 'Nav_Record.Nav_Notify.Nav_TrainCheckType');
|
// extendInclude(json, 'Nav_Record.Nav_Notify.Nav_TrainCheckType');
|
||||||
extendInclude(json, 'Nav_Record.Nav_Notify.Nav_TrainContentList.Nav_Point');
|
extendInclude(json, 'Nav_Record.Nav_Notify.Nav_TrainContentList.Nav_Point');
|
||||||
extendInclude(json, 'Nav_Test');
|
extendInclude(json, 'Nav_Test');
|
||||||
extendInclude(json, 'Nav_User');
|
extendInclude(json, 'Nav_User');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user