BUG 27988
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</ai-table>
|
||||
</template>
|
||||
</ai-list>
|
||||
<!--功能分配-->
|
||||
<!--添加账号-->
|
||||
<ai-dialog title="添加账号" :close-on-click-modal="false" class="editStyle" :visible.sync="accountDialog"
|
||||
width="800px" @closed="account={}" @onConfirm="submitAddAcount">
|
||||
<el-form ref="addAccountForm" :model="account" :rules="rules" size="small"
|
||||
@@ -47,10 +47,11 @@
|
||||
<el-input v-model.trim="account.phone" placeholder="请输入..." clearable :maxLength="11"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="行政地区" prop="areaId">
|
||||
<ai-area-get v-model="account.areaId" :instance="instance"/>
|
||||
<ai-area-get v-model="account.areaId" :instance="instance" root="500241000000" showAll/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ai-dialog>
|
||||
<!--功能分配-->
|
||||
<ai-dialog title="功能分配" :visible.sync="dialog" width="800px" @open="initDialogData" @onConfirm="updateAccount">
|
||||
<el-form ref="updateAccountForm" :model="dialogForm" :rules="rules" size="small"
|
||||
label-width="120px">
|
||||
@@ -61,10 +62,8 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="行政地区" prop="areaId">
|
||||
<ai-area-select v-model="dialogForm.areaId" always-show :instance="instance"
|
||||
clearable @fullname="v=>dialogForm.areaFullName=v"
|
||||
@name="v=>dialogForm.areaName=v"
|
||||
:disabledLevel="disabledLevel"/>
|
||||
<ai-area-get v-model="dialogForm.areaId" :instance="instance" :name.sync="dialogForm.areaName"
|
||||
root="500241000000" showAll/>
|
||||
</el-form-item>
|
||||
<el-form-item label="党组织" prop="organizationId" v-if="user.info.organizationId">
|
||||
<el-cascader :options="partyOrgOps" v-model="dialogForm.organizationId"
|
||||
@@ -214,7 +213,8 @@ export default {
|
||||
if (v) {
|
||||
if (this.lock) return this.$message.error("请勿多次提交!")
|
||||
this.lock = true
|
||||
this.instance.post("/user/empower", this.dialogForm).then(res => {
|
||||
let areaFullName = this.dialogForm.areaName
|
||||
this.instance.post("/user/empower", {...this.dialogForm, areaFullName}).then(res => {
|
||||
this.lock = false
|
||||
if (res?.code == 0) {
|
||||
this.dialog = false;
|
||||
|
||||
Reference in New Issue
Block a user