|
@@ -1,56 +1,47 @@
|
|
|
<template>
|
|
|
- <div class="container">
|
|
|
- <div class="left-pane">
|
|
|
- <el-input placeholder="请输入关键字" suffix-icon="el-icon-search" v-model="filterText"></el-input>
|
|
|
- <el-tree ref="tree" :data="data" :props="defaultProps" node-key="id" default-expand-all
|
|
|
- :filter-node-method="filterNode" @node-click="handleNodeClick">
|
|
|
- </el-tree>
|
|
|
- <el-button class="newInfo_button"><i class="el-icon-s-order"></i>新建消息模块</el-button>
|
|
|
- </div>
|
|
|
- <div class="right-pane">
|
|
|
- <el-form :model="form" label-position="left" label-width="80px">
|
|
|
- <el-form-item style="width: 350px;" :model="form.channelconfig" label="通道配置:">
|
|
|
- <el-checkbox label="短信" v-model="checked"></el-checkbox>
|
|
|
- <el-checkbox label="邮件"></el-checkbox>
|
|
|
- <el-checkbox label="钉钉"></el-checkbox>
|
|
|
- <el-checkbox label="站内通知"></el-checkbox>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item style="width: 350px;" :model="form.personconfig" label="人员配置:">
|
|
|
- <el-checkbox label="全体"></el-checkbox>
|
|
|
- <el-checkbox label="运管管理员"></el-checkbox>
|
|
|
- <div style="display: flex; margin-left: 30px;">
|
|
|
- <el-checkbox style="margin-right: 10px;" v-model="checked1"></el-checkbox><span>
|
|
|
- <el-cascader style="width: 300px;" :options="options" placeholder="选择角色/部门/单位" filterable>
|
|
|
- </el-cascader>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item style="width: 350px;" :model="form.sendtiming" label="发送时间:">
|
|
|
- <el-radio v-model="radio" label="1" style="margin-top:13px">定时</el-radio>
|
|
|
- <span>
|
|
|
- <el-date-picker v-model="value1" type="datetime" placeholder="选择日期时间">
|
|
|
- </el-date-picker>
|
|
|
+ <div>
|
|
|
+ <el-form :model="form" label-position="left" label-width="80px" :disabled="disabled">
|
|
|
+ <el-form-item :model="form.channelconfig" label="通道配置:">
|
|
|
+ <el-checkbox label="短信" v-model="checked"></el-checkbox>
|
|
|
+ <el-checkbox label="邮件"></el-checkbox>
|
|
|
+ <el-checkbox label="钉钉"></el-checkbox>
|
|
|
+ <el-checkbox label="站内通知"></el-checkbox>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item :model="form.personconfig" label="人员配置:">
|
|
|
+ <el-checkbox label="全体"></el-checkbox>
|
|
|
+ <el-checkbox label="运管管理员"></el-checkbox>
|
|
|
+ <div style="display: flex; margin-left: 30px;">
|
|
|
+ <el-checkbox style="margin-right: 10px;" v-model="checked1"></el-checkbox><span>
|
|
|
+ <el-cascader style="width: 300px;" :options="options" placeholder="选择角色/部门/单位" filterable>
|
|
|
+ </el-cascader>
|
|
|
</span>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item :model="form.sendtiming" label="发送时间:">
|
|
|
+ <el-radio v-model="radio" label="1" style="margin-top:13px">定时</el-radio>
|
|
|
+ <span>
|
|
|
+ <el-date-picker v-model="value1" type="datetime" placeholder="选择日期时间">
|
|
|
+ </el-date-picker>
|
|
|
+ </span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item >
|
|
|
+ <el-radio v-model="radio" label="2">立刻</el-radio>
|
|
|
+ </el-form-item>
|
|
|
+ <div style="margin-top:30px">
|
|
|
+ <el-tag>年度报告通知模板</el-tag>
|
|
|
+ <el-form-item :model="form.title" label="标题:">
|
|
|
+ <el-input class="input_title" v-model="title" placeholder=""></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item style="width: 350px;">
|
|
|
- <el-radio v-model="radio" label="2">立刻</el-radio>
|
|
|
+ <el-form-item :model="form.content" label="内容:">
|
|
|
+ <el-input class="input_content" v-model="content" placeholder="请输入内容"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item :model="form.messagePreview" label="样式预览:">
|
|
|
+ <el-input class="stylePreview" v-model="messagePreview"></el-input>
|
|
|
</el-form-item>
|
|
|
- <div style="margin-top:30px">
|
|
|
- <el-tag>年度报告通知模板</el-tag>
|
|
|
- <el-form-item style="width: 350px;" :model="form.title" label="标题:">
|
|
|
- <el-input v-model="title" placeholder=""></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item style="width: 500px;" :model="form.content" label="内容:">
|
|
|
- <el-input v-model="content" placeholder="请输入内容"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item style="width: 500px;" :model="form.messagePreview" label="消息预览:">
|
|
|
- <el-input v-model="messagePreview"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </div>
|
|
|
- </el-form>
|
|
|
- <div class="bottom">
|
|
|
- <el-button>编辑</el-button>
|
|
|
</div>
|
|
|
+ </el-form>
|
|
|
+ <div class="bottom">
|
|
|
+ <el-button @click="edit">编辑</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -61,38 +52,21 @@ export default {
|
|
|
return {
|
|
|
checked: true,
|
|
|
checked1: true,
|
|
|
+ disabled:true,
|
|
|
radio: '1',
|
|
|
value1: '',
|
|
|
- filterText: '',
|
|
|
- title:'',
|
|
|
- content:'',
|
|
|
- messagePreview:'',
|
|
|
- data: [{
|
|
|
- label: '普通消息',
|
|
|
- children: [{
|
|
|
- label: '年度报告通知',
|
|
|
- }, {
|
|
|
- label: '报表导出通知'
|
|
|
- }, {
|
|
|
- label: '系统更新通知'
|
|
|
- }]
|
|
|
+ title: '',
|
|
|
+ content: '',
|
|
|
+ messagePreview: '',
|
|
|
+ form: {
|
|
|
+
|
|
|
},
|
|
|
- {
|
|
|
- label: '提醒消息',
|
|
|
- children: [{
|
|
|
- label: '资产年限提醒',
|
|
|
- }, {
|
|
|
- label: '人员画像提醒',
|
|
|
- }, {
|
|
|
- label: '备餐提醒',
|
|
|
- }]
|
|
|
- }],
|
|
|
- options:[
|
|
|
+ options: [
|
|
|
{
|
|
|
- value:'角色',
|
|
|
- label:'角色',
|
|
|
- children:[{
|
|
|
- children:[
|
|
|
+ value: '角色',
|
|
|
+ label: '角色',
|
|
|
+ children: [{
|
|
|
+ children: [
|
|
|
{
|
|
|
|
|
|
}
|
|
@@ -100,113 +74,111 @@ export default {
|
|
|
}]
|
|
|
},
|
|
|
{
|
|
|
- value:'公司',
|
|
|
- label:'公司',
|
|
|
- children:[{
|
|
|
- value:'中讯设计院',
|
|
|
- label:'中讯设计院',
|
|
|
- children:[{
|
|
|
- value:'北京电信规划设计院',
|
|
|
- label:'北京电信规划设计院',
|
|
|
+ value: '公司',
|
|
|
+ label: '公司',
|
|
|
+ children: [{
|
|
|
+ value: '中讯设计院',
|
|
|
+ label: '中讯设计院',
|
|
|
+ children: [{
|
|
|
+ value: '北京电信规划设计院',
|
|
|
+ label: '北京电信规划设计院',
|
|
|
}]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
- defaultProps: {
|
|
|
- children: 'children',
|
|
|
- label: 'label'
|
|
|
- },
|
|
|
- form: {
|
|
|
-
|
|
|
- },
|
|
|
input: ''
|
|
|
}
|
|
|
},
|
|
|
- watch: {
|
|
|
- filterText(val) {
|
|
|
- this.$refs.tree.filter(val);
|
|
|
- }
|
|
|
- },
|
|
|
methods: {
|
|
|
- filterNode(value, data) {
|
|
|
- if (!value) return true;
|
|
|
- return data.label.indexOf(value) !== -1;
|
|
|
- },
|
|
|
- handleNodeClick(){
|
|
|
- //
|
|
|
+ edit() {
|
|
|
+ this.disabled = false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-.container {
|
|
|
- position: relative;
|
|
|
- height: 100%;
|
|
|
- line-height: 20px;
|
|
|
- background-color: rgba(255, 255, 255, 1);
|
|
|
- color: rgba(16, 16, 16, 1);
|
|
|
- font-size: 14px;
|
|
|
- text-align: center;
|
|
|
- box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
|
|
|
-
|
|
|
- .left-pane {
|
|
|
- width: 300px;
|
|
|
- padding: 15px;
|
|
|
-
|
|
|
- .el-tree {
|
|
|
- height: 700px;
|
|
|
- margin-top: 15px;
|
|
|
- background-color: rgb(247, 245, 243);
|
|
|
- }
|
|
|
-
|
|
|
- .newInfo_button {
|
|
|
- position: absolute;
|
|
|
- left: -5px;
|
|
|
- bottom: 50px;
|
|
|
- width: 250px;
|
|
|
- background-color: rgb(131, 208, 243);
|
|
|
- text-align: center;
|
|
|
+.el-form {
|
|
|
+ padding-left:30px;
|
|
|
+ .el-form-item {
|
|
|
+ padding-top: 20px;
|
|
|
+ margin-inline: 20px;
|
|
|
+ margin-bottom: 0;
|
|
|
+
|
|
|
+ /deep/.el-form-item__label {
|
|
|
+ padding: 0;
|
|
|
font-size: 16px;
|
|
|
+ color: #4D4D4D;
|
|
|
+ font-weight: 550;
|
|
|
+ }
|
|
|
|
|
|
+ /deep/.el-form-item__content {
|
|
|
+ display: flex;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .right-pane {
|
|
|
- width: 1340px;
|
|
|
- position: absolute;
|
|
|
- margin-left: 330px;
|
|
|
- top: 0;
|
|
|
- margin-right: 20px;
|
|
|
-
|
|
|
- .el-form {
|
|
|
- .el-form-item {
|
|
|
- padding-top: 20px;
|
|
|
- margin-inline: 20px;
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.el-form-item__label {
|
|
|
- padding: 0;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/.el-form-item__content {
|
|
|
- display: flex;
|
|
|
- }
|
|
|
+ .el-checkbox {
|
|
|
+ margin-right:30px;
|
|
|
+ margin-left: 50px;
|
|
|
+ /deep/.el-checkbox__label {
|
|
|
+ color: #4D4D4D;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .el-cascader{
|
|
|
+ /deep/.el-input__inner{
|
|
|
+ width: 400px;
|
|
|
+ }
|
|
|
+ /deep/.el-input__suffix{
|
|
|
+ right:-80px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .el-radio{
|
|
|
+ margin-left: 20px;
|
|
|
+ }
|
|
|
+ .el-date-editor{
|
|
|
+ /deep/.el-input__inner{
|
|
|
+ width: 320px;
|
|
|
+ }
|
|
|
+ /deep/.el-input__suffix{
|
|
|
+ right:-80px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .el-date-picker{
|
|
|
+ width: 450px;
|
|
|
+ /deep/.el-picker-panel__content{
|
|
|
+ width: 370px;
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-.el-tag {
|
|
|
- position: absolute;
|
|
|
- background-color: transparent;
|
|
|
- border-color: transparent;
|
|
|
- font-size: 18px;
|
|
|
- color: #000;
|
|
|
- top: 230px;
|
|
|
- left: 10px;
|
|
|
|
|
|
+ .el-tag {
|
|
|
+ position: relative;
|
|
|
+ background-color: transparent;
|
|
|
+ border-color: transparent;
|
|
|
+ font-size: 18px;
|
|
|
+ color: #4D4D4D;
|
|
|
+ right: 585px;
|
|
|
+ font-weight: 550;
|
|
|
+ }
|
|
|
+}
|
|
|
+.input_title{
|
|
|
+ /deep/.el-input__inner{
|
|
|
+ width:500px;
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+}
|
|
|
+.input_content{
|
|
|
+ /deep/.el-input__inner{
|
|
|
+ width:500px;
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+}
|
|
|
+.stylePreview{
|
|
|
+ /deep/.el-input__inner{
|
|
|
+ width: 95%;
|
|
|
+ height: 300px;
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.el-button--text {
|
|
@@ -218,14 +190,14 @@ export default {
|
|
|
.el-button {
|
|
|
height: 30px;
|
|
|
width: 100px;
|
|
|
- margin-top: 20px;
|
|
|
- margin-inline: 40px;
|
|
|
- padding: 5px;
|
|
|
+ padding: 3px;
|
|
|
+ color: #fff;
|
|
|
+ background: #3da0d6;
|
|
|
}
|
|
|
|
|
|
.bottom {
|
|
|
position: absolute;
|
|
|
- left: 450px;
|
|
|
- top: 700px;
|
|
|
+ left: 900px;
|
|
|
+ bottom: 15px;
|
|
|
}
|
|
|
</style>
|