|
@@ -1,10 +1,9 @@
|
|
|
<template>
|
|
|
<div class="NoiseTemplateWrapper TemplateWrapper">
|
|
|
- <div class="groupTitle"><i
|
|
|
- class="el-icon-back"
|
|
|
- @click="back"
|
|
|
- ></i> 提示信息维护--{{isEdit?'修改':'添加'}}</div>
|
|
|
- <div class="info-container">
|
|
|
+ <crumbs :title="isEdit?'提示信息维护-修改':'提示信息维护-添加'"
|
|
|
+ class="topBack"
|
|
|
+ linkTo="/admin/LT-YXSJWH-TSXXWH"></crumbs>
|
|
|
+ <div class="pinfo-container">
|
|
|
<el-form :rules="rules"
|
|
|
:model="form"
|
|
|
label-width="130px"
|
|
@@ -16,7 +15,7 @@
|
|
|
:data="f"
|
|
|
:index="i"
|
|
|
:isEdit = "isEdit"
|
|
|
- @add="addParagraph"
|
|
|
+ @add="addParagraph(i)"
|
|
|
@del="delParagraph" ref="subForm"></InfoParagraph>
|
|
|
<p class="line"></p>
|
|
|
<el-form-item label="关联标签:" prop="tags">
|
|
@@ -137,11 +136,11 @@
|
|
|
prags:detail
|
|
|
};
|
|
|
},
|
|
|
- addParagraph(){
|
|
|
+ addParagraph(i){
|
|
|
this.form.prags.push({title:'',
|
|
|
content:'',
|
|
|
isReason:0,
|
|
|
- orderNo:0,
|
|
|
+ orderNo:this.form.prags.length,
|
|
|
position:[],
|
|
|
text:''});
|
|
|
},
|
|
@@ -249,10 +248,20 @@
|
|
|
</script>
|
|
|
<style lang="less">
|
|
|
@import "../../less/common.less";
|
|
|
- .info-container{
|
|
|
- background: #fff;
|
|
|
- padding: 20px;
|
|
|
- margin: 20px 20px -20px 20px;
|
|
|
+ .NoiseTemplateWrapper .pinfo-container{
|
|
|
+ /*background: #fff;
|
|
|
+ padding: 20px;*/
|
|
|
+ margin: 70px 20px -20px 20px;
|
|
|
+ form{
|
|
|
+ padding: 20px;
|
|
|
+ background: #fff;
|
|
|
+ }
|
|
|
+ .btn{
|
|
|
+ padding: 10px 20px 20px 0;
|
|
|
+ margin-top: 0;
|
|
|
+ background: #fff;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ }
|
|
|
.el-input__inner{
|
|
|
width: 200px;
|
|
|
}
|