修改bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Date: 2021-01-07 20:09:37
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2022-03-07 09:25:31
|
||||
* @LastEditTime: 2022-03-09 15:52:23
|
||||
* @FilePath: \basic-admin\src\components\BaseTable\subcomponents\CheckDetail.vue
|
||||
* @Description:
|
||||
-->
|
||||
@@ -16,9 +16,9 @@
|
||||
<el-select v-model="value" placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</div>
|
||||
@@ -32,6 +32,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { list } from '@/api/art-manage/art.js'
|
||||
export default {
|
||||
props: {
|
||||
injectData: {
|
||||
@@ -53,7 +54,18 @@ export default {
|
||||
value: ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.init()
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
list({
|
||||
current: 1,
|
||||
size: 999
|
||||
}).then(response => {
|
||||
this.options = response.data.records
|
||||
})
|
||||
},
|
||||
emitClick() {
|
||||
console.log(this.injectData)
|
||||
console.log(this.value)
|
||||
|
||||
Reference in New Issue
Block a user