qx
qx
2025-03-24 6b5565022f0aa01f7ff0d0a0298834c6726e8c9d
src/components/jianqianwenzhen/index.vue
@@ -673,6 +673,23 @@
        >提交</el-button
      >
    </div>
    <el-dialog title="接触毒物" :visible.sync="dialogTableVisible">
  <el-table :data="gridData"  @selection-change="handleSelectionChange">
    <el-table-column
      type="selection"
      width="55">
    </el-table-column>
    <el-table-column property="date" label="序号" width="150"></el-table-column>
    <el-table-column property="value" label="毒物" width="200"></el-table-column>
  </el-table>
  <div slot="footer" class="dialog-footer">
    <el-button @click="dialogTableVisible = false">取 消</el-button>
    <el-button type="primary" @click="dialogFormVisible">确 定</el-button>
  </div>
</el-dialog>
  </div>
</template>
@@ -705,6 +722,18 @@
      jiwangbingshi: true,
      diseaseNames: "",
      zhenghuzangList: [],
      dialogTableVisible: false,
      multipleSelection: [],
      gridData: [
      {
          value: "既往病",
          label: "既往病",
        },
        {
          value: "职业病",
          label: "职业病",
        },
      ],
      options: [
        {
          value: "既往病",
@@ -998,7 +1027,19 @@
    change(){
    console.log(111)
      this.multipleSelection =[]
      this.dialogTableVisible = true
  },
  handleSelectionChange(val) {
        this.multipleSelection = val;
      },
  dialogFormVisible(){
    this.multipleSelection.forEach((item) => {
      this.form.contactPoison += item.value + ","
    })
      this.dialogTableVisible = false
  },
    delememberss() {