"src/components/service-list/service_list-new.vue" did not exist on "2c8aa1d3c339302c92f8192835ed0032a8e64a2b"
Commit 2239de58 authored by 李鹏 's avatar 李鹏

权限管理接口联调

parent db85c473
...@@ -120,9 +120,7 @@ const login = () => { ...@@ -120,9 +120,7 @@ const login = () => {
ElMessage.error(data.data); ElMessage.error(data.data);
} }
}) })
.catch((error) => { .catch((error) => {});
console.log(error);
});
}; };
const getUserInfo = () => { const getUserInfo = () => {
return axios.get(`/v1/api/user/getUserInfo`); return axios.get(`/v1/api/user/getUserInfo`);
......
...@@ -77,7 +77,7 @@ const treeProps = { ...@@ -77,7 +77,7 @@ const treeProps = {
disabled: "disabled", disabled: "disabled",
}; };
const getOrgTree = () => { const getOrgTree = () => {
axios.get(`/apaas/system/v5/org/tree`).then((res) => { axios.get(`/v1/api/org/tree`).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
const orgDataTemp = res.data.data || []; const orgDataTemp = res.data.data || [];
orgDataTemp.shift(); orgDataTemp.shift();
......
...@@ -149,7 +149,7 @@ const formatFile = (url) => { ...@@ -149,7 +149,7 @@ const formatFile = (url) => {
const getDetail = () => { const getDetail = () => {
axios axios
.get(`/apaas/system/v5/org/detail?organization_id=${route.query.id}&key_word=&state=&limit=&page=&data_type=1`) .get(`/v1/api/org/detail?organization_id=${route.query.id}&key_word=&state=&limit=&page=&data_type=1`)
.then((res) => { .then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
const detail = res.data.data.org_info; const detail = res.data.data.org_info;
......
...@@ -22,16 +22,6 @@ ...@@ -22,16 +22,6 @@
<el-form-item label="组织介绍" prop="description"> <el-form-item label="组织介绍" prop="description">
<el-input type="textarea" :rows="3" v-model="orgForm.description" maxlength="300" show-word-limit /> <el-input type="textarea" :rows="3" v-model="orgForm.description" maxlength="300" show-word-limit />
</el-form-item> </el-form-item>
<el-form-item label="组织附件" prop="logo">
<bg-upload
v-model="orgForm.attachment"
customTips
:limit="3"
:fileTypes="['zip', 'rar', 'doc', 'docx', 'xlsx', 'xls', 'png', 'jpg']"
:otherInfo="'最多可上传三个附件,可上传zip,rar,doc,docx,xlsx,xls,png,jpg,可上传营业执照和相关协议文件等'">
<span>将文件拖到此处,或 点击上传</span>
</bg-upload>
</el-form-item>
</el-form> </el-form>
</template> </template>
...@@ -51,7 +41,6 @@ const orgForm = reactive({ ...@@ -51,7 +41,6 @@ const orgForm = reactive({
name: "", name: "",
organization_code: "", organization_code: "",
description: "", description: "",
attachment: [],
}); });
const checkCode = (rule, value, callback) => { const checkCode = (rule, value, callback) => {
...@@ -115,7 +104,7 @@ const treeProps = { ...@@ -115,7 +104,7 @@ const treeProps = {
disabled: "disabled", disabled: "disabled",
}; };
const getOrgTree = () => { const getOrgTree = () => {
axios.get(`/apaas/system/v5/org/tree`).then((res) => { axios.get(`/v1/api/org/tree`).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
const orgDataTemp = res.data.data || []; const orgDataTemp = res.data.data || [];
orgDataTemp.shift(); orgDataTemp.shift();
......
...@@ -198,7 +198,7 @@ const treeProps = { ...@@ -198,7 +198,7 @@ const treeProps = {
value: "organization_id", value: "organization_id",
}; };
const getOrgTree = () => { const getOrgTree = () => {
axios.get(`/apaas/system/v5/org/tree`).then((res) => { axios.get(`/v1/api/org/tree`).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
orgData.value = res.data.data || []; orgData.value = res.data.data || [];
} else { } else {
......
...@@ -211,7 +211,7 @@ const cancel = () => { ...@@ -211,7 +211,7 @@ const cancel = () => {
}; };
const getOrgTree = () => { const getOrgTree = () => {
axios.get(`/apaas/system/v5/org/tree`).then((res) => { axios.get(`/v1/api/org/tree`).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
orgId.value = res.data.data[0].organization_id; orgId.value = res.data.data[0].organization_id;
} else { } else {
......
...@@ -20,10 +20,7 @@ ...@@ -20,10 +20,7 @@
@click.stop="showAction($event, data, node)"> @click.stop="showAction($event, data, node)">
<bg-icon class="tree-more" icon="#bg-ic-s-more"></bg-icon> <bg-icon class="tree-more" icon="#bg-ic-s-more"></bg-icon>
</span> </span>
<span <span v-else class="tree-action-box" @click.stop="showAction($event, data, node)">
v-else
class="tree-action-box"
@click.stop="showAction($event, data, node)">
<bg-icon class="tree-more" icon="#bg-ic-s-more"></bg-icon> <bg-icon class="tree-more" icon="#bg-ic-s-more"></bg-icon>
</span> </span>
</div> </div>
...@@ -141,8 +138,8 @@ ...@@ -141,8 +138,8 @@
</template> </template>
<script setup> <script setup>
import { reactive, toRefs, ref, computed, onBeforeMount, onBeforeUnmount, watch, nextTick } from "vue"; import { ref, onBeforeMount, onBeforeUnmount, nextTick } from "vue";
import { useRoute, useRouter } from "vue-router"; import { useRoute } from "vue-router";
import axios from "@/request/http.js"; import axios from "@/request/http.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
const route = useRoute(); const route = useRoute();
...@@ -174,10 +171,9 @@ const defaultProps = { ...@@ -174,10 +171,9 @@ const defaultProps = {
}; };
const getOrgTree = (data) => { const getOrgTree = (data) => {
axios.get(`/apaas/system/v5/org/tree`).then((res) => { axios.get(`/v1/api/org/tree`).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
orgData.value = res.data.data || []; orgData.value = res.data.data || [];
console.log(route.query.id);
if (route.query.id) { if (route.query.id) {
searchItem(orgData.value, route.query.id); searchItem(orgData.value, route.query.id);
data = selectNodeObj.value; data = selectNodeObj.value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment