Compare commits
No commits in common. "4812bebdc9da564cb8f71b78de7624e0c05e7bae" and "800c93602eebabae20383bef86dc1a498e9209f7" have entirely different histories.
4812bebdc9
...
800c93602e
@ -5,18 +5,15 @@ NODE_ENV = production
|
|||||||
VUE_APP_TITLE = 象纬云科
|
VUE_APP_TITLE = 象纬云科
|
||||||
|
|
||||||
# 测试环境
|
# 测试环境
|
||||||
VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1
|
# VUE_APP_API_BASEURL = https://dev.api.linkwing.com/api/v1
|
||||||
VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1
|
# VUE_APP_API_DEV = https://dev.api.linkwing.com/api/v1
|
||||||
VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss
|
# VUE_APP_WS_URL = wss://dev.api.linkwing.com/wss
|
||||||
VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss
|
# VUE_APP_WSS_URL = wss://dev.api.linkwing.com/wss
|
||||||
|
|
||||||
# 线上环境
|
# 线上环境
|
||||||
# 接口地址 # WS地址
|
# 接口地址 # WS地址
|
||||||
# VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1
|
VUE_APP_API_BASEURL = https://prod.api.linkwing.com/api/v1
|
||||||
# VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1
|
VUE_APP_API_DEV = https://prod.api.linkwing.com/api/v1
|
||||||
# VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss
|
VUE_APP_WS_URL = wss://prod.api.linkwing.com/wss
|
||||||
# VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss
|
VUE_APP_WSS_URL = wss://prod.api.linkwing.com/wss
|
||||||
|
|
||||||
# SSE地址
|
|
||||||
VUE_APP_SSE_URL = https://dev.api.linkwing.com/sse/stream
|
|
||||||
|
|
||||||
|
|||||||
@ -100,13 +100,6 @@ export default {
|
|||||||
return await http.post(this.url, params);
|
return await http.post(this.url, params);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
record:{
|
|
||||||
url: `${config.API_URL}/download.record.list`,
|
|
||||||
name: "下载记录",
|
|
||||||
get: async function (params) {
|
|
||||||
return await http.post(this.url, params);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
export:{
|
export:{
|
||||||
url: `${config.API_URL}/user.log.export`,
|
url: `${config.API_URL}/user.log.export`,
|
||||||
name: "用户日志导出",
|
name: "用户日志导出",
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
<template>
|
|
||||||
<svg t="1754287674404" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5370" width="200" height="200"><path d="M800.64 66.56c44.25216 0 79.13984 34.34496 79.98464 78.36672l0.01536 1.63328V450.56c0 19.2-12.8 32-32 32-18.77504 0-31.42656-12.2368-31.97952-30.73024L816.64 450.56V152.96c0-12.42112-9.04192-21.83168-21.27872-22.3744l-1.12128-0.0256H202.24c-15.55456 0-25.0624 9.07264-25.57952 21.34016l-0.02048 1.05984V872.96c0 15.58016 9.10336 25.088 24.35072 25.57952l1.24928 0.02048h198.4c19.2 0 32 12.8 32 32 0 18.77504-12.2368 31.42656-30.73024 31.97952l-1.26976 0.02048H192.64c-44.25216 0-79.13984-34.34496-79.98464-78.36672l-0.01536-1.63328V146.56c0-44.25216 34.34496-79.13984 78.36672-79.98464l1.63328-0.01536h608z m-46.50496 539.39712l149.02272 148.992a32 32 0 0 1 0 45.28128L754.13504 949.248a32 32 0 0 1-45.25056-45.25056l94.40256-94.39744H464.53248a32 32 0 1 1 0-64h338.75456l-94.40256-94.40256a32 32 0 1 1 45.25056-45.24544zM467.84 418.56c16 0 28.8 12.8 28.8 28.8a28.672 28.672 0 0 1-27.66336 28.7744l-1.13664 0.0256h-166.4a28.68224 28.68224 0 0 1-28.8-28.8 28.672 28.672 0 0 1 27.66336-28.7744l1.13664-0.0256h166.4z m224-153.6c16 0 28.8 12.8 28.8 28.8a28.672 28.672 0 0 1-27.66336 28.7744l-1.13664 0.0256h-390.4a28.68224 28.68224 0 0 1-28.8-28.8 28.672 28.672 0 0 1 27.66336-28.7744l1.13664-0.0256h390.4z" p-id="5371"></path></svg>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: "ExportLog"
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
@ -20,7 +20,6 @@ export { default as Account } from './Account.vue'
|
|||||||
export { default as Notice } from './Notice.vue'
|
export { default as Notice } from './Notice.vue'
|
||||||
export { default as Password } from './Password.vue'
|
export { default as Password } from './Password.vue'
|
||||||
export { default as Secure } from './Secure.vue'
|
export { default as Secure } from './Secure.vue'
|
||||||
export { default as ExportLog } from './ExportLog.vue'
|
|
||||||
export { default as UserLog } from './Log.vue'
|
export { default as UserLog } from './Log.vue'
|
||||||
export { default as WechartRound } from './WechartRound.vue'
|
export { default as WechartRound } from './WechartRound.vue'
|
||||||
export { default as Cost } from './Cost.vue'
|
export { default as Cost } from './Cost.vue'
|
||||||
|
|||||||
@ -58,10 +58,7 @@ export default {
|
|||||||
this.emitActivationDate();
|
this.emitActivationDate();
|
||||||
},
|
},
|
||||||
emitActivationDate() {
|
emitActivationDate() {
|
||||||
let date = [];
|
let date = this.localDatePicker.map((date,index) => index===0? this.$TOOL.formatStartTime(date):this.$TOOL.formatEndTime(date));
|
||||||
if(this.localDatePicker && this.localDatePicker.length>0){
|
|
||||||
date = this.localDatePicker.map((date,index) => index===0? this.$TOOL.formatStartTime(date):this.$TOOL.formatEndTime(date));
|
|
||||||
}
|
|
||||||
this.$emit('update:activation_date', {
|
this.$emit('update:activation_date', {
|
||||||
operator: this.activation_date.operator,
|
operator: this.activation_date.operator,
|
||||||
value: this.localDatePicker && this.localDatePicker.length > 0? date:[]
|
value: this.localDatePicker && this.localDatePicker.length > 0? date:[]
|
||||||
|
|||||||
@ -6,7 +6,6 @@
|
|||||||
<div class="contentPopover" v-if="show">
|
<div class="contentPopover" v-if="show">
|
||||||
<div class="bodyMain">
|
<div class="bodyMain">
|
||||||
<span class="arrow"></span>
|
<span class="arrow"></span>
|
||||||
<template v-if="listIsType">
|
|
||||||
<div v-for="item in list" :key="item">
|
<div v-for="item in list" :key="item">
|
||||||
<div v-if="list.length>0 && type == item.type">
|
<div v-if="list.length>0 && type == item.type">
|
||||||
<div class="exportHeader">
|
<div class="exportHeader">
|
||||||
@ -21,15 +20,6 @@
|
|||||||
<el-progress class="exportPopover" :text-inside="true" :stroke-width="12" :percentage="item.rate" />
|
<el-progress class="exportPopover" :text-inside="true" :stroke-width="12" :percentage="item.rate" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
|
||||||
<div v-else>
|
|
||||||
<div>
|
|
||||||
<div class="exportHeader">
|
|
||||||
<div class="exportName">正在解析中...</div>
|
|
||||||
</div>
|
|
||||||
<el-progress class="exportPopover" :text-inside="true" :stroke-width="12" percentage="0" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -46,13 +36,6 @@ export default {
|
|||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
|
|
||||||
},
|
|
||||||
computed:{
|
|
||||||
listIsType(){
|
|
||||||
let arr = this.$TOOL.objCopy(this.list);
|
|
||||||
arr = arr.filter(item => item.type && item.type == this.type);
|
|
||||||
return arr.length && arr.length > 0;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
@ -138,10 +121,6 @@ export default {
|
|||||||
this.$emit('updateShow', item);
|
this.$emit('updateShow', item);
|
||||||
|
|
||||||
if(res.data.status==1){
|
if(res.data.status==1){
|
||||||
this.list = this.list.map(item =>
|
|
||||||
item.type === res.data.type ? {} : item
|
|
||||||
);
|
|
||||||
|
|
||||||
this.down(res.data);
|
this.down(res.data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,14 +42,10 @@
|
|||||||
<slot name="download"></slot>
|
<slot name="download"></slot>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="importBox" v-if="progressShow">
|
<div class="importBox" v-if="progressShow">
|
||||||
<div class="name">导入进度</div>
|
<div class="name">导入进度</div>
|
||||||
<el-progress class="exportPopover" :text-inside="true" :stroke-width="12" :percentage="importInfo.rate" />
|
<el-progress class="exportPopover" :text-inside="true" :stroke-width="12" :percentage="importInfo.rate" />
|
||||||
</div>
|
</div>
|
||||||
<div class="primaryText" v-if="analysisShow">
|
|
||||||
<div class="text success">正在解析...</div>
|
|
||||||
</div>
|
|
||||||
<div class="errText" v-if="errorShow">
|
<div class="errText" v-if="errorShow">
|
||||||
<div class="deleteErr" @click="errorClick"><el-icon class="icon"><el-icon-Close/></el-icon></div>
|
<div class="deleteErr" @click="errorClick"><el-icon class="icon"><el-icon-Close/></el-icon></div>
|
||||||
<el-scrollbar ref="scrollbar" max-height="120px">
|
<el-scrollbar ref="scrollbar" max-height="120px">
|
||||||
@ -78,7 +74,7 @@ export default {
|
|||||||
size:{type:String, default:'small'},
|
size:{type:String, default:'small'},
|
||||||
title:{type:String, default: ""},
|
title:{type:String, default: ""},
|
||||||
type:{type:[String, Number], default: ""},
|
type:{type:[String, Number], default: ""},
|
||||||
httpDisabled:{type:Boolean, default:false},
|
httpDisabled:{type:Boolean, default:false}
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
@ -92,7 +88,6 @@ export default {
|
|||||||
fileShow:false,
|
fileShow:false,
|
||||||
params:{},
|
params:{},
|
||||||
|
|
||||||
analysisShow:false,
|
|
||||||
importDis:false,
|
importDis:false,
|
||||||
importTrue:false,
|
importTrue:false,
|
||||||
progressShow:false,
|
progressShow:false,
|
||||||
@ -111,21 +106,19 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// eventBus.$on('sockBack', this.getWsResult);
|
eventBus.$on('sockBack', this.getWsResult);
|
||||||
|
|
||||||
eventBus.$on('sseBack', this.getWsResult);
|
// eventBus.$on('sseBack', this.getWsResult);
|
||||||
},
|
},
|
||||||
unmounted() {
|
unmounted() {
|
||||||
// eventBus.$off('sockBack', this.getWsResult);
|
eventBus.$off('sockBack', this.getWsResult);
|
||||||
|
|
||||||
eventBus.$off('sseBack', this.getWsResult);
|
// eventBus.$off('sseBack', this.getWsResult);
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getWsResult(res){
|
getWsResult(res){
|
||||||
if(res.data && (res.data.type == 4 || res.data.type == 5 || res.data.type == 10 || res.data.type == 17 || res.data.type == 18 || res.data.type == 27 || res.data.type == 28 || res.data.type == 31 || res.data.type == 42 || res.data.type == 44 || res.data.type == 45 || res.data.type == 48 || res.data.type == 49 || res.data.type == 50 || res.data.type == 51)){
|
if(res.data && (res.data.type == 4 || res.data.type == 5 || res.data.type == 10 || res.data.type == 17 || res.data.type == 18 || res.data.type == 27 || res.data.type == 28 || res.data.type == 31 || res.data.type == 42 || res.data.type == 44 || res.data.type == 45 || res.data.type == 48 || res.data.type == 49 || res.data.type == 50 || res.data.type == 51)){
|
||||||
if(this.type == res.data.type){
|
if(this.type == res.data.type){
|
||||||
this.analysisShow = false;
|
|
||||||
|
|
||||||
this.importInfo = res.data;
|
this.importInfo = res.data;
|
||||||
this.progressShow = true;
|
this.progressShow = true;
|
||||||
this.progressTrue = true;
|
this.progressTrue = true;
|
||||||
@ -147,10 +140,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setAnalysisShow(params){
|
|
||||||
this.analysisShow = params;
|
|
||||||
},
|
|
||||||
|
|
||||||
// 导入文件
|
// 导入文件
|
||||||
importFile(){
|
importFile(){
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
@ -285,20 +274,6 @@ export default {
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.primaryText{
|
|
||||||
margin: 15px 0 0 0;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 6px;
|
|
||||||
background: var(--el-color-primary-light-9);
|
|
||||||
::v-deep .text{
|
|
||||||
font-size: 12px;
|
|
||||||
line-height: 20px;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
.text{
|
|
||||||
color: var(--el-color-primary)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.errText{
|
.errText{
|
||||||
margin: 15px 0 0 0;
|
margin: 15px 0 0 0;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|||||||
@ -47,9 +47,8 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
getDataList(visible){
|
getDataList(val){
|
||||||
if(!visible) return
|
this.$emit('fetchData',val);
|
||||||
this.$emit('fetchData',visible);
|
|
||||||
},
|
},
|
||||||
selectChange(e){
|
selectChange(e){
|
||||||
this.localData = e;
|
this.localData = e;
|
||||||
|
|||||||
@ -51,7 +51,7 @@ export default {
|
|||||||
searchList:{
|
searchList:{
|
||||||
handler(val){
|
handler(val){
|
||||||
if(val && val.length>0){
|
if(val && val.length>0){
|
||||||
this.columnList = this.sortData(val.filter(em=> !em.hide && em.is_search));
|
this.columnList = val.filter(em=> !em.hide && em.is_search);
|
||||||
this.params = this.groupByType(val);
|
this.params = this.groupByType(val);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -123,26 +123,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 排序
|
|
||||||
sortData(list){
|
|
||||||
const sortedArray = list.sort((a, b) => {
|
|
||||||
const priority = ['date_range', 'date'];
|
|
||||||
|
|
||||||
// 获取a和b的search_type在优先级数组中的索引
|
|
||||||
const aPriority = priority.indexOf(a.search_type);
|
|
||||||
const bPriority = priority.indexOf(b.search_type);
|
|
||||||
|
|
||||||
// 如果a在优先级数组中而b不在,a排在前面
|
|
||||||
if (aPriority !== -1 && bPriority === -1) return -1;
|
|
||||||
// 如果b在优先级数组中而a不在,b排在前面
|
|
||||||
if (bPriority !== -1 && aPriority === -1) return 1;
|
|
||||||
// 如果都在优先级数组中,按优先级数组中的顺序排序
|
|
||||||
if (aPriority !== -1 && bPriority !== -1) return aPriority - bPriority;
|
|
||||||
// 如果都不在优先级数组中,保持原顺序
|
|
||||||
return 0;
|
|
||||||
});
|
|
||||||
return sortedArray;
|
|
||||||
},
|
|
||||||
|
|
||||||
groupByType(list){
|
groupByType(list){
|
||||||
const grouped = {};
|
const grouped = {};
|
||||||
|
|||||||
@ -6,5 +6,5 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
//是否显示第三方授权登录
|
//是否显示第三方授权登录
|
||||||
MY_SHOW_LOGIN_OAUTH: false
|
MY_SHOW_LOGIN_OAUTH: true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -234,7 +234,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.finance.cost.import.post(params);
|
const res = await this.$API.finance.cost.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -300,7 +299,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.finance.cost.export.post(this.params);
|
const res = await this.$API.finance.cost.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -247,7 +247,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.finance.cost.summaryExport.post(this.reqParams);
|
const res = await this.$API.finance.cost.summaryExport.post(this.reqParams);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<el-container class="mainBox mainBoxHeaderNoBorder">
|
<el-container class="mainBox mainBoxHeaderNoBorder">
|
||||||
<el-header class="header">
|
<el-header class="header">
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<scImport ref="scImport" :size="size" type="51" :httpDisabled="httpDisabled" title="批量导入指定预警清单" @parentParams="importUpload" @importSuccess="importSuccess">
|
<scImport ref="scImport" :size="size" type="51" :httpDisabled="httpDisabled" title="批量导入排除清单" @parentParams="importUpload" @importSuccess="importSuccess">
|
||||||
<template #header>
|
<template #header>
|
||||||
<el-button v-auth="'warningExcludeImport'" type="primary" :size="size" plain @click="importFile" style="margin-right: 12px;">批量导入</el-button>
|
<el-button v-auth="'warningExcludeImport'" type="primary" :size="size" plain @click="importFile" style="margin-right: 12px;">批量导入</el-button>
|
||||||
</template>
|
</template>
|
||||||
@ -212,7 +212,7 @@ export default {
|
|||||||
const blob = new Blob([res]);
|
const blob = new Blob([res]);
|
||||||
const text = new Date().getTime();
|
const text = new Date().getTime();
|
||||||
const eLink = document.createElement('a');
|
const eLink = document.createElement('a');
|
||||||
eLink.download = "指定预警清单导入模版_"+text+'.xlsx';
|
eLink.download = "排除清单导入模版_"+text+'.xlsx';
|
||||||
eLink.style.display = 'none';
|
eLink.style.display = 'none';
|
||||||
eLink.href = URL.createObjectURL(blob);
|
eLink.href = URL.createObjectURL(blob);
|
||||||
document.body.appendChild(eLink);
|
document.body.appendChild(eLink);
|
||||||
@ -239,7 +239,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.early.exclude.import.post(params);
|
const res = await this.$API.early.exclude.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<list v-if="tabsTrue == 'list'"></list>
|
<list v-if="tabsTrue == 'list'"></list>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<el-tab-pane label="指定预警清单" name="exclude">
|
<el-tab-pane label="排除清单" name="exclude">
|
||||||
<exclude v-if="tabsTrue == 'exclude'"></exclude>
|
<exclude v-if="tabsTrue == 'exclude'"></exclude>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|||||||
@ -337,7 +337,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.early.earlyWarn.import.post(params);
|
const res = await this.$API.early.earlyWarn.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -378,7 +377,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.early.earlyWarn.export.post(this.params);
|
const res = await this.$API.early.earlyWarn.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -176,7 +176,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -175,7 +175,6 @@ export default {
|
|||||||
async importUpload(params) {
|
async importUpload(params) {
|
||||||
const res = await this.$API.orders.order.maintenance.import.post(params);
|
const res = await this.$API.orders.order.maintenance.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -265,7 +264,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -220,7 +220,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.orders.order.sock.import.post(params);
|
const res = await this.$API.orders.order.sock.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -290,7 +289,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.orders.order.sock.export.post(this.params);
|
const res = await this.$API.orders.order.sock.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -176,7 +176,6 @@ export default {
|
|||||||
async importUpload(params) {
|
async importUpload(params) {
|
||||||
const res = await this.$API.orders.order.maintenance.import.post(params);
|
const res = await this.$API.orders.order.maintenance.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -266,7 +265,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -302,8 +302,7 @@ export default {
|
|||||||
async importUpload(params) {
|
async importUpload(params) {
|
||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.orders.order.maintenance.import.post(params);
|
const res = await this.$API.orders.order.maintenance.import.post(params);
|
||||||
if(res.code === 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -440,7 +439,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -303,7 +303,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.orders.order.repair.import.post(params);
|
const res = await this.$API.orders.order.repair.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -175,7 +175,6 @@ export default {
|
|||||||
async importUpload(params) {
|
async importUpload(params) {
|
||||||
const res = await this.$API.orders.order.maintenance.import.post(params);
|
const res = await this.$API.orders.order.maintenance.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -265,7 +264,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -175,7 +175,6 @@ export default {
|
|||||||
async importUpload(params) {
|
async importUpload(params) {
|
||||||
const res = await this.$API.orders.order.maintenance.import.post(params);
|
const res = await this.$API.orders.order.maintenance.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -265,7 +264,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -111,7 +111,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.setup.material.import.post(params);
|
const res = await this.$API.setup.material.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -128,7 +128,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.setup.regional.import.post(params);
|
const res = await this.$API.setup.regional.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -22,11 +22,6 @@
|
|||||||
<el-table-column type="selection" align="center" width="40"></el-table-column>
|
<el-table-column type="selection" align="center" width="40"></el-table-column>
|
||||||
<el-table-column width="200" label="备件类别" prop="spare_parts_category"></el-table-column>
|
<el-table-column width="200" label="备件类别" prop="spare_parts_category"></el-table-column>
|
||||||
<el-table-column width="200" label="故障率" prop="failure_rate"></el-table-column>
|
<el-table-column width="200" label="故障率" prop="failure_rate"></el-table-column>
|
||||||
<el-table-column width="200" label="故障率计算时长" prop="duration">
|
|
||||||
<template #default="scope">
|
|
||||||
<span>{{scope.row.duration && scope.row.duration>0?scope.row.duration+'个月':scope.row.duration}}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column width="200" label="配置人" prop="creator_name"></el-table-column>
|
<el-table-column width="200" label="配置人" prop="creator_name"></el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="160">
|
<el-table-column label="操作" fixed="right" align="center" width="160">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@ -111,7 +106,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.setup.spare.import.post(params);
|
const res = await this.$API.setup.spare.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -208,7 +208,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.setup.bom.import.post(params);
|
const res = await this.$API.setup.bom.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -277,7 +276,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.setup.bom.export.post(this.params);
|
const res = await this.$API.setup.bom.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -282,7 +282,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.system.company.import.post(params);
|
const res = await this.$API.system.company.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -372,7 +371,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.system.company.export.post(this.params);
|
const res = await this.$API.system.company.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -189,14 +189,13 @@ export default {
|
|||||||
// 下载导出
|
// 下载导出
|
||||||
exportChangeShow(params){
|
exportChangeShow(params){
|
||||||
if(params.type == 8){
|
if(params.type == 8){
|
||||||
this.exportShow = params.status==0?true:false;
|
this.exportShow = params.status==0?true:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async exportData() {
|
async exportData() {
|
||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.system.log.export.post(this.params);
|
const res = await this.$API.system.log.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -70,7 +70,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.system.log.commandExport.post(this.params);
|
const res = await this.$API.system.log.commandExport.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -244,7 +244,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.system.spareInfo.import.post(params);
|
const res = await this.$API.system.spareInfo.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -317,7 +316,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.system.spareInfo.export.post(this.params);
|
const res = await this.$API.system.spareInfo.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -246,7 +246,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.system.spare.import.post(params);
|
const res = await this.$API.system.spare.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -321,7 +320,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.system.spare.export.post(this.params);
|
const res = await this.$API.system.spare.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -300,7 +300,6 @@
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.system.user.import.post(params);
|
const res = await this.$API.system.user.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -439,7 +438,6 @@
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.system.user.export.post();
|
const res = await this.$API.system.user.export.post();
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -43,7 +43,7 @@
|
|||||||
<el-input v-model="form.mobile" placeholder="请填写联系电话" clearable></el-input>
|
<el-input v-model="form.mobile" placeholder="请填写联系电话" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="电子邮件" prop="email">
|
<el-form-item label="电子邮件" prop="email">
|
||||||
<el-input v-model="form.email" :disabled="mode!=='add'" placeholder="请填写电子邮件" clearable></el-input>
|
<el-input v-model="form.email" placeholder="请填写电子邮件" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -176,7 +176,6 @@ export default {
|
|||||||
async importUpload(params) {
|
async importUpload(params) {
|
||||||
const res = await this.$API.orders.order.maintenance.import.post(params);
|
const res = await this.$API.orders.order.maintenance.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -266,7 +265,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -182,7 +182,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.shipment.out.bomExport.post(this.params);
|
const res = await this.$API.shipment.out.bomExport.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -238,7 +238,6 @@ export default {
|
|||||||
this.httpDisabled = true;
|
this.httpDisabled = true;
|
||||||
const res = await this.$API.shipment.out.import.post(params);
|
const res = await this.$API.shipment.out.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -277,7 +276,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.shipment.out.stockExport.post(this.params);
|
const res = await this.$API.shipment.out.stockExport.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -176,7 +176,6 @@ export default {
|
|||||||
async importUpload(params) {
|
async importUpload(params) {
|
||||||
const res = await this.$API.orders.order.maintenance.import.post(params);
|
const res = await this.$API.orders.order.maintenance.import.post(params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.$refs.scImport.setAnalysisShow(true);
|
|
||||||
this.$message.success('上传成功,开始导入数据');
|
this.$message.success('上传成功,开始导入数据');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -266,7 +265,6 @@ export default {
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
const res = await this.$API.orders.order.maintenance.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -52,7 +52,6 @@
|
|||||||
logs: defineAsyncComponent(() => import('./user/logs')),
|
logs: defineAsyncComponent(() => import('./user/logs')),
|
||||||
upToEnterprise: defineAsyncComponent(() => import('./user/upToEnterprise')),
|
upToEnterprise: defineAsyncComponent(() => import('./user/upToEnterprise')),
|
||||||
bind: defineAsyncComponent(() => import('./user/bind')),
|
bind: defineAsyncComponent(() => import('./user/bind')),
|
||||||
ExportLog: defineAsyncComponent(() => import('./user/exportLog')),
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -85,11 +84,6 @@
|
|||||||
{
|
{
|
||||||
groupName: "数据管理",
|
groupName: "数据管理",
|
||||||
list: [
|
list: [
|
||||||
{
|
|
||||||
icon: "sc-icon-ExportLog",
|
|
||||||
title: "导出记录",
|
|
||||||
component: "exportLog"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
icon: "sc-icon-UserLog",
|
icon: "sc-icon-UserLog",
|
||||||
title: "操作日志",
|
title: "操作日志",
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="邮箱地址" prop="email">
|
<el-form-item label="邮箱地址" prop="email">
|
||||||
<el-input v-model="form.email" disabled></el-input>
|
<el-input v-model="form.email"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="个性签名" prop="about">
|
<el-form-item label="个性签名" prop="about">
|
||||||
<el-input v-model="form.about" type="textarea"></el-input>
|
<el-input v-model="form.about" type="textarea"></el-input>
|
||||||
|
|||||||
@ -1,190 +0,0 @@
|
|||||||
<template>
|
|
||||||
<el-card class="logCard" shadow="never" header="导出记录">
|
|
||||||
<el-main class="nopadding">
|
|
||||||
<div class="searchMain logSearchMain">
|
|
||||||
<scTableSearch ref="scSearch" :searchList="list.column" :paramsData="params" :searchShow="searchShow" @fetchSelectData="getSelectData" @changeHeaderData="getHeaderData"></scTableSearch>
|
|
||||||
|
|
||||||
<div class="searchItem searchBtn" v-if="searchHeaderShow">
|
|
||||||
<el-button :size="size" :icon="searchShow?'el-icon-ArrowUpBold':'el-icon-ArrowDownBold'" @click="searchShowClick">{{searchShow?'收起':'更多'}}</el-button>
|
|
||||||
<el-button :size="size" type="primary" icon="el-icon-search" @click="upSearch">查询</el-button>
|
|
||||||
<el-button :size="size" type="info" icon="el-icon-RefreshRight" @click="reset">重置</el-button>
|
|
||||||
</div>
|
|
||||||
<div class="exportBtn">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<scTable ref="table" :apiObj="list.apiObj" :column="list.column" row-key="id" stripe border :size="size" @row-click="rowClick" @columnBack="columnBack">
|
|
||||||
<template #file_url="scope">
|
|
||||||
<span class="tableColor primary" @click="linkExcel(scope.row)"><el-icon><sc-icon-Excel/></el-icon> 立即下载</span>
|
|
||||||
</template>
|
|
||||||
</scTable>
|
|
||||||
</el-main>
|
|
||||||
</el-card>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import {eventBus} from "@/utils/eventBus";
|
|
||||||
export default {
|
|
||||||
name: 'exportLog',
|
|
||||||
components:{
|
|
||||||
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
size:"small",
|
|
||||||
setMap:{
|
|
||||||
|
|
||||||
},
|
|
||||||
list:{
|
|
||||||
apiObj: this.$API.user.record,
|
|
||||||
column: [],
|
|
||||||
},
|
|
||||||
exportShow:false,
|
|
||||||
searchShow:false,
|
|
||||||
searchHeaderShow:false,
|
|
||||||
filterMap:{
|
|
||||||
data:{}
|
|
||||||
},
|
|
||||||
params: {},
|
|
||||||
}
|
|
||||||
},
|
|
||||||
provide(){
|
|
||||||
return{
|
|
||||||
filterUploadClick:this.filterClick,
|
|
||||||
filterUploadParams:this.filterParams,
|
|
||||||
filterTagClose:this.tagClose,
|
|
||||||
filterModelParams:this.filterModelParams,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
watch:{
|
|
||||||
'list.column':{
|
|
||||||
handler(val){
|
|
||||||
this.searchHeaderShow = val.length>0 && val.some(em=>em.is_search);
|
|
||||||
},
|
|
||||||
immediate:false,
|
|
||||||
deep:true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed:{
|
|
||||||
filterModelParams(){
|
|
||||||
return this.filterMap
|
|
||||||
},
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
|
|
||||||
},
|
|
||||||
methods:{
|
|
||||||
/**
|
|
||||||
* 表格检索开始
|
|
||||||
* */
|
|
||||||
columnBack(val){
|
|
||||||
val.forEach(item=>{
|
|
||||||
if(item.prop === "type"){
|
|
||||||
item.data = this.setMap.typeList;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.list.column = val;
|
|
||||||
},
|
|
||||||
async filterClick(item) {
|
|
||||||
let {data, params} = item;
|
|
||||||
let filterParams = Object.assign(this.params,params);
|
|
||||||
this.filterMap.data = filterParams;
|
|
||||||
let searchParams = this.$TOOL.objCopy(this.params);
|
|
||||||
searchParams.creator_id = {
|
|
||||||
operator:"in",
|
|
||||||
value:[this.$TOOL.data.get('USER_INFO').id]
|
|
||||||
};
|
|
||||||
searchParams.field = ""
|
|
||||||
if (typeof data.prop === 'string') {
|
|
||||||
searchParams.field = data.prop;
|
|
||||||
} else {
|
|
||||||
searchParams.field = data.prop[0];
|
|
||||||
}
|
|
||||||
if (data.search_type == 'select' || data.search_type == 'checkbox') {
|
|
||||||
await this.getField(data,searchParams);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
filterParams(params){
|
|
||||||
let filterParams = Object.assign(this.params,params);
|
|
||||||
this.filterMap.data = filterParams;
|
|
||||||
this.upSearch();
|
|
||||||
},
|
|
||||||
tagClose(params){
|
|
||||||
let filterParams = Object.assign(this.params,params);
|
|
||||||
this.filterMap.data = filterParams;
|
|
||||||
},
|
|
||||||
searchShowClick(){
|
|
||||||
this.searchShow = !this.searchShow;
|
|
||||||
eventBus.$emit('close-all-popovers');
|
|
||||||
},
|
|
||||||
getHeaderData(params){
|
|
||||||
this.params = params;
|
|
||||||
this.filterMap.data = params;
|
|
||||||
},
|
|
||||||
async getSelectData(item) {
|
|
||||||
let {data, params} = item;
|
|
||||||
this.params = params;
|
|
||||||
this.filterMap.data = params;
|
|
||||||
let searchParams = this.$TOOL.objCopy(params);
|
|
||||||
searchParams.creator_id = {
|
|
||||||
operator:"in",
|
|
||||||
value:[this.$TOOL.data.get('USER_INFO').id]
|
|
||||||
};
|
|
||||||
searchParams.field = ""
|
|
||||||
if (typeof data.prop === 'string') {
|
|
||||||
searchParams.field = data.prop;
|
|
||||||
} else {
|
|
||||||
searchParams.field = data.prop[0];
|
|
||||||
}
|
|
||||||
if (data.search_type == 'select' || data.search_type == 'checkbox') {
|
|
||||||
await this.getField(data,searchParams)
|
|
||||||
}
|
|
||||||
},
|
|
||||||
async getField(data,searchParams) {
|
|
||||||
const res = await this.$API.system.log.operation.post(searchParams);
|
|
||||||
if (res.code == 200) {
|
|
||||||
if (res.data && res.data.length > 0) {
|
|
||||||
res.data.forEach(item => {
|
|
||||||
if (data.prop === 'type') {
|
|
||||||
item.label = item[data.prop+'_text'];
|
|
||||||
item.value = item[data.prop];
|
|
||||||
} else {
|
|
||||||
item.label = item[data.prop];
|
|
||||||
item.value = item[data.prop];
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
this.list.column.forEach(item => {
|
|
||||||
if (item.prop == data.prop) {
|
|
||||||
item.data = res.data;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/** 表格检索结束 */
|
|
||||||
|
|
||||||
linkExcel(row){
|
|
||||||
window.open(row.file_url,'_blank');
|
|
||||||
},
|
|
||||||
upSearch(){
|
|
||||||
this.$refs.table.upData(this.params);
|
|
||||||
},
|
|
||||||
reset(){
|
|
||||||
this.params = {};
|
|
||||||
this.filterMap.data = {};
|
|
||||||
this.$refs.scSearch.reload();
|
|
||||||
eventBus.$emit('reset-popovers');
|
|
||||||
this.$refs.table.reload();
|
|
||||||
},
|
|
||||||
rowClick(){
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.logCard :deep(.el-card__body){padding: 0 !important;}
|
|
||||||
.tableColor.primary{color: var(--el-color-primary);cursor: pointer;display: flex;align-items: center;}
|
|
||||||
.tableColor .el-icon{margin-right: 8px;}
|
|
||||||
</style>
|
|
||||||
@ -200,7 +200,6 @@
|
|||||||
if(this.exportShow) return
|
if(this.exportShow) return
|
||||||
const res = await this.$API.user.export.post(this.params);
|
const res = await this.$API.user.export.post(this.params);
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.exportShow = true;
|
|
||||||
this.$message.success('开始导出');
|
this.$message.success('开始导出');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user