Commit 35728540 authored by 郭铭瑶's avatar 郭铭瑶 🤘

改版

parent 9dbc49a4
......@@ -6,7 +6,7 @@ import App from './App'
import router from './router'
import common from './util/common'
import api from './util/api'
import {Icon, Button, Collapse, Panel, Modal, Table} from 'view-design'
import {Icon, Button, Collapse, Panel, Modal, Table, Drawer} from 'view-design'
import 'view-design/dist/styles/iview.css'
Vue.config.productionTip = false
......@@ -18,6 +18,7 @@ Vue.component('Collapse', Collapse)
Vue.component('Panel', Panel)
Vue.component('Modal', Modal)
Vue.component('Table', Table)
Vue.component('Drawer', Drawer)
/* eslint-disable no-new */
new Vue({
el: '#app',
......
......@@ -4,7 +4,7 @@ case 'production':
BASE_URL = 'http://211.136.105.193/elev/static/'
break
default:
BASE_URL = 'http://localhost:8081/static/'
BASE_URL = 'http://localhost:8080/static/'
};
export default {
BASE_URL,
......
......@@ -11,6 +11,21 @@ export default{
return []
}
},
switchStatus(status) {
status = Number(status)
switch (status) {
case 0:
return '未签约'
case 1:
return '已公告'
case 2:
return '已开工'
case 3:
return '已完工'
default:
return '暂无状态'
}
},
similar(str1, str2) {
if (!str1 || !str2 || typeof(str1) != 'string' || typeof(str2) != 'string') {
console.error('参数需要是string类型!')
......
This diff is collapsed.
......@@ -23,7 +23,7 @@
</div>
</template>
// <script>
<script>
// const {AMap} = window
// const star1 = require('@/assets/images/star1.png')
// const star2 = require('@/assets/images/star2.png')
......
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