jiangping
2024-08-19 fc6982d6d15948c5917e4abdce42195db050eea8
admin/src/views/platform/platform.vue
@@ -36,12 +36,24 @@
          <template scope="{row}"> {{row.waitCallTime?(row.alermTime):'-'}}</template>
        </el-table-column>
        <el-table-column prop="workRate" label="月台作业效率(万只/小时)" min-width="180px"></el-table-column>
        <el-table-column prop="status" label="状态" min-width="100px">
          <el-table-column label="是否园区入口">
            <template slot-scope="{row}">
              <el-switch
                  @change="changeStatus($event, row)"
                  v-model="row.status"
                  active-color="#13ce66"
                  inactive-color="#ff4949"
                  :active-value="0"
                  :inactive-value="1">
              </el-switch>
            </template>
          </el-table-column>
        <el-table-column prop="platformStatus" label="月台状态" min-width="100px">
          <template scope="{row}">
            <span v-if="row.status == 0">无车</span>
            <span v-if="row.status == 1">有车</span>
            <span v-if="row.status == 2">超时停靠</span>
            <span v-if="row.status == 3">错误停靠</span>
            <span v-if="row.platformStatus == 0">无车</span>
            <span v-if="row.platformStatus == 1">有车</span>
            <span v-if="row.platformStatus == 2">超时停靠</span>
            <span v-if="row.platformStatus == 3">错误停靠</span>
          </template>
        </el-table-column>
        <el-table-column prop="broadcastNames" label="关联广播" min-width="100px"></el-table-column>
@@ -101,6 +113,12 @@
    this.search()
  },
  methods: {
    changeStatus (e, row) {
      this.api.updateStatusById({
        id: row.id,
        status: e
      })
    },
    syncData () {
      this.$dialog.actionConfirm('操作确认提醒', '您确认同步全部信息吗?')
        .then(() => {