|
|
|
@ -118,6 +118,14 @@
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-form-item label="状态:" prop="status" label-width="100px">
|
|
|
|
|
<el-radio-group v-model="formData.status">
|
|
|
|
|
<el-radio :label="1">正常</el-radio>
|
|
|
|
|
<el-radio :label="0">禁用</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-form-item label="备注:" prop="remark" label-width="100px">
|
|
|
|
|
<el-input
|
|
|
|
@ -145,22 +153,15 @@
|
|
|
|
|
></el-tree>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-row>-->
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-form-item label="状态:" prop="status" label-width="100px">
|
|
|
|
|
<el-radio-group v-model="formData.status">
|
|
|
|
|
<el-radio :label="0">禁用</el-radio>
|
|
|
|
|
<el-radio :label="1">正常</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click.native="cancelDialog" size="small">取消</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click.native="formSubmit()"
|
|
|
|
|
>提交
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button @click.native="cancelDialog" size="small">取消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<pagination
|
|
|
|
@ -225,7 +226,7 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
@click.native.stop="deleteDialog(scope.row)"
|
|
|
|
|
@click.native.stop="removeUserDialog(scope.row)"
|
|
|
|
|
>移除
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
@ -289,16 +290,16 @@
|
|
|
|
|
></el-table-column>
|
|
|
|
|
<el-table-column label="备注" prop="remark">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
@click.native.stop="deleteDialog(scope.row)"
|
|
|
|
|
>移除
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column label="操作">-->
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
<!-- @click.native.stop="deleteDialog(scope.row)"-->
|
|
|
|
|
<!-- >移除-->
|
|
|
|
|
<!-- </el-button-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
<!-- </el-table-column>-->
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -323,7 +324,7 @@ import {treeList, treeSelectedList} from "@/api/system/dataStatus";
|
|
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
|
import {selectNotSelectUser} from "@/api/auth/authUser";
|
|
|
|
|
import {listDeptUser} from "@/api/system/deptUser";
|
|
|
|
|
import {listDeptUser, removeUser} from "@/api/system/deptUser";
|
|
|
|
|
import {filterSubAll} from "@/api/system/invSubWarehouse";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -659,8 +660,28 @@ export default {
|
|
|
|
|
this.userlist = [];
|
|
|
|
|
this.userTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
removeUserDialog(row) {
|
|
|
|
|
this.$confirm("是否确定移除该用户?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
let tQuery = {
|
|
|
|
|
deptId: row.deptId,
|
|
|
|
|
userId: row.userId,
|
|
|
|
|
};
|
|
|
|
|
removeUser(tQuery).then((res) => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.getUerList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|