From ca9748318356f7627088cbf644cd6868d0327098 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 21 Sep 2022 15:43:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=9A=E5=91=98=E9=A3=8E=E9=87=87=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scss/modules/management/detail-main.scss | 24 +- .../modules/base/huji/immigration/detail.vue | 43 +- .../modules/base/huji/immigration/index.vue | 4 +- .../modules/communityParty/article/index.vue | 148 ++--- .../modules/communityParty/elegant/detail.vue | 96 ++++ .../modules/communityParty/elegant/index.vue | 533 ++++++++++-------- 6 files changed, 495 insertions(+), 353 deletions(-) create mode 100644 src/views/modules/communityParty/elegant/detail.vue diff --git a/src/assets/scss/modules/management/detail-main.scss b/src/assets/scss/modules/management/detail-main.scss index 426ffdf66..ecef3af28 100644 --- a/src/assets/scss/modules/management/detail-main.scss +++ b/src/assets/scss/modules/management/detail-main.scss @@ -104,17 +104,7 @@ .info-content { margin: 20px 0; } - .info-pics { - display: flex; - margin: 20px 0; - img { - display: block; - width: 32%; - height: 90px; - margin-right: 9px; - object-fit: cover; - } - } + .info-prop { position: relative; @@ -124,6 +114,18 @@ padding-top:10px; // border-bottom: 1px solid #d8d8d8; + .info-pics { + display: flex; + margin: 20px 0; + img { + display: block; + width: 32%; + height: 90px; + margin-right: 9px; + object-fit: cover; + } + } + .line{ text-decoration:underline; color: #3e8ef7; diff --git a/src/views/modules/base/huji/immigration/detail.vue b/src/views/modules/base/huji/immigration/detail.vue index 703f18a93..092445bd0 100644 --- a/src/views/modules/base/huji/immigration/detail.vue +++ b/src/views/modules/base/huji/immigration/detail.vue @@ -81,46 +81,13 @@ import formVltHelper from 'dai-js/tools/formVltHelper' import { computedCard } from '@/utils/index' import { isCard, isMobile } from '@/utils/validate' -function iniFmData () { - return { - gridId: '', - villageId: '', - buildId: '', - unitId: '', - homeId: '', - name: '', - mobile: '', - idCard: '', - isWelfare: '0', //福利0否,1是 - isCheck: '0', - gender: '', - age: '', - inTime: '', - inReason: '', - sourceAddress: '', - address: '', - sourceAddressPathCode: '', - sourceAddressCode: '', - householderName: '', - moveNumber: '', - householderRelation: '', - alreadyHaveMaster: false, - isReplace: '0' - } -} + export default { data () { return { - formType: 'add', //表单操作类型 add新增,edit编辑,detail详情 - - btnDisable: false, initLoading: false, - - - fmData: iniFmData(), - - userInfo: {}, + fmData: {}, } }, @@ -159,13 +126,7 @@ export default { } else this.$message.error(msg) }, - resetData () { - this.orgId = '' - this.btnDisable = false - this.userInfo = {} - this.fmData = iniFmData() - } } } diff --git a/src/views/modules/base/huji/immigration/index.vue b/src/views/modules/base/huji/immigration/index.vue index d19380b05..be5ccf66f 100644 --- a/src/views/modules/base/huji/immigration/index.vue +++ b/src/views/modules/base/huji/immigration/index.vue @@ -170,7 +170,8 @@ class="diy-button--export" size="small" @click="handleExportModule('room')">下载模板 - {{ importBtnTitle }}
- + + + + - - + +
@@ -79,7 +81,7 @@ import nextTick from "dai-js/tools/nextTick"; export default { props: {}, - data() { + data () { return { offlineShowed: false, @@ -95,7 +97,7 @@ export default { optionUrl: "/gov/voice/tag/taglist", optionUrlParams: {}, optionList: [], - optionCook(list) { + optionCook (list) { return list.map((item) => ({ label: item.tagName, value: item.tagId, @@ -136,12 +138,12 @@ export default { children: "subAgencyList", checkStrictly: true, }, - optionCook(obj) { + optionCook (obj) { return [obj]; }, supKeys: ["publishRangeId", "publishRangeType"], supValues: ["", ""], - handleChangeFn(vals, item) { + handleChangeFn (vals, item) { const { optionList } = item; if (vals.length > 0) { item["supValues"][0] = vals[vals.length - 1]; @@ -196,10 +198,10 @@ export default { editUrl: "", infoUrl: "/gov/voice/article/detailV2", delUrl: "", - editAuth(item) { + editAuth (item) { return false; }, - delAuth(item) { + delAuth (item) { return false; }, @@ -230,7 +232,7 @@ export default { uploadUrl: window.SITE_CONFIG["apiURL"] + "/oss/file/article/upload", supKeys: ["imgUrlArr", "imgUrl"], supValues: [() => [], ""], - beforeImgUpload(file, item, that) { + beforeImgUpload (file, item, that) { console.log(file); const isLt1M = file.size / 1024 / 1024 < 10; const srcType = file.type; @@ -266,10 +268,10 @@ export default { checkStrictly: false, emitPath: false, }, - optionCook(obj) { + optionCook (obj) { return [obj]; }, - handleChangeFn(vals, item, that) { + handleChangeFn (vals, item, that) { console.log("handleChangeFn", vals); const { optionList } = item; const optionPlaneList = collapse(optionList, "subAgencyList"); @@ -310,7 +312,7 @@ export default { type: "date", value: dateFormat(new Date(), "yyyy-MM-dd"), pickerOptions: { - disabledDate(time) { + disabledDate (time) { return time.getTime() > Date.now(); }, }, @@ -331,7 +333,7 @@ export default { optionType: "group", supKeys: ["publisherName", "publisherType"], supValues: ["", ""], - optionCook(data) { + optionCook (data) { let ret = []; const { agencyDeptList, agencyGridList, agencyId, agencyName } = data; @@ -373,7 +375,7 @@ export default { } return ret; }, - handleChangeFn(vals, item, that) { + handleChangeFn (vals, item, that) { const { optionList } = item; let opts = []; optionList.forEach((g) => { @@ -401,7 +403,7 @@ export default { optionUrl: "/gov/voice/tag/taglist", optionUrlParams: {}, optionList: [], - optionCook(list) { + optionCook (list) { return list.map((item) => ({ label: item.tagName, value: item.tagName, @@ -434,7 +436,7 @@ export default { editElseRules: {}, editConfig: { confirmBtnName: "发布", - cookInfoFn(data) { + cookInfoFn (data) { if (data.richTextFlag == "0") { data.content = data.contentList .map((item) => { @@ -465,7 +467,7 @@ export default { return data; }, - beforeSubmit(formType, fmData, that) { + beforeSubmit (formType, fmData, that) { if (fmData.isTop == "1" && !fmData.imgUrl) { that.$message.error("请上传封面图片"); return false; @@ -479,22 +481,22 @@ export default { computed: {}, watch: {}, - async mounted() {}, + async mounted () { }, methods: { - async handleOfflineShow(item) { + async handleOfflineShow (item) { console.log(item); this.offlineShowed = true; await nextTick(100); this.$refs.offlineForm.initForm(item); }, - handleOfflineSuccess() { + handleOfflineSuccess () { this.$refs.basePage.refresh(); this.offlineShowed = false; }, - async handleClickDraft(fmData) { + async handleClickDraft (fmData) { let url = this.addUrl; let params = { ...fmData, diff --git a/src/views/modules/communityParty/elegant/detail.vue b/src/views/modules/communityParty/elegant/detail.vue new file mode 100644 index 000000000..bcddf5b3d --- /dev/null +++ b/src/views/modules/communityParty/elegant/detail.vue @@ -0,0 +1,96 @@ + + + + + + diff --git a/src/views/modules/communityParty/elegant/index.vue b/src/views/modules/communityParty/elegant/index.vue index a65a0a5a7..292ca37ac 100644 --- a/src/views/modules/communityParty/elegant/index.vue +++ b/src/views/modules/communityParty/elegant/index.vue @@ -1,29 +1,41 @@ @@ -809,7 +893,6 @@ export default { .form-wr { .input-width { width: 260px; - } .input-width-textarea { width: 500px; @@ -841,7 +924,6 @@ export default {