079f16be by 任超

style:修改提示

1 parent 54b26e2c
...@@ -234,6 +234,10 @@ export default { ...@@ -234,6 +234,10 @@ export default {
234 children: this.tableData 234 children: this.tableData
235 }).then(res => { 235 }).then(res => {
236 if (res.code === 200) { 236 if (res.code === 200) {
237 this.$message({
238 message: '修改成功',
239 type: 'success'
240 })
237 this.$emit('input', false) 241 this.$emit('input', false)
238 } 242 }
239 }) 243 })
......
...@@ -79,11 +79,13 @@ export default { ...@@ -79,11 +79,13 @@ export default {
79 this.$store.dispatch('dict/generateDic') 79 this.$store.dispatch('dict/generateDic')
80 }, 80 },
81 editClick (row, val) { 81 editClick (row, val) {
82 this.details.rowData = {}
82 this.details.rowData = row 83 this.details.rowData = row
83 this.details.isenable = val 84 this.details.isenable = val
84 getChildDictList(row.bsmDict).then(res => { 85 getChildDictList(row.bsmDict).then(res => {
85 this.isDialog = true 86 this.isDialog = true
86 let { result } = res 87 let { result } = res
88 this.details.dataList = []
87 this.details.dataList = result 89 this.details.dataList = result
88 }) 90 })
89 } 91 }
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
48 </div> 48 </div>
49 <ul> 49 <ul>
50 <li v-for="(item, index) in titleList" @click="handleSelect(index)" :class="{ 'active': n == index }" 50 <li v-for="(item, index) in titleList" @click="handleSelect(index)" :class="{ 'active': n == index }"
51 :key="index">{{ item.name }}</li> 51 :key="index">{{ item.name }}</li>
52 </ul> 52 </ul>
53 <el-row v-if="n == 0"> 53 <el-row v-if="n == 0">
54 <el-col :span="24"> 54 <el-col :span="24">
...@@ -207,6 +207,10 @@ export default { ...@@ -207,6 +207,10 @@ export default {
207 let that = this 207 let that = this
208 updateSysSqywmbsz(this.ruleForm).then(res => { 208 updateSysSqywmbsz(this.ruleForm).then(res => {
209 if (res.code === 200) { 209 if (res.code === 200) {
210 that.$message({
211 message: '修改成功',
212 type: 'success'
213 })
210 that.$emit('input', false) 214 that.$emit('input', false)
211 } 215 }
212 }) 216 })
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
4 <ul class="edit-title-list" v-if="titleList.length > 0"> 4 <ul class="edit-title-list" v-if="titleList.length > 0">
5 <li v-for="(item, index) in titleList" @click="handleTitleSelct(item, index)" :key="index" 5 <li v-for="(item, index) in titleList" @click="handleTitleSelct(item, index)" :key="index"
6 :class="{ active: index == tn }">{{ 6 :class="{ active: index == tn }">{{
7 item.nodename 7 item.nodename
8 }}</li> 8 }}</li>
9 </ul> 9 </ul>
10 <div class="sqywgz-edit"> 10 <div class="sqywgz-edit">
11 <ul class="sqywgz-edit-left"> 11 <ul class="sqywgz-edit-left">
12 <li v-for="(item, index) in leftList" :key="index" :class="{ active: index == n }" @click="hanldeItem(index)">{{ 12 <li v-for="(item, index) in leftList" :key="index" :class="{ active: index == n }" @click="hanldeItem(index)">{{
13 item.name 13 item.name
14 }}</li> 14 }}</li>
15 </ul> 15 </ul>
16 <div class="sqywgz-edit-right"> 16 <div class="sqywgz-edit-right">
...@@ -261,11 +261,17 @@ export default { ...@@ -261,11 +261,17 @@ export default {
261 if (valid) { 261 if (valid) {
262 this.subData.ywDetail = this.ruleForm 262 this.subData.ywDetail = this.ruleForm
263 saveSqdjyw(this.subData).then(res => { 263 saveSqdjyw(this.subData).then(res => {
264 // that.$emit('input', false) 264 if (res.code == 200) {
265 that.$message({
266 message: '修改成功',
267 type: 'success'
268 })
269 // that.$emit('input', false)
270 }
265 }) 271 })
266 } else { 272 } else {
267 this.$message('请检查表单完整性') 273 this.$message('请检查表单完整性')
268 return false; 274 return false
269 } 275 }
270 }) 276 })
271 }, 277 },
...@@ -318,7 +324,7 @@ export default { ...@@ -318,7 +324,7 @@ export default {
318 } 324 }
319 325
320 .active { 326 .active {
321 background: $light-blue !important; 327 background: $light-blue !important;
322 color: #fff; 328 color: #fff;
323 } 329 }
324 330
......