| | |
| | | <div class="body" :style="{height:mainHeight+'px'}"> |
| | | <div class="body_left"> |
| | | <div style="margin:10px 0"> |
| | | <i class="el-icon-s-comment" style="color:#42b983;" /> 车间信息: |
| | | <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" /> 车间信息: |
| | | </div> |
| | | <el-input |
| | | v-model="filterText" |
| | |
| | | <div :style="{height: (contentHeight+51)+'px'}"> |
| | | <div class="pane_top"> |
| | | <div style="display: flex;align-items: center"> |
| | | <div class="bar" /> |
| | | <div class="bar" :style="{background:$store.state.settings.theme}" /> |
| | | <div>响应人员</div> |
| | | <el-button |
| | | v-waves |
| | | icon="el-icon-circle-plus-outline" |
| | | :disabled="allowClose" |
| | | :style="{color:allowClose?'#6f6e6f':'#42b983'}" |
| | | style="height: 30px;line-height: 30px;font-size: 22px;padding: 10px" |
| | | :style="{color:allowClose?'#6f6e6f':$store.state.settings.theme}" |
| | | style="height: 30px;line-height: 30px;font-size: 22px;padding:10px;background-color: #fafafa" |
| | | @click="responseUserClick" |
| | | /> |
| | | </div> |
| | | <div> |
| | | <el-checkbox v-model="allowClose" @change="allowCloseChange">允许关闭</el-checkbox> |
| | | <div style="display: flex;align-content: center"> |
| | | <div> |
| | | <el-checkbox v-model="allowClose" @change="allowCloseChange">允许关闭</el-checkbox> |
| | | </div> |
| | | <div style="margin-left: 5px;cursor: pointer"> |
| | | <el-tooltip class="item" effect="dark" content="当前呼叫类型(启用/关闭)" placement="top"> |
| | | <i class="el-icon-question" :style="{color:$store.state.settings.theme}" /> |
| | | </el-tooltip> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-empty v-if="AnDengResponUserArr.length===0" :image-size="200" description="暂无数据" /> |
| | |
| | | :closable="!allowClose" |
| | | type="success" |
| | | style="margin-right: 10px;margin-bottom: 10px" |
| | | :style="{color:$store.state.settings.theme}" |
| | | @close="val=>tagClose(val,item,tag)" |
| | | > |
| | | {{ tag.username }} |
| | |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <el-button |
| | | |
| | | style="position: absolute;top: 15px;right:10px;z-index: 1000" |
| | | icon="el-icon-setting" |
| | | @click="setting" |
| | |
| | | |
| | | <!-- 自定义呼叫类型--> |
| | | <el-dialog |
| | | v-el-drag-dialog |
| | | title="自定义呼叫类型" |
| | | :visible.sync="settingDialogVisible" |
| | | width="800px" |
| | |
| | | @close="handleClose" |
| | | > |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | style="margin-bottom: 10px;" |
| | | icon="el-icon-circle-plus-outline" |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="cancelRow(row)">取消</el-button> |
| | | <!-- <el-button v-if="row.isVisible===0" type="text" @click="editRow(row)">编辑</el-button>--> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="delRow(row)">删除</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" v-waves type="text" @click="cancelRow(row)">取消</el-button> |
| | | <!-- <el-button v-waves v-if="row.isVisible===0" type="text" @click="editRow(row)">编辑</el-button>--> |
| | | <el-button v-if="row.isVisible===0" v-waves type="text" @click="delRow(row)">删除</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisibleCancel">返 回</el-button> |
| | | <el-button v-waves @click="dialogVisibleCancel">返 回</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | v-el-drag-dialog |
| | | title="响应人员" |
| | | :visible.sync="userDialogVisible" |
| | | width="800px" |
| | | top="15vh" |
| | | top="10vh" |
| | | :close-on-click-modal="false" |
| | | @closed="handleUserClose" |
| | | @close="handleUserClose" |
| | |
| | | closable |
| | | type="success" |
| | | style="margin-right: 10px;margin-bottom: 10px" |
| | | :style="{color:$store.state.settings.theme}" |
| | | @close="val=>userTagClose(val,tag)" |
| | | > |
| | | {{ tag.username }} |
| | | </el-tag> |
| | | </div> |
| | | <div> |
| | | <i class="el-icon-s-comment" style="color:#42b983;margin: 20px 10px 20px 0" />人员: |
| | | <i class="el-icon-s-comment" :style="{color:$store.state.settings.theme}" style="margin: 20px 10px 20px 0" />人员: |
| | | </div> |
| | | <div |
| | | style=" background-color: #fafafa; padding: 10px; min-height: 420px;" |
| | | :style="{maxHeight:(contentHeight-300)+'px',overflowY: 'scroll'}" |
| | | :style="{maxHeight:(contentHeight-300)+'px'}" |
| | | > |
| | | |
| | | <el-input |
| | |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisibleUserCancel">取 消</el-button> |
| | | <el-button v-waves @click="dialogVisibleUserCancel">取 消</el-button> |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | |
| | | AnDengTypeSearch, |
| | | DeleteAnDengType |
| | | } from '@/api/jcsz' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | | |
| | | directives: { elDragDialog, waves }, |
| | | data() { |
| | | return { |
| | | mainHeight: 0, |
| | |
| | | }) |
| | | }, |
| | | async saveRow(row) { |
| | | console.log(row) |
| | | if (row.code.toString().trim() === '' || row.name.toString().trim() === '') { |
| | | return this.$message.info('类型编码或名称不能为空!') |
| | | } |
| | | const res = await AddUpdateAnDengType([row]) |
| | | if (res.code === '200') { |
| | | await this.setting() |
| | |
| | | } |
| | | }) |
| | | |
| | | loading.close() |
| | | this.userDialogVisible = true |
| | | setTimeout(() => { |
| | | loading.close() |
| | | this.userDialogVisible = true |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.userTree.setCheckedKeys(this.treeCheckedKey) |
| | | }) |
| | | this.$nextTick(() => { |
| | | this.$refs.userTree.setCheckedKeys(this.treeCheckedKey) |
| | | }) |
| | | }, 1000) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | width: 4px; |
| | | height: 20px; |
| | | border-radius: 2px; |
| | | background-color: $main_color; |
| | | //background-color: $main_color; |
| | | margin-right: 10px; |
| | | } |
| | | } |
| | |
| | | |
| | | .body_left_tree { |
| | | ::v-deep .is-current > .el-tree-node__content { |
| | | background-color: $main_color !important; |
| | | background-color: #dedcdc !important; |
| | | font-weight: bolder; |
| | | color: #FFFFFF; |
| | | //color: #FFFFFF; |
| | | } |
| | | } |
| | | </style> |