| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div v-if="showAddAndEdit" class="icon-container" @click="handleCommand"> |
| | | <div v-if="showAddAndEdit && !dataForm.disabled" class="icon-container" @click="handleCommand"> |
| | | <!-- 放置固定的图标 --> |
| | | <i class="el-icon-plus"></i> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <add-or-update-check ref="addOrUpdate" @recall="setCheckId"/> |
| | | <ConfigItemList ref="configItemList"></ConfigItemList> |
| | | </el-form> |
| | | </zt-dialog> |
| | | </template> |
| | | |
| | | <script> |
| | | import AddOrUpdateCheck from '../testCheckOrder/TestCheckOrder-AddOrUpdate' |
| | | import ConfigItemList from './configItemList.vue' |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | }, |
| | | computed: {}, |
| | | components: { |
| | | AddOrUpdateCheck |
| | | AddOrUpdateCheck, |
| | | ConfigItemList |
| | | }, |
| | | methods: { |
| | | indexFormat(index) { |
| | |
| | | // }) |
| | | // }, |
| | | handleCommand() { |
| | | this.dataForm.configItemList.push({}) |
| | | this.$nextTick(() => { |
| | | const tableBody = this.$refs.tableConfigItemList.$el.querySelector('.el-table__body-wrapper') |
| | | tableBody.scrollTop = tableBody.scrollHeight; |
| | | this.$refs.configItemList.$refs.dialog.init(this.dataForm.configItemList) |
| | | }) |
| | | // this.dataForm.configItemList.push({}) |
| | | // this.$nextTick(() => { |
| | | // const tableBody = this.$refs.tableConfigItemList.$el.querySelector('.el-table__body-wrapper') |
| | | // tableBody.scrollTop = tableBody.scrollHeight; |
| | | // }) |
| | | }, |
| | | openCheckOrderWin(row) { |
| | | console.log(row, "openCheckOrderWin(row)") |