个性化管理
Showing
2 changed files
with
21 additions
and
16 deletions
| 1 | <template> | 1 | <template> |
| 2 | <el-tabs v-model="activeName"> | 2 | <!-- <el-tabs v-model="activeName"> --> |
| 3 | <el-tab-pane label="个性化管理" name="zhcx"> | 3 | <!-- <el-tab-pane label="个性化管理" name="zhcx"> --> |
| 4 | <div class="main"> | 4 | <div class="main"> |
| 5 | <!-- <p class="tips">查询条件</p> --> | 5 | <!-- <p class="tips">查询条件</p> --> |
| 6 | <el-form | 6 | <el-form |
| ... | @@ -81,13 +81,13 @@ | ... | @@ -81,13 +81,13 @@ |
| 81 | /> | 81 | /> |
| 82 | </template> | 82 | </template> |
| 83 | </el-table-column> | 83 | </el-table-column> |
| 84 | <el-table-column width="80px" align="center" label="操作"> | 84 | <!-- <el-table-column width="80px" align="center" label="操作"> |
| 85 | <template slot-scope="scope"> | 85 | <template slot-scope="scope"> |
| 86 | <el-tooltip class="item" effect="light" content="删除" placement="top"> | 86 | <el-tooltip class="item" effect="light" content="删除" placement="top"> |
| 87 | <i class="iconfont iconshanchu1" @click="handleClick(scope.row)" style="padding:0 10px"></i> | 87 | <i class="iconfont iconshanchu1" @click="handleClick(scope.row)" style="padding:0 10px"></i> |
| 88 | </el-tooltip> | 88 | </el-tooltip> |
| 89 | </template> | 89 | </template> |
| 90 | </el-table-column> | 90 | </el-table-column> --> |
| 91 | </el-table> | 91 | </el-table> |
| 92 | <div class="pagination"> | 92 | <div class="pagination"> |
| 93 | <el-pagination | 93 | <el-pagination |
| ... | @@ -129,8 +129,8 @@ | ... | @@ -129,8 +129,8 @@ |
| 129 | </el-dialog> | 129 | </el-dialog> |
| 130 | </div> | 130 | </div> |
| 131 | </div> | 131 | </div> |
| 132 | </el-tab-pane> | 132 | <!-- </el-tab-pane> --> |
| 133 | </el-tabs> | 133 | <!-- </el-tabs> --> |
| 134 | </template> | 134 | </template> |
| 135 | 135 | ||
| 136 | <script> | 136 | <script> |
| ... | @@ -194,7 +194,6 @@ export default { | ... | @@ -194,7 +194,6 @@ export default { |
| 194 | this.queryData.pageSize = this.pageSize; | 194 | this.queryData.pageSize = this.pageSize; |
| 195 | this.queryData.pageNo = this.pageNo; | 195 | this.queryData.pageNo = this.pageNo; |
| 196 | getGxhList(this.queryData).then((res) => { | 196 | getGxhList(this.queryData).then((res) => { |
| 197 | console.log(res.result); | ||
| 198 | this.tableData = res.result.records | 197 | this.tableData = res.result.records |
| 199 | this.total = res.result.total | 198 | this.total = res.result.total |
| 200 | }) | 199 | }) |
| ... | @@ -237,14 +236,18 @@ export default { | ... | @@ -237,14 +236,18 @@ export default { |
| 237 | }, | 236 | }, |
| 238 | //保存修改后的数据 | 237 | //保存修改后的数据 |
| 239 | save(){ | 238 | save(){ |
| 240 | //接口调用 hasChanged为已修改数据项数组 TODO | 239 | if(this.hasChanged.length < 1){ |
| 241 | updateGxh(this.hasChanged).then((res) => { | 240 | this.$message.warning("暂无数据修改") |
| 242 | if(res.code == 200){ | 241 | }else{ |
| 243 | this.$message.success("修改成功") | 242 | //接口调用 hasChanged为已修改数据项数组 TODO |
| 244 | } | 243 | updateGxh(this.hasChanged).then((res) => { |
| 245 | this.getData(); | 244 | if(res.code == 200){ |
| 246 | }) | 245 | this.$message.success("修改成功") |
| 247 | .catch((error) => {}); | 246 | } |
| 247 | this.getData(); | ||
| 248 | }) | ||
| 249 | .catch((error) => {}); | ||
| 250 | } | ||
| 248 | }, | 251 | }, |
| 249 | //删除 | 252 | //删除 |
| 250 | handleClick(row){ | 253 | handleClick(row){ | ... | ... |
| ... | @@ -3,6 +3,7 @@ | ... | @@ -3,6 +3,7 @@ |
| 3 | <el-tab-pane label="日志管理" name="log"><log></log></el-tab-pane> | 3 | <el-tab-pane label="日志管理" name="log"><log></log></el-tab-pane> |
| 4 | <el-tab-pane label="字典管理" name="dictionary"><dictionary></dictionary></el-tab-pane> | 4 | <el-tab-pane label="字典管理" name="dictionary"><dictionary></dictionary></el-tab-pane> |
| 5 | <el-tab-pane label="号段管理" name="hdgl"><hdgl></hdgl></el-tab-pane> | 5 | <el-tab-pane label="号段管理" name="hdgl"><hdgl></hdgl></el-tab-pane> |
| 6 | <el-tab-pane label="个性化管理" name="gxhgl"><gxhgl></gxhgl></el-tab-pane> | ||
| 6 | </el-tabs> | 7 | </el-tabs> |
| 7 | </template> | 8 | </template> |
| 8 | 9 | ||
| ... | @@ -10,10 +11,11 @@ | ... | @@ -10,10 +11,11 @@ |
| 10 | import log from "./log" | 11 | import log from "./log" |
| 11 | import dictionary from "./dictionary" | 12 | import dictionary from "./dictionary" |
| 12 | import hdgl from "./hdgl"; | 13 | import hdgl from "./hdgl"; |
| 14 | import gxhgl from "./gxhgl"; | ||
| 13 | export default { | 15 | export default { |
| 14 | name: "index", | 16 | name: "index", |
| 15 | components: { | 17 | components: { |
| 16 | log,dictionary,hdgl | 18 | log,dictionary,hdgl,gxhgl |
| 17 | }, | 19 | }, |
| 18 | data() { | 20 | data() { |
| 19 | return { | 21 | return { | ... | ... |
-
Please register or sign in to post a comment