<template>
|
<div class="app-container" id="printable-content">
|
<div class="form-header mt">
|
<h1 style="font-size:21px;padding-top:30px;display: flex;justify-content: space-between;align-items: center;">
|
<span>会议详情</span>
|
</h1>
|
</div>
|
<div style="padding-left:15px">
|
<el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-position="left" label-width="160px">
|
|
<el-container>
|
|
<el-row :span="12">
|
|
<el-cow>
|
<el-form-item label="家庭号" prop="familyId" label-width="90px"
|
style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
|
<el-input v-model="formData.familyId" placeholder="请输入家庭号" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-cow>
|
|
<el-cow>
|
<el-form-item label="使用时间" prop="useTime" label-width="90px"
|
style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
|
<el-input v-model="formData.useTime" placeholder="请输入使用时间" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-cow>
|
|
<el-cow>
|
<el-form-item label="会议室名称" prop="conferenceRoom" label-width="90px"
|
style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
|
<el-input v-model="formData.conferenceRoom" placeholder="请输入会议室名称" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-cow>
|
|
<el-cow>
|
<el-form-item label="标题" prop="title" label-width="90px"
|
style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
|
<el-input v-model="formData.title" placeholder="请输入标题" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-cow>
|
|
<el-cow>
|
<el-form-item label="申请人" prop="applyPerson" label-width="90px"
|
style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
|
<el-input v-model="formData.applyPerson" placeholder="请输入申请人" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-cow>
|
|
<el-cow>
|
<el-form-item label="审批人" prop="ratifyPerson" label-width="90px"
|
style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
|
<el-input v-model="formData.ratifyPerson" placeholder="请输入审批人" clearable :style="{width: '100%'}" :disabled="dsb">
|
</el-input>
|
</el-form-item>
|
</el-cow>
|
|
<el-cow>
|
<el-form-item label="状态" prop="status" label-width="120px"
|
style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
|
<el-select v-model="formData.status" placeholder="请选择 " clearable :style="{width: '100%'}"
|
:disabled="dsb">
|
<el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label"
|
:value="item.value"></el-option>
|
</el-select>
|
</el-form-item>
|
</el-cow>
|
|
</el-row>
|
</el-container>
|
|
<h4 class="form-header"> </h4>
|
<el-form-item size="large">
|
<el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">修改</el-button>
|
</el-form-item>
|
</el-form>
|
</div>
|
|
|
</div>
|
</template>
|
|
<script>
|
import {addRole, updateRole} from "@/api/system/role";
|
import {blobValidate} from "@/utils/ruoyi";
|
import errorCode from "@/utils/errorCode";
|
import {Message} from "element-ui";
|
import {getMeetingInfo1} from "@/api/meeting/index";
|
export default {
|
components: {},
|
props: [],
|
data() {
|
return {
|
cdi: "个人财产详细信息",
|
udi: "个人财产信息详情",
|
// 数据范围选项
|
fot: ['.bmp', '.jpg', '.jpeg', '.png', '.tif', '.gif', '.pcx', '.tga', '.exif', '.fpx',
|
'.svg', '.psd', '.cdr', '.pcd', '.dxf', '.ufo', '.eps', '.ai', '.aw', '.WMF', '.webp', '.apng'
|
],
|
|
fileList: [],
|
fileList1: [],
|
uploadFileList: [],
|
uploadFileList1: [],
|
fileListOther: [],
|
dsb: true,
|
btn: false,
|
isShow: true,
|
uploading: false,
|
|
formData:{
|
"title":undefined,
|
"familyId":undefined,
|
"conferenceRoom":undefined,
|
"applyPerson":undefined,
|
"ratifyPerson":undefined,
|
"status":undefined,
|
"useTime":undefined
|
},
|
dialogImageUrl: '',
|
dialogVisible: false,
|
disabled: false,
|
rules: {
|
|
},
|
typeOptions: [{
|
value: 1,
|
label: '结案',
|
},
|
{
|
value: 0,
|
label: '未结案',
|
}
|
],
|
|
}
|
},
|
created() {
|
const id = this.$route.params && this.$route.params.id;
|
let jd;
|
if (this.$route.query.detail == 'true') {
|
jd = this.$route.query.detail
|
this.btn = jd
|
this.dsb = !jd
|
// document.title = "修改个人财产详细信息";
|
this.$route.meta.title = "会议统计详细信息"; //列表的名称
|
} else {
|
// document.title = "个人财产详细信息";
|
this.$route.meta.title = "会议统计详细信息"; //列表的名称
|
this.btn = false;
|
this.isShow = false
|
}
|
|
let _this = this
|
|
this.loading = true;
|
getMeetingInfo1(id).then((response) => {
|
console.log(response.data,'123123123')
|
this.formData = response.data;
|
// let paths = this.formData.url.split(",");
|
// for(let i = 0; i < paths.length; i++)
|
// {
|
// if(paths[i]!="") {
|
// let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
|
// if (_this.fot.includes(pth) === true)
|
// {
|
// if(paths[i][0]=="/")
|
// _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
|
// else
|
// _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
|
// }
|
// else {
|
// let nms = paths[i].split("\/")
|
// let nm = nms[nms.length - 1]
|
// if(paths[i][0]=="/")
|
// _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
|
// else
|
// _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
|
|
// }
|
// }
|
// }
|
this.loading = false;
|
});
|
},
|
mounted() {},
|
methods: {
|
submitForm() {
|
let ul = this.fileList.map(function(elem) {
|
return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API, "")
|
}).join(",")
|
let uls = this.fileListOther.map(function(elem) {
|
return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API, "")
|
}).join(",")
|
this.formData.url = ul + "," + uls
|
|
this.$refs['elForm'].validate(valid => {
|
alert(this.formData.status)
|
if (valid) {
|
if (this.formData.id != undefined) {
|
updateSelfEconomy(this.formData).then(response => {
|
this.$modal.msgSuccess("修改成功");
|
// this.open = false;
|
if (this.formData.status == 1)
|
this.formData.status = '是'
|
else
|
this.formData.status = '否'
|
this.btn = false
|
});
|
} else {
|
this.$modal.msgSuccess("修改失败");
|
if (this.formData.status == '是')
|
this.formData.status = 1
|
else
|
this.formData.status = 0
|
}
|
}
|
})
|
},
|
}
|
}
|
</script>
|
|
<style scoped>
|
.app-container {
|
background-color: #FEF7FC;
|
}
|
|
.mt {
|
position: relative;
|
}
|
|
.dt {
|
display: block;
|
|
}
|
|
.pt {
|
right: 10px;
|
top: -3px;
|
display: block;
|
position: absolute;
|
}
|
|
.form {
|
background: center/11% no-repeat url('../../assets/icons/form.png');
|
}
|
|
.hide /deep/ .el-upload--picture-card {
|
display: none;
|
}
|
|
.form_item {
|
font-size: 12px;
|
font-family: Microsoft YaHei-Regular, Microsoft YaHei;
|
font-weight: 400;
|
color: #000000;
|
}
|
</style>
|