MrShi
4 天以前 05aec1e9986fbe3e907259bb1a1396f129bd0fa1
admin/src/views/business/category.vue
@@ -5,6 +5,9 @@
      <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>
@@ -76,6 +79,7 @@
      // 搜索
      searchForm: {
        name: '',
        detail: '',
        type: 0
      }
    }
@@ -91,11 +95,12 @@
  },
  methods: {
    synchronization() {
      this.$dialog.deleteConfirm('确认同步战区信息吗?')
      this.$dialog.actionConfirmButton('确认同步战区信息吗?')
        .then(() => {
          syncZhanQu()
            .then(res=>{
              if (res.code === 200) {
                this.search()
                this.$message.success('同步成功!')
              }
            })