| | |
| | | |
| | | <el-form-item label="时间" prop="happenTime"> |
| | | <el-date-picker |
| | | v-model="queryParams.happenTime" |
| | | v-model="dateRange" |
| | | style="width: 240px;" |
| | | value-format="yyyy-MM-dd HH-MM" |
| | | value-format="yyyy-MM-dd" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="账号" prop="useFor"> |
| | | <el-form-item label="账号" prop="accNo"> |
| | | <el-input |
| | | v-model="queryParams.useFor" |
| | | v-model="queryParams.accNo" |
| | | placeholder="请输入账号" |
| | | clearable |
| | | style="width: 240px" |
| | |
| | | <el-table-column type="selection" :reserve-selection="true" width="55" align="center" /> |
| | | <el-table-column label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> |
| | | <el-table-column label="发生时间" prop="happenTime" sortable width="100" align="center"> |
| | | <template slot-scope="scope">{{scope.row.happenTime? scope.row.createTime: '————'}}</template> |
| | | <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="类型" prop="type" sortable width="100" /> |
| | | <el-table-column label="类别" prop="type" sortable width="100" /> |
| | | <el-table-column label="账号" prop="accNo" sortable width="100" /> |
| | | <el-table-column label="有效期" prop="validityDate" sortable width="100" align="center"> |
| | | <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '————'}}</template> |
| | | <template slot-scope="scope">{{scope.row.validityDate? scope.row.validityDate: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="密码" prop="password" sortable width="100" /> |
| | | <el-table-column label="是否开启指纹" prop="isFinger" sortable width="120" > |
| | | <el-table-column label="是否开启指纹" prop="isFinger" sortable width="130" > |
| | | <template slot-scope="scope">{{scope.row.isFinger===1 ?'是': '否'}}</template> |
| | | </el-table-column>> |
| | | <el-table-column label="是否开启人脸" prop="isFace" sortable width="120" > |
| | | <el-table-column label="是否开启人脸" prop="isFace" sortable width="130" > |
| | | <template slot-scope="scope">{{scope.row.isFace===1 ?'是': '否'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="私有/公有" prop="isPrivate" sortable width="100" > |
| | |
| | | <el-date-picker |
| | | v-model='formDat.validityDate' |
| | | type='date' |
| | | placeholder='选择日期' |
| | | placeholder='选择有效期' |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="密码" prop="password"> |
| | |
| | | class="upload-demo" |
| | | multiple |
| | | |
| | | :on-remove="handleRemove" |
| | | :on-remove="handleRemoveFile" |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | |
| | | |
| | | |
| | | //在system/note/index.js中导入接口函数 --接好了 |
| | | import {listSecret,enload,getEconomyInfo,delSecret, addSecret, uploadPic} from "@/api/secret/index"; |
| | | import {listSecret,enload,delSecret, addSecret, uploadPic} from "@/api/secret/index"; |
| | | |
| | | export default { |
| | | name: "Role", |
| | |
| | | // 总条数 |
| | | total: 0, |
| | | // 家大事记表格数据 |
| | | economyList: [], |
| | | secretList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | |
| | | happenTime: undefined, |
| | | accNo:undefined, |
| | | password:undefined, |
| | | validityDate:undefined, |
| | | isFinger:undefined, |
| | | validityDate:undefined, |
| | | isFace:undefined, |
| | | isPrivate:undefined, |
| | | location:undefined, |
| | |
| | | type:undefined, |
| | | accNo:undefined, |
| | | happenTime:undefined, |
| | | useFor:undefined, |
| | | |
| | | }, |
| | | // 表单参数 |
| | |
| | | }], |
| | | |
| | | validityDate: [{ |
| | | // required: true, |
| | | required: true, |
| | | message: '请选择有效期', |
| | | trigger: 'change' |
| | | }], |
| | |
| | | ); |
| | | }, |
| | | handleRemove(file) { |
| | | for(let i = 0; i < this.fileList.length; i++) |
| | | { |
| | | if(this.fileList[i].url==file.url) |
| | | this.$delete(this.fileList,i); |
| | | } |
| | | }, |
| | | handleRemoveFile(file) { |
| | | for(let i = 0; i < this.fileListOther.length; i++) |
| | | { |
| | | if(this.fileListOther[i].url==file.url) |
| | |
| | | }); |
| | | } |
| | | }); |
| | | // 清空formDat对象的数据 |
| | | Object.keys(this.formDat).forEach(key => { |
| | | this.formDat[key] = ''; |
| | | }); |
| | | this.handleRemove(this.fileList[0]); |
| | | this.handleRemoveFile(this.fileListOther[0]); |
| | | }, |
| | | requestUpload(params) |
| | | { |