wente
2023-12-08 bc8ff037b8f01268a0a032d0ad8d503c48d5e9f8
配置变更表
2个文件已修改
21 ■■■■■ 已修改文件
web/src/views/modules/configItemChange/ConfigItemChange-AddOrUpdate.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/modules/configItemChange/configItemList.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/modules/configItemChange/ConfigItemChange-AddOrUpdate.vue
@@ -399,7 +399,8 @@
      // },
      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(() => {
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()