提交 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> <!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 \ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
此差异已折叠。
此差异已折叠。
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</template> </template>
</Input> </Input>
<Button class="ivu-mr-8" icon="md-sync" @click="reset"> </Button> <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>
<Button class="ivu-mr-8" @click="ImportFile('file')"> <Button class="ivu-mr-8" @click="ImportFile('file')">
...@@ -115,7 +115,20 @@ ...@@ -115,7 +115,20 @@
</Form> </Form>
<template #footer> <template #footer>
<div style="width: 100%;height: 100%; display: flex;align-items: center;justify-content: center;"> <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> </div>
</template> </template>
</Modal> </Modal>
...@@ -140,6 +153,10 @@ export default { ...@@ -140,6 +153,10 @@ export default {
}, },
data() { data() {
return { return {
btl1:false,
btl:false,
passwrodValue:'',
passwordModal:false,
tk:1, tk:1,
title: '', title: '',
spanMethodObject: { spanMethodObject: {
...@@ -311,11 +328,16 @@ export default { ...@@ -311,11 +328,16 @@ export default {
this.GetFormSelect() this.GetFormSelect()
}, },
methods: { methods: {
copy() {
navigator.clipboard.writeText(this.passwrodValue).then(() => {
this.$Message.success('复制成功')
})
},
GetFromId(){ GetFromId(){
//获取表单id //获取表单id
this.asc.getApiCommonGetFromId().then(res=>{ this.asc.getApiCommonGetFromId().then(res=>{
this.fileDefaultFormData.form_id = res.response this.fileDefaultFormData.form_id = res.response
}) })
}, },
...@@ -353,7 +375,7 @@ export default { ...@@ -353,7 +375,7 @@ export default {
//附件导出 //附件导出
this.$refs.formValidate.validate((vail)=>{ this.$refs.formValidate.validate((vail)=>{
if (vail){ if (vail){
vueCookies.set('admin-teacher-go2-corporation-xxcjUrl',1) // vueCookies.set('admin-teacher-go2-corporation-xxcjUrl',1)
this.fileDefaultFormData = { this.fileDefaultFormData = {
...this.fileDefaultFormData, ...this.fileDefaultFormData,
user_id: JSON.parse(vueCookies.get('admin-teacher-go2-corporation-userinfo')).user_id, user_id: JSON.parse(vueCookies.get('admin-teacher-go2-corporation-userinfo')).user_id,
...@@ -362,12 +384,21 @@ export default { ...@@ -362,12 +384,21 @@ export default {
key_word:this.params.card_name, key_word:this.params.card_name,
} }
this.hooks.myEncapsulationFunction(()=>{ this.hooks.myEncapsulationFunction(()=>{
this.btl =true
return xxcjImportFile(this.fileDefaultFormData).then(res=>{ return xxcjImportFile(this.fileDefaultFormData).then(res=>{
vueCookies.remove('admin-teacher-go2-corporation-xxcjUrl') // vueCookies.remove('admin-teacher-go2-corporation-xxcjUrl')
if (res.code===1) window.location.href = res.response 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 return res
}).finally(()=>{ }).catch(()=>{
vueCookies.remove('admin-teacher-go2-corporation-xxcjUrl') this.btl = false
}) })
}) })
} }
...@@ -391,9 +422,15 @@ export default { ...@@ -391,9 +422,15 @@ export default {
// "end_time": "", // "end_time": "",
// }, '列表导出') // }, '列表导出')
this.hooks.myEncapsulationFunction(()=>{ this.hooks.myEncapsulationFunction(()=>{
this.btl1 =true
return this.asc.postApiEnterpriseclockGetEnterpriseclockExport(this.params).then(res=>{ 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 return res
}).catch(()=>{
this.btl1 =false
}) })
}) })
}, },
...@@ -452,7 +489,6 @@ export default { ...@@ -452,7 +489,6 @@ export default {
if (arr[i] !== currentElement || i === arr.length) { if (arr[i] !== currentElement || i === arr.length) {
const endIndex = i - 1; const endIndex = i - 1;
result.push({element: currentElement, startIndex, endIndex}); result.push({element: currentElement, startIndex, endIndex});
if (i < arr.length) { if (i < arr.length) {
currentElement = arr[i]; currentElement = arr[i];
startIndex = i; startIndex = i;
...@@ -537,7 +573,6 @@ export default { ...@@ -537,7 +573,6 @@ export default {
}) })
this.dataCount = res.response.data_count this.dataCount = res.response.data_count
// 处理列表数据 得到相同谁 起止下标 用于合并 // 处理列表数据 得到相同谁 起止下标 用于合并
let column7IndexArray = this.getRangeOfElements(this.tableData) let column7IndexArray = this.getRangeOfElements(this.tableData)
this.tableData = this.tableData.map(cur => { this.tableData = this.tableData.map(cur => {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或