提交 08ce68bf 编写于 作者: 刘英杰's avatar 刘英杰

v20240308 保存

上级 e094845b
流水线 #24496 已通过 ,包含阶段
in 28 second
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>教师下企业</title><link href=css/chunk-vendors.0122f5db.css rel=stylesheet><link href=css/app.dd21080a.css rel=stylesheet></head><body><noscript><strong>请开启 JavaScript 功能来使用 教师下企业。</strong></noscript><div id=app></div><script src=js/chunk-vendors.b3dfef74.js></script><script src=js/app.896295c0.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>教师下企业</title><link href=css/chunk-vendors.0122f5db.css rel=stylesheet><link href=css/app.dd21080a.css rel=stylesheet></head><body><noscript><strong>请开启 JavaScript 功能来使用 教师下企业。</strong></noscript><div id=app></div><script src=js/chunk-vendors.b3dfef74.js></script><script src=js/app.5d44d65e.js></script></body></html>
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
此差异已折叠。
此差异已折叠。
......@@ -21,7 +21,7 @@
</template>
</Input>
<Button class="ivu-mr-8" icon="md-sync" @click="reset"> </Button>
<Button class="ivu-mr-8" @click="ImportFile('list')">
<Button :loading="btl1" class="ivu-mr-8" @click="ImportFile('list')">
导出表格
</Button>
<Button class="ivu-mr-8" @click="ImportFile('file')">
......@@ -115,10 +115,23 @@
</Form>
<template #footer>
<div style="width: 100%;height: 100%; display: flex;align-items: center;justify-content: center;">
<Button @click="fileImport" type="primary" style="width:8vw" >导出</Button>
<Button @click="fileImport" :loading="btl" type="primary" style="width:8vw" >导出</Button>
</div>
</template>
</Modal>
<Modal v-model="passwordModal" min-width="12">
<template #header>
<div style="font-size: 18px; color: #19be6b; width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;">
<Icon type="md-checkmark-circle-outline" /> 附件解压码
</div>
</template>
<div style="width: 100%;height: 50px;display: flex;align-items: center;justify-content: center;"><h1 id="w" style="color: #515A6E">{{passwrodValue}}</h1></div>
<template #footer>
<div style="width: 100%;height: 100%; display: flex;align-items: center;justify-content: center;">
<Button @click="copy(passwrodValue)" type="primary" style="width:150px" >复制解压码</Button>
</div>
</template>
</Modal>
</Card>
</div>
</template>
......@@ -140,6 +153,10 @@ export default {
},
data() {
return {
btl1:false,
btl:false,
passwrodValue:'',
passwordModal:false,
tk:1,
title: '',
spanMethodObject: {
......@@ -311,11 +328,16 @@ export default {
this.GetFormSelect()
},
methods: {
copy() {
navigator.clipboard.writeText(this.passwrodValue).then(() => {
this.$Message.success('复制成功')
})
},
GetFromId(){
//获取表单id
this.asc.getApiCommonGetFromId().then(res=>{
this.fileDefaultFormData.form_id = res.response
})
},
......@@ -353,7 +375,7 @@ export default {
//附件导出
this.$refs.formValidate.validate((vail)=>{
if (vail){
vueCookies.set('admin-teacher-go2-corporation-xxcjUrl',1)
// vueCookies.set('admin-teacher-go2-corporation-xxcjUrl',1)
this.fileDefaultFormData = {
...this.fileDefaultFormData,
user_id: JSON.parse(vueCookies.get('admin-teacher-go2-corporation-userinfo')).user_id,
......@@ -362,12 +384,21 @@ export default {
key_word:this.params.card_name,
}
this.hooks.myEncapsulationFunction(()=>{
this.btl =true
return xxcjImportFile(this.fileDefaultFormData).then(res=>{
vueCookies.remove('admin-teacher-go2-corporation-xxcjUrl')
if (res.code===1) window.location.href = res.response
// vueCookies.remove('admin-teacher-go2-corporation-xxcjUrl')
if (res.code===1) {
this.fileEditModalshow = false
this.btl = false
this.passwrodValue = res.response.password
this.passwordModal =true
window.location.href = res.response.file_path
}
return res
}).finally(()=>{
vueCookies.remove('admin-teacher-go2-corporation-xxcjUrl')
}).catch(()=>{
this.btl = false
})
})
}
......@@ -391,10 +422,16 @@ export default {
// "end_time": "",
// }, '列表导出')
this.hooks.myEncapsulationFunction(()=>{
this.btl1 =true
return this.asc.postApiEnterpriseclockGetEnterpriseclockExport(this.params).then(res=>{
if (res.code === 1) window.location.href = res.response
if (res.code === 1){
this.btl1 =false
window.location.href = res.response
}
return res
})
}).catch(()=>{
this.btl1 =false
})
})
},
'file':()=>{
......@@ -452,7 +489,6 @@ export default {
if (arr[i] !== currentElement || i === arr.length) {
const endIndex = i - 1;
result.push({element: currentElement, startIndex, endIndex});
if (i < arr.length) {
currentElement = arr[i];
startIndex = i;
......@@ -537,7 +573,6 @@ export default {
})
this.dataCount = res.response.data_count
// 处理列表数据 得到相同谁 起止下标 用于合并
let column7IndexArray = this.getRangeOfElements(this.tableData)
this.tableData = this.tableData.map(cur => {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或