New file |
| | |
| | | <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" |
| | | v-model:wx="queryParams.wx" |
| | | v-model:qq="queryParams.qq" |
| | | v-model:twitter="queryParams.twitter" |
| | | v-model:isAlways="queryParams.isAlways" |
| | | v-model:remark="queryParams.remark" |
| | | placeholder="å¨âæ¶èåè£èªâä¸æç´¢" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | <!-- <el-input |
| | | v-model="searchVal" |
| | | placeholder="å¨âé讯å½âä¸æç´¢" |
| | | clearable |
| | | style="width: 240px" |
| | | @input="inputChange"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | <div class="outer-table"> |
| | | æ¤ç¶ç»ä»¶å¼ç¨åç»ä»¶tablemax |
| | | <tablemax label="myLabel" :tableData="contactList"> |
| | | <template v-slot:table> |
| | | <el-table-column label="æä½" width="180"> |
| | | <template slot-scope="scope"> |
| | | <el-button @click="handleCheck(scope.row)" type="text" size="small" |
| | | >è°ç¨</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </template> |
| | | </tablemax> |
| | | </div>--> |
| | | |
| | | |
| | | <!-- v-model="queryParams.id" |
| | | |
| | | v-model:phone="queryParams.phone" |
| | | v-model:wx="queryParams.wx" |
| | | v-model:qq="queryParams.qq" |
| | | v-model:twitter="queryParams.twitter" |
| | | v-model:isAlways="queryParams.isAlways" |
| | | v-model:remark="queryParams.remark" |
| | | @keyup.enter.native="handleQuery" |
| | | --> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="æ¶é´" style="padding-left:190px"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | style="width: 240px" |
| | | value-format="yyyy-MM-dd HH-MM" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="å¼å§æ¥æ" |
| | | end-placeholder="ç»ææ¥æ" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="ç±»å«" prop="type" > |
| | | <el-input |
| | | v-model="queryParams.type" |
| | | 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> |
| | | <el-cntainer> |
| | | <el-col :span="9" > |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" style=" width: 65px; height: 32px;background: #FFDDE3; |
| | | border-radius: 6px 6px 6px 6px;opacity:1; " @click="handleQuery">æç´¢</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" style=" width: 65px; height: 32px;background: #FFDDE3; |
| | | border-radius: 6px 6px 6px 6px;opacity:1; " @click="resetQuery">éç½®</el-button> |
| | | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-cntainer> |
| | | <el-form-item label="ææè
" prop="owner" > |
| | | <el-input |
| | | v-model="queryParams.owner" |
| | | 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> |
| | | |
| | | <el-form-item label="åæ¾ä½ç½®" prop="location"> |
| | | <el-input |
| | | v-model="queryParams.location" |
| | | 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> |
| | | |
| | | </el-form> |
| | | <div> |
| | | <div style="width: 100px; |
| | | height: 24px; |
| | | font-size: 18px; |
| | | font-family: Microsoft YaHei-Regular, Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | line-height: 21px; |
| | | ">æ¶èåè£èª</div> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:role:add']" |
| | | >æ°å¢</el-button> |
| | | </el-col> |
| | | |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['system:role:remove']" |
| | | >å é¤</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['family:note:export']" |
| | | >导åº</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | </div> |
| | | <el-table v-loading="loading" :data="collectionList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> |
| | | <el-table-column type="selection" width="25" align="center" /> |
| | | <!-- <el-table-column label="åºå·" prop="id" sortable width="80" />--> |
| | | <el-table-column label="è·å¾æ¶é´" prop="happenTime" sortable width="100" align="center"> |
| | | <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: 'ââââ'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="ç±»å«" prop="type" sortable :show-overflow-tooltip="true" width="90" align="center"> |
| | | <template slot-scope="scope">{{scope.row.type? scope.row.type: 'ââââ'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="åç§°" prop="name" sortable :show-overflow-tooltip="true" width="90" align="center" > |
| | | <template slot-scope="scope">{{scope.row.name? scope.row.name: 'ââââ'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="æ¥æº" prop="source" sortable width="90" align="center" > |
| | | <template slot-scope="scope">{{scope.row.source? scope.row.source: 'ââââ'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="æ¥æè
" prop="owner" sortable width="110" align="center"> |
| | | <template slot-scope="scope">{{scope.row.owner? scope.row.owner: 'ââââ'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="ä»·å¼" prop="price" sortable width="90" align="center"> |
| | | <template slot-scope="scope">{{scope.row.price? scope.row.price: 'ââââ'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="åæ¾ä½ç½®" prop="location" sortable width="130" align="center"> |
| | | <template slot-scope="scope">{{scope.row.location? scope.row.location: 'ââââ'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="çµåæä»¶" prop="url" align="center" sortable width="110" > |
| | | <template slot-scope="scope"> |
| | | <!-- <el-image style="width: 100px; height: 100px" :src="'http://47.93.189.255:8080/'+ scope.row.url" fit="cover"></el-image>--> |
| | | <span v-if= "scope.row.url ==null" ><img src="../../assets/images/æä»¶å¤¹-0.png" /></span> |
| | | |
| | | <span v-else><img src="../../assets/images/æä»¶å¤¹-1.png" /></span> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | |
| | | <el-table-column label="夿³¨" prop="remark" sortable width="140" align="center"> |
| | | <template slot-scope="scope">{{scope.row.remark? scope.row.remark: 'ââââ'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="æä½" align="center" class-name="small-padding fixed-width" > |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['system:role:edit']" |
| | | >ä¿®æ¹</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >å é¤</el-button> |
| | | <el-dropdown |
| | | size="mini" |
| | | @command="(command) => handleCommand(command, scope.row)" |
| | | v-hasPermi="['system:role:edit']"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-d-arrow-right" |
| | | @click="handleCheck(scope.row)" |
| | | >æ¥ç详æ
</el-button> |
| | | |
| | | </el-dropdown> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <!-- æ·»å æ¶èä¸è£èªä¿¡æ¯é
ç½®å¯¹è¯æ¡ --> |
| | | <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="happenTime"> |
| | | <el-input v-model="formDat.happenTime" placeholder="请è¾å
¥è·å¾æ¶é´" clearable :style="{width: '100%'}" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ç±»å«" prop="type"> |
| | | <el-input v-model="formDat.type" placeholder="请è¾å
¥ç±»å«" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | |
| | | |
| | | <el-form-item label="åç§°" prop="name"> |
| | | <el-input v-model="formDat.name" placeholder="请è¾å
¥åç§°" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ¥æº" prop="source"> |
| | | <el-input v-model="formDat.source" placeholder="请è¾å
¥æ¥æº" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="æ¥æè
" prop="owner"> |
| | | <el-input v-model="formDat.owner" placeholder="请è¾å
¥æ¥æè
" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="ä»·æ ¼" prop="price"> |
| | | <el-input v-model="formDat.price" placeholder="请è¾å
¥ä»·æ ¼" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="åæ¾ä½ç½®" prop="location"> |
| | | <el-input v-model="formDat.location" placeholder="请è¾å
¥åæ¾ä½ç½®" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="夿³¨" prop="remark"> |
| | | <el-input v-model="formDat.remark" placeholder="请è¾å
¥å¤æ³¨" clearable :style="{width: '100%'}" ></el-input> |
| | | </el-form-item> |
| | | |
| | | <h4 class="form-header">çµåæä»¶ </h4> |
| | | <el-upload |
| | | action="#" |
| | | list-type="picture-card" |
| | | multiple |
| | | :http-request="requestUpload" |
| | | :file-list="fileList" |
| | | > |
| | | <i slot="default" class="el-icon-plus"></i> |
| | | <div slot="file" slot-scope="{file}"> |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | | :src="file.url" |
| | | alt="" |
| | | style="width: 126px; height: 126px" |
| | | fit="cover" |
| | | :preview-src-list="[file.url]" |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span |
| | | class="el-upload-list__item-preview" |
| | | @click="handlePictureCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | |
| | | <span |
| | | v-if="!disabled" |
| | | class="el-upload-list__item-delete" |
| | | @click="handleRemove(file)" |
| | | > |
| | | <i class="el-icon-delete"></i> |
| | | </span> |
| | | </span> |
| | | |
| | | |
| | | </div> |
| | | </el-upload> |
| | | <h4 class="form-header">å
¶ä»éä»¶ </h4> |
| | | <el-upload |
| | | action="" |
| | | :file-list="fileListOther" |
| | | class="upload-demo" |
| | | multiple |
| | | |
| | | :on-remove="handleRemove" |
| | | :http-request="requestUpload" |
| | | :show-file-list="true" |
| | | > |
| | | <el-button type="primary">ç¹å»ä¸ä¼ </el-button> |
| | | <template #tip> |
| | | <div class="el-upload__tip"> |
| | | </div> |
| | | </template> |
| | | </el-upload> |
| | | |
| | | </el-form> |
| | | <h4 class="form-header"> </h4> |
| | | |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="submitDataScope">ä¿ å</el-button> |
| | | <el-button @click="cancelData">å æ¶</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- åé
è§è²æ°æ®æéå¯¹è¯æ¡ --> |
| | | <el-dialog :title="title" :visible.sync="openDataScope" width="500px" append-to-body> |
| | | |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; |
| | | import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; |
| | | |
| | | |
| | | |
| | | //导å
¥æ¥å£å½æ° |
| | | import {listCollection, getCollection, addCollection,updateCollection, delCollection,uploadPic} from "@/api/collection/index"; |
| | | |
| | | |
| | | export default { |
| | | name: "index", |
| | | dicts: ['sys_normal_disable'], |
| | | data() { |
| | | return { |
| | | // é®ç½©å± |
| | | disabled: false, |
| | | |
| | | loading: true, |
| | | formData:[], |
| | | // é䏿°ç» |
| | | ids: [], |
| | | // éå个ç¦ç¨ |
| | | single: true, |
| | | // éå¤ä¸ªç¦ç¨ |
| | | multiple: true, |
| | | // æ¾ç¤ºæç´¢æ¡ä»¶ |
| | | showSearch: true, |
| | | // æ»æ¡æ° |
| | | total: 0, |
| | | // æ¶èä¸è£èªè¡¨æ ¼æ°æ® |
| | | collectionList: [], |
| | | // å¼¹åºå±æ é¢ |
| | | title: "", |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå± |
| | | open: false, |
| | | // æ¯å¦æ¾ç¤ºå¼¹åºå±ï¼æ°æ®æéï¼ |
| | | openDataScope: false, |
| | | menuExpand: false, |
| | | menuNodeAll: false, |
| | | deptExpand: true, |
| | | deptNodeAll: false, |
| | | // æ¥æèå´ |
| | | dateRange: [], |
| | | // æ°æ®èå´é项 |
| | | fot:[".jpg",".jif"], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | dsb:true, |
| | | btn:false, |
| | | fit:['fill'], |
| | | |
| | | formDat: { |
| | | //æ¶èä¸è£èªè®°å½ |
| | | id:undefined, |
| | | happenTime:undefined, |
| | | type:undefined, |
| | | name:undefined, |
| | | source:undefined, |
| | | owner:undefined, |
| | | price:undefined, |
| | | location:undefined, |
| | | remark:undefined, |
| | | url: undefined, |
| | | |
| | | }, |
| | | // èåå表 |
| | | menuOptions: [], |
| | | // é¨é¨å表 |
| | | deptOptions: [], |
| | | // æ¥è¯¢åæ° |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | type:undefined, |
| | | owner:undefined, |
| | | location:undefined, |
| | | happenTime:undefined, |
| | | }, |
| | | // searchVal:"", |
| | | |
| | | // 表ååæ° |
| | | form: {}, |
| | | defaultProps: { |
| | | children: "children", |
| | | label: "label" |
| | | }, |
| | | // è¡¨åæ ¡éª |
| | | rules: { |
| | | |
| | | type: [{ |
| | | // required: true, |
| | | message: '请è¾å
¥ç±»å', |
| | | trigger: 'blur' |
| | | }], |
| | | happenTime: [{ |
| | | // required: true, |
| | | message: '请è¾å
¥æ¶é´', |
| | | trigger: 'blur' |
| | | }], |
| | | name: [{ |
| | | required: true, |
| | | message: '请è¾å
¥åç§°', |
| | | trigger: 'blur' |
| | | }], |
| | | source: [{ |
| | | required: true, |
| | | message: '请è¾å
¥æ¥æº', |
| | | trigger: 'blur' |
| | | }], |
| | | owner: [{ |
| | | required: true, |
| | | message: '请è¾å
¥æ¥æè
', |
| | | trigger: 'blur' |
| | | }], |
| | | price: [{ |
| | | // required: true, |
| | | message: '请è¾å
¥ä»·å¼', |
| | | trigger: 'blur' |
| | | }], |
| | | location: [{ |
| | | required: true, |
| | | message: '请è¾å
¥åæ¾ä½ç½®', |
| | | trigger: 'blur' |
| | | }], |
| | | |
| | | remark: [{ |
| | | // required: true, |
| | | message: '请è¾å
¥å¤æ³¨', |
| | | trigger: 'blur' |
| | | }], |
| | | }, |
| | | typeOptions: [], |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | // this.getCateInfor() |
| | | // for (let i = 0; i < this.contactList.length; i++) { |
| | | // this.formDat[i] = this.contactList[i]; |
| | | // } |
| | | }, |
| | | methods: { |
| | | // åæ¶æé® |
| | | cancelData() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | |
| | | //éè¡åè² |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if (rowIndex % 2 == 0) { |
| | | return "statistics-warning-row1"; |
| | | } else { |
| | | return "statistics-warning-row"; |
| | | } |
| | | }, |
| | | /** æ¥è¯¢è®°å½å表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | // console.log(this.queryParams) |
| | | // listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => { |
| | | listCollection(this.queryParams).then(response => { |
| | | // alert(123) |
| | | // console.log(response.data) |
| | | this.collectionList = response.data.data; |
| | | |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |
| | | /** æ¥è¯¢ç±»å«ä¿¡æ¯ */ |
| | | // getCateInfor() |
| | | // { |
| | | // let _this = this |
| | | // getCategory().then(response=>{ |
| | | // |
| | | // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | // }) |
| | | // }) |
| | | // }, |
| | | |
| | | handleRemove(file) { |
| | | alert(323) |
| | | }, |
| | | // åæ¶æé® |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // åæ¶æé®ï¼æ°æ®æéï¼ |
| | | cancelDataScope() { |
| | | this.openDataScope = false; |
| | | this.reset(); |
| | | }, |
| | | // 表åéç½® |
| | | reset() { |
| | | if (this.$refs.menu != undefined) { |
| | | this.$refs.menu.setCheckedKeys([]); |
| | | } |
| | | this.menuExpand = false, |
| | | this.menuNodeAll = false, |
| | | this.deptExpand = true, |
| | | this.deptNodeAll = false, |
| | | this.form = { |
| | | roleId: undefined, |
| | | roleName: undefined, |
| | | roleKey: undefined, |
| | | roleSort: 0, |
| | | status: "0", |
| | | menuIds: [], |
| | | deptIds: [], |
| | | menuCheckStrictly: true, |
| | | deptCheckStrictly: true, |
| | | remark: undefined |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** æç´¢æé®æä½ */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** éç½®æé®æä½ */ |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // å¤éæ¡é䏿°æ® |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | console.log(this.ids) |
| | | this.single = selection.length!=1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | // //æ¯æ¬¡æ¹åinputæ¡å¼æ¶å°±æ¹åthis.myTableDataçå¼ |
| | | // inputChange() { //å¾ªç¯æ¯ä¸é¡¹ åªè¦contentçå¼å«æè¾å
¥çsearchValå¼ï¼å°±å è¿newListï¼åä¹ï¼å°±æ ä¸è¥¿å è¿newList |
| | | // let newlist = this.formDat.filter( |
| | | // (item) => item.content.indexOf(this.searchVal) > -1 |
| | | // ); |
| | | // this.contactList = newlist; |
| | | // }, |
| | | |
| | | |
| | | /** æ°å¢æé®æä½ */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | this.open = true; |
| | | this.title = "æ·»å æ¶èä¸è£èªè¯¦ç»ä¿¡æ¯"; |
| | | }, |
| | | /** æ¥ç详ç»ä¿¡æ¯ */ |
| | | handleCheck(row){ |
| | | const id = row.id; |
| | | this.$router.push("/familymodel/collection/collectionInfo/" + id); |
| | | }, |
| | | /** ä¿®æ¹æé®æä½ */ |
| | | handleUpdate(row) { |
| | | const id = row.id; |
| | | let jd = true |
| | | |
| | | this.$router.push({ |
| | | path:"/familymodel/collection/collectionInfo/" + id, |
| | | query:{ |
| | | detail:jd |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | |
| | | handlePictureCardPreview(file) { |
| | | this.dialogImageUrl = file.url; |
| | | this.dialogVisible = true; |
| | | }, |
| | | /** æäº¤æé®ï¼æ°æ®æéï¼ */ |
| | | submitDataScope: function() { |
| | | |
| | | 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.formDat.url = ul+","+uls |
| | | this.$refs["elForm"].validate(valid => { |
| | | if (valid) { |
| | | |
| | | addCollection(this.formDat).then(response => { |
| | | this.$modal.msgSuccess("æ°å¢æå"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | requestUpload(params) |
| | | { |
| | | var file = params.file; |
| | | var formData = new FormData(); |
| | | formData.append('uploadFile', file); |
| | | let _this = this |
| | | |
| | | uploadPic(formData).then(response => { |
| | | let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length) |
| | | |
| | | if(_this.fot.includes(pth) === true) |
| | | { |
| | | _this.fileList.push({name:response.data.fileName, "url":response.data.url}) |
| | | |
| | | } |
| | | |
| | | else{ |
| | | _this.fileListOther.push({name:response.data.fileName, url:response.data.url}) |
| | | |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | /** å é¤æé®æä½ */ |
| | | handleDelete(row) { |
| | | const Ids = row.id || this.ids; |
| | | this.$modal.confirm('æ¯å¦ç¡®è®¤å é¤ç¼å·ä¸º"' + Ids + '"çæ°æ®é¡¹ï¼').then(function() { |
| | | return delCollection(Ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("å 餿å"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** å¯¼åºæé®æä½ */ |
| | | handleExport() { |
| | | this.download('zfCollection/export', { |
| | | ...this.queryParams |
| | | }, `zfCollection_${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | <style> |
| | | |
| | | .el-table__row.statistics-warning-row { |
| | | background: #E0EEFE; |
| | | |
| | | } |
| | | .el-table__row.statistics-warning-row1 { |
| | | background: #FFEFF2; |
| | | |
| | | } |
| | | |
| | | |
| | | </style> |