代码备份

master
anthonyywj2 3 years ago
parent ccf5d78f37
commit 0e714f41ad

@ -1,7 +1,7 @@
{ {
"BASE_URL":"http://139.159.187.130/SP_SYNC_SERVER", "BASE_URL":"http://192.168.0.109:9989",
"SERVER_IP": "http://139.159.187.130/" "SERVER_IP": "http://192.168.0.109:9989/"
} }

File diff suppressed because one or more lines are too long

@ -1 +1 @@
<!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"><link rel=icon href=favicon.ico><title>UDI管理系统数据同步</title><link rel=stylesheet href=https://unpkg.com/element-ui/lib/theme-chalk/index.css><link href=css/home.44f0d423.css rel=prefetch><link href=js/home.58925fb8.js rel=prefetch><link href=css/app.22bbfd20.css rel=preload as=style><link href=css/chunk-vendors.9b8ad7f5.css rel=preload as=style><link href=js/app.1beb68fc.js rel=preload as=script><link href=js/chunk-vendors.d817ae0e.js rel=preload as=script><link href=css/chunk-vendors.9b8ad7f5.css rel=stylesheet><link href=css/app.22bbfd20.css rel=stylesheet></head><body><div id=app></div><script src=./tinymce4.7.5/tinymce.min.js></script><script src=./vue.runtime.min.js></script><script src=./vuex.min.js></script><script src=./vue-router.min.js></script><script src=./index.js></script>ga('create', 'UA-110990780-1', 'auto'); ga('send', 'pageview'); window.addEventListener('hashchange', function () { ga('set', 'page', window.location.href); ga('send', 'pageview'); });<script src=js/chunk-vendors.d817ae0e.js></script><script src=js/app.1beb68fc.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"><link rel=icon href=favicon.ico><title>UDI管理系统数据同步</title><link rel=stylesheet href=https://unpkg.com/element-ui/lib/theme-chalk/index.css><link href=css/home.44f0d423.css rel=prefetch><link href=js/home.58925fb8.js rel=prefetch><link href=css/app.c7692bee.css rel=preload as=style><link href=css/chunk-vendors.9b8ad7f5.css rel=preload as=style><link href=js/app.d1d77447.js rel=preload as=script><link href=js/chunk-vendors.d817ae0e.js rel=preload as=script><link href=css/chunk-vendors.9b8ad7f5.css rel=stylesheet><link href=css/app.c7692bee.css rel=stylesheet></head><body><div id=app></div><script src=./tinymce4.7.5/tinymce.min.js></script><script src=./vue.runtime.min.js></script><script src=./vuex.min.js></script><script src=./vue-router.min.js></script><script src=./index.js></script>ga('create', 'UA-110990780-1', 'auto'); ga('send', 'pageview'); window.addEventListener('hashchange', function () { ga('set', 'page', window.location.href); ga('send', 'pageview'); });<script src=js/chunk-vendors.d817ae0e.js></script><script src=js/app.d1d77447.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,7 +1,7 @@
{ {
"BASE_URL":"http://127.0.0.1:9989", "BASE_URL":"http://192.168.0.109:9989",
"SERVER_IP": "http://127.0.0.1:9989/" "SERVER_IP": "http://192.168.0.109:9989/"
} }

@ -256,7 +256,7 @@ export const asyncRouterMap = [
redirect: "/spsync/udiInfoUpload", redirect: "/spsync/udiInfoUpload",
component: Home, component: Home,
icon: "tongyong", icon: "tongyong",
name: "供应商平台数据", name: "UDI自助平台数据",
hidden: false, hidden: false,
noDropdown: false, noDropdown: false,
meta: { meta: {

@ -1,112 +1,113 @@
<template> <template>
<div> <div>
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :inline="true" :model="query" class="query-form" size="mini">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="filterQuery.genKey" placeholder="记录ID"></el-input> <el-input v-model="filterQuery.genKey" placeholder="记录ID"></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.status" placeholder="处理状态"> <el-select v-model="filterQuery.status" placeholder="处理状态">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="处理中" value="0"></el-option> <el-option label="处理中" value="0"></el-option>
<el-option label="已处理" value="1"></el-option> <el-option label="已处理" value="1"></el-option>
<el-option label="异常" value="2"></el-option> <el-option label="异常" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="getList"></el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="list" :data="list"
style="width: 100%" style="width: 100%"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="记录ID" label="记录ID"
prop="genKey" prop="genKey"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="来源" label="来源"
prop="fromType" prop="fromType"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="更新日期" label="更新日期"
prop="updateTime" prop="updateTime"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="状态" label="状态"
prop="status" prop="status"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag
:type="statusFilterType(scope.row.status)" :type="statusFilterType(scope.row.status)"
>{{ status[scope.row.status] }} >{{ status[scope.row.status] }}
</el-tag </el-tag
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" width="160"> <el-table-column label="操作" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="handleDetailClick(scope.row)" @click.native.stop="handleDetailClick(scope.row)"
>详情 >详情
</el-button </el-button
> >
<el-button <el-button
type="text" type="text"
size="small" size="small"
@click.native.stop="deleteDialog(scope.row.id)" :disabled="scope.row.status === 3"
>删除 @click.native.stop="uploadDialog(scope.row)"
</el-button >上传自助平台
> </el-button
<el-button >
type="text" <el-button
size="small" type="text"
:disabled="scope.row.status === 3" size="small"
@click.native.stop="uploadDialog(scope.row)" @click.native.stop="deleteDialog(scope.row.id)"
>上传 >删除
</el-button </el-button
> >
</template>
</el-table-column>
</el-table>
</template>
</el-table-column>
</el-table>
<el-dialog
title="往来单位信息导入详情"
:visible.sync="corpImportDetailVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="85%"
v-if="corpImportDetailVisible"
>
<corpImportDetail :currentRow="currentRow" :closeDialog="corpImportDetail"></corpImportDetail>
</el-dialog>
<el-pagination <el-dialog
:page-size="filterQuery.limit" title="往来单位信息导入详情"
@current-change="handleCurrentChange" :visible.sync="corpImportDetailVisible"
layout="prev, pager, next" :close-on-click-modal="false"
:total="total" :close-on-press-escape="false"
></el-pagination> width="85%"
</div> v-if="corpImportDetailVisible"
>
<corpImportDetail :currentRow="currentRow" :closeDialog="corpImportDetail"></corpImportDetail>
</el-dialog>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
></el-pagination>
</div>
</template> </template>
<script> <script>
@ -115,180 +116,180 @@ import {filterLog, deleteLog, uploadSmp} from "../../api/sync/corpImport";
import corpImportDetail from "./CorpImportDetail"; import corpImportDetail from "./CorpImportDetail";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
genKey: null, genKey: null,
status: null, status: null,
fromType: null, fromType: null,
page: 1, page: 1,
limit: 20, limit: 20,
thirdSysFk: null, thirdSysFk: null,
}, },
corpImportDetailVisible: false, corpImportDetailVisible: false,
checked: false, checked: false,
list: [], list: [],
detailList: [], detailList: [],
thirdSys: [], thirdSys: [],
thirdSysDetail: null, thirdSysDetail: null,
total: 0, total: 0,
currentRow: null, currentRow: null,
status: { status: {
0: "等待上传", 0: "等待上传",
1: "等待上传", 1: "等待上传",
2: "上传失败", 2: "上传失败",
3: "上传完成" 3: "上传完成"
}, },
uploadFileUrl: null, uploadFileUrl: null,
uploadData: { uploadData: {
thirdSys: "thirdId", thirdSys: "thirdId",
}, },
templateDlUrl: null, templateDlUrl: null,
}; };
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
fromType: null,
genKey: null,
status: null,
page: 1,
limit: 20,
thirdSysFk: null,
};
this.getList();
},
getList() {
this.loading = true;
filterLog(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
}, },
uploadDialog(row) {
this.$confirm("是否确定上传至供应商平台?", "提示", { methods: {
confirmButtonText: "确定", onReset() {
cancelButtonText: "取消", this.$router.push({
type: "warning" path: "",
}) });
.then(() => { this.filterQuery = {
let query = { fromType: null,
genKey: row.genKey, genKey: null,
status: null,
page: 1,
limit: 20,
thirdSysFk: null,
}; };
uploadSmp(query) this.getList();
},
getList() {
this.loading = true;
filterLog(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.getList(); this.list = response.data.list || [];
this.total = response.data.total || 0;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = [];
this.total = 0;
}); });
},
uploadDialog(row) {
this.$confirm("是否确定上传至供应商平台?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
let query = {
genKey: row.genKey,
};
uploadSmp(query)
.then((response) => {
this.loading = false;
this.getList();
})
.catch(() => {
this.loading = false;
});
}) })
.catch(() => { .catch(() => {
}); });
}, },
handleDetailClick(row) { handleDetailClick(row) {
this.currentRow = row; this.currentRow = row;
console.log(this.currentRow.genKey) console.log(this.currentRow.genKey)
this.corpImportDetailVisible = true; this.corpImportDetailVisible = true;
}, },
cancelDialog() { cancelDialog() {
this.corpImportDetailVisible = false; this.corpImportDetailVisible = false;
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.filterQuery.page = val; this.filterQuery.page = val;
this.getList(); this.getList();
}, },
deleteDialog(rowId) { deleteDialog(rowId) {
this.$confirm("此操作将删除该内部码信息, 是否继续?", "提示", { this.$confirm("此操作将删除该内部码信息, 是否继续?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}) })
.then(() => { .then(() => {
let dQuery = { let dQuery = {
id: rowId, id: rowId,
}; };
deleteLog(dQuery) deleteLog(dQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("删除成功"); this.$message.success("删除成功");
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
this.getList(); this.getList();
})
.catch(() => {
this.loading = false;
});
}) })
.catch(() => { .catch(() => {
this.loading = false;
}); });
}) },
.catch(() => { handleChange(response, files, fileList) {
}); console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
this.getList();
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success("文件上传成功,请稍后刷新查看!");
this.getList();
}
},
statusFilterType(status) {
const statusMap = {
0: "warning",
1: "warning",
2: "danger",
3: "success",
};
return statusMap[status];
},
}, },
handleChange(response, files, fileList) { mounted() {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
this.getList();
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.$message.success("文件上传成功,请稍后刷新查看!");
this.getList();
}
}, },
statusFilterType(status) { components: {corpImportDetail},
const statusMap = { created() {
0: "warning", this.getList();
1: "warning",
2: "danger",
3: "success",
};
return statusMap[status];
}, },
},
mounted() {
},
components: {corpImportDetail},
created() {
this.getList();
},
}; };
</script> </script>
<style> <style>
.itemTag { .itemTag {
float: left; float: left;
text-align: left; text-align: left;
margin-top: 10px; margin-top: 10px;
width: 100px; width: 100px;
} }
.text { .text {
font-size: 13px; font-size: 13px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.el-row { .el-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.el-col { .el-col {
border-radius: 4px; border-radius: 4px;
flex-wrap: wrap; flex-wrap: wrap;
} }
</style> </style>

@ -1,112 +1,114 @@
<template> <template>
<div> <div>
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :inline="true" :model="query" class="query-form" size="mini">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="filterQuery.genKey" placeholder="记录ID"></el-input> <el-input v-model="filterQuery.genKey" placeholder="记录ID"></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.status" placeholder="处理状态"> <el-select v-model="filterQuery.status" placeholder="处理状态">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="处理中" value="0"></el-option> <el-option label="处理中" value="0"></el-option>
<el-option label="已处理" value="1"></el-option> <el-option label="已处理" value="1"></el-option>
<el-option label="异常" value="2"></el-option> <el-option label="异常" value="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="getList"></el-button>
</el-button-group> </el-button-group>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<el-table <el-table
v-loading="loading" v-loading="loading"
:data="list" :data="list"
style="width: 100%" style="width: 100%"
> >
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column <el-table-column
label="记录ID" label="记录ID"
prop="genKey" prop="genKey"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="来源" label="来源"
prop="fromType" prop="fromType"
show-overflow-tooltip show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="更新日期" label="更新日期"
prop="updateTime" prop="updateTime"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="状态" label="状态"
prop="status" prop="status"
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag
:type="statusFilterType(scope.row.status)" :type="statusFilterType(scope.row.status)"
>{{ status[scope.row.status] }} >{{ status[scope.row.status] }}
</el-tag </el-tag
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" width="160"> <el-table-column label="操作" fixed="right" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <!-- <el-button-->
type="text" <!-- type="text"-->
size="small" <!-- size="small"-->
@click.native.stop="handleDetailClick(scope.row)" <!-- @click.native.stop="handleDetailClick(scope.row)"-->
>详情 <!-- >详情-->
</el-button <!-- </el-button-->
> <!-- >-->
<el-button
type="text"
size="small"
@click.native.stop="deleteDialog(scope.row.id)"
>删除
</el-button
>
<el-button <el-button
type="text" type="text"
size="small" size="small"
:disabled="scope.row.status === 3" :disabled="scope.row.status === 3"
@click.native.stop="uploadDialog(scope.row)" @click.native.stop="uploadDialog(scope.row)"
>上传 >上传自助平台
</el-button </el-button
> >
</template> <el-button
</el-table-column> type="text"
</el-table> size="small"
@click.native.stop="deleteDialog(scope.row.id)"
>删除
</el-button
>
<el-dialog </template>
title="器械信息导入详情" </el-table-column>
:visible.sync="udiImportDetailVisible" </el-table>
:close-on-click-modal="false"
:close-on-press-escape="false"
width="85%"
v-if="udiImportDetailVisible"
>
<udiInfoImportDetail :currentRow="currentRow" :closeDialog="cancelDialog"></udiInfoImportDetail>
</el-dialog>
<el-pagination
:page-size="filterQuery.limit" <el-dialog
@current-change="handleCurrentChange" title="器械信息导入详情"
layout="prev, pager, next" :visible.sync="udiImportDetailVisible"
:total="total" :close-on-click-modal="false"
></el-pagination> :close-on-press-escape="false"
</div> width="85%"
v-if="udiImportDetailVisible"
>
<udiInfoImportDetail :currentRow="currentRow" :closeDialog="cancelDialog"></udiInfoImportDetail>
</el-dialog>
<el-pagination
:page-size="filterQuery.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
></el-pagination>
</div>
</template> </template>
<script> <script>
@ -114,200 +116,200 @@ import {filterDetail, filterLog, deleteLog, uploadSmp} from "../../api/sync/udii
import udiInfoImportDetail from "./UdiInfoImportDetail"; import udiInfoImportDetail from "./UdiInfoImportDetail";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
genKey: null, genKey: null,
status: null, status: null,
fromType: null, fromType: null,
dataType: 1, dataType: 1,
page: 1, page: 1,
limit: 20, limit: 20,
thirdSysFk: null, thirdSysFk: null,
}, },
udiImportDetailVisible: false, udiImportDetailVisible: false,
checked: false, checked: false,
list: [], list: [],
detailList: [], detailList: [],
thirdSys: [], thirdSys: [],
thirdSysDetail: null, thirdSysDetail: null,
total: 0, total: 0,
currentRow: null, currentRow: null,
editQuery: null, editQuery: null,
fromStatus: { fromStatus: {
0: "产品信息", 0: "产品信息",
1: "库存信息", 1: "库存信息",
2: "异常第三方上传" 2: "异常第三方上传"
}, },
status: { status: {
0: "等待上传", 0: "等待上传",
1: "等待上传", 1: "等待上传",
2: "上传失败", 2: "上传失败",
3: "上传完成" 3: "上传完成"
}, },
uploadFileUrl: null, uploadFileUrl: null,
uploadData: { uploadData: {
thirdSys: "thirdId", thirdSys: "thirdId",
}, },
templateDlUrl: null, templateDlUrl: null,
}; };
},
methods: {
onReset() {
this.$router.push({
path: "",
});
this.filterQuery = {
fromType: null,
genKey: null,
status: null,
page: 1,
limit: 20,
dataType: 1,
thirdSysFk: null,
};
this.getList();
},
getList() {
this.loading = true;
filterLog(this.filterQuery)
.then((response) => {
this.loading = false;
this.list = response.data.list || [];
this.total = response.data.total || 0;
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
handleDetailClick(row) {
this.currentRow = row;
console.log(this.currentRow.genKey)
this.udiImportDetailVisible = true;
},
cancelDialog() {
this.udiImportDetailVisible = false;
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
}, },
uploadDialog(row) { methods: {
this.$confirm("是否确定上传至供应商平台?", "提示", { onReset() {
confirmButtonText: "确定", this.$router.push({
cancelButtonText: "取消", path: "",
type: "warning" });
}) this.filterQuery = {
.then(() => { fromType: null,
let query = { genKey: null,
genKey: row.genKey, status: null,
page: 1,
limit: 20,
dataType: 1,
thirdSysFk: null,
}; };
uploadSmp(query) this.getList();
},
getList() {
this.loading = true;
filterLog(this.filterQuery)
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
this.getList(); this.list = response.data.list || [];
this.total = response.data.total || 0;
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
this.list = [];
this.total = 0;
}); });
},
}) handleDetailClick(row) {
.catch(() => { this.currentRow = row;
}); console.log(this.currentRow.genKey)
}, this.udiImportDetailVisible = true;
},
cancelDialog() {
this.udiImportDetailVisible = false;
},
handleCurrentChange(val) {
this.filterQuery.page = val;
this.getList();
},
uploadDialog(row) {
this.$confirm("是否确定上传至供应商平台?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
let query = {
genKey: row.genKey,
};
uploadSmp(query)
.then((response) => {
this.loading = false;
this.getList();
})
.catch(() => {
this.loading = false;
});
deleteDialog(rowId) {
this.$confirm("此操作将删除该内部码信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let dQuery = {
id: rowId,
};
deleteLog(dQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("删除成功");
} else {
this.$message.error(response.message);
}
this.getList();
}) })
.catch(() => { .catch(() => {
this.loading = false;
}); });
}) },
.catch(() => {
}); deleteDialog(rowId) {
}, this.$confirm("此操作将删除该内部码信息, 是否继续?", "提示", {
jumpDl() { confirmButtonText: "确定",
window.open(this.templateDlUrl, '_blank'); cancelButtonText: "取消",
}, type: "warning",
handleChange(response, files, fileList) { })
console.log(response); .then(() => {
if (response.code != 20000) { let dQuery = {
this.$message.error(response.message); id: rowId,
} else { };
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]); deleteLog(dQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("删除成功");
} else {
this.$message.error(response.message);
}
this.getList();
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
});
},
jumpDl() {
window.open(this.templateDlUrl, '_blank');
},
handleChange(response, files, fileList) {
console.log(response);
if (response.code != 20000) {
this.$message.error(response.message);
} else {
// console.log(files[0] + "\n" + this.fileList[0] + "\n" + fileList[0]);
this.getList();
this.$message.success("文件上传成功,请稍后刷新查看!");
}
},
statusFilterType(status) {
const statusMap = {
0: "warning",
1: "warning",
2: "danger",
3: "success",
};
return statusMap[status];
},
}
,
mounted() {
}
,
components: {
udiInfoImportDetail
}
,
created() {
this.getList(); this.getList();
this.$message.success("文件上传成功,请稍后刷新查看!"); }
} ,
},
statusFilterType(status) {
const statusMap = {
0: "warning",
1: "warning",
2: "danger",
3: "success",
};
return statusMap[status];
},
}
,
mounted() {
}
,
components: {
udiInfoImportDetail
}
,
created() {
this.getList();
}
,
} }
; ;
</script> </script>
<style> <style>
.itemTag { .itemTag {
float: left; float: left;
text-align: left; text-align: left;
margin-top: 10px; margin-top: 10px;
width: 100px; width: 100px;
} }
.text { .text {
font-size: 13px; font-size: 13px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.el-row { .el-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.el-col { .el-col {
border-radius: 4px; border-radius: 4px;
flex-wrap: wrap; flex-wrap: wrap;
} }
</style> </style>

Loading…
Cancel
Save