40b69927 by 任超

style:其他及附记模板

1 parent 25df053f
1 <template> 1 <template>
2 <dialogBox title="其他及附记模板" @submitForm="submitForm" width="60%" loadingText="正在提交中..." @closeDialog="closeDialog" 2 <dialogBox title="其他及附记模板" @submitForm="submitForm" width="60%" loadingText="正在提交中..." @closeDialog="closeDialog"
3 :saveloding="saveloding" v-model="value"> 3 :saveloding="saveloding" v-model="myValue">
4 <div class="qtjfjmb-edit-title"> 4 <div class="qtjfjmb-edit-title">
5 <b>权利信息</b> 5 <b>权利信息</b>
6 </div> 6 </div>
...@@ -28,14 +28,17 @@ ...@@ -28,14 +28,17 @@
28 </el-col> 28 </el-col>
29 <el-col :span="12"> 29 <el-col :span="12">
30 <el-form-item label="打印模板" prop="dymbbs"> 30 <el-form-item label="打印模板" prop="dymbbs">
31 <el-input v-model="ruleForm.dymbbs"></el-input> 31 <el-select v-model="ruleForm.dymbbs" class="width100" placeholder="请选择">
32 <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
33 </el-option>
34 </el-select>
32 </el-form-item> 35 </el-form-item>
33 </el-col> 36 </el-col>
34 </el-row> 37 </el-row>
35 <el-row> 38 <el-row>
36 <el-col :span="24"> 39 <el-col :span="24">
37 <el-form-item label="权利其他状况模板" prop="qlqtztmb"> 40 <el-form-item label="权利其他状况模板" prop="qlqtzk">
38 <el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="ruleForm.qlqtztmb"> 41 <el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="ruleForm.qlqtzk">
39 </el-input> 42 </el-input>
40 </el-form-item> 43 </el-form-item>
41 </el-col> 44 </el-col>
...@@ -46,7 +49,7 @@ ...@@ -46,7 +49,7 @@
46 </div> 49 </div>
47 <ul> 50 <ul>
48 <li v-for="(item, index) in titleList" @click="handleSelect(index)" :class="{ 'active': n == index }" 51 <li v-for="(item, index) in titleList" @click="handleSelect(index)" :class="{ 'active': n == index }"
49 :key="index">{{ item.name }}</li> 52 :key="index">{{ item.name }}</li>
50 </ul> 53 </ul>
51 <el-row v-if="n == 0"> 54 <el-row v-if="n == 0">
52 <el-col :span="24"> 55 <el-col :span="24">
...@@ -123,6 +126,9 @@ export default { ...@@ -123,6 +126,9 @@ export default {
123 } 126 }
124 }, 127 },
125 watch: { 128 watch: {
129 value (val) {
130 this.myValue = val
131 },
126 details: { 132 details: {
127 handler (newValue, oldValue) { 133 handler (newValue, oldValue) {
128 this.ruleForm = newValue 134 this.ruleForm = newValue
...@@ -134,15 +140,15 @@ export default { ...@@ -134,15 +140,15 @@ export default {
134 data () { 140 data () {
135 return { 141 return {
136 saveloding: false, 142 saveloding: false,
143 myValue: this.value,
137 n: 0, 144 n: 0,
138 ruleForm: { 145 ruleForm: {
139 qllx: '', 146 qllx: '',
140 qllxmc: '', 147 qllxmc: '',
141 bdcqzlx: '', 148 bdcqzlx: '',
142 dymbbs: '', 149 dymbbs: '',
143 qlqtztmb: '', 150 qlqtzk: '',
144 firstreg: '', 151 firstreg: '',
145 fjmb2: ''
146 }, 152 },
147 options: [], 153 options: [],
148 rules: { 154 rules: {
......