MrShi
2024-11-16 49522fcc80c31225bcd7bab78315206567e84146
company/src/components/business/OperaApplyChangeDetailWindow.vue
@@ -147,6 +147,7 @@
                            label="身份证号">
                        </el-table-column>
                        <el-table-column
                            v-if="apply && apply.hasDispatchUnit !== 1"
                            prop="duName"
                            label="派遣单位">
                        </el-table-column>
@@ -243,11 +244,20 @@
                <el-button @click="visiblePhone=false">取 消</el-button>
            </span>
      </el-dialog>
        <el-dialog title="批单列表" :modal="false" :visible.sync="flieVisible">
            <el-table :data="model.pidanFileList">
                <el-table-column property="name" label="文件名称"></el-table-column>
                <el-table-column label="操作" width="90">
                    <template slot-scope="{row}">
                        <el-button type="primary" @click="yulan(row.name, row.fileurlFull)">预览</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </el-dialog>
      <template v-slot:footer>
        <el-button @click="visible=false">返回</el-button>
      </template>
    </GlobalWindow>
</template>
<script>
@@ -321,7 +331,8 @@
      activeName: '0',
        total: 0,
      currentPage: 1,
        loading: false
        loading: false,
      flieVisible: false,
    }
  },
  created () {
@@ -448,10 +459,10 @@
       }
    },
    viewPidan(){
      if(this.model.pidanFile && this.model.pidanFile.fileurlFull){
        this.$refs.OperaPdfViewerWindow.open('查看批单',this.model.pidanFile.fileurlFull)
        // window.open(this.model.pidanFile.fileurlFull)
      }
       this.flieVisible = true
    },
    yulan(name, url) {
      this.$refs.OperaPdfViewerWindow.open(name, url)
    },
    handleSizeChange(val){
        console.log(val)