|
|
|
@ -4,9 +4,14 @@
|
|
|
|
|
:width="modalWidth" |
|
|
|
|
:visible="visible" |
|
|
|
|
:confirmLoading="confirmLoading" |
|
|
|
|
@ok="handleSubmit" |
|
|
|
|
@cancel="close" |
|
|
|
|
cancelText="关闭"> |
|
|
|
|
<template slot="footer"> |
|
|
|
|
<!-- // closable 是否显示右上角的关闭按钮 @cancel="close" @ok="handleSubmit" --> |
|
|
|
|
<!-- // slot="footer" 不需要默认确定取消按钮,重写确定和取消--> |
|
|
|
|
<a-button type="primary" @click="handleSubmit" :disabled = "editMeans">确定</a-button> |
|
|
|
|
<a-button @click="close">关闭</a-button> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template slot="title"> |
|
|
|
|
<div style="width: 100%;"> |
|
|
|
@ -24,7 +29,7 @@
|
|
|
|
|
<a-col :span="12" > |
|
|
|
|
<a-form-item label="用户账号" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<!--:readOnly="!!model.id"--> |
|
|
|
|
<a-input placeholder="请输入用户账号" v-decorator.trim="[ 'username', validatorRules.username]" /> |
|
|
|
|
<a-input placeholder="请输入用户账号" v-decorator.trim="[ 'username', validatorRules.username]" :disabled = "editMeans" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
@ -42,24 +47,24 @@
|
|
|
|
|
</template> |
|
|
|
|
<a-col :span="12" > |
|
|
|
|
<a-form-item label="用户姓名" :labelCol="labelCol" :wrapperCol="wrapperCol" > |
|
|
|
|
<a-input placeholder="请输入用户姓名" v-decorator.trim="[ 'realname', validatorRules.realname]" /> |
|
|
|
|
<a-input placeholder="请输入用户姓名" v-decorator.trim="[ 'realname', validatorRules.realname]" :disabled = "editMeans"/> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12" > |
|
|
|
|
<a-form-item label="工号" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input placeholder="请输入工号" v-decorator.trim="[ 'workNo', validatorRules.workNo]" /> |
|
|
|
|
<a-input placeholder="请输入工号" v-decorator.trim="[ 'workNo', validatorRules.workNo]" :disabled = "editMeans"/> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12" > |
|
|
|
|
<a-form-item label="职务" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<j-select-position placeholder="请选择职务" :multiple="true" v-decorator.trim="['post']"/> |
|
|
|
|
<j-select-position placeholder="请选择职务" :multiple="true" v-decorator.trim="['post']" :disabled = "editMeans"/> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12" > |
|
|
|
|
<a-form-item label="角色分配" :labelCol="labelCol" :wrapperCol="wrapperCol" v-show="!roleDisabled" > |
|
|
|
|
<a-select |
|
|
|
|
mode="multiple" |
|
|
|
|
:disabled="departDisabled" |
|
|
|
|
:disabled="departDisabled || editMeans" |
|
|
|
|
style="width: 100%" |
|
|
|
|
placeholder="请选择用户角色" |
|
|
|
|
optionFilterProp = "children" |
|
|
|
@ -77,9 +82,10 @@
|
|
|
|
|
<a-input-search |
|
|
|
|
placeholder="点击选择部门" |
|
|
|
|
v-model="checkedDepartNameString" |
|
|
|
|
:disabled = "editMeans" |
|
|
|
|
readOnly |
|
|
|
|
@search="onSearch"> |
|
|
|
|
<a-button slot="enterButton" icon="search">选择</a-button> |
|
|
|
|
<a-button slot="enterButton" icon="search" :disabled = "editMeans">选择</a-button> |
|
|
|
|
</a-input-search> |
|
|
|
|
<!-- <j-select-depart v-model="checkedDepartNameString" :multi="false" :value="checkedDepartNameString" :trigger-change="true" ></j-select-depart>--> |
|
|
|
|
</a-form-item> |
|
|
|
@ -116,6 +122,7 @@
|
|
|
|
|
:action="uploadAction" |
|
|
|
|
:data="{'isup':1}" |
|
|
|
|
:headers="headers" |
|
|
|
|
:disabled = "editMeans" |
|
|
|
|
:beforeUpload="beforeUpload" |
|
|
|
|
@change="handleChange" |
|
|
|
|
> |
|
|
|
@ -140,6 +147,7 @@
|
|
|
|
|
class="autograph-uploader" |
|
|
|
|
:showUploadList="false" |
|
|
|
|
:action="uploadAction" |
|
|
|
|
:disabled = "editMeans" |
|
|
|
|
:data="{'isup':1}" |
|
|
|
|
:headers="headers" |
|
|
|
|
:beforeUpload="beforeUpload" |
|
|
|
@ -203,7 +211,7 @@
|
|
|
|
|
<!-- </a-form-item>--> |
|
|
|
|
<a-col :span="12" > |
|
|
|
|
<a-form-item label="性别" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-select v-decorator="[ 'sex', {}]" placeholder="请选择性别" :getPopupContainer= "(target) => target.parentNode"> |
|
|
|
|
<a-select v-decorator="[ 'sex', {}]" placeholder="请选择性别" :getPopupContainer= "(target) => target.parentNode" :disabled = "editMeans"> |
|
|
|
|
<a-select-option :value="1">男</a-select-option> |
|
|
|
|
<a-select-option :value="2">女</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
@ -211,12 +219,13 @@
|
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12" > |
|
|
|
|
<a-form-item label="邮箱" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input placeholder="请输入邮箱" v-decorator="[ 'email', validatorRules.email]" /> |
|
|
|
|
<a-input placeholder="请输入邮箱" v-decorator="[ 'email', validatorRules.email]" :disabled = "editMeans" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :span="12" > |
|
|
|
|
<a-form-item label="手机号码" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-input placeholder="请输入手机号码" :disabled="isDisabledAuth('user:form:phone')" v-decorator="[ 'phone', validatorRules.phone]" /> |
|
|
|
|
<!-- <a-input placeholder="请输入手机号码" :disabled="isDisabledAuth('user:form:phone')" v-decorator="[ 'phone', validatorRules.phone]" />--> |
|
|
|
|
<a-input placeholder="请输入手机号码" v-decorator="[ 'phone', validatorRules.phone]" :disabled = "editMeans" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
|
|
|
|
@ -268,6 +277,9 @@
|
|
|
|
|
JSelectDepart, |
|
|
|
|
JSelectPosition |
|
|
|
|
}, |
|
|
|
|
props:{ |
|
|
|
|
editMeans:{ type: Boolean, default: false, required: false }, |
|
|
|
|
}, |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
departDisabled: false, //是否是我的部门调用该页面 |
|
|
|
@ -378,6 +390,7 @@
|
|
|
|
|
created () { |
|
|
|
|
const token = Vue.ls.get(ACCESS_TOKEN); |
|
|
|
|
this.headers = {"X-Access-Token":token} |
|
|
|
|
console.log("=-=--",this.editMeans); |
|
|
|
|
this.initTenantList() |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|