Commit c8dd0eef authored by 廖旭伟's avatar 廖旭伟

Merge remote-tracking branch 'origin/master'

parents cca29df1 8302e71f
...@@ -44,7 +44,13 @@ ...@@ -44,7 +44,13 @@
class="el-upload-list__item ele-upload-list__item-content" class="el-upload-list__item ele-upload-list__item-content"
v-for="(file, index) in list" v-for="(file, index) in list"
> >
<el-link :href="baseUrl + file.url" :underline="false" target="_blank"> <el-link
:href="
file.url[0].indexOf('https') == -1 ? baseUrl + file.url : file.url
"
:underline="false"
target="_blank"
>
<span class="el-icon-document" style="font-size: 12px"> <span class="el-icon-document" style="font-size: 12px">
{{ getFileName(file.name) }} {{ getFileName(file.name) }}
</span> </span>
...@@ -145,15 +151,23 @@ export default { ...@@ -145,15 +151,23 @@ export default {
list() { list() {
let temp = 1; let temp = 1;
if (this.value) { if (this.value) {
console.log("value", this.value);
// 首先将值转为数组 // 首先将值转为数组
const list = Array.isArray(this.value) ? this.value : [this.value]; const list = Array.isArray(this.value) ? this.value : [this.value];
list &&
list.forEach((v) => {
v.url.indexOf("https") >= 0 ? (v.url = JSON.parse(v.url)) : v.url;
});
// 然后将数组转为对象数组 // 然后将数组转为对象数组
this.fileList = list.map((item) => { this.fileList = list.map((item) => {
item = { name: item.name, url: item.url }; item = {
name: item.name,
url:
item.url.indexOf("[`\`") >= 0 ? JSON.parse(item.url) : item.url,
};
item.uid = item.uid || new Date().getTime() + temp++; item.uid = item.uid || new Date().getTime() + temp++;
return item; return item;
}); });
return this.fileList; return this.fileList;
} else { } else {
this.fileList = []; this.fileList = [];
......
...@@ -164,7 +164,7 @@ export default { ...@@ -164,7 +164,7 @@ export default {
prop: "auditResult", prop: "auditResult",
formatter: this.formatter, formatter: this.formatter,
}, },
{ label: "审批负责人", prop: "approver" }, // { label: "审批负责人", prop: "approver" },
{ {
label: "创建用户", label: "创建用户",
......
...@@ -66,7 +66,6 @@ export default { ...@@ -66,7 +66,6 @@ export default {
}, },
// 切换表格 // 切换表格
changeRadio() { changeRadio() {
console.log(this.radio1);
this.radio1 == 2 this.radio1 == 2
? this.$router.push("/check/window/workman/perform/list?page=1") ? this.$router.push("/check/window/workman/perform/list?page=1")
: ""; : "";
...@@ -98,37 +97,50 @@ export default { ...@@ -98,37 +97,50 @@ export default {
fuzzy: false, fuzzy: false,
}, },
{ {
name: "staffName", name: "ownerName",
type: "text", type: "text",
label: "请输入窗口负责人姓名搜索", width: 200,
label: "窗口负责人姓名搜索",
fuzzy: false, fuzzy: false,
}, },
], ],
columns: [ columns: [
{ type: "selection", width: 60 }, { type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 }, { type: "index", label: "序号", width: 50 },
{ label: "窗口负责人", prop: "ownerName" },
{ {
label: "管理组核查时间", label: "登记年月",
prop: "manageCheckTime", formatter: (row) => {
formatter: this.formatterDate, return `${row.year ? row.year : "--"}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
: row.month
: "--"
}`;
},
}, },
{ label: "管理组核查说明", prop: "manageCheckDesc" }, { label: "所属大厅", prop: "salaName" },
{ label: "管理组核查结果", prop: "manageCheckResult" },
{ {
label: "领导组核查时间", label: "所属部门",
prop: "leaderCheckTime", prop: "deptName",
formatter: this.formatterDate,
}, },
{ label: "领导组核查说明", prop: "leaderCheckDesc" }, { label: "考核窗口", prop: "windowName" },
{ label: "领导组核查结果", prop: "leaderCheckResult" }, { label: "表单名称", prop: "fromName" },
{ label: "总分分值", prop: "sumScore", formatter: this.formatter },
{
label: "提交时间",
prop: "submitDate",
formatter: this.formatterDate,
},
{ label: "处理状态", prop: "checkStatus", formatter: this.formatter }, { label: "处理状态", prop: "checkStatus", formatter: this.formatter },
{ {
label: "操作", label: "操作",
width: 240, width: 240,
...@@ -136,6 +148,10 @@ export default { ...@@ -136,6 +148,10 @@ export default {
return ( return (
<table-buttons <table-buttons
noAdd noAdd
noDel
noEdit
reCheck
text={"自评核查"}
row={row} row={row}
onEdit={this.toEdit} onEdit={this.toEdit}
onView={this.toView} onView={this.toView}
......
...@@ -98,25 +98,57 @@ export default { ...@@ -98,25 +98,57 @@ export default {
fuzzy: false, fuzzy: false,
}, },
{ {
name: "staffName", name: "ownerName",
type: "text", type: "text",
label: "请输入窗口负责人姓名搜索", width: 200,
label: "窗口负责人姓名搜索",
fuzzy: false, fuzzy: false,
}, },
], ],
columns: [ columns: [
{ type: "selection", width: 60 }, { type: "selection", width: 60 },
{ type: "index", label: "序号", width: 50 }, { type: "index", label: "序号", width: 50 },
{ label: "窗口负责人", prop: "ownerName" },
{ {
label: "管理组核查时间", label: "登记年月",
prop: "manageCheckTime", formatter: (row) => {
formatter: this.formatterDate, return `${row.year ? row.year : "--"}-${
row.month
? [1, 2, 3, 4, 5, 6, 7, 8, 9].includes(row.month)
? "0" + row.month
: row.month
: "--"
}`;
},
},
{ label: "所属大厅", prop: "salaName" },
{
label: "所属部门",
prop: "deptName",
}, },
{ label: "管理组核查说明", prop: "manageCheckDesc" }, { label: "考核窗口", prop: "windowName" },
{ label: "表单名称", prop: "fromName" },
{ label: "总分分值", prop: "sumScore", formatter: this.formatter },
{
label: "提交时间",
prop: "submitDate",
width: 110,
formatter: this.formatterDate,
},
{
label: "最新核查时间",
prop: "updateTime",
width: 150,
formatter: this.formatterDate,
},
{ label: "处理状态", prop: "checkStatus", formatter: this.formatter },
{ label: "管理组核查结果", prop: "manageCheckResult" },
{ {
label: "操作", label: "操作",
width: 240, width: 240,
...@@ -124,6 +156,10 @@ export default { ...@@ -124,6 +156,10 @@ export default {
return ( return (
<table-buttons <table-buttons
noAdd noAdd
noDel
noEdit
reCheck
text={"自评核查"}
row={row} row={row}
onEdit={this.toEdit} onEdit={this.toEdit}
onView={this.toView} onView={this.toView}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment