| | |
| | | <el-button size="medium" type="primary" @click="handleDown" :loading="outLoading" v-if="outPower" style="display:inline-block;margin-left: 20px;">导出</el-button> |
| | | </el-col> --> |
| | | </el-row> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;"> |
| | | <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick"> |
| | | <el-tab-pane label="填写" name="填写" style="height: 100%;"> |
| | | <div class="search"> |
| | | <div class="search_thing"> |
| | |
| | | <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button> |
| | | </div> |
| | | <div class="btns"> |
| | | <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">新增</el-button> |
| | | <el-button size="medium" type="primary" @click="openAdd" v-if="addPower&&!currentInfo.ratifyUserName">新增</el-button> |
| | | <el-upload :action="action" :multiple="false" |
| | | :show-file-list="false" |
| | | accept='.doc,.docx' :headers="headers" :on-change="beforeUpload" |
| | | :on-error="onError" ref='upload' v-if="upPower" :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> |
| | | :on-error="onError" ref='upload' v-if="upPower&&!currentInfo.ratifyUserName" :on-success="handleSuccessUp" style="display:inline-block;margin-left: 20px;"> |
| | | <el-button type="primary" size="medium">导入</el-button></el-upload> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | activeName:'填写', |
| | | activeName:'历史记录', |
| | | title0:'新增', |
| | | addPower:true, |
| | | outPower:true, |
| | |
| | | id: 'delete', |
| | | font: '删除', |
| | | type: 'text', |
| | | method: 'doDiy', |
| | | method: 'doDiy' |
| | | }, { |
| | | id: 'handleEdit', |
| | | font: '修改', |
| | | type: 'text', |
| | | method: 'handleEdit', |
| | | field:[], |
| | | field:[] |
| | | }], |
| | | tagField: { |
| | | // documentType:{ |
| | |
| | | return this.javaApi +this.$api.manageRecordIntervals.exportInManageRecordIntervals |
| | | } |
| | | }, |
| | | watch: { |
| | | 'activeName' (val1, val2) { |
| | | if(val1=='填写'){ |
| | | this.componentData.do.forEach((item)=>{ |
| | | item.disabFun = (row, index) => { |
| | | return !this.addPower||!!this.currentInfo.ratifyUserName |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.entityCopy = this.HaveJson(this.componentData.entity); |
| | | this.entityCopy0 = this.HaveJson(this.componentData0.entity); |
| | |
| | | this.outLoading = false |
| | | if(res.code==201) return this.$message.error('导出失败') |
| | | this.$message.success('导出成功') |
| | | let url = this.javaApi+'word/'+res.message |
| | | let url = this.javaApi+'/word/'+res.message |
| | | const link = document.createElement('a'); |
| | | link.href = url; |
| | | link.download = '文件定期审查记录'; |
| | |
| | | } |
| | | }, |
| | | handleDown0(row){ |
| | | let url = this.javaApi+'word/'+row.url |
| | | let url = this.javaApi+'/word/'+row.url |
| | | const link = document.createElement('a'); |
| | | link.href = url; |
| | | link.download = row.month+' 所有文件定期检查记录'; |
| | |
| | | this.title0 = '批准' |
| | | this.commonFun(row) |
| | | }, |
| | | tabClick(e){ |
| | | if(e.index==0){ |
| | | this.currentInfo = this.$refs['ValueTable0'].tableData[0] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |