wente
2023-12-08 bc8ff037b8f01268a0a032d0ad8d503c48d5e9f8
web/src/views/modules/configItemChange/configItemList.vue
@@ -4,7 +4,7 @@
      <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}"
@@ -42,18 +42,21 @@
  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
@@ -63,6 +66,7 @@
      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()