| | |
| | | // }, |
| | | handleCommand() { |
| | | this.$nextTick(()=>{ |
| | | this.$refs.configItemList.$refs.dialog.init(this.dataForm.configItemList) |
| | | console.log(this.dataForm.projectId,'this.dataForm.projectId') |
| | | this.$refs.configItemList.$refs.dialog.init(this.dataForm.projectId,this.dataForm.id) |
| | | }) |
| | | // this.dataForm.configItemList.push({}) |
| | | // this.$nextTick(() => { |
| | |
| | | <div class="mod-project-project}"> |
| | | <zt-table-wraper ref="tableObj" v-slot="{ table }" query-url="/configItemChange/ConfigItemChange/getItemList"> |
| | | <el-table |
| | | :data="dataList" |
| | | :data="table.dataList" |
| | | height="100px" |
| | | @selection-change="changeRow" |
| | | v-adaptive="{bottomOffset:150}" |
| | |
| | | data() { |
| | | return { |
| | | pageCode:'', |
| | | dataList:[], |
| | | dataForm: { |
| | | id:'', |
| | | projectId:'', |
| | | checkBoxList:[], |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | init(list) { |
| | | this.dataList= list |
| | | this.$nextTick(()=>{ |
| | | this.$refs.tableObj.query() |
| | | }) |
| | | init(projectId,id) { |
| | | this.dataForm.projectId = projectId |
| | | this.dataForm.id = id |
| | | console.log(this.dataForm,'this.dataForm.id') |
| | | // this.$nextTick(()=>{ |
| | | // this.$refs.tableObj.query() |
| | | // }) |
| | | }, |
| | | indexFormat(index) { |
| | | return index += 1 |
| | |
| | | console.log(this.dataForm.checkBoxList,'this.dataForm.checkList 选中的列表数据') |
| | | }, |
| | | async formSubmit(){ |
| | | console.log(this.dataForm,'this.dataForm') |
| | | let res = await this.$http.post('/configItemChange/ConfigItemChange/importItemList', this.dataForm) |
| | | await this.$tip.success() |
| | | this.$refs.dialog.close() |