From 3ce7f47a6b9a366946be8e6109daa16df5160f60 Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 25 Apr 2022 10:49:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BF=E7=AD=96=E7=94=B3=E5=8A=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jianping/AppPublicizeInformation/Add.vue | 41 ++++++++++++++++--- .../jianping/AppPublicizeInformation/List.vue | 2 +- .../apps/AppPolicyBid/AppPolicyBid.vue | 12 +++--- 3 files changed, 42 insertions(+), 13 deletions(-) diff --git a/packages/jianping/AppPublicizeInformation/Add.vue b/packages/jianping/AppPublicizeInformation/Add.vue index b381632e..ea248e2f 100644 --- a/packages/jianping/AppPublicizeInformation/Add.vue +++ b/packages/jianping/AppPublicizeInformation/Add.vue @@ -13,10 +13,10 @@ - + - + @@ -98,10 +98,12 @@ export default { data() { return { form: { - householdRelation: "", - healthyStatus: [], + pictureUrlList: [], + pictureUrl: '', file: [] }, + miniTypeList: [], + newTypeList: [] } }, methods: { @@ -152,6 +154,9 @@ export default { submit() { this.$refs.ruleForm.validate(v => { if (v) { + if(this.form.pictureUrlList.length) { + this.form.pictureUrl = this.form.pictureUrlList[0].url + } this.instance.post(`/app/apppublicityinfo/addOrUpdate`, this.form).then(res => { if (res.code == 0) { this.$message.success('提交成功!'); @@ -160,10 +165,34 @@ export default { }) } }) - } + }, + getTypeList() { + let {parentId} = this.$route.query + this.instance.post(`/app/apppublicitycategory/list?categoryType=1&size=100&parentId=${parentId}`).then(res => { + if (res.code == 0) { + res.data.records.map((item) => { + item.dictName = item.categoryName + item.dictValue = item.id + }) + this.miniTypeList = res.data.records + } + }) + }, + getNewTypeList() { + this.instance.post(`/app/apppublicitycategory/list?categoryType=2&size=100&parentId=${this.form.moduleId}`).then(res => { + if (res.code == 0) { + res.data.records.map((item) => { + item.dictName = item.categoryName + item.dictValue = item.id + }) + this.newTypeList = res.data.records + } + }) + }, }, created() { - this.getDetail() + this.getTypeList() + // this.getDetail() } } diff --git a/packages/jianping/AppPublicizeInformation/List.vue b/packages/jianping/AppPublicizeInformation/List.vue index 0e9e4a85..e9dce67e 100644 --- a/packages/jianping/AppPublicizeInformation/List.vue +++ b/packages/jianping/AppPublicizeInformation/List.vue @@ -37,7 +37,7 @@ diff --git a/project/xiushan/apps/AppPolicyBid/AppPolicyBid.vue b/project/xiushan/apps/AppPolicyBid/AppPolicyBid.vue index c99932a1..b31b4f89 100644 --- a/project/xiushan/apps/AppPolicyBid/AppPolicyBid.vue +++ b/project/xiushan/apps/AppPolicyBid/AppPolicyBid.vue @@ -6,7 +6,7 @@ - - + + @@ -47,7 +47,7 @@ export default { }, data() { return { - search: {name: '', classificationId: '', department: ''}, + search: {name: '', classificationName: '', department: ''}, page: {current: 1, size: 10, total: 0}, tableData: [], colConfigs: [ @@ -88,7 +88,7 @@ export default { if (res?.data) { res.data.records.map((item) => { item.dictName = item.name - item.dictValue = item.id + item.dictValue = item.name }) this.classList = res.data.records } @@ -117,7 +117,7 @@ export default { .AppPolicyBid { height: 100%; .pdf-img{ - max-height: 1000px; + width: 100%; } } \ No newline at end of file