@@ -133,10 +146,10 @@
:headers="upHeaders"
:file-list="fileList"
:limit="1"
- accept=".doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip">
+ accept=".doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip, .rar">
取消
@@ -188,13 +201,15 @@ const defaultContent = {
name: "",
roles: "",
collaborators: "",
- orgunits: "",
+ orgunits: "",
place: "",
activate_time: "",
participations: "",
function: "",
- earnings: ""
- };
+ earnings: "",
+ file:"",
+ };
+
export default {
components: { Pagination, Treeselect },
@@ -210,6 +225,21 @@ export default {
participations: "",
function: "",
earnings: "",
+ file: " "
+ },
+ formLabelWidth: "120px",
+ dialogFormVisible: false,
+ dialogStatus: "",
+ rules: {
+ name: [{ required: true, message: "请输入名称", trigger: "blur" }],
+ },
+ list: null,
+ listLoading: true,
+ downloadLoading: false,
+ filename: "",
+ autoWidth: true,
+ bookType: "xlsx",
+ importHeaders: {
},
upHeaders: upHeaders(),
upUrl: upUrl(),
@@ -254,7 +284,6 @@ export default {
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();
},
@@ -310,12 +339,10 @@ export default {
if (!this.exportForm.startDate || !this.exportForm.endDate) {
this.$message.error('请选择完整的起止日期!');
return;}
- console.log(this.exportForm)
exportData(this.exportForm).then((response) => {
if (response.data) {
let filename = '质量活动表.xlsx';
let tableData = response.data;
- console.log(tableData)
const ws = XLSX.utils.json_to_sheet(tableData.results);
const wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');
@@ -353,6 +380,13 @@ export default {
this.Content.file = res.data.id;
this.impForm.file = res.data.path;
},
+ handleUpSuccess1(res, file, filelist) {
+ console.log(res)
+ this.Content.file = res.data.path;
+ },
+ handleRemove1(file, filelist) {
+ this.Content.file = null;
+ },
handleRemove(file, filelist) {
this.Content.file = null;
this.fileList = [];
@@ -370,7 +404,6 @@ export default {
this.tableData.results =[];
this.tableData.count =0;
getgetMyRcs(this.listQuery).then((response) => {
- console.log(response);
if (response.data) {
this.tableData = response.data;
@@ -399,7 +432,7 @@ export default {
if (this.Content.file) {
this.fileList = [
{
- name: this.Content.file_.name,
+ name: this.Content.name,
url: this.Content.file,
},
];
@@ -431,7 +464,6 @@ export default {
if (valid) {
const isEdit = this.dialogType === "edit";
if (isEdit) {
- console.log(this.Content)
updateRc(this.Content.id, this.Content).then((response) => {
if (response.data) {
this.tableData = response.data;
diff --git a/client/src/views/informatiomCollect/qualityCommend.vue b/client/src/views/informatiomCollect/qualityCommend.vue
index efaeec1..3b6985c 100644
--- a/client/src/views/informatiomCollect/qualityCommend.vue
+++ b/client/src/views/informatiomCollect/qualityCommend.vue
@@ -30,6 +30,11 @@
{{ scope.row.awarded_date }}
+
+
+ 下载
+
+
+
+
+ 上传文件
+ 上传相关材料/照片压缩包
+
+
取消
@@ -159,7 +177,8 @@ const defaultContent = {
awardee_company: "",
awardee_people: "",
awarded_by: "",
- awarded_date: ""
+ awarded_date: "",
+ file:"",
};
export default {
components: { Pagination, Treeselect },
@@ -172,7 +191,8 @@ export default {
awardee_company: "",
awardee_people: "",
awarded_by: "",
- awarded_date: ""
+ awarded_date: "",
+ file:"",
},
upHeaders: upHeaders(),
upUrl: upUrl(),
@@ -272,6 +292,13 @@ export default {
this.Content.file = null;
this.impForm.file = '';
},
+ handleUpSuccess1(res, file, filelist) {
+ console.log(res)
+ this.Content.file = res.data.path;
+ },
+ handleRemove1(file, filelist) {
+ this.Content.file = null;
+ },
checkPermission,
filterNode(value, data) {