Commit a74d8604 by 周志凯

[feat]: add staff-feature option

1 parent a0ba962c
......@@ -697,8 +697,9 @@
</el-select>
</div>
<div class="query-item">
<span class="query-item__title">日期 : </span>
<el-date-picker
<span v-show="featureRevisitType !== 3" class="query-item__title" >日期 : </span>
<el-date-picker
v-show="featureRevisitType !== 3"
v-model="query.dateVal"
type="date"
value-format="yyyy-MM-dd"
......@@ -706,9 +707,9 @@
placeholder="选择日期"
></el-date-picker>
<el-button
type="primary"
class="query-button"
@click="onSearchClick"
type="primary"
:class="featureRevisitType === 1 ? '' : 'query-button'"
@click="onSearchClick"
>开 始</el-button>
</div>
</div>
......@@ -1113,9 +1114,10 @@
featureLibRebuildType: 1,
rematchPersonType: 1,
featureRevisitList: [
{ label: '全身照特征', value: 0 },
{ label: '人脸+全身照特征', value: 0 },
{ label: '人脸特征', value: 1 },
{ label: '人体特征', value: 2 }
{ label: '全身照特征', value: 2 },
{ label: '店员特征', value: 3 }
],
featureLibRebuildList: [
{ label: '店员库重建', value: 1 },
......@@ -1191,9 +1193,11 @@
: typeHandler[val]
},
featureRevisitType(val) {
this.query.dateVal = val === 3 ? null : this.createDate()
this.query.type = val
},
featureLibRebuildType(val) {
this.query.dateVal = val === 1 ? null : this.createDate()
this.query.type = val
},
rematchPersonType(val) {
......@@ -1887,7 +1891,9 @@
this.startTiming = 0
this.endTiming = 0
const TAB_API = {
revisitFeature: () => '/mall/feature',
revisitFeature: (val) => {
return val === 3 ? '/mall/staffFeature' : '/mall/feature'
},
rebuildFeatureLib: (val) => {
return val === 1 ? '/mall/staffPool' : '/mall/customPool'
},
......@@ -1902,8 +1908,8 @@
var urlPath = TAB_API[dateFormat](type)
var scheduleType = dateFormat + type
var parameter = {
startDate: dateVal + ' 00:00:00',
endDate: dateVal + ' 23:59:59',
startDate: dateVal ? dateVal + ' 00:00:00' : null,
endDate: dateVal ? dateVal + ' 23:59:59' : null,
mallIds: mallVal || null,
scheduleType: scheduleType,
featureType: dateFormat === 'revisitFeature' ? type : null
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!