|
@@ -65,9 +65,14 @@
|
|
|
</template>
|
|
|
<template v-if="withSelect">
|
|
|
<a-form-item prop="selection" style="margin-right: 16px">
|
|
|
- <a-select :default-value="optionLists[0]" @change="handleChange">
|
|
|
- <a-select-option v-for="province in optionLists" :key="province">
|
|
|
- {{ province }}
|
|
|
+ <a-select @change="handleChange">
|
|
|
+ <a-select-option
|
|
|
+ v-for="item in optionLists"
|
|
|
+ :key="item.name"
|
|
|
+ :value="item.name"
|
|
|
+ :title="item.label"
|
|
|
+ >
|
|
|
+ {{ item.name }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
<!-- <a-select
|
|
@@ -172,7 +177,29 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
changeButtonLoading: false,
|
|
|
- optionLists: ["", "低风险", "优先", "普通", "高风险", "严控"],
|
|
|
+ optionLists: [
|
|
|
+ {
|
|
|
+ name: "全部",
|
|
|
+ lable: "",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "A",
|
|
|
+ lable: "A",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "B",
|
|
|
+ lable: "B",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "C",
|
|
|
+ lable: "C",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "D",
|
|
|
+ lable: "D",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ // optionLists: ["", "A", "B", "C", "D"],
|
|
|
formData: {
|
|
|
beginDate: "",
|
|
|
endDate: "",
|
|
@@ -269,7 +296,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.formData.selection = this.optionLists[0];
|
|
|
+ this.formData.selection = this.optionLists[0].name;
|
|
|
this.formData.dateRangeRadio = "当日";
|
|
|
},
|
|
|
methods: {
|