Commit 7c10ec2b authored by 姬鋆屾's avatar 姬鋆屾

推更新

parent 0edd87c4
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
@change="item.change" @change="item.change"
@clear="item.clear" @clear="item.clear"
v-if="item.type === 'select'" v-if="item.type === 'select'"
:placeholder="'请选择' + item.label"
> >
<el-option <el-option
label="全部" label="全部"
...@@ -153,7 +154,8 @@ ...@@ -153,7 +154,8 @@
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" class="addclass" type="primary"
class="addclass"
icon="el-icon-search" icon="el-icon-search"
@click="onSubmit" @click="onSubmit"
title="查询" title="查询"
...@@ -193,12 +195,12 @@ export default { ...@@ -193,12 +195,12 @@ export default {
}, },
watch: { watch: {
$route(route) { $route(route) {
console.log(222) console.log(222);
this.initForm(route.query); this.initForm(route.query);
}, },
}, },
async created() { async created() {
console.log("1111") console.log("1111");
this.initForm(this.$route.query); this.initForm(this.$route.query);
}, },
methods: { methods: {
...@@ -276,8 +278,8 @@ export default { ...@@ -276,8 +278,8 @@ export default {
onSubmit() { onSubmit() {
let { path, query } = this.$route; let { path, query } = this.$route;
let data = this.decode(this.form); let data = this.decode(this.form);
console.log("data:",data) console.log("data:", data);
console.log("form",this.form) console.log("form", this.form);
//delete this.form["deviceStatusList"] //delete this.form["deviceStatusList"]
this.$router.push({ this.$router.push({
path: path, path: path,
...@@ -342,7 +344,6 @@ export default { ...@@ -342,7 +344,6 @@ export default {
return newData; return newData;
}, },
decodetwo(data) { decodetwo(data) {
let newData = { page: 1 }; let newData = { page: 1 };
Object.keys(data).forEach((item) => { Object.keys(data).forEach((item) => {
...@@ -428,4 +429,3 @@ export default { ...@@ -428,4 +429,3 @@ export default {
} }
} }
</style> </style>
...@@ -3,8 +3,21 @@ ...@@ -3,8 +3,21 @@
<el-form-item> <el-form-item>
<slot name="prepend"></slot> <slot name="prepend"></slot>
<slot> <slot>
<el-button v-if="!noSaveBtn" type="primary" @click='$emit("submit")' size='small' icon='el-icon-circle-check-outline'>保存</el-button> <el-button
<el-button v-if="!noCancelBtn" @click="$router.go(-1)" size='small' icon='el-icon-circle-close-outline'>取消</el-button> v-if="!noSaveBtn"
type="primary"
@click="$emit('submit')"
size="small"
icon="el-icon-circle-check-outline"
>保存</el-button
>
<el-button
v-if="!noCancelBtn"
@click="$router.go(-1)"
size="small"
icon="el-icon-circle-close-outline"
>取消</el-button
>
</slot> </slot>
<slot name="append"></slot> <slot name="append"></slot>
</el-form-item> </el-form-item>
...@@ -28,6 +41,3 @@ export default { ...@@ -28,6 +41,3 @@ export default {
}, },
}; };
</script> </script>
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
direction: "rtl", direction: "rtl",
toString: ["leaveType","deptId","approverId"], toString: ["leaveType", "deptId", "approverId"],
toDate: ["startTime", "endTime"], toDate: ["startTime", "endTime"],
// 表单校验 // 表单校验
rules: { rules: {
...@@ -223,6 +223,7 @@ export default { ...@@ -223,6 +223,7 @@ export default {
if (this.form.endTime.valueOf() > this.form.startTime.valueOf()) { if (this.form.endTime.valueOf() > this.form.startTime.valueOf()) {
this.form.duration = getMinu(this.form.startTime, this.form.endTime); this.form.duration = getMinu(this.form.startTime, this.form.endTime);
} else { } else {
this.$message.closeAll();
this.$message.error("结束日期需大于请假日期"); this.$message.error("结束日期需大于请假日期");
} }
} }
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`; const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -172,13 +172,13 @@ export default { ...@@ -172,13 +172,13 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -249,6 +249,8 @@ export default { ...@@ -249,6 +249,8 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{ label: "巡查人员", prop: "createUserId", formatter: this.formatter },
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`; const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -173,19 +173,19 @@ export default { ...@@ -173,19 +173,19 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "complainSource", name: "complainSource",
type: "select", type: "select",
label: "全部来源", label: "投诉来源",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -255,6 +255,11 @@ export default { ...@@ -255,6 +255,11 @@ export default {
{ label: "核查结果", prop: "checkResult", formatter: this.formatter }, { label: "核查结果", prop: "checkResult", formatter: this.formatter },
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`; const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -172,13 +172,13 @@ export default { ...@@ -172,13 +172,13 @@ export default {
{ {
name: "status", name: "status",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
...@@ -256,6 +256,12 @@ export default { ...@@ -256,6 +256,12 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`; const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -173,13 +173,13 @@ export default { ...@@ -173,13 +173,13 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -244,6 +244,12 @@ export default { ...@@ -244,6 +244,12 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`; const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -172,13 +172,13 @@ export default { ...@@ -172,13 +172,13 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -252,6 +252,12 @@ export default { ...@@ -252,6 +252,12 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`; const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -172,19 +172,19 @@ export default { ...@@ -172,19 +172,19 @@ export default {
{ {
name: "checkStatus", name: "checkStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "reviewSource", name: "reviewSource",
type: "select", type: "select",
label: "全部来源", label: "差评来源",
fuzzy: false, fuzzy: false,
}, },
{ {
...@@ -253,6 +253,12 @@ export default { ...@@ -253,6 +253,12 @@ export default {
{ label: "说明", prop: "checkDesc" }, { label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" }, { label: "核查人员", prop: "checkPerson" },
{ {
......
...@@ -122,14 +122,40 @@ ...@@ -122,14 +122,40 @@
<span v-if="!form.performAttendAppealFilesList"> <span v-if="!form.performAttendAppealFilesList">
-- --
</span> </span>
<div class="img_content" v-else> <div class="img_content" v-else>
<div <div
class="imgBox" class="imgBox"
v-for="val in form.performAttendAppealFilesList" v-for="val in form.performAttendAppealFilesList"
:key="val.id" :key="val.id"
@click="hanldeDownloadFile(val)"
> >
<img src="../../../../assets/images/fileImg.png" alt="" /> <el-image
v-if="
val.filePath.includes(
'.png' || '.jpg' || '.jpeg' || 'bmp'
)
"
style="width: 100px; height: 100px"
:src="
`${
val.filePath.indexOf('http') == -1
? baseUrl + val.filePath
: val.filePath
}`
"
:preview-src-list="
val.filePath.indexOf('http') == -1
? [baseUrl + val.filePath]
: [val.filePath]
"
>
</el-image>
<img
src="../../../../assets/images/fileImg.png"
v-else
alt=""
@click="hanldeDownloadFile(val)"
/>
{{ val.fileName }} {{ val.fileName }}
</div> </div>
</div> </div>
...@@ -502,6 +528,7 @@ export default { ...@@ -502,6 +528,7 @@ export default {
"checkTime", "checkTime",
"appealTime", "appealTime",
], ],
baseUrl: process.env.VUE_APP_API_BASE_URL + "/",
// 表单校验 // 表单校验
rules: { rules: {
staffName: [ staffName: [
......
...@@ -180,13 +180,13 @@ export default { ...@@ -180,13 +180,13 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
......
...@@ -180,19 +180,19 @@ export default { ...@@ -180,19 +180,19 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "complainSource", name: "complainSource",
type: "select", type: "select",
label: "全部来源", label: "投诉来源",
fuzzy: false, fuzzy: false,
}, },
{ {
......
...@@ -180,13 +180,13 @@ export default { ...@@ -180,13 +180,13 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
......
...@@ -180,13 +180,13 @@ export default { ...@@ -180,13 +180,13 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
......
...@@ -180,13 +180,13 @@ export default { ...@@ -180,13 +180,13 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
......
...@@ -82,7 +82,7 @@ export default { ...@@ -82,7 +82,7 @@ export default {
created() {}, created() {},
methods: { methods: {
handleCellClick(row, column, event, cell) { handleCellClick(row, column, event, cell) {
if ((column.label == "图片凭证")) { if (column.label == "图片凭证") {
const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`; const suffix = `(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`;
const regular = new RegExp(`.*\.${suffix}`); const regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths); regular.test(row.filePaths);
...@@ -180,19 +180,19 @@ export default { ...@@ -180,19 +180,19 @@ export default {
{ {
name: "processStatus", name: "processStatus",
type: "select", type: "select",
label: "全部状态", label: "处理状态",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "deptId", name: "deptId",
type: "select", type: "select",
label: "全部部门", label: "所属部门",
fuzzy: false, fuzzy: false,
}, },
{ {
name: "reviewSource", name: "reviewSource",
type: "select", type: "select",
label: "全部来源", label: "差评来源",
fuzzy: false, fuzzy: false,
}, },
{ {
......
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