Commit a74d8604 by 周志凯

[feat]: add staff-feature option

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