|  | @@ -156,42 +156,6 @@
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
		
			
				|  |  |      </el-row>
 | 
	
		
			
				|  |  | -    <!-- 添加或修改registerBook对话框 -->
 | 
	
		
			
				|  |  | -    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
 | 
	
		
			
				|  |  | -      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
 | 
	
		
			
				|  |  | -        <el-form-item label="登记簿类型" prop="registerBookType">
 | 
	
		
			
				|  |  | -          <el-select v-model="form.registerBookType" placeholder="请选择登记簿类型">
 | 
	
		
			
				|  |  | -            <el-option
 | 
	
		
			
				|  |  | -              v-for="dict in dict.type.register_book_type"
 | 
	
		
			
				|  |  | -              :key="dict.value"
 | 
	
		
			
				|  |  | -              :label="dict.label"
 | 
	
		
			
				|  |  | -              :value="parseInt(dict.value)"
 | 
	
		
			
				|  |  | -            ></el-option>
 | 
	
		
			
				|  |  | -          </el-select>
 | 
	
		
			
				|  |  | -        </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item label="保存日期" prop="date">
 | 
	
		
			
				|  |  | -          <el-date-picker clearable
 | 
	
		
			
				|  |  | -                          v-model="form.date"
 | 
	
		
			
				|  |  | -                          type="date"
 | 
	
		
			
				|  |  | -                          value-format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | -                          placeholder="请选择保存日期">
 | 
	
		
			
				|  |  | -          </el-date-picker>
 | 
	
		
			
				|  |  | -        </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item label="机构id" prop="orgId">
 | 
	
		
			
				|  |  | -          <el-input v-model="form.orgId" placeholder="请输入机构id"/>
 | 
	
		
			
				|  |  | -        </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item label="机构名称" prop="orgName">
 | 
	
		
			
				|  |  | -          <el-input v-model="form.orgName" placeholder="请输入机构名称"/>
 | 
	
		
			
				|  |  | -        </el-form-item>
 | 
	
		
			
				|  |  | -        <el-form-item label="pdf文件地址" prop="fileUrl">
 | 
	
		
			
				|  |  | -          <el-input v-model="form.fileUrl" placeholder="请输入pdf文件地址"/>
 | 
	
		
			
				|  |  | -        </el-form-item>
 | 
	
		
			
				|  |  | -      </el-form>
 | 
	
		
			
				|  |  | -      <div slot="footer" class="dialog-footer">
 | 
	
		
			
				|  |  | -        <el-button type="primary" @click="submitForm">确 定</el-button>
 | 
	
		
			
				|  |  | -        <el-button @click="cancel">取 消</el-button>
 | 
	
		
			
				|  |  | -      </div>
 | 
	
		
			
				|  |  | -    </el-dialog>
 | 
	
		
			
				|  |  |      <down-list-dialog ref="downListDialog" @success="refresh(true)"></down-list-dialog>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
	
		
			
				|  | @@ -199,14 +163,12 @@
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import {
 | 
	
		
			
				|  |  |    listRegisterBook,
 | 
	
		
			
				|  |  | -  getRegisterBook,
 | 
	
		
			
				|  |  | -  delRegisterBook,
 | 
	
		
			
				|  |  | -  addRegisterBook,
 | 
	
		
			
				|  |  | -  updateRegisterBook
 | 
	
		
			
				|  |  | +  selectExport,
 | 
	
		
			
				|  |  |  } from "@/api/registerbook/registerBook.js";
 | 
	
		
			
				|  |  |  import tableList from "@/mixins/tableList";
 | 
	
		
			
				|  |  |  import DownListDialog from "./dialog.list";
 | 
	
		
			
				|  |  |  import OrgTree from "@/components/orgTree";
 | 
	
		
			
				|  |  | +import {guid} from "@/utils";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "RegisterBook",
 | 
	
	
		
			
				|  | @@ -237,6 +199,8 @@ export default {
 | 
	
		
			
				|  |  |        queryParams: {
 | 
	
		
			
				|  |  |          pageNum: 1,
 | 
	
		
			
				|  |  |          pageSize: 10,
 | 
	
		
			
				|  |  | +       // 导出全部:0,导出勾选:1
 | 
	
		
			
				|  |  | +        exportType:1,
 | 
	
		
			
				|  |  |          registerBookType: null,
 | 
	
		
			
				|  |  |          date: new Date(),
 | 
	
		
			
				|  |  |          orgId: null,
 | 
	
	
		
			
				|  | @@ -324,57 +288,19 @@ export default {
 | 
	
		
			
				|  |  |        this.single = selection.length !== 1
 | 
	
		
			
				|  |  |        this.multiple = !selection.length
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    /** 提交按钮 */
 | 
	
		
			
				|  |  | -    submitForm() {
 | 
	
		
			
				|  |  | -      this.$refs["form"].validate(valid => {
 | 
	
		
			
				|  |  | -        if (valid) {
 | 
	
		
			
				|  |  | -          if (this.form.id != null) {
 | 
	
		
			
				|  |  | -            updateRegisterBook(this.form).then(response => {
 | 
	
		
			
				|  |  | -              this.$modal.msgSuccess("修改成功");
 | 
	
		
			
				|  |  | -              this.open = false;
 | 
	
		
			
				|  |  | -              this.getList();
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  | -          } else {
 | 
	
		
			
				|  |  | -            addRegisterBook(this.form).then(response => {
 | 
	
		
			
				|  |  | -              this.$modal.msgSuccess("新增成功");
 | 
	
		
			
				|  |  | -              this.open = false;
 | 
	
		
			
				|  |  | -              this.getList();
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    /** 删除按钮操作 */
 | 
	
		
			
				|  |  | -    handleDelete(row) {
 | 
	
		
			
				|  |  | -      const ids = row.id || this.ids;
 | 
	
		
			
				|  |  | -      this.$modal.confirm('是否确认删除registerBook编号为"' + ids + '"的数据项?').then(function () {
 | 
	
		
			
				|  |  | -        return delRegisterBook(ids);
 | 
	
		
			
				|  |  | -      }).then(() => {
 | 
	
		
			
				|  |  | -        this.getList();
 | 
	
		
			
				|  |  | -        this.$modal.msgSuccess("删除成功");
 | 
	
		
			
				|  |  | -      }).catch(() => {
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    /** 导出按钮操作 */
 | 
	
		
			
				|  |  | -    handleExport() {
 | 
	
		
			
				|  |  | -      this.download('core/registerBook/export', {
 | 
	
		
			
				|  |  | -        ...this.queryParams
 | 
	
		
			
				|  |  | -      }, `registerBook_${new Date().getTime()}.xlsx`)
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      async exportAll() {
 | 
	
		
			
				|  |  | -      this.search.exportType = 0;
 | 
	
		
			
				|  |  | +      //this.search.exportType = 0;
 | 
	
		
			
				|  |  |        //await cutExport(this.search);
 | 
	
		
			
				|  |  |        this.$message.success("导出成功,请稍后查看导出结果!");
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      async exportSelected() {
 | 
	
		
			
				|  |  | -      /*if (!this.search.pdfIdList || this.search.pdfIdList.length == 0) {
 | 
	
		
			
				|  |  | +      if (!this.ids || this.ids.length == 0) {
 | 
	
		
			
				|  |  |          this.$message.error('请先选择需要导出的文件!');
 | 
	
		
			
				|  |  |          return;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.search.exportType = 1;
 | 
	
		
			
				|  |  | -      let guid = this.getNewGuid();
 | 
	
		
			
				|  |  | -      await this.$api.batchexport.exportFile({...this.search, guid});*/
 | 
	
		
			
				|  |  | +      let pdfIdList=this.ids;
 | 
	
		
			
				|  |  | +      this.queryParams.exportType = 1;
 | 
	
		
			
				|  |  | +      selectExport({...this.queryParams, pdfIdList});
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      getDownList() {
 | 
	
		
			
				|  |  |        this.$refs.downListDialog.show(this.search);
 |