12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352 |
- <template>
- <div class="dialog-info">
- <div class="dialog-contents">
- <div class="dialog-left">
- <el-form
- :model="ruleForm"
- :rules="rules"
- ref="ruleForm"
- label-width="101px"
- class="demo-ruleForm"
- >
- <el-form-item
- label="所属社区"
- prop="popCommunityId"
- >
- <el-select
- placeholder="请选择所属社区"
- v-model="ruleForm.popCommunityId"
- clearable
- class="dialog-select"
- @change="changeCommunity"
- >
- <el-option
- v-for="(item, index) in communityList"
- :key="index"
- :label="item.communityName"
- :value="item.id"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="发布对象"
- prop="issueRoom"
- >
- <div class="issueRoom">
- <div class="radio-room">
- <el-checkbox
- label="社区住户"
- name="type"
- v-model="ruleForm.issueRoom.checkAll"
- @change="changeCheckboxRoom"
- ></el-checkbox>
- <el-radio-group
- v-model="ruleForm.issueRoom.radioRoom"
- :disabled="!ruleForm.issueRoom.checkAll"
- @change="changeRadioRoom"
- >
- <el-radio label="全部房间"></el-radio>
- <el-radio label="指定房间"></el-radio>
- </el-radio-group>
- </div>
- <div
- class="selet-room"
- v-show="ruleForm.issueRoom.checkAll"
- >
- <tree-house
- :buildingType="1"
- :showCheckboxTree="true"
- :defaultExpandAllTree="false"
- :accordion="true"
- :selectAll="true"
- @selectData="selectDataHouseTree"
- :disabledHouse="disabledHouse"
- ref="selectTreeHouse"
- ></tree-house>
- </div>
- </div>
- <div class="issueRoom">
- <div class="radio-room">
- <el-checkbox
- label="物业员工"
- name="type"
- v-model="ruleForm.issueRoom.staff"
- @change="changeCheckboxStaffRoom"
- ></el-checkbox>
- <el-radio-group
- v-model="ruleForm.issueRoom.radioStaff"
- :disabled="!ruleForm.issueRoom.staff"
- @change="changeRadioStaffRoom"
- >
- <el-radio label="全部员工"></el-radio>
- <el-radio label="指定员工"></el-radio>
- </el-radio-group>
- </div>
- <div
- class="selet-room"
- v-show="ruleForm.issueRoom.staff"
- >
- <!-- <GeminiScrollbar class="my-scroll-bar" :autoshow="true"> -->
- <tree-house
- ref="selectTreePeoples"
- :buildingType="1"
- :showCheckboxTree="true"
- :defaultExpandAllTree="false"
- :showHouseTree="false"
- :accordionPeople="true"
- :selectAll="true"
- @dataPeople="dataPeople"
- @selectPeople="selectPeople"
- :disabled="disabledPeople"
- ></tree-house>
- <!-- </GeminiScrollbar> -->
- </div>
- </div>
- </el-form-item>
- <el-form-item
- label="通知类型"
- prop="informType"
- >
- <el-select
- v-model="ruleForm.informType"
- @change="changeInformType"
- clearable
- class="dialog-select"
- placeholder="请选择通知类型"
- >
- <el-option
- v-for="(item, index) in informTypes"
- :key="index"
- :label="item.label"
- :value="item.status"
- >{{
- item.label
- }}</el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="标题"
- prop="title"
- >
- <el-input
- v-model="ruleForm.title"
- placeholder="不能超过20字"
- maxlength="20"
- ></el-input>
- </el-form-item>
- <el-form-item
- label="是否紧急"
- prop="exigencyOr"
- >
- <el-radio-group
- v-model="ruleForm.exigencyOr"
- @change="changeRadioExigencyOr"
- >
- <el-radio label="是"></el-radio>
- <el-radio label="否"></el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item
- label="选择时间"
- prop="activeTime"
- v-if="showUploadImage"
- >
- <el-date-picker
- v-model="ruleForm.activeTime"
- type="datetimerange"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- :picker-options="pickerOptions"
- :editable="false"
- ></el-date-picker>
- </el-form-item>
- <el-form-item
- label="主题图片"
- prop="image"
- v-if="showUploadImage"
- >
- <div class="up-image">
- <up-image
- color="#1890ff"
- class="editor-upload-btn"
- @successCBK="imageSuccessCBK"
- @deleteImage="deleteImage"
- @successImageList="successImageList"
- ref="upImages"
- ></up-image>
- </div>
- </el-form-item>
- <el-form-item
- label="通知内容"
- prop="editorContents"
- >
- <!-- tinymce-editor 富文本编辑器 -->
- <div class="editor-container">
- <tinymce
- v-model="ruleForm.editorContents"
- ref="endit"
- :height="150"
- />
- </div>
- </el-form-item>
- <el-form-item
- label="文件上传"
- prop="fill"
- >
- <div>
- <el-upload
- class="upload-fill"
- action="/sc-community/upload/uploadFile"
- :on-preview="handlePreview"
- :on-remove="handleRemove"
- :before-remove="beforeRemove"
- multiple
- :limit="3"
- :on-exceed="handleExceed"
- :file-list="fileList"
- :on-success="successFile"
- >
- <el-button
- size="small"
- icon="el-icon-paperclip"
- >选择附件</el-button>
- <div
- slot="tip"
- class="el-upload-text"
- >支持格式:.rar .zip .doc .docx .pdf ,单个文件不能超过20MB</div>
- </el-upload>
- </div>
- </el-form-item>
- </el-form>
- </div>
- <div class="dialog-right">
- <div class="dialog-right-top">
- <img
- src="@assets/img/phoneHeader.png"
- alt=""
- />
- </div>
- <div class="dialog-right-header">
- <i class="el-icon-arrow-left"></i>
- <div v-if="showDetail">{{ this.showUploadImage ? '社区活动' : '物业通知' }}</div>
- <div v-else>{{ rowDetail.type == 0 ? '物业通知' : '社区活动' }}</div>
- </div>
- <div class="center-padding"></div>
- <GeminiScrollbar
- class="my-scroll-bar"
- :autoshow="true"
- >
- <div class="dialog-right-content">
- <div class="dialog-title">
- <div
- class="dialog-titles"
- v-if="showDetail"
- >
- {{ ruleForm.title ? ruleForm.title : '标题' }}
- </div>
- <div
- class="dialog-titles"
- v-else
- >
- {{ rowDetail.title ? rowDetail.title : '标题' }}
- </div>
- <div v-if="showDetail">
- <div
- class="dialog-urgency"
- v-if="ruleForm.exigencyOr == '是'"
- >紧急</div>
- </div>
- <div v-else>
- <div
- class="dialog-urgency"
- v-if="rowDetail.urgentFlag"
- >紧急</div>
- </div>
- <!-- ruleForm.exigencyOr -->
- </div>
- <div
- class="dialog-right-time"
- v-if="!showDetail"
- >{{ rowDetail.pubDate }}</div>
- <div
- class="dialog-right-time"
- v-else
- >{{ new Date() | filterTime }}</div>
- <div></div>
- <div class="content">
- <div class="content-text">
- <div
- v-html="ruleForm.editorContents"
- id="content"
- />
- </div>
- <div v-if="showDetail">
- <div
- class="file-name"
- v-for="(item, index) of uploadFileUrl"
- :key="index"
- >
- <span class="file-name-left"><i class="el-icon-paperclip"></i> </span>
- <span class="file-name-right">
- {{ item.name }}
- </span>
- </div>
- </div>
- <div v-else>
- <div
- class="file-name"
- v-for="(item, index) of filePath"
- :key="index"
- >
- <span class="file-name-left"><i class="el-icon-paperclip"></i> </span>
- <span class="file-name-right">
- {{ item.name }}
- </span>
- </div>
- </div>
- </div>
- <div></div>
- </div>
- </GeminiScrollbar>
- </div>
- </div>
- </div>
- </template>
- <script>
- import previeInform from '../common/previeInform';
- import upImage from '../common/upImage';
- // Tinymce 富文本编辑器
- import Tinymce from '@/components/Tinymce';
- export default {
- components: { previeInform, Tinymce, upImage },
- props: ['params'],
- data () {
- return {
- communityList: [],
- // 上传的图片
- upLoadImageList: [],
- disabledHouse: true,
- disabledPeople: true,
- popCommunityName: '',
- fileList: [],
- // 显示图片上传
- showUploadImage: false,
- dialogImageUrl: '',
- // 显示详情
- showDetail: true,
- rowDetail: '',
- contentHtml: '',
- // 查询的时间
- searchTime: [],
- // 添加弹框信息
- ruleForm: {
- popCommunityId: '', //所属社区
- //发布对象
- issueRoom: {
- checkAll: false,
- radioRoom: '',
- staff: false,
- radioStaff: ''
- },
- disabledRoom: false, //单选框是否禁用
- disabledStaffRoom: false,
- informType: '', //通知类型
- title: '', //标题
- exigencyOr: '是', //是否紧急
- exigencyText: true,
- activeTime: [],
- editorContents: '',
- // informContent: content, //通知内容
- informContent: '', //通知内容
- upload: '' // 文件上传
- },
- rules: {
- popCommunityId: [{ required: true, message: '请选择社区', trigger: 'change' }],
- radioRoom: [{ required: true, message: '请选择房间', trigger: 'change' }],
- informType: [{ required: true, message: '请选择通知类型', trigger: 'change' }],
- title: [{ required: true, message: '请输入标题', trigger: 'blur' }],
- exigencyOr: [{ required: true, message: '请选择是否紧急', trigger: 'change' }],
- activeTime: [{ required: true, message: '请选择时间', trigger: 'change' }],
- issueRoom: [{ required: true, message: '请选择发布对象', trigger: 'change' }],
- editorContents: [{ required: true, message: '请发布内容', trigger: 'blur' }] //通知内容
- },
- informTypes: [
- {
- status: 0,
- label: '物业通知'
- },
- {
- status: 1,
- label: '社区活动'
- }
- ],
- // 显隐弹框
- centerDialogVisible: false,
- // 获取的房间信息
- houseData: [],
- houseDataNames: '',
- houseDataNamesPeople: '',
- peopleData: [],
- userType: '',
- // 选中的房间
- selectDataHouseTreeData: {
- checkData: [],
- userID: [],
- userList: []
- },
- houseNames: [],
- PeopleNames: [],
- // 选中的人员
- selectDataPeopleTreeData: {
- checkData: [],
- userList: []
- },
- // 文件上传地址
- uploadFileUrl: []
- };
- },
- computed: {
- // 过滤富文本
- ruleFormEditorContents () {
- if (this.ruleForm.editorContents) {
- console.log('this.ruleForm.editorContents', this.ruleForm.editorContents);
- let formResult = null;
- let container = null;
- let imageUrl = this.ruleForm.editorContents.match(/<div id=".*" class="wscnph">\[图片\].*<\/div>.*/g);
- let text = this.ruleForm.editorContents.match(/\[图片\].*/g);
- if (Array.isArray(text) && text.length > 0) {
- container = text[0].substr(4, text[0].length - 10);
- }
- console.log('imageUrl', imageUrl);
- if (Array.isArray(imageUrl) && imageUrl.length > 0) {
- let url = imageUrl[0].substr(9, imageUrl[0].length - 36 + container.length);
- formResult = this.ruleForm.editorContents.replace(
- /<div id=".*" class="wscnph">\[图片\].*<\/div>/g,
- `<img class="wscnph" src="${url}" />`
- );
- }
- console.log('formResult', formResult);
- console.log('container', container);
- return `${formResult ? formResult : ''} <div>${container}</div>`;
- }
- }
- },
- created () {
- this.getCommunityList();
- },
- methods: {
- // 弹框关闭事件
- handleDialogClose (e) {
- this.showDetail = false;
- // console.log('handleDialogClose=========', e);
- if (!!this.$refs.previeInform) {
- this.$refs.previeInform.closeDialog();
- }
- },
- // 上传文件
- handleRemove (file, fileList) {
- // console.log('上传文件', file, fileList);
- },
- handlePreview (file) {
- // console.log('点击文件', file);
- },
- successFile (file, fileLists) {
- let obj = {};
- // this.fileList.push(fileLists.name);
- let resName = fileLists.response.data;
- obj.oldName = resName;
- obj.name = fileLists.name;
- // this.uploadFileUrl= this.uploadFileUrl.concat(newName + ',');
- this.uploadFileUrl.push(obj);
- },
- handleExceed (files, fileList) {
- this.$message.error(
- `当前最多可选 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`
- );
- },
- beforeRemove (file, fileList) {
- let removeName = this.fileList.filter((item) => {
- return item.name != file.name;
- });
- this.fileList = removeName;
- this.uploadFileUrl = removeName;
- },
- /**上传图片*/
- successImageList (arr) {
- this.upLoadImageList = [];
- this.upLoadImageList = arr;
- console.log('上传图片inform', this.upLoadImageList);
- },
- // 插入富文本
- imageSuccessCBK (arr) {
- this.$refs.endit.imageSuccessCBK(arr);
- },
- deleteImage (val) {
- this.$refs.endit.deleteImage(val);
- },
- handleRemove (file) { },
- handleDownload (file) { },
- // 添加弹框下拉框变化
- changeCommunity (val) {
- this.$http
- .get('/sc-community/assets/tree/community/find', { buildingType: this.buildingType })
- .then(({ status, data, msg }) => {
- if (status === 0 && data) {
- this.$refs.selectTreeHouse.filterhouse(val, data);
- // this.ruleForm.issueRoom.checkAll = true;
- // this.ruleForm.issueRoom.radioRoom = '全部房间';
- // this.ruleForm.issueRoom.radioStaff = '';
- // this.ruleForm.issueRoom.staff = false;
- } else {
- this.$message.error('获取房间失败');
- }
- });
- },
- // 选中的房间
- selectDataHouseTree (val) {
- this.selectDataHouseTreeData.userID = [];
- this.selectDataHouseTreeData.userID = val.userList;
- // this.selectDataHouseTreeData = val;
- // 获取房间下的usid
- this.$http.post('/sc-community/notice/queryHouseUser', val.userList).then((res) => {
- if (res.status === 0) {
- this.selectDataHouseTreeData.userList = res.data;
- } else {
- // this.$message('获取房间失败');
- }
- });
- },
- // 选择的人员
- selectPeople (val) {
- // if (val.userList.length < 1) {
- // this.ruleForm.issueRoom.radioStaff = '指定员工';
- // }
- this.selectDataPeopleTreeData.userList = [];
- this.selectDataPeopleTreeData = val;
- },
- /**监听指定房间单选框变化*/
- changeRadioRoom (val) {
- if (!this.ruleForm.popCommunityId) {
- ruleForm.issueRoom.checkAll = false;
- return this.$message.warning('请先选择所属社区');
- }
- if (val == '指定房间') {
- this.ruleForm.disabledRoom = true;
- this.$refs.selectTreeHouse.selectHouseOr();
- } else {
- this.ruleForm.disabledRoom = false;
- this.$refs.selectTreeHouse.selectAllHouse();
- }
- },
- //选择员工复选框变化
- changeCheckboxStaffRoom (val) {
- if (!this.ruleForm.popCommunityId) {
- this.ruleForm.issueRoom.staff = false;
- return this.$message.warning('请先选择社区');
- }
- if (val) {
- this.ruleForm.issueRoom.radioStaff = '全部员工';
- // this.ruleForm.issueRoom.checkAll = false;
- // this.ruleForm.issueRoom.radioRoom = '';
- this.$refs.selectTreePeoples.selectAllPeople();
- // this.$refs.selectTreeHouse.selectHouseOr();
- } else {
- this.ruleForm.issueRoom.radioStaff = '';
- // this.ruleForm.issueRoom.checkAll = true;
- // this.ruleForm.issueRoom.radioRoom = '全部房间';
- this.$refs.selectTreePeoples.selectPeopleOr();
- // this.$refs.selectTreeHouse.selectAllHouse();
- }
- },
- // 选择房间复选框变化
- changeCheckboxRoom (val) {
- if (!this.ruleForm.popCommunityId) {
- this.ruleForm.issueRoom.checkAll = false;
- return this.$message.warning('请先选择社区');
- }
- if (val) {
- // this.ruleForm.issueRoom.staff = false;
- // this.ruleForm.issueRoom.checkAll = true;
- this.ruleForm.issueRoom.radioRoom = '全部房间';
- // this.ruleForm.issueRoom.radioStaff = '';
- this.$refs.selectTreeHouse.selectAllHouse();
- } else {
- this.ruleForm.issueRoom.radioRoom = '';
- this.$refs.selectTreeHouse.selectHouseOr();
- }
- },
- // 指定员工
- changeRadioStaffRoom (val) {
- if (val == '指定员工') {
- this.ruleForm.disabledStaffRoom = true;
- this.$refs.selectTreePeoples.selectPeopleOr();
- } else {
- this.ruleForm.disabledStaffRoom = false;
- this.$refs.selectTreePeoples.selectAllPeople();
- }
- },
- // 是否紧急
- changeRadioExigencyOr (val) {
- if (val == '否') {
- this.ruleForm.exigencyText = false;
- } else {
- this.ruleForm.exigencyText = true;
- }
- },
- // 选择发布活动类型
- changeInformType (val) {
- this.successImageLists = '';
- this.upLoadImageList = [];
- if (val) {
- this.showUploadImage = true;
- } else {
- this.showUploadImage = false;
- }
- this.rowDetail = '';
- this.showDetail = true;
- if (!!this.$refs.endit) {
- this.$refs.endit.setContent('');
- }
- },
- submit () {
- this.$refs['ruleForm'].validate((valid) => {
- if (valid) {
- let content = this.ruleForm.editorContents;
- let img = [];
- content.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {
- img.push(capture);
- });
- if (
- this.selectDataHouseTreeData.userList.length === 0 &&
- this.selectDataPeopleTreeData &&
- this.selectDataPeopleTreeData.userList.length === 0
- ) {
- return this.$message.warning('所选暂无人员,不可发布');
- }
- let startTime = this.$moment(this.ruleForm.activeTime[0]).format(`YYYY-MM-DDTHH:mm:ss`);
- let endTime = this.$moment(this.ruleForm.activeTime[1]).format(`YYYY-MM-DDTHH:mm:ss`);
- var userVos = [];
- let arr1 = this.selectDataHouseTreeData.userList;
- let arr2 = this.selectDataPeopleTreeData.userList;
- let treeData = [];
- const dedupe = (array) => {
- return Array.from(new Set(array));
- };
- treeData[0] = JSON.stringify(this.selectDataHouseTreeData.userID);
- treeData[1] = JSON.stringify(arr2);
- if (arr1.length > 0) {
- dedupe(arr1).map((item, index) => {
- let obj = {
- noticeId: '',
- userId: item,
- userType: 0
- };
- userVos.push(obj);
- });
- }
- if (arr2.length > 0) {
- dedupe(arr2).map((item, index) => {
- let obj = {
- noticeId: '',
- userId: item,
- userType: 1
- };
- userVos.push(obj);
- });
- }
- let query = {
- communityId: this.ruleForm.popCommunityId,
- content: this.ruleForm.editorContents,
- startTime: this.showUploadImage ? startTime : '',
- endTime: this.showUploadImage ? endTime : '',
- filePath: JSON.stringify(this.uploadFileUrl),
- id: 1,
- pubDate: this.$moment(new Date()).format(`YYYY-MM-DDTHH:mm:ss`),
- themePictrue: JSON.stringify(this.upLoadImageList),
- treeData: JSON.stringify(treeData),
- title: this.ruleForm.title,
- type: this.ruleForm.informType,
- urgentFlag: this.ruleForm.exigencyOr == '是' ? 1 : 0,
- userVos: userVos
- };
- this.$http.post('/sc-community/notice/add', query).then((res) => {
- if (res.status === 0) {
- this.$message.success(res.msg);
- this.$refs.endit.setContent('');
- this.params.callback();
- this.$emit('close');
- } else {
- this.$message.error(res.msg);
- }
- this.showUploadImage = false;
- });
- } else {
- return false;
- }
- });
- },
- /** 获取社区列表*/
- getCommunityList () {
- this.$http.get('/sc-community/assets/community/list', {}).then(({ data }) => {
- this.communityList = data;
- });
- },
- }
- };
- </script>
- <style lang="scss" scoped>
- $fontSizeSmall: 14px;
- // 弹框格式
- /deep/ .el-dialog__header {
- background-color: #f8fcff;
- }
- /deep/ .el-dialog__body {
- padding: 20px 30px 30px;
- }
- // 表格样式
- // /deep/ .el-table th.is-leaf, .el-table td{
- // 添加表格边框
- // border-right: 1px solid #EBEEF5;
- // }
- /deep/ .el-table--fit {
- border: none;
- // box-shadow: 0px 0px 1px 3px white;
- }
- /deep/ .el-table td:first-child {
- text-align: center;
- }
- /deep/ .el-table th:first-child {
- text-align: center;
- }
- /deep/ .el-table thead {
- color: #424656;
- }
- // 表格内容溢出隐藏
- /deep/ .el-table_1_column_8 div p {
- width: 230px;
- overflow: hidden;
- white-space: nowrap;
- -o-text-overflow: ellipsis; //浏览器兼容
- text-overflow: ellipsis;
- }
- .statusColor {
- color: #ff7f7f;
- }
- .add {
- float: right;
- img {
- width: 30px;
- height: 30px;
- cursor: pointer;
- }
- }
- // 投诉建议弹框详情样式
- .complaint {
- .complaint-title {
- display: flex;
- }
- .complaint-title-left {
- width: 4px;
- height: 12px;
- background-color: #0eaeff;
- border-radius: 2px;
- margin-top: 4px;
- margin-right: 10px;
- }
- .complaint-title-right {
- font-family: PingFangSC-Medium, PingFang SC;
- color: #424656;
- font-weight: 500;
- }
- .grate-rate {
- background: #f4f7f9;
- border-radius: 2px;
- padding: 10px;
- color: #424656;
- font-size: 12px;
- }
- .grate-rate-title {
- margin-bottom: 20px;
- }
- .grate-text {
- margin-top: 8px;
- margin-left: 3px;
- color: #424656;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- font-size: 12px;
- }
- .complaint-content {
- display: flex;
- justify-content: space-between;
- margin: 24px;
- font-size: 12px;
- .complaint-content-left {
- color: #424656;
- margin-right: 13px;
- }
- .complaint-content-right {
- color: #535766;
- }
- .complaint-content-media {
- height: 100px !important;
- overflow: hidden !important;
- .media {
- width: 100%;
- }
- }
- }
- .complaint-images {
- margin-top: 33px;
- margin-left: 20px;
- display: block;
- max-height: 90px;
- }
- // 图片/视频样式
- .images {
- width: 25%;
- height: 90px;
- vertical-align: middle;
- border-radius: 4px;
- margin-right: 10px;
- /deep/ .el-image__preview {
- background: #ccc;
- width: 100%;
- object-fit: fill;
- }
- }
- // 记录部分
- .record {
- padding: 10px;
- margin-top: 20px;
- margin-bottom: 20px;
- background: #f4f7f9;
- max-height: 36vh;
- overflow-y: scroll;
- .recored-detali-row {
- margin: 10px;
- line-height: 14px;
- font-size: $fontSizeSmall;
- }
- .circle {
- width: 14px;
- height: 14px;
- margin-right: 10px;
- }
- .circle + span {
- margin-right: 10px;
- font-size: 14px;
- color: #424656;
- }
- .circle + span + span {
- font-size: 12px;
- color: #aaadba;
- }
- .recored-detali-rows {
- display: flex;
- margin-left: 7px;
- .record-left {
- position: absolute;
- width: 1px;
- height: 33px;
- border-radius: 4px;
- background-color: #0eaeff;
- margin-left: 10px;
- }
- :last-child {
- margin-top: 7px;
- margin-left: 26px;
- }
- }
- .recored-detali {
- position: relative;
- .last-row-right {
- position: absolute;
- right: 10px;
- bottom: 20px;
- color: #0eaeff;
- }
- .last-row-btn {
- position: absolute;
- top: 10px;
- right: 0px;
- width: 63px;
- height: 30px;
- }
- .statusColor {
- color: #ff7f7f;
- }
- }
- .columns {
- display: flex;
- justify-content: flex-start;
- }
- .end-row {
- margin-left: 33px;
- }
- .font-size-small {
- font-size: 12px;
- margin-bottom: 10px;
- }
- }
- // 下拉框部分
- .changeStatus {
- display: flex;
- width: 100%;
- margin-left: 10px;
- margin-bottom: 20px;
- .changeStatus-left {
- font-size: 12px;
- padding-top: 6px;
- width: 9%;
- margin-right: 10px;
- min-width: 60px;
- }
- .changeStatus-right {
- width: 88%;
- .el-select {
- width: 100%;
- }
- }
- }
- .replay {
- /deep/ .el-form-item__label {
- font-size: 12px;
- text-align: start;
- padding: 0px;
- margin: 0;
- }
- // 回复计数字体样式
- /deep/ .el-input__count {
- bottom: -2px;
- font-size: 12px;
- -webkit-transform-origin-x: 0;
- -webkit-transform: scale(0.8);
- }
- }
- //
- }
- // 物业电话样式
- .phone {
- /deep/.search-btn {
- height: 31px;
- }
- .opt {
- img {
- margin-right: 20px;
- width: 14px;
- height: 14px;
- line-height: 14px;
- &:last-child {
- margin-right: 0;
- }
- }
- }
- // 添加弹框样式
- .dialog-info {
- /deep/ .el-dialog__header {
- display: none;
- }
- /deep/ .el-dialog__body {
- padding: 0;
- }
- .dialog {
- .dialog-header {
- position: relative;
- width: 100%;
- height: 50px;
- background-color: #f8fcff;
- .el-dialog__close {
- position: absolute;
- right: 10px;
- top: 10px;
- }
- .dialogTitle {
- position: absolute;
- top: 10px;
- left: 24px;
- }
- }
- .dialog-content {
- padding: 27px 24px 4px 36px;
- /deep/ .el-select > .el-input {
- width: 324px;
- }
- /deep/ .el-select,
- .dialog-select,
- .el-select--small {
- width: 100% !important;
- }
- /deep/ .el-input,
- .l-input--small,
- .el-input--suffix {
- width: 100% !important;
- }
- /deep/ .el-upload {
- width: 92px !important;
- height: 30px !important;
- }
- }
- }
- }
- // 删除弹框
- .dialog-delete {
- /deep/ .el-dialog__title {
- font-size: 18px;
- font-weight: bold;
- }
- .el-button + .el-button {
- margin-left: 20px;
- }
- .dialog-deletecontent {
- margin-top: 10px;
- display: flex;
- .dialog-icon {
- width: 45px;
- height: 45px;
- }
- .dialog-icon + div {
- margin-left: 10px;
- :first-child {
- font-size: 16px !important;
- }
- p {
- font-size: 14px;
- font-weight: bold;
- .delete-name {
- color: #ff7f7f;
- }
- }
- }
- }
- }
- }
- // 通知公告样式
- // 添加弹框样式
- .dialog-contents {
- width: 101%;
- height: 100%;
- display: flex;
- /deep/ .el-radio-group {
- margin-left: 10px;
- }
- .dialog-left {
- width: 65%;
- padding: 0px 20px 40px 0;
- .dialog-select {
- width: 100%;
- /deep/ .el-select > .el-input {
- width: 100%;
- }
- }
- /deep/ .el-range-editor--small.el-input__inner {
- width: 100% !important;
- }
- .issueRoom {
- display: flex;
- // justify-content: space-around;
- .organ-tree {
- width: 100%;
- }
- /deep/ .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
- background: #fff !important;
- }
- .organ-tree {
- padding: 0 !important;
- width: auto;
- /deep/ .tree-style-box {
- margin: 0px 0 5px 0;
- border-radius: 4px;
- }
- }
- // justify-content: space-between;
- }
- .radio-room {
- margin-right: 10px;
- width: 60%;
- }
- .selet-room {
- display: flex;
- justify-content: flex-end;
- // width: 30%;
- max-height: 50vh;
- /deep/ .el-input__inner {
- // margin-left: 10px;
- width: 275px;
- padding-right: 10px;
- }
- }
- }
- .dialog-right {
- width: 283px;
- height: 570px;
- border-radius: 24px;
- border: 1px solid #e0e1e3;
- margin: 20px 40px 70px;
- background-color: #fafcff;
- .dialog-right-top {
- text-align: center;
- background: white;
- border-top-right-radius: 28px;
- border-top-left-radius: 28px;
- border-bottom: none;
- padding: 4px;
- img {
- background: white;
- width: 100%;
- width: 234px;
- height: 8px;
- text-align: center;
- }
- }
- .dialog-right-header {
- width: 100%;
- padding: 24px 14px;
- background: white;
- :first-child {
- float: left;
- line-height: 20px;
- }
- :last-child {
- font-weight: bold;
- text-align: center;
- }
- }
- .center-padding {
- padding: 5px 0;
- }
- .dialog-right-content {
- background: white;
- padding: 11px;
- .dialog-title {
- display: flex;
- .dialog-titles {
- font-size: 14px;
- color: #424656;
- }
- .dialog-urgency {
- border-radius: 15px;
- width: 36px;
- height: 15px;
- line-height: 15px;
- background-image: linear-gradient(to right, #f65b5b, #ffa3a3);
- font-size: 12px;
- -webkit-transform-origin-x: 0;
- -webkit-transform: scale(0.8);
- margin-left: 2px;
- margin-top: 2px;
- color: white;
- text-align: center;
- }
- }
- .dialog-right-time {
- font-size: 10px;
- -webkit-transform-origin-x: 0;
- -webkit-transform: scale(0.9);
- color: #9ba6af;
- padding: 3px 0;
- }
- .dialog-right-time + div {
- width: 100%;
- border-bottom: 1px solid #eeeeee;
- margin-bottom: 10px;
- }
- .content {
- width: 110%;
- font-size: 10px;
- color: #e0e1e3;
- background-color: #fff;
- -webkit-transform-origin-x: 0;
- -webkit-transform: scale(0.92);
- .content-text {
- width: 100%;
- color: #686b78;
- background-color: #fff;
- /deep/ img {
- // width: 100%;
- max-width: 100%;
- max-height: 750px;
- }
- }
- .file-name {
- margin: 5px;
- border-radius: 24px;
- width: 90%;
- background: #fafcff;
- .file-name-left {
- color: #0eaeff;
- font-size: 14px;
- }
- .file-name-right {
- color: #424656;
- }
- }
- }
- }
- }
- }
- // 上传文件
- .upload-fill {
- width: 100%;
- display: flex;
- position: relative;
- /deep/ .el-upload-list__item {
- background: #f9f9f9;
- }
- /deep/ .el-upload--text {
- width: 100px;
- height: 32px;
- margin-right: 10px;
- border: 1px solid #e0e1e3;
- .el-button {
- border: none;
- padding: 11px 17px;
- }
- }
- .el-upload-text {
- font-size: 12px !important;
- color: #d8d8d8;
- }
- /deep/ .el-upload-list--text {
- position: absolute;
- top: 40px;
- padding-bottom: 100px;
- width: 100%;
- li {
- width: 30%;
- float: left;
- margin-right: 10px;
- vertical-align: middle;
- margin: 0 10px 0 0;
- }
- }
- }
- // 富文本编辑器样式
- .editor-container {
- border-radius: 4px;
- margin-top: 10px;
- border: 1px solid #e0e1e3;
- }
- /deep/ .mce-container,
- .mce-container-body {
- background: #fafcff;
- }
- /deep/ .mce-btn-group,
- .mce-btn {
- margin: 0;
- }
- /deep/ .mce-toolbar,
- .mce-btn-group {
- padding: 0;
- }
- /deep/ #mceu_33 {
- display: none !important;
- }
- // #mceu_17 {
- // display: none;
- // }
- s {
- max-width: 200px;
- max-height: 170px;
- }
- // 弹框自定义滚动条
- .my-scroll-bar {
- height: 438px;
- /deep/ .gm-scrollbar.-horizontal .thumb {
- height: 0;
- }
- }
- .opt {
- img {
- width: 14px;
- height: 14px;
- }
- }
- // 社区邻里
- .neighbor {
- @extend .phone;
- .complaint {
- .record {
- margin-top: 10px;
- .recored-detali-row {
- margin: 0px;
- line-height: 32px;
- position: relative;
- }
- .borders {
- border-left: 1px solid #0eaeff;
- }
- .recored-detali-rows {
- display: block;
- padding-left: 17px;
- .font-size-small {
- margin-left: 0px;
- margin-bottom: 0;
- }
- .rows-replay {
- margin: 0;
- padding-top: 5px;
- font-size: 12px;
- color: #0eaeff;
- :first-child {
- color: #424656;
- margin-left: 0;
- }
- }
- }
- }
- }
- }
- /deep/ iframe {
- width: 99% !important;
- }
- /deep/ .cell.el-tooltip p {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- /deep/ .el-table td div {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- // 视频样式
- .videos {
- object-fit: fill !important;
- }
- /deep/ .html-left {
- width: 16%;
- }
- </style>
|