分区-公共组件select-替换遗留老组件
This commit is contained in:
@@ -63,19 +63,7 @@
|
||||
<!-- 分区 -->
|
||||
<div class="inquire">
|
||||
<span>分区</span>
|
||||
<el-select
|
||||
v-model="inquire.value"
|
||||
placeholder="请选择"
|
||||
@change="handleChange"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in inquire.options"
|
||||
:key="item.id"
|
||||
:label="item.desc"
|
||||
:value="item.id"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
<partition-select v-model:partition-id="inquire.value" v-model:partition-infos="inquire.options" v-model:after-init="getData" />
|
||||
</div>
|
||||
|
||||
<div class="inquire">
|
||||
@@ -342,15 +330,12 @@
|
||||
</template>
|
||||
<script>
|
||||
import { getConfig, updateSet, updateUserMulti } from "@/api/bravoGift/bravoGift";
|
||||
import { listAll} from "@/api/partition/partitionInfo";
|
||||
|
||||
// @ts-ignore
|
||||
import { dateFormat } from "@/utils/system-helper";
|
||||
// @ts-ignore
|
||||
import { ElMessage } from "element-plus";
|
||||
import moment from "moment-timezone";
|
||||
import PartitionSelect from "../common/partitionSelect.vue";
|
||||
export default {
|
||||
name: "bravoGiftSet",
|
||||
components: {PartitionSelect},
|
||||
data() {
|
||||
return {
|
||||
loading: false,
|
||||
@@ -397,12 +382,6 @@ import { listAll} from "@/api/partition/partitionInfo";
|
||||
whiteErbanNoProductionRatioMap: null,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getData();
|
||||
listAll().then((res) => {
|
||||
this.inquire.options = res.data;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 查询接口
|
||||
getData() {
|
||||
|
Reference in New Issue
Block a user