Browse Source

修改通知页面

master
123456 3 years ago
parent
commit
a8d688724d
  1. 33
      src/views/modules/plugins/point/icpointNoice.vue
  2. 23
      src/views/modules/plugins/point/icpointnucleicmonitoring.vue
  3. 25
      src/views/modules/plugins/point/icpointvaccinesinoculation.vue

33
src/views/modules/plugins/point/icpointNoice.vue

@ -62,30 +62,31 @@
<script> <script>
import { Loading } from "element-ui"; // Loading import { Loading } from "element-ui"; // Loading
import { requestPost } from '@/js/dai/request'
let loading; // let loading; //
export default { export default {
data() { data() {
return { return {
activeName: "second",
gridList: [],
btnDisable: false, btnDisable: false,
formData: { formData: {
origin: "1", origin: null,
isSelChannel: false, isSelChannel: false,
channel: [], channel: [],
content: "", content: "",
userList: [],
}, },
selectionAll: [],
}; };
}, },
props:{
noticeOrigin:{
type:String,
default:null
}
},
components: {}, components: {},
async mounted() {}, mounted() {
this.formData.origin = this.noticeOrigin
},
methods: { methods: {
handleCancle() { handleCancle() {
this.$emit("diaClose"); this.$emit("diaClose");
@ -101,9 +102,6 @@ export default {
return false; return false;
} }
console.log(this.formData);
// return false
this.btnDisable = true; this.btnDisable = true;
setTimeout(() => { setTimeout(() => {
this.btnDisable = false; this.btnDisable = false;
@ -130,11 +128,10 @@ export default {
}, },
resetData() { resetData() {
this.formData = { this.formData = {
origin: "2", origin: null,
isSelChannel: false, isSelChannel: false,
channel: [], channel: [],
content: "", content: "",
userList: [],
}; };
}, },
@ -166,12 +163,6 @@ export default {
}; };
}, },
}, },
props: {
// serviceList: {
// type: Array,
// default: []
// },
},
}; };
</script> </script>

23
src/views/modules/plugins/point/icpointnucleicmonitoring.vue

@ -105,6 +105,7 @@
class="diy-button--more" class="diy-button--more"
size="small" size="small"
@click="handleSendNotice" @click="handleSendNotice"
v-if="noticeVisible"
>发送通知</el-button >发送通知</el-button
> >
</div> </div>
@ -208,9 +209,10 @@
width="850px" width="850px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="diaClose"> @closed="diaClose"
:destroy-on-close="true">
<icpoint-noice ref="ref_sendnotice" <icpoint-noice ref="ref_sendnotice"
@diaClose="diaClose"></icpoint-noice> @diaClose="diaClose" :noticeOrigin="noticeOrigin"></icpoint-noice>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -239,6 +241,8 @@ export default {
orgIds: [], orgIds: [],
updateId: null, updateId: null,
sendNoticeFormShow:false, sendNoticeFormShow:false,
noticeVisible:false,
noticeOrigin:"3"
}; };
}, },
components: { components: {
@ -246,15 +250,13 @@ export default {
icpointNoice icpointNoice
}, },
created() { created() {
this.noticeFun()
this.getFormInfo(); this.getFormInfo();
}, },
methods: { methods: {
// //
handleSendNotice () { handleSendNotice () {
this.sendNoticeFormShow = true this.sendNoticeFormShow = true
this.$nextTick(() => {
this.$refs.ref_sendnotice.initForm(this.selectionAll, '3')
})
}, },
// //
diaClose(){ diaClose(){
@ -287,6 +289,17 @@ export default {
}) })
.catch(() => {}); .catch(() => {});
}, },
//
noticeFun(){
this.$http
.post(`/epmetuser/icPointNucleicMonitoring/getShowType`)
.then(({ data: res }) => {
if (res.code === 0 && res.data) {
this.noticeVisible = true
}
})
.catch(() => {});
},
deleteChildren(arr) { deleteChildren(arr) {
let childs = arr; let childs = arr;
for (let i = childs.length; i--; i > 0) { for (let i = childs.length; i--; i > 0) {

25
src/views/modules/plugins/point/icpointvaccinesinoculation.vue

@ -80,6 +80,7 @@
class="diy-button--more" class="diy-button--more"
size="small" size="small"
@click="handleSendNotice" @click="handleSendNotice"
v-if="noticeVisible"
>发送通知</el-button >发送通知</el-button
> >
</div> </div>
@ -212,9 +213,10 @@
width="850px" width="850px"
top="5vh" top="5vh"
class="dialog-h" class="dialog-h"
@closed="diaClose"> @closed="diaClose"
:destroy-on-close="true">
<icpoint-noice ref="ref_sendnotice" <icpoint-noice ref="ref_sendnotice"
@diaClose="diaClose"></icpoint-noice> @diaClose="diaClose" :noticeOrigin="noticeOrigin" ></icpoint-noice>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -240,24 +242,37 @@ export default {
}, },
updateId: null, updateId: null,
sendNoticeFormShow:false, sendNoticeFormShow:false,
noticeVisible:false,
noticeOrigin:"4"
}; };
}, },
components: { components: {
AddOrUpdate, AddOrUpdate,
icpointNoice icpointNoice
}, },
mounted(){
this.noticeFun()
},
methods: { methods: {
// //
handleSendNotice () { handleSendNotice () {
this.sendNoticeFormShow = true this.sendNoticeFormShow = true
this.$nextTick(() => {
this.$refs.ref_sendnotice.initForm(this.selectionAll, '4')
})
}, },
// //
diaClose(){ diaClose(){
this.sendNoticeFormShow = false this.sendNoticeFormShow = false
}, },
//
noticeFun(){
this.$http
.post(`/epmetuser/icPointNucleicMonitoring/getShowType`)
.then(({ data: res }) => {
if (res.code === 0 && res.data) {
this.noticeVisible = true
}
})
.catch(() => {});
},
// / // /
addOrUpdateHandle(id) { addOrUpdateHandle(id) {
this.updateId = id; this.updateId = id;

Loading…
Cancel
Save