|  |  |  | 
|---|
|  |  |  | <div class="list_checkbox"> | 
|---|
|  |  |  | <el-checkbox v-model="item.checked"> </el-checkbox> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <img :src="item.path" /> | 
|---|
|  |  |  | <img :src="item.icoPath" /> | 
|---|
|  |  |  | <div class="list_title">{{ item.name }}</div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </transition-group> | 
|---|
|  |  |  | 
|---|
|  |  |  | <script> | 
|---|
|  |  |  | import BaseOpera from '@/components/base/BaseOpera' | 
|---|
|  |  |  | import GlobalWindow from '@/components/common/GlobalWindow' | 
|---|
|  |  |  | import { updMyYwQuickModel } from '@/api/ywWorkDesk' | 
|---|
|  |  |  | import { updMyYwQuickModel, getDefaultYwQuickList } from '@/api/ywWorkDesk' | 
|---|
|  |  |  | import draggable from 'vuedraggable' | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | name: 'commonFunctions', | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | open (title, target) { | 
|---|
|  |  |  | open (title) { | 
|---|
|  |  |  | this.title = title | 
|---|
|  |  |  | this.filterList = target | 
|---|
|  |  |  | this.visible = true | 
|---|
|  |  |  | getDefaultYwQuickList({}) | 
|---|
|  |  |  | .then(res => { | 
|---|
|  |  |  | res.forEach(item => { | 
|---|
|  |  |  | item.checked = false | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | this.filterList = res | 
|---|
|  |  |  | this.visible = true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | confirm () { | 
|---|
|  |  |  | this.isWorking = true | 
|---|
|  |  |  | updMyYwQuickModel(this.form) | 
|---|
|  |  |  | let arr = this.filterList.filter(item => item.checked) | 
|---|
|  |  |  | updMyYwQuickModel(arr.map(item => item.id)) | 
|---|
|  |  |  | .then(() => { | 
|---|
|  |  |  | this.visible = false | 
|---|
|  |  |  | this.$tip.apiSuccess('修改成功') | 
|---|