fix:修改表格文件路径
This commit is contained in:
parent
f9578692a7
commit
8363f86f50
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -256,7 +256,7 @@ export default {
|
||||||
this.impType = type;
|
this.impType = type;
|
||||||
let file_url = '';
|
let file_url = '';
|
||||||
if(type=='ea'){
|
if(type=='ea'){
|
||||||
file_url = "media/default/评评审情况统计表.xlsx";
|
file_url = "media/default/外审员情况表.xlsx";
|
||||||
}
|
}
|
||||||
let base_url = this.downloadUrl.substr(0, this.downloadUrl.length - 3);
|
let base_url = this.downloadUrl.substr(0, this.downloadUrl.length - 3);
|
||||||
this.downloadUrl = base_url+file_url;
|
this.downloadUrl = base_url+file_url;
|
||||||
|
|
|
@ -1,104 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="app-container">
|
|
||||||
<el-card style="margin-top: 10px">
|
|
||||||
<el-table :data="tableData.results" style="width: 100%" v-loading="listLoading"
|
|
||||||
border fit stripe
|
|
||||||
highlight-current-row>
|
|
||||||
<el-table-column prop="company_name" label="公司名称" width="180"></el-table-column>
|
|
||||||
<el-table-column label="操作" width="120" >
|
|
||||||
<template slot-scope="scope">{{ curdOp[scope.row.action] }}</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="change_time" label="修改时间" width="180"></el-table-column>
|
|
||||||
<el-table-column prop="change_reason" label="变更原因" width="180"></el-table-column>
|
|
||||||
<el-table-column label="资质名称" width="180">
|
|
||||||
<template v-slot="scope">
|
|
||||||
{{ scope.row.val_new.name }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="变更详情">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-tag v-for="(diff, index) in scope.row.difference" :key="index">
|
|
||||||
{{ resultsMap[diff.name] }}: {{ diff.old }} -> {{ diff.new }}
|
|
||||||
</el-tag>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
|
|
||||||
</el-table>
|
|
||||||
<pagination v-show="tableData.count > 0" :total="tableData.count" :page.sync="listQuery.page"
|
|
||||||
:limit.sync="listQuery.page_size" @pagination="getTableList" />
|
|
||||||
</el-card>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
<script>
|
|
||||||
import checkPermission from "@/utils/permission";
|
|
||||||
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
|
||||||
import Treeselect from "@riophae/vue-treeselect";
|
|
||||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
||||||
import { getDictList, getDictTypeList } from "@/api/dict";
|
|
||||||
import { getChangeInfo} from "@/api/qualificationInfo";
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: { Pagination, Treeselect },
|
|
||||||
data(){
|
|
||||||
return {
|
|
||||||
listLoading: false,
|
|
||||||
listQuery: {
|
|
||||||
page: 1,
|
|
||||||
page_size: 20,
|
|
||||||
},
|
|
||||||
tableColumns: [],
|
|
||||||
tableData: {
|
|
||||||
count: 0
|
|
||||||
},
|
|
||||||
curdOp:{"update":"更新","create":"创建","delete":"删除"},
|
|
||||||
resultsMap:{
|
|
||||||
"company_name":"公司名称",
|
|
||||||
"name":"资质名称",
|
|
||||||
"quali_type":"资质类型",
|
|
||||||
"org":"发证单位",
|
|
||||||
"org_date":"发证日期",
|
|
||||||
"expiration_date":"截至日期",
|
|
||||||
"scope":"资质范围",
|
|
||||||
"number":"参数数量",
|
|
||||||
"cie_path":"证书路径",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
let that = this;
|
|
||||||
// let height1 = document.getElementsByClassName('app-main')[0].clientHeight;
|
|
||||||
// let height2 = document.getElementsByClassName('elHeader')[0].clientHeight;
|
|
||||||
// that.tableHeight = height1 - height2 - 70;
|
|
||||||
// console.log(that.tableHeight)
|
|
||||||
that.getList();
|
|
||||||
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
|
|
||||||
//提交表单
|
|
||||||
getTableList(){
|
|
||||||
this.getList()
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
checkPermission,
|
|
||||||
|
|
||||||
getList() {
|
|
||||||
this.listLoading = true;
|
|
||||||
this.tableData.results =[];
|
|
||||||
this.tableData.count =0;
|
|
||||||
getChangeInfo(this.listQuery).then((response) => {
|
|
||||||
console.log(response);
|
|
||||||
if (response.data) {
|
|
||||||
this.tableData = response.data;
|
|
||||||
this.tableColumns = response.data.results
|
|
||||||
console.log(this.tableColumns)
|
|
||||||
}
|
|
||||||
this.listLoading = false;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<style></style>
|
|
|
@ -260,7 +260,7 @@ export default {
|
||||||
getMyQi().then((response) => {
|
getMyQi().then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
let filename = '质量活动表.xlsx';
|
let filename = '资质变更情况统计表.xlsx';
|
||||||
let tableData = response.data;
|
let tableData = response.data;
|
||||||
console.log(tableData)
|
console.log(tableData)
|
||||||
const ws = XLSX.utils.json_to_sheet(tableData.results);
|
const ws = XLSX.utils.json_to_sheet(tableData.results);
|
||||||
|
|
|
@ -260,7 +260,7 @@ export default {
|
||||||
getAllQi().then((response) => {
|
getAllQi().then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
let filename = '质量活动表.xlsx';
|
let filename = '资质情况统计表.xlsx';
|
||||||
let tableData = response.data;
|
let tableData = response.data;
|
||||||
console.log(tableData)
|
console.log(tableData)
|
||||||
const ws = XLSX.utils.json_to_sheet(tableData.results);
|
const ws = XLSX.utils.json_to_sheet(tableData.results);
|
||||||
|
|
|
@ -22,8 +22,8 @@ import os
|
||||||
import traceback
|
import traceback
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
# EXCEL_PATH = os.path.join(settings.BASE_DIR, 'excel')
|
EXCEL_PATH = os.path.join(settings.BASE_DIR, "media/default/检验检测服务业统计数据上报任务-空表.xlsx")
|
||||||
EXCEL_PATH = "C:/code/pdf_exc/检验检测服务业统计数据上报任务-空表.xlsx"
|
# EXCEL_PATH = "C:/code/pdf_exc/检验检测服务业统计数据上报任务-空表.xlsx"
|
||||||
|
|
||||||
|
|
||||||
class ImpMixin:
|
class ImpMixin:
|
||||||
|
|
Loading…
Reference in New Issue