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

推更新

parent 0edd87c4
......@@ -36,6 +36,7 @@
@change="item.change"
@clear="item.clear"
v-if="item.type === 'select'"
:placeholder="'请选择' + item.label"
>
<el-option
label="全部"
......@@ -153,7 +154,8 @@
<el-form-item>
<el-button
type="primary" class="addclass"
type="primary"
class="addclass"
icon="el-icon-search"
@click="onSubmit"
title="查询"
......@@ -193,12 +195,12 @@ export default {
},
watch: {
$route(route) {
console.log(222)
console.log(222);
this.initForm(route.query);
},
},
async created() {
console.log("1111")
console.log("1111");
this.initForm(this.$route.query);
},
methods: {
......@@ -276,8 +278,8 @@ export default {
onSubmit() {
let { path, query } = this.$route;
let data = this.decode(this.form);
console.log("data:",data)
console.log("form",this.form)
console.log("data:", data);
console.log("form", this.form);
//delete this.form["deviceStatusList"]
this.$router.push({
path: path,
......@@ -342,7 +344,6 @@ export default {
return newData;
},
decodetwo(data) {
let newData = { page: 1 };
Object.keys(data).forEach((item) => {
......@@ -428,4 +429,3 @@ export default {
}
}
</style>
......@@ -3,8 +3,21 @@
<el-form-item>
<slot name="prepend"></slot>
<slot>
<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>
<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 name="append"></slot>
</el-form-item>
......@@ -28,6 +41,3 @@ export default {
},
};
</script>
......@@ -123,7 +123,7 @@ export default {
// 是否显示弹出层
open: false,
direction: "rtl",
toString: ["leaveType","deptId","approverId"],
toString: ["leaveType", "deptId", "approverId"],
toDate: ["startTime", "endTime"],
// 表单校验
rules: {
......@@ -223,6 +223,7 @@ export default {
if (this.form.endTime.valueOf() > this.form.startTime.valueOf()) {
this.form.duration = getMinu(this.form.startTime, this.form.endTime);
} else {
this.$message.closeAll();
this.$message.error("结束日期需大于请假日期");
}
}
......
......@@ -74,7 +74,7 @@ export default {
created() {},
methods: {
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 regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
......@@ -172,13 +172,13 @@ export default {
{
name: "checkStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
......@@ -249,6 +249,8 @@ export default {
{ label: "说明", prop: "checkDesc" },
{ label: "巡查人员", prop: "createUserId", formatter: this.formatter },
{ label: "核查人员", prop: "checkPerson" },
{
......
......@@ -74,7 +74,7 @@ export default {
created() {},
methods: {
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 regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
......@@ -173,19 +173,19 @@ export default {
{
name: "checkStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
name: "complainSource",
type: "select",
label: "全部来源",
label: "投诉来源",
fuzzy: false,
},
{
......@@ -255,6 +255,11 @@ export default {
{ label: "核查结果", prop: "checkResult", formatter: this.formatter },
{ label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" },
......
......@@ -74,7 +74,7 @@ export default {
created() {},
methods: {
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 regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
......@@ -172,13 +172,13 @@ export default {
{
name: "status",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
......@@ -256,6 +256,12 @@ export default {
{ label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" },
{
......
......@@ -74,7 +74,7 @@ export default {
created() {},
methods: {
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 regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
......@@ -173,13 +173,13 @@ export default {
{
name: "checkStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
......@@ -244,6 +244,12 @@ export default {
{ label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" },
{
......
......@@ -74,7 +74,7 @@ export default {
created() {},
methods: {
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 regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
......@@ -172,13 +172,13 @@ export default {
{
name: "checkStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
......@@ -252,6 +252,12 @@ export default {
{ label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" },
{
......
......@@ -74,7 +74,7 @@ export default {
created() {},
methods: {
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 regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
......@@ -172,19 +172,19 @@ export default {
{
name: "checkStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
name: "reviewSource",
type: "select",
label: "全部来源",
label: "差评来源",
fuzzy: false,
},
{
......@@ -253,6 +253,12 @@ export default {
{ label: "说明", prop: "checkDesc" },
{
label: "巡查人员",
prop: "createUserId",
formatter: this.formatter,
},
{ label: "核查人员", prop: "checkPerson" },
{
......
......@@ -122,14 +122,40 @@
<span v-if="!form.performAttendAppealFilesList">
--
</span>
<div class="img_content" v-else>
<div
class="imgBox"
v-for="val in form.performAttendAppealFilesList"
: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 }}
</div>
</div>
......@@ -502,6 +528,7 @@ export default {
"checkTime",
"appealTime",
],
baseUrl: process.env.VUE_APP_API_BASE_URL + "/",
// 表单校验
rules: {
staffName: [
......
......@@ -180,13 +180,13 @@ export default {
{
name: "processStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
......
......@@ -180,19 +180,19 @@ export default {
{
name: "processStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
name: "complainSource",
type: "select",
label: "全部来源",
label: "投诉来源",
fuzzy: false,
},
{
......
......@@ -180,13 +180,13 @@ export default {
{
name: "processStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
......
......@@ -180,13 +180,13 @@ export default {
{
name: "processStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
......
......@@ -180,13 +180,13 @@ export default {
{
name: "processStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
......
......@@ -82,7 +82,7 @@ export default {
created() {},
methods: {
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 regular = new RegExp(`.*\.${suffix}`);
regular.test(row.filePaths);
......@@ -180,19 +180,19 @@ export default {
{
name: "processStatus",
type: "select",
label: "全部状态",
label: "处理状态",
fuzzy: false,
},
{
name: "deptId",
type: "select",
label: "全部部门",
label: "所属部门",
fuzzy: false,
},
{
name: "reviewSource",
type: "select",
label: "全部来源",
label: "差评来源",
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