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

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

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

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

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

Loading…
Cancel
Save