|
@@ -191,6 +191,7 @@ let rules = ref({
|
|
|
parentId: [{ required: true, message: "请选择上级机构", trigger: "blur" }],
|
|
|
orderNum: [{ required: true, message: "排序不能为空", trigger: "blur" }],
|
|
|
deptName: [{ required: true, message: "机构名称不能为空", trigger: "blur" }],
|
|
|
+ type: [{ required: true, message: "机构类型不能为空", trigger: "blur" }],
|
|
|
});
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const selectConfig = computed(() => {
|
|
@@ -269,7 +270,9 @@ const config = computed(() => {
|
|
|
});
|
|
|
|
|
|
let formData = reactive({
|
|
|
- data: {},
|
|
|
+ data: {
|
|
|
+ orderNum:1,
|
|
|
+ },
|
|
|
});
|
|
|
const formOption = reactive({
|
|
|
inline: true,
|
|
@@ -327,26 +330,14 @@ const formConfig = computed(() => {
|
|
|
label: "负责人",
|
|
|
prop: "leaderId",
|
|
|
itemWidth: 50,
|
|
|
- isLoad: {
|
|
|
- url: "/tenantUser/list?pageNum=1&pageSize=10000",
|
|
|
- labelKey: "userName",
|
|
|
- labelVal: "userId",
|
|
|
- method: "get",
|
|
|
- resUrl: "rows",
|
|
|
- },
|
|
|
+ data:[],
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
|
label: "总监",
|
|
|
prop: "directorId",
|
|
|
itemWidth: 50,
|
|
|
- isLoad: {
|
|
|
- url: "/tenantUser/list?pageNum=1&pageSize=10000",
|
|
|
- labelKey: "userName",
|
|
|
- labelVal: "userId",
|
|
|
- method: "get",
|
|
|
- resUrl: "rows",
|
|
|
- },
|
|
|
+ data:[],
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
@@ -419,7 +410,10 @@ const handleAdd = (row) => {
|
|
|
const openModal = () => {
|
|
|
dialogVisible.value = true;
|
|
|
modalType.value = "add";
|
|
|
- formData.data = {};
|
|
|
+ formData.data = {
|
|
|
+ orderNum:1,
|
|
|
+ };
|
|
|
+ getUserList()
|
|
|
};
|
|
|
const TreetenantId = ref("");
|
|
|
const selection = ref({
|
|
@@ -503,6 +497,27 @@ const getDtl = (row) => {
|
|
|
console.log(modalType.value);
|
|
|
dialogVisible.value = true;
|
|
|
};
|
|
|
+
|
|
|
+const getUserList = () => {
|
|
|
+ proxy
|
|
|
+ .get("/tenantUser/list", {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10000,
|
|
|
+ tenantId: sourceList.value.pagination.tenantId,
|
|
|
+ })
|
|
|
+ .then((message) => {
|
|
|
+ message.rows.map((item) => {
|
|
|
+ item.label = item.nickName;
|
|
|
+ item.id = item.userId;
|
|
|
+ });
|
|
|
+ formConfig.value[3].data = message.rows;
|
|
|
+ formConfig.value[4].data = message.rows;
|
|
|
+ console.log(config)
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
getTreeList();
|
|
|
getList();
|
|
|
</script>
|