-
+
{{ searchxianshitit }}
-
-
-
-
消息列表
+
+
-
+
-
-
-
+
+
+
- 查看
+ 查看
-
-
-
+
+
+
-
@@ -76,194 +170,205 @@
diff --git a/supervise-crm-ui/.env.development b/supervise-crm-ui/.env.development
index 01c78fbe..d08634fb 100644
--- a/supervise-crm-ui/.env.development
+++ b/supervise-crm-ui/.env.development
@@ -5,5 +5,5 @@ ENV = 'development'
VUE_APP_BASE_API = '/api'
## 配置测试和本地开发时的 接口地址
-VUE_APP_URL = "http://192.168.3.173:8112"
+VUE_APP_URL = "http://192.168.1.193:8112"
##VUE_APP_URL = "http://8.130.39.13:8112"
diff --git a/supervise-crm-ui/src/api/project/project.js b/supervise-crm-ui/src/api/project/project.js
index d36daa01..ff11125b 100644
--- a/supervise-crm-ui/src/api/project/project.js
+++ b/supervise-crm-ui/src/api/project/project.js
@@ -90,5 +90,11 @@ export default {
method: 'delete'
})
},
+ getStorehouseBySid: function() {
+ return request({
+ url: '/crm/v1/projectinformation/getStorehouseBySid/1',
+ method: 'get'
+ })
+ },
}
diff --git a/supervise-crm-ui/src/layout/components/Sidebar/index.vue b/supervise-crm-ui/src/layout/components/Sidebar/index.vue
index ed7321e6..637a9f18 100644
--- a/supervise-crm-ui/src/layout/components/Sidebar/index.vue
+++ b/supervise-crm-ui/src/layout/components/Sidebar/index.vue
@@ -79,12 +79,12 @@
methods: {
// 获取用户信息
postHuoquyonghu() {
- var token = getStorage()
- loginDetails(token).then((response) => {
- console.log('resss', response)
- if (response.code === '200') {
- this.YongHuid = response.data
- this.params.userSid = this.YongHuid.sid
+ // var token = getStorage()
+ // loginDetails(token).then((response) => {
+ // console.log('resss', response)
+ // if (response.code === '200') {
+ // this.YongHuid = response.data
+ // this.params.userSid = this.YongHuid.sid
getrolemenus(this.params).then((res) => {
console.log('userRoles', res.data)
const userRoles = this.resRouter(res.data)
@@ -94,8 +94,8 @@
hidden: true
})
return userRoles
- })
- }
+ // })
+ // }
})
},
resRouter(menus) {
diff --git a/supervise-crm-ui/src/main.js b/supervise-crm-ui/src/main.js
index cac4571a..25747f85 100644
--- a/supervise-crm-ui/src/main.js
+++ b/supervise-crm-ui/src/main.js
@@ -43,14 +43,14 @@ VueAMap.initAMapApiLoader({
Vue.config.productionTip = false
-let token = null
-token = GetQueryString('token')
-if (token) {
- setStorage(token)
- const href = window.location.href
-// href = href.split(`token=${token}`)[0]
-// window.location.href = href.slice(0, href.length - 1)
-}
+// let token = null
+// token = GetQueryString('token')
+// if (token) {
+// setStorage(token)
+// const href = window.location.href
+// // href = href.split(`token=${token}`)[0]
+// // window.location.href = href.slice(0, href.length - 1)
+// }
var one = window.location.href.indexOf('&organizationData') + 18
if (parseInt(one) > 18) {
@@ -65,66 +65,13 @@ if (parseInt(one) > 18) {
// 获取登录用户信息
function getUserInfo() {
- return request({
- baseURL: '/api',
- url: '/portal/v1/sysuser/loginDetails',
- method: 'post',
- headers: {
- 'Content-Type': 'application/json'
- }
- }).then(rep => {
- const data = rep.data
- const user = {
- roleSid: data.roleSid,
- name: data.name,
- userName: data.userName,
- departmentName: data.departmentName, // 部门名称
- departmentSid: data.departmentSid, // 部门sid
- isAdmin: data.isAdmin,
- staffSid: data.staffSid, // 业务员sid
- userSid: data.sid,
- orgSid: data.organizationSid, // 单位sid
- Orgname: data.organizationName,
- dwjb: data.dwjb,
- orgNamePath: data.orgNamePath, // 使用组织全路径名称
- orgSidPath: data.orgSidPath // 使用组织全路径Sid
- }
- // 结果存入缓存
- window.sessionStorage.setItem('staffSid', user.staffSid)
- window.sessionStorage.setItem('userSid', user.userSid)
- window.sessionStorage.setItem('Orgname', user.Orgname)
- window.sessionStorage.setItem('orgSid', user.orgSid)
- window.sessionStorage.setItem('departmentName', user.departmentName)
- window.sessionStorage.setItem('name', user.name)
- window.sessionStorage.setItem('user', user)
- window.sessionStorage.setItem('departmentName', user.departmentName)
- window.sessionStorage.setItem('departmentSid', user.departmentSid)
- window.sessionStorage.setItem('orgNamePath', user.orgNamePath)
- window.sessionStorage.setItem('orgSidPath', user.orgSidPath)
new Vue({
el: '#app',
router,
store,
render: h => h(App)
})
- })
}
getUserInfo()
-function GetQueryString(name) {
- var one = window.location.href.indexOf('?token=') + 7
- if (one < 7) { return null }
- var two = window.location.href.lastIndexOf('&') // + 1
- var data = window.location.href.substr(one)
- if (two > one) {
- data = window.location.href.slice(one, two)
- console.log('token', data)
- }
- if (data) {
- return data
- }
- return null
- // var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)')
- // var r = window.location.search.substr(1).match(reg)
- // if (r != null) return unescape(r[2]); return null
-}
+
diff --git a/supervise-crm-ui/src/views/project/projectAdd.vue b/supervise-crm-ui/src/views/project/projectAdd.vue
index 554fed7e..c824695c 100644
--- a/supervise-crm-ui/src/views/project/projectAdd.vue
+++ b/supervise-crm-ui/src/views/project/projectAdd.vue
@@ -216,7 +216,6 @@
-
diff --git a/supervise-crm-ui/src/views/project/projectInfo.vue b/supervise-crm-ui/src/views/project/projectInfo.vue
index eefb5d93..983026c4 100644
--- a/supervise-crm-ui/src/views/project/projectInfo.vue
+++ b/supervise-crm-ui/src/views/project/projectInfo.vue
@@ -181,7 +181,20 @@
-
+