| | |
| | | <el-form-item label="名称" prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请输入名称" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="战区编码" prop="detail"> |
| | | <el-input v-model="searchForm.detail" placeholder="请输入战区编码" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | | <el-button @click="reset">重置</el-button> |
| | |
| | | // 搜索 |
| | | searchForm: { |
| | | name: '', |
| | | detail: '', |
| | | type: 0 |
| | | } |
| | | } |
| | |
| | | }, |
| | | methods: { |
| | | synchronization() { |
| | | this.$dialog.deleteConfirm('确认同步战区信息吗?') |
| | | this.$dialog.actionConfirmButton('确认同步战区信息吗?') |
| | | .then(() => { |
| | | syncZhanQu() |
| | | .then(res=>{ |
| | | if (res.code === 200) { |
| | | this.search() |
| | | this.$message.success('同步成功!') |
| | | } |
| | | }) |