|
@@ -0,0 +1,79 @@
|
|
|
+<script>
|
|
|
+import { area } from '@/api/area'
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: 'MessageTipModalContent',
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ areaData: [],
|
|
|
+ areaValue: "",
|
|
|
+ content_: `市高层建筑消防安全“除险清患"专项行动领导小组办公室,将你区/县纳入重点督导库,请认真研判本辖区高层建筑火灾风险形势,采取针对性措施,切实消除隐患,遏制高层建筑火灾发生。`
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ area({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 100
|
|
|
+ }).then(res => {
|
|
|
+ this.areaData = res.data.rows
|
|
|
+ })
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ sendSms() {
|
|
|
+ this.$alert('信息已发送', '信息提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ type: "success",
|
|
|
+ modal: false,
|
|
|
+ callback: action => {}
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<template >
|
|
|
+ <div>
|
|
|
+ <div class="message-tip-toolbar">
|
|
|
+ <el-select style="width: 150px;" size="small" placeholder="区域" v-model="areaValue">
|
|
|
+ <el-option :value="item.areaTitle" :label="item.areaTitle" v-for="(item,index) in areaData" :key="index" ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="message-tip-content">
|
|
|
+ <el-input type="textarea" v-model="content_" :rows="10" show-word-limit resize="none"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="message-tip-bottom">
|
|
|
+ <el-button size="small" @click="sendSms">发送</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style scoped lang='less'>
|
|
|
+.message-tip-toolbar {
|
|
|
+ display: flex;
|
|
|
+ padding-bottom: 10px;
|
|
|
+ justify-content: start;
|
|
|
+ // padding: 10px 10px 0px 20px;
|
|
|
+ ::v-deep(.el-input__inner) {
|
|
|
+ border: none;
|
|
|
+ background: linear-gradient(
|
|
|
+ 360deg,
|
|
|
+ rgba(0, 148, 255, 0.5) 0%,
|
|
|
+ rgba(0, 148, 255, 0.31) 100%
|
|
|
+ );
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+}
|
|
|
+.message-tip-bottom {
|
|
|
+ display: flex;
|
|
|
+ padding: 10px 0px;
|
|
|
+ justify-content: end;
|
|
|
+
|
|
|
+
|
|
|
+ ::v-deep(.el-button) {
|
|
|
+ background: linear-gradient(180deg, rgba(68, 241, 255, 1) 0%, rgba(68, 241, 255, .69) 100%);
|
|
|
+ color: #fff;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|