diff --git a/src/views/modules/base/epidemic/natFocus/natFocusEdit.vue b/src/views/modules/base/epidemic/natFocus/natFocusEdit.vue index 1b454dab2..c225c8e5e 100644 --- a/src/views/modules/base/epidemic/natFocus/natFocusEdit.vue +++ b/src/views/modules/base/epidemic/natFocus/natFocusEdit.vue @@ -1,20 +1,16 @@ @@ -167,7 +170,7 @@ import { requestPost } from "@/js/dai/request"; import { mapGetters } from "vuex"; let loading; // 加载动画 -function iniGetFmData() { +function iniGetFmData () { return { attentionType: 2, name: "", @@ -184,7 +187,7 @@ function iniGetFmData() { } export default { - data() { + data () { return { formType: "edit", @@ -202,20 +205,20 @@ export default { components: {}, - async mounted() { - this.getFmOptions("isolatedState", "/sys/dict/data/dictlist", { + async mounted () { + await this.getFmOptions("isolatedState", "/sys/dict/data/dictlist", { dictType: "isolatedState", }); }, - destroyed() {}, + destroyed () { }, methods: { - handleChannelChange(val) { + handleChannelChange (val) { this.formData.content = ""; }, - async initForm(formType, row) { + async initForm (formType, row) { this.formType = formType; this.$refs["ref_form1"].resetFields(); row.channel = []; @@ -223,9 +226,18 @@ export default { row.attentionType = 2; row.isSelChannel = false; this.formData = JSON.parse(JSON.stringify(row)); + + this.options.isolatedState.forEach(element => { + if (this.formData.isolatedState === element.value) { + this.formData.isolatedStateShow = element.label + } + }); + }, - handleComfirm() { + + + handleComfirm () { this.$refs["ref_form1"].validate((valid, messageObj) => { if (!valid) { app.util.validateRule(messageObj); @@ -235,7 +247,7 @@ export default { }); }, - async submit() { + async submit () { if (this.formData.isSelChannel) { if (!this.formData.content) { this.$message({ @@ -274,12 +286,12 @@ export default { } }, - handleCancle() { + handleCancle () { this.resetData(); this.$emit("dialogCancle"); }, - async getFmOptions(field, url, params, cookFn) { + async getFmOptions (field, url, params, cookFn) { const { data, code, msg } = await requestPost(url, { ...params, }); @@ -292,24 +304,24 @@ export default { } }, - resetData() { + resetData () { this.veroId = ""; this.formData = iniGetFmData(); }, - handleSizeChange(val) { + handleSizeChange (val) { this.pageSize = val; this.pageNo = 1; this.loadTable(); }, - handleCurrentChange(val) { + handleCurrentChange (val) { this.pageNo = val; this.loadTable(); }, // 开启加载动画 - startLoading() { + startLoading () { loading = Loading.service({ lock: true, // 是否锁定 text: "正在加载……", // 加载中需要显示的文字 @@ -317,7 +329,7 @@ export default { }); }, // 结束加载动画 - endLoading() { + endLoading () { // clearTimeout(timer); if (loading) { loading.close(); @@ -325,12 +337,12 @@ export default { }, }, computed: { - tableHeight() { + tableHeight () { return 200; }, ...mapGetters(["clientHeight", "iframeHeight"]), - dataRule() { + dataRule () { return { isolatedState: [ { required: true, message: "隔离状态必填", trigger: "blur" }, @@ -349,7 +361,11 @@ export default { }, }; - + + + diff --git a/src/views/modules/base/epidemic/travel.vue b/src/views/modules/base/epidemic/travel.vue index b6db0d56e..f7fda935a 100644 --- a/src/views/modules/base/epidemic/travel.vue +++ b/src/views/modules/base/epidemic/travel.vue @@ -5,7 +5,7 @@ + :label-width="'110px'">
+ + + + import travelForm from './travelForm' +import travelDetail from './travelDetail' import nfNoticeList from './natFocus/nfNoticeList' import nfSendNotice from './natFocus/nfSendNotice' import nfVisiteList from './natFocus/nfVisiteList' @@ -402,6 +416,7 @@ export default { //form相关 formShow: false, + detailShow: false, formTitle: '新增', areaProps: { lazy: true, @@ -413,6 +428,7 @@ export default { }, components: { travelForm, + travelDetail, nfNoticeList, nfSendNotice, nfVisiteList @@ -666,10 +682,10 @@ export default { }, handleDetail (row) { - this.formTitle = '行程详情' - this.formShow = true + // this.formTitle = '行程详情' + this.detailShow = true this.$nextTick(() => { - this.$refs.ref_form.initForm('detail', row) + this.$refs.ref_detail.initForm(row) }) }, @@ -690,6 +706,7 @@ export default { }, addFormCancle () { + this.detailShow = false this.formShow = false }, addFormOk () { diff --git a/src/views/modules/base/epidemic/travelDetail.vue b/src/views/modules/base/epidemic/travelDetail.vue new file mode 100644 index 000000000..f7bbe35aa --- /dev/null +++ b/src/views/modules/base/epidemic/travelDetail.vue @@ -0,0 +1,247 @@ + + + + + + + + diff --git a/src/views/modules/communityParty/members/cpts/record.vue b/src/views/modules/communityParty/members/cpts/record.vue index 799611075..809af3be9 100644 --- a/src/views/modules/communityParty/members/cpts/record.vue +++ b/src/views/modules/communityParty/members/cpts/record.vue @@ -1,8 +1,7 @@