| | |
| | | }) |
| | | } |
| | | |
| | | // 根据id查询记录 |
| | | export function getNote(query) { |
| | | return request({ |
| | | url: '/zSelfNote', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | //新增记录 |
| | | export function addNote(data) |
| | | { |
| | |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | v-if="scope.row.url !== ','" |
| | | v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)" |
| | | > |
| | | <img |
| | | v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/images/deviceA.png" |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | v-if="scope.row.url ===',' " |
| | | |
| | | ></div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <div> |
| | | <el-container> |
| | | <el-row> |
| | | <el-cow :span="8"> |
| | | <el-form-item label="时间" prop="createTime" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-model="formData.createTime" placeholder="请输入时间" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-cow> |
| | | <!-- <el-cow :span="8">--> |
| | | <!-- <el-form-item label="时间" prop="createTime" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">--> |
| | | <!-- <el-input v-model="formData.createTime" placeholder="请输入时间" clearable :style="{width: '100%'}" :disabled="dsb">--> |
| | | <!-- </el-input>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-cow>--> |
| | | <el-cow :span="8"> |
| | | <el-form-item label="类别" prop="type" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-model="formData.type" placeholder="请输入类别" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | |
| | | <el-table v-loading="loading" :data="honorList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> |
| | | <el-table-column type="selection" :reserve-selection="true" width="25" align="center" /> |
| | | <el-table-column fixed label="序号" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/> |
| | | <el-table-column label="时间" prop="createTime" sortable width="120" align="center"> |
| | | <!-- <el-table-column label="时间" prop="createTime" sortable width="120" align="center">--> |
| | | |
| | | <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '————'}}</template> |
| | | </el-table-column> |
| | | <!-- <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '————'}}</template>--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column label="类别" prop="type" sortable :show-overflow-tooltip="true" width="120" align="center" > |
| | | <!-- <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template>--> |
| | | <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template> |
| | |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | v-if="scope.row.url !== ','" |
| | | v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)" |
| | | > |
| | | <img |
| | | v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/images/deviceA.png" |
| | | alt="" |
| | | style="width: 35px; height: 35px;" |
| | | fit="cover" |
| | | v-if="scope.row.url ===',' " |
| | | |
| | | ></div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> |
| | | <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px"> |
| | | |
| | | <el-form-item label="时间" prop="createTime"> |
| | | <el-input v-model="formDat.createTime" type='date' placeholder='选择日期' clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="时间" prop="createTime">--> |
| | | <!-- <el-input v-model="formDat.createTime" type='date' placeholder='选择日期' clearable :style="{width: '100%'}" >--> |
| | | <!-- </el-input>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="获得时间" prop="happenTime">--> |
| | | <!-- <el-date-picker v-model='formDat.happenTime' type='date' placeholder='选择日期'></el-date-picker>--> |
| | | <!-- </el-form-item>--> |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> |
| | | <el-form-item label="" prop="phone wx qq twitter isAlways remark" > |
| | | <el-input |
| | | v-model:phone="queryParams.phone" |
| | | placeholder="在“个人记事本”中搜索" |
| | | clearable |
| | | <!-- --> |
| | | <!-- <el-input--> |
| | | <!-- v-model:phone="queryParams.phone"--> |
| | | <!-- placeholder=""--> |
| | | <!-- clearable--> |
| | | <!-- style="width: 240px"--> |
| | | <!-- @keyup.enter.native="handleQuery">--> |
| | | <!-- <i slot="prefix" class="el-input__icon el-icon-search"></i>--> |
| | | <!-- </el-input>--> |
| | | <!-- --> |
| | | <el-form-item label="" prop="address title remark people happenTime" > |
| | | <el-input v-model="keyword" placeholder="在“个人记事本”中搜索" clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="时间" prop="happenTime"> |
| | |
| | | dsb:true, |
| | | btn:false, |
| | | fit:['fill'], |
| | | |
| | | keyword:'', |
| | | formDat: { |
| | | //个人记事本详情 |
| | | id:undefined, |
| | |
| | | people:undefined, |
| | | address:undefined, |
| | | title:undefined, |
| | | |
| | | remark:undefined |
| | | }, |
| | | // searchVal:"", |
| | | |
| | |
| | | // this.formDat[i] = this.contactList[i]; |
| | | // } |
| | | }, |
| | | |
| | | methods: { |
| | | // 取消按钮 |
| | | cancelData() { |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="form-header mt"> |
| | | <h4 class="dt h4">个人记事本详细信息 </h4> |
| | | <el-page-header @back="goBack" content="个人记事本详细信息"> |
| | | </el-page-header> |
| | | <!-- <h4 class="dt h4"> </h4>--> |
| | | </div> |
| | | <div> |
| | | <el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-position="left" label-width="100px"> |
| | |
| | | multiple |
| | | list-type="picture-card" |
| | | :on-preview="handleFileCardPreview" |
| | | :on-remove="handleRemove" |
| | | :on-remove="handleRemoveFile" |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | @click="handleRemove(file)" |
| | | class="el-upload-list__item-delete" |
| | | |
| | | @click="handleDownload(file.url)" |
| | | > |
| | | <i class="el-icon-download"></i> |
| | | </span> |
| | |
| | | cdi:"个人记事本详情", |
| | | udi:"个人记事本详情", |
| | | fot:[".jpg",".jif","png"], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileList:[], |
| | | fileListOther:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | | |
| | | // 个记事本表格数据 |
| | | noteList: [], |
| | | formData: { |
| | |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | | getNote(id).then((response) => { |
| | | getNote({id}).then((response) => { |
| | | this.formData = response.data; |
| | | let paths = response.data.url.split(","); |
| | | for(let i = 0; i < paths.length; i++) |
| | |
| | | } |
| | | } |
| | | }) |
| | | this.goBack() |
| | | }, |
| | | resetForm() { |
| | | this.$refs['elForm'].resetFields() |
| | |
| | | saveAs(blob, filename) |
| | | }) |
| | | }, |
| | | goBack() { |
| | | this.$router.go(-1); |
| | | this.$router.push({ path: "/self/self/memo" }); |
| | | }, |
| | | |
| | | handleEdit() |
| | | { |
| | | this.dsb = false |
| | | // this.btn = true |
| | | this.isShow=false |
| | | }, |
| | | |
| | | requestUpload(params) |
| | | { |
| | | var file = params.file; |
| | |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | @keyup.enter.native="handleQuery" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | |
| | | |
| | | /** 导入模板下载按钮操作 */ |
| | | handleExportModel() { |
| | | |
| | | this.download('/zIdea/model', { |
| | | }, `zIdea_model_${new Date().getTime()}.xlsx`) |
| | | }, |