|
@@ -10,7 +10,8 @@ const searchData = ref({
|
|
|
startDate: '',
|
|
startDate: '',
|
|
|
endDate: '',
|
|
endDate: '',
|
|
|
aiModel: '',
|
|
aiModel: '',
|
|
|
- responseDuration: ''
|
|
|
|
|
|
|
+ comparator: 'thanOrEqual',
|
|
|
|
|
+ responseDuration: 0
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const aiModelList = [
|
|
const aiModelList = [
|
|
@@ -27,46 +28,19 @@ const aiModelList = [
|
|
|
value: 'claude'
|
|
value: 'claude'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
-const questionTypeList = [
|
|
|
|
|
- {
|
|
|
|
|
- label: 'Predefined Question',
|
|
|
|
|
- value: 'predefinedQuestion'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'free text',
|
|
|
|
|
- value: 'freeText'
|
|
|
|
|
- }
|
|
|
|
|
-]
|
|
|
|
|
-const AnswerTypeList = [
|
|
|
|
|
- {
|
|
|
|
|
- label: 'Suspend',
|
|
|
|
|
- value: 'suspend'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'Timeout',
|
|
|
|
|
- value: 'timeout'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'Predefined Template',
|
|
|
|
|
- value: 'predefinedTemplate'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'AI Answer',
|
|
|
|
|
- value: 'AIAnswer'
|
|
|
|
|
- }
|
|
|
|
|
-]
|
|
|
|
|
-const answerSatisfactionList = [
|
|
|
|
|
|
|
+
|
|
|
|
|
+const comparatorList = [
|
|
|
{
|
|
{
|
|
|
- label: 'Null',
|
|
|
|
|
- value: 'null'
|
|
|
|
|
|
|
+ label: '>=',
|
|
|
|
|
+ value: 'thanOrEqual'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: 'Good',
|
|
|
|
|
- value: 'good'
|
|
|
|
|
|
|
+ label: '=',
|
|
|
|
|
+ value: 'equal'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: 'Not Good',
|
|
|
|
|
- value: 'notGood'
|
|
|
|
|
|
|
+ label: '<=',
|
|
|
|
|
+ value: 'lessOrEqual'
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
|
|
|
|
@@ -115,27 +89,24 @@ const DateChange = (date: any) => {
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="tips_filter">
|
|
|
|
|
- <el-select v-model="searchData.questionType" placeholder="Question Type">
|
|
|
|
|
|
|
+ <div class="comparator-tips_filter">
|
|
|
|
|
+ <span>Response Duration</span>
|
|
|
|
|
+ <el-select v-model="searchData.comparator" style="width: 70px; margin: 0 6px">
|
|
|
<el-option
|
|
<el-option
|
|
|
- v-for="item in questionTypeList"
|
|
|
|
|
- :key="item.value"
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.value"
|
|
|
|
|
- >
|
|
|
|
|
- </el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="tips_filter">
|
|
|
|
|
- <el-select v-model="searchData.answerType" placeholder="Answer Type">
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in AnswerTypeList"
|
|
|
|
|
|
|
+ v-for="item in comparatorList"
|
|
|
:key="item.value"
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
:label="item.label"
|
|
|
:value="item.value"
|
|
:value="item.value"
|
|
|
>
|
|
>
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="searchData.responseDuration"
|
|
|
|
|
+ placeholder="s"
|
|
|
|
|
+ :controls="false"
|
|
|
|
|
+ :min="0"
|
|
|
|
|
+ style="width: 60px"
|
|
|
|
|
+ ></el-input-number>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<el-button class="el-button--dark" @click="Search">Search</el-button>
|
|
<el-button class="el-button--dark" @click="Search">Search</el-button>
|
|
@@ -199,6 +170,14 @@ const DateChange = (date: any) => {
|
|
|
height: 32px;
|
|
height: 32px;
|
|
|
margin-right: 8px;
|
|
margin-right: 8px;
|
|
|
}
|
|
}
|
|
|
|
|
+.comparator-tips_filter {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ max-width: 260px;
|
|
|
|
|
+ height: 32px;
|
|
|
|
|
+ margin-right: 8px;
|
|
|
|
|
+}
|
|
|
.dashboard {
|
|
.dashboard {
|
|
|
z-index: 2014;
|
|
z-index: 2014;
|
|
|
position: relative;
|
|
position: relative;
|