doum
14 小时以前 6cf36f0e43c9add691b9a375526ce7dc26209574
admin/src/views/business/jkSketch.vue
@@ -50,7 +50,7 @@
        <el-table-column prop="status" label="优化状态" min-width="100px" align="center">
          <template slot-scope="{row}">
            <span v-if="row.status === 0" class="blue">未优化</span>
            <span v-if="row.status === 1" class="red">优化中 【 {{row.planLineNum||0}} 】条线路</span>
            <span v-if="row.status === 1" class="red">优化中<!-- 【 {{row.planLineNum||0}} 】条线路--></span>
            <span v-if="row.status === 2" class="green">已优化</span>
            <span v-if="row.status === 3" class="grey">优化失败</span>
          </template>
@@ -64,7 +64,7 @@
        >
          <template slot-scope="{row}">
            <el-button type="text" @click="$refs.operaJkSketchWindow.open('线路优化', row)" icon="el-icon-edit" v-permissions="['business:jksketch:update']">线路优化</el-button>
            <el-button type="text" class="red" @click="$refs.OperaJkSketchResultWindow.open('优化结果微调-', row)" icon="el-icon-edit" v-if="row.status ==2" >优化结果微调</el-button>
            <el-button type="text" class="red" @click="$refs.OperaJkSketchResultWindow.open('优化结果微调-', row)" icon="el-icon-edit" v-if="row.optStatus === 1" >优化结果微调</el-button>
          </template>
        </el-table-column>
      </el-table>
@@ -115,6 +115,11 @@
      'field.id': 'id',
      'field.main': 'id'
    })
    const now = new Date();
    const year = now.getFullYear();
    const month = now.getMonth() + 1; // 月份从0开始,需要加1
    const day = now.getDate();
    this.searchForm.dateInfo = `${year}-${month}-${day}`
    this.search()
  },
  methods: {