Commit f0864f3a by zhangxw

带教任务新增创建时间字段

1 parent 625bc9cd
...@@ -71,6 +71,12 @@ export const mentorshipFormData = [ ...@@ -71,6 +71,12 @@ export const mentorshipFormData = [
disabled: true disabled: true
}, },
{ {
label: '创建时间',
name: 'createdDate',
labelName: 'createdDateStr',
disabled: true
},
{
label: '支援方式', label: '支援方式',
name: 'supportWay', name: 'supportWay',
labelName: 'supportWayTxt', labelName: 'supportWayTxt',
......
...@@ -118,8 +118,7 @@ convertNumbersToChinese(num) { ...@@ -118,8 +118,7 @@ convertNumbersToChinese(num) {
search() { search() {
this.setData({ this.setData({
nothing: false, nothing: false,
currentPage: 1, currentPage: 1
}) })
this.getList() this.getList()
}, },
...@@ -141,6 +140,7 @@ convertNumbersToChinese(num) { ...@@ -141,6 +140,7 @@ convertNumbersToChinese(num) {
let { list, pages } = res.data let { list, pages } = res.data
const getIndex = (list, confId) => list?.findIndex(v => confId == v.confId) > -1 ? list?.findIndex(v => confId == v.confId) : 0 const getIndex = (list, confId) => list?.findIndex(v => confId == v.confId) > -1 ? list?.findIndex(v => confId == v.confId) : 0
list?.forEach(item => { list?.forEach(item => {
item.createdDateStr = wx.$util.tsFormatTime(item.createdDate, 'Y-M-D h:m:s')
item.supportWayTxt = getConfName(supportWayList, item.supportWay) // 支援方式 item.supportWayTxt = getConfName(supportWayList, item.supportWay) // 支援方式
item.storeTypeTxt = getConfName(storeTypeList, item.storeType) // 门店类型 item.storeTypeTxt = getConfName(storeTypeList, item.storeType) // 门店类型
item.businessTypeTxt = getConfName(businessTypeList, item.businessType) // 业务类型 item.businessTypeTxt = getConfName(businessTypeList, item.businessType) // 业务类型
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!