| | |
| | | </el-form> |
| | | <div> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-row :gutter="10" class="mb8" v-if="userId != 2"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | |
| | | </el-table-column> |
| | | |
| | | <!-- </el-table-column>--> |
| | | <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width" v-if="userId != 2"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <div class="button-container"> |
| | | <el-button |
| | |
| | | ></video> |
| | | <img v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | :src="file.url" |
| | | src="../../assets/images/deviceLis.png" |
| | | alt="" |
| | | style="width: 100%; height: 100%" |
| | | fit="cover"></img> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 操作--> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" |
| | | @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">修改</el-button> |
| | |
| | | <template v-else><el-input v-model="scope.row.otherPolitical"></el-input></template> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" |
| | | @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">修改</el-button> |
| | |
| | | ></el-date-picker></template> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" |
| | | @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">修改</el-button> |
| | |
| | | <template v-else><el-input v-model="scope.row.cause"></el-input></template> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" |
| | | @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">修改</el-button> |
| | |
| | | |
| | | //导入接口函数 |
| | | import {listNote,enload,getNote, addNote,updateNote, delNote,uploadPic} from "@/api/memo/index"; |
| | | |
| | | import {getInfo} from "@/api/login"; |
| | | import { Notification, MessageBox, Message, Loading } from 'element-ui' |
| | | //import { delFamilyevent, uploadPic } from '../../api/bignote' |
| | | import { blobValidate } from '../../utils/ruoyi' |
| | |
| | | |
| | | data() { |
| | | return { |
| | | userId: undefined, |
| | | uploadFileList: [], |
| | | uploadFileList1: [], |
| | | // 遮罩层 |
| | |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | relation: [{ |
| | | required: true, |
| | | message: '请输入关系', |
| | | trigger: 'blur' |
| | | }], |
| | | otherName: [{ |
| | | required: true, |
| | | message: '请输入姓名', |
| | | trigger: 'blur' |
| | | }], |
| | | otherUnit: [{ |
| | | required: true, |
| | | message: '请输入单位', |
| | | trigger: 'blur' |
| | | }], |
| | | otherPosition: [{ |
| | | required: true, |
| | | message: '请输入职务', |
| | | trigger: 'blur' |
| | | }], |
| | | otherPolitical: [{ |
| | | required: true, |
| | | message: '请输入政治面貌', |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | cerName: [{ |
| | | required: true, |
| | | message: '请输入证件名称', |
| | | trigger: 'blur' |
| | | }], |
| | | type: [{ |
| | | required: true, |
| | | message: '请输入证件类型', |
| | | trigger: 'blur' |
| | | }], |
| | | ownStatus: [{ |
| | | required: true, |
| | | message: '请输入持有情况', |
| | | trigger: 'blur' |
| | | }], |
| | | idNo: [{ |
| | | required: true, |
| | | message: '请输入证件号码', |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | startTime: [{ |
| | | required: true, |
| | | message: '请输入开始时间', |
| | | trigger: 'blur' |
| | | }], |
| | | endTime: [{ |
| | | required: true, |
| | | message: '请输入结束时间', |
| | | trigger: 'blur' |
| | | }], |
| | | destination: [{ |
| | | required: true, |
| | | message: '请输入所到地区', |
| | | trigger: 'blur' |
| | | }], |
| | | cause: [{ |
| | | required: true, |
| | | message: '请输入事由', |
| | | trigger: 'blur' |
| | | }] |
| | | |
| | | }, |
| | | selectedOption:'', |
| | | typeOptions:[], |
| | |
| | | created() { |
| | | this.getList(); |
| | | this.getAutobiographyInfor() |
| | | |
| | | this.getInfo() |
| | | }, |
| | | methods: { |
| | | getInfo(){ |
| | | console.log('-----------------') |
| | | getInfo().then(response=>{ |
| | | console.log(response.user.roles[0].roleId,'roleID') |
| | | this.userId = response.user.roles[0].roleId |
| | | }) |
| | | }, |
| | | handleRemoveFile(file) { |
| | | for(let i = 0; i < this.fileListOther.length; i++) |
| | | { |
| | |
| | | deptCheckStrictly: true, |
| | | remark: undefined |
| | | }; |
| | | this.resetForm("form"); |
| | | this.resetForm("elForm"); |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |