diff --git a/project/qianxinan/AppSignInfo/list.vue b/project/qianxinan/AppSignInfo/list.vue index 5c1d95b3..da4bf48e 100644 --- a/project/qianxinan/AppSignInfo/list.vue +++ b/project/qianxinan/AppSignInfo/list.vue @@ -14,9 +14,6 @@ - - - @@ -73,8 +70,7 @@ export default { {prop: "wxUserName", label: "用户"}, {prop: "departmentName", label: "部门"}, {prop: "createDate", label: "打卡日期"}, - {prop: "createTime", label: "最新打卡时间"}, - {prop: "times", label: "打卡次数"}, + {prop: "createTime", label: "打卡时间"}, {prop: "status", label: "状态", dict: "wxSignStatus"} ], treeData: [], diff --git a/project/qujing/app/AppQuestionBank/components/Add.vue b/project/qujing/app/AppQuestionBank/components/Add.vue index 49284e16..818cff9b 100644 --- a/project/qujing/app/AppQuestionBank/components/Add.vue +++ b/project/qujing/app/AppQuestionBank/components/Add.vue @@ -1,7 +1,7 @@ @@ -30,32 +37,29 @@ props: { instance: Function, dict: Object, - params: Object, - moduleId: String + params: Object }, data () { return { - info: {}, - id: '' + info: {} } }, created () { - if (this.params && this.params.id) { - this.id = this.params.id + this.dict.load('qjQBType').then(() => { this.getInfo(this.params.id) - } + }) }, methods: { getInfo (id) { - this.instance.post(`/app/appcontentinfo/queryDetailById?id=${id}`).then(res => { + this.instance.post(`/app/appquestionbank/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { - this.info = res.data - this.info.pictureUrl = res.data.pictureUrl ? [{ - url: res.data.pictureUrl - }] : [] + this.info = { + ...res.data, + answer: res.data.items.filter(v => v.checked === '1').map(v => v.content).join(',') + } } }) }, diff --git a/project/qujing/app/AppQuestionBank/components/List.vue b/project/qujing/app/AppQuestionBank/components/List.vue index 06299692..ad66faf4 100644 --- a/project/qujing/app/AppQuestionBank/components/List.vue +++ b/project/qujing/app/AppQuestionBank/components/List.vue @@ -29,7 +29,7 @@ :current.sync="search.current" :size.sync="search.size" @getList="getList"> - +