doum
2026-06-18 93de43267e1663031fe5dc2f5ae40d128a182a76
admin/src/views/contract/contractList.vue
@@ -15,18 +15,16 @@
        <el-table-column prop="zlFirstPrice" label="租赁单价" min-width="100" show-overflow-tooltip>
            <template slot-scope="{row}">
                <div style="display: flex; align-items: center;">
                    <span>{{row.zlFirstPrice}}</span>
                    <span v-if="row.zlFirstCircle === 0">元/m²·天</span>
                    <span v-if="row.zlFirstCircle === 1">元/m²·月</span>
                    <span v-if="row.zlFirstCircle === 2">元/天</span>
                    <span v-if="row.zlFirstCircle === 3">元/月</span>
                    <span v-if="row.zlFirstCircle === 4">元/年</span>
                    <span v-if="row.zlFirstCircle === 5">元/m²·年</span>
                    <span v-if="row.zlFirstCircle === 6">元/场</span>
                    <span>{{row.zlFirstPrice || row.wyFirstPrice}}</span>
                    <span>{{row.zlFirstCircleStr || row.wyFirstCircleStr}}</span>
                </div>
            </template>
        </el-table-column>
      <el-table-column prop="totalArea" label="租赁面积" min-width="100" show-overflow-tooltip />
        <el-table-column label="租赁面积" min-width="100" show-overflow-tooltip>
            <template slot-scope="{row}">
                {{row.totalArea}}㎡
            </template>
        </el-table-column>
      <el-table-column prop="signDate" label="签订日" min-width="100" show-overflow-tooltip />
      <el-table-column prop="code" label="合同编号" min-width="100" show-overflow-tooltip />
      <el-table-column label="合同状态" min-width="90" fixed="right" show-overflow-tooltip>
@@ -124,11 +122,15 @@
    },
    getList (page) {
      const { pagination, filters } = this
      const model = { ...filters }
      if (model.selDate && model.selDate.length === 2) {
        model.queryStartTime = model.selDate[0]
        model.queryEndTime = model.selDate[1]
      }
      delete model.selDate
      this.loading = true
      fetchList({
        model: {
          ...filters
        },
        model,
        sorts: [{ direction: 'DESC', property: 'param1' }],
        capacity: pagination.pageSize,
        page: page || pagination.page