| | |
| | | size="small" |
| | | >{{ $t('common.empty') }} |
| | | </el-button> |
| | | <el-button |
| | | @click="handleDownload('ruleForm')" |
| | | icon="el-icon-download" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t('common.download') }} |
| | | </el-button> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | border |
| | | height="calc(100% - 57px)" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | |
| | | size="small" |
| | | >{{ $t('common.update') }} |
| | | </el-button> |
| | | <el-button |
| | | <!-- <el-button |
| | | @click="handleDownload(scope.$index, scope.row)" |
| | | type="success" |
| | | plain |
| | | size="small" |
| | | >{{ $t('common.download') }} |
| | | >{{ $t('common.download') }} --> |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.createUser') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.createUser }}</label> |
| | | <label class="boxlabel">{{ itemdetail.createName }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.updateUser') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.updateUser }}</label> |
| | | <label class="boxlabel">{{ itemdetail.updateName }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | |
| | | } |
| | | }, |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = ""; |
| | | this.filesReset(); |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = ""; |
| | | this.filesReset(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | handleClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | }; |
| | | this.filesReset(); |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | }; |
| | | this.filesReset(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async insertFromData() { |
| | | if (this.insertform.dirid == null || this.insertform.depid == null) { |
| | |
| | | }, |
| | | |
| | | removeUpdate() { |
| | | this.upflag = false; |
| | | this.dialogFormVisible = false; |
| | | this.upform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.upflag = false; |
| | | this.dialogFormVisible = false; |
| | | this.upform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | // this.filesReset(); |
| | | }, |
| | | submitForm(formName) { |
| | |
| | | this.showinfoBox = true; |
| | | |
| | | this.itemdetail = row; |
| | | |
| | | this.itemdetail.createTime = this.formomentTime( |
| | | this.itemdetail.createTime |
| | | ); |
| | | this.itemdetail.updateTime = this.formomentTime( |
| | | this.itemdetail.updateTime |
| | | ); |
| | | this.itemdetail.imageFile = |
| | | BASE_URL + "/res/download?guid=" + row.viewGuid + "&token=" + token; |
| | | this.itemdetail.imageFile = BASE_URL + "/comprehensive/downloadForView?guid=" + row.viewGuid + "&token=" + token; |
| | | }, |
| | | closeDetial() { |
| | | this.showinfoBox = false; |
| | | this.itemdetail = {}; |
| | | }, |
| | | handleDownload() { |
| | | if (this.multipleSelection.length == 0) { |
| | | return this.$message({ |
| | | message: '请选择需要下载的文件', |
| | | type: 'warning' |
| | | }); |
| | | } |
| | | |
| | | handleDownload(index, row) { |
| | | |
| | | // var data = { |
| | | // guids: ["e5b6ae0889b88111f13a4b6e048348db", "fa4f299e901a0c46e634f8fcc8185c0c"] |
| | | // }; |
| | | // ajax(getUrl("/res/downloadReqForGuids"), "POST", JSON.stringify(data), null, null, function (rs) { |
| | | // console.log(rs); |
| | | // alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | // }); |
| | | var std = []; |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].fileGuid) |
| | | } |
| | | var token = getToken() |
| | | var url = BASE_URL + "/res/download?token=" + token + "&guid=" + row.fileGuid; |
| | | $.ajax(BASE_URL + "/style/downloadReqForGuids?token=" + token, { |
| | | type: "post", |
| | | data: JSON.stringify({ |
| | | guids: std |
| | | }), |
| | | async: true, |
| | | cache: false, |
| | | processData: false, |
| | | contentType: false, |
| | | success: res => { |
| | | if (res.code != 200) { |
| | | return |
| | | } |
| | | |
| | | $("#downFrame").attr("src", url).click(); |
| | | var token = getToken() |
| | | var url = BASE_URL + "/style/downloadFile?token=" + token + "&guid=" + res.result; |
| | | |
| | | $("#downFrame").attr("src", url).click(); |
| | | }, |
| | | }) |
| | | |
| | | |
| | | }, |
| | | // handleDownload(index, row) { |
| | | |
| | | // var token = getToken() |
| | | // var url = BASE_URL + "/res/download?token=" + token + "&guid=" + row.fileGuid; |
| | | |
| | | // $("#downFrame").attr("src", url).click(); |
| | | |
| | | // }, |
| | | handleEdit(index, row) { |
| | | this.upflag = true; |
| | | this.dialogFormVisible = true; |