注释错误修改

This commit is contained in:
zhangcheng 2020-09-23 15:23:59 +08:00
parent c08bebcaa8
commit b6cc89d82e
7 changed files with 32 additions and 37 deletions

View File

@ -13,7 +13,7 @@ module.exports = {
assetsPublicPath: '/', assetsPublicPath: '/',
proxyTable: { proxyTable: {
'/lz_management': { '/lz_management': {
target: 'http://localhost:8080', target: 'https://tlzmanagement.ldxinyong.com',
changeOrigin: true changeOrigin: true
} }
}, },

View File

@ -54,6 +54,7 @@
</template> </template>
<script> <script>
import IconSvg from '@/components/icon-svg'
import UpdatePassword from './main-navbar-update-password' import UpdatePassword from './main-navbar-update-password'
import { clearLoginInfo } from '@/utils' import { clearLoginInfo } from '@/utils'
import { apiLogout } from '@/api/api_sys' import { apiLogout } from '@/api/api_sys'
@ -65,7 +66,7 @@
} }
}, },
components: { components: {
UpdatePassword UpdatePassword, IconSvg
}, },
computed: { computed: {
navbarLayoutType: { navbarLayoutType: {

View File

@ -21,6 +21,7 @@
</template> </template>
<script> <script>
import IconSvg from '@/components/icon-svg'
import SubMenu from './main-sidebar-sub-menu' import SubMenu from './main-sidebar-sub-menu'
export default { export default {
name: 'sub-menu', name: 'sub-menu',
@ -35,7 +36,7 @@
} }
}, },
components: { components: {
SubMenu SubMenu, IconSvg
}, },
computed: { computed: {
sidebarLayoutSkin: { sidebarLayoutSkin: {

View File

@ -23,6 +23,7 @@
<script> <script>
import SubMenu from './main-sidebar-sub-menu' import SubMenu from './main-sidebar-sub-menu'
import IconSvg from '@/components/icon-svg'
import { isURL } from '@/utils/validate' import { isURL } from '@/utils/validate'
export default { export default {
data () { data () {
@ -31,7 +32,7 @@
} }
}, },
components: { components: {
SubMenu SubMenu, IconSvg
}, },
computed: { computed: {
sidebarLayoutSkin: { sidebarLayoutSkin: {

View File

@ -84,7 +84,8 @@
this.loading = false this.loading = false
this.userId = res.user.userId this.userId = res.user.userId
this.userName = res.user.username this.userName = res.user.username
this.$store.state.user = res.user this.userId = res.user && res.user.id
this.userName = res.user && res.user.userName
this.mobile = res.user.mobile this.mobile = res.user.mobile
this.$watermark.set(res.user.realName + ' ' + this.mobile.substr(7, 4)) this.$watermark.set(res.user.realName + ' ' + this.mobile.substr(7, 4))

View File

@ -168,10 +168,7 @@
</div> </div>
</template>> </template>>
<script> <script>
import { import { apiFindEquipmentByCode, apiChangeEquipment } from "@/api/api_equipment";
apiFindEquipmentByCode,
apiChangeEquipment,
} from "@/api/api_equipment";
import * as dd from "dingtalk-jsapi"; import * as dd from "dingtalk-jsapi";
export default { export default {
data() { data() {

View File

@ -30,36 +30,30 @@
</template>> </template>>
<script> <script>
export default { export default {
data () { data () {
return{ return{
value: '' value: ''
}
},
mounted () {
},
methods: {
batchOperate(command) {
switch (command) {
case 'staff':
//
this.$router.push({name: 'devicestaffdepat', query: {type: 3}})
break;
case "depat":
//
this.$router.push({name: 'devicestaffdepat', query: {type: 4}})
break;
}
},
goto (type) {
this.$router.push({name: 'devicedetail'})
}
} }
},
mounted () {},
methods: {
batchOperate(command) {
switch (command) {
case 'staff':
//
this.$router.push({name: 'devicestaffdepat', query: {type: 3}})
break;
case "depat":
//
this.$router.push({name: 'devicestaffdepat', query: {type: 4}})
break;
}
},
goto (type) {
this.$router.push({name: 'devicedetail'})
}
}
} }
</script> </script>
<style> <style>