Commit 3c781272 by wangql

a

1 parent 5b6e4973
<!-- 详情弹框 -->
<template>
<div class="detail">
<gl-dialog
title="个人信息"
:visible.sync="isVisible"
:before-close="handleClose"
width="600px"
:close-on-click-modal="false"
>
<gl-form
label-width="120px"
:model="detail"
>
<gl-form-item
label="用户名:"
prop="userName"
>
<gl-input
readonly="readonly"
v-model="detail.userName"
></gl-input>
</gl-form-item>
<gl-form-item
label="姓名:"
prop="personName"
>
<gl-input
readonly="readonly"
v-model="detail.personName"
></gl-input>
</gl-form-item>
<gl-form-item
label="联系方式:"
prop="phone"
>
<gl-input
readonly="readonly"
v-model="detail.phone"
></gl-input>
</gl-form-item>
<gl-form-item
label="所属公司:"
prop="company"
>
<gl-input
readonly="readonly"
v-model="detail.company"
></gl-input>
</gl-form-item>
<gl-form-item
label="部门:"
prop="department"
>
<gl-input
readonly="readonly"
v-model="detail.department"
></gl-input>
</gl-form-item>
<gl-form-item
label="职务:"
prop="duties"
>
<gl-input
readonly="readonly"
v-model="detail.duties"
></gl-input>
</gl-form-item>
</gl-form>
<div slot="footer" class="dialog-footer">
<gl-button type="primary" @click="isVisible = false">确 定</gl-button>
</div>
</gl-dialog>
</div>
</template>
<script>
import { ctMethods, request } from '@/api'
export default {
name: 'DetailDialog',
components: {
},
data() {
return {
// readonly: true,
// isEditable: false,
// sendObjList: [],
// checkList: [],
// showTypeList: [{
// label: '弹出框',
// value: 1
// }, {
// label: '置顶消息',
// value: 2
// }],
// tableData_sendMerchants: {
// border: true,
// stripe: true,
// align: 'center',
// height: 200,
// data: [],
// number: {
// label: '序号',
// width: '50px',
// index: index => {
// ++index
// return index < 10 && index > 0 ? '0' + index : index
// }
// },
// column: [
// {
// label: '商户名称',
// prop: 'merchantName',
// width: '250px'
// },
// {
// label: '大区',
// prop: 'regionName'
// },
// {
// label: '省份',
// prop: 'provinceName'
// },
// {
// label: '城市',
// prop: 'cityName'
// }
// ],
// console: { }
// }
}
},
props: {
isVisible: {
type: Boolean,
default: false
},
detail: {
type: Object,
default: function() {
return {}
}
},
diaTitle: String
},
watch: {
// isVisible(val) {
// if (val) {
// this.getPersonalType()
// if (this.detail.merchants && this.detail.merchants.length > 0) {
// this.tableData_sendMerchants.data = this.detail.merchants
// }
// }
// }
},
mounted() {
},
methods: {
getPersonalType() {
const params = {}
params.method = ctMethods.GetPersonalType
request
.req(params)
.then(res => {
this.sendObjList = res.merchantDictList
})
.catch(err => {
console.log(err)
})
},
handleClose() {
this.$emit('hideDialog')
}
}
}
</script>
<style>
.detail .el-dialog__body {
padding: 0 20px;
}
.detail .el-select {
width: 100%;
}
.detail .content {
overflow-x:auto;
max-height: 400px;
}
.detail .el-checkbox-group {
display: flex;
overflow-x: auto;
}
.detail .download a {
color: #409eff;
text-decoration: underline;
}
.detail .el-checkbox__input.is-disabled + span.el-checkbox__label,
.detail .el-radio__input.is-disabled + span.el-radio__label {
color: #606266;
}
.detail .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner,
.detail .el-radio__input.is-disabled.is-checked .el-radio__inner {
border-color: #409eff;
background: #409eff;
}
.detail .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
border-color: #fff;
}
.detail .el-radio__input.is-disabled.is-checked .el-radio__inner::after {
background-color: #fff;
}
.detail .el-radio:focus:not(.is-focus):not(:active) .el-radio__inner {
box-shadow: 0 0;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!