diff --git a/src/api/user.js b/src/api/user.js
new file mode 100644
index 0000000..37230b8
--- /dev/null
+++ b/src/api/user.js
@@ -0,0 +1,39 @@
+import api from '@/utils/api'
+import qs from 'qs'
+
+export function add(data) {
+ return api({
+ url: '/user',
+ method: 'post',
+ data
+ })
+}
+
+export function edit(data) {
+ return api({
+ url: '/user',
+ method: 'put',
+ data
+ })
+}
+
+export function del(params) {
+ return api({
+ url: '/user',
+ method: 'delete',
+ params,
+ paramsSerializer: function(params) {
+ return qs.stringify(params, { indices: false })
+ }
+ })
+}
+
+export function getList(params) {
+ return api({
+ url: '/user/list',
+ method: 'get',
+ params
+ })
+}
+
+export default { add, edit, del, getList }
diff --git a/src/views/user/user.vue b/src/views/user/user.vue
index 851d7b4..d50bbc0 100644
--- a/src/views/user/user.vue
+++ b/src/views/user/user.vue
@@ -34,12 +34,20 @@
添加
+ 冻结
+
+
@@ -62,7 +70,6 @@
-
@@ -185,10 +192,9 @@ import CRUD, { form, header, presenter } from '@/components/Crud/crud'
// import Crud from '@/components/Crud'
// import Query from '@/components/Crud/Query'
import Edit from '@/components/Crud/Edit'
-import Delete from '@/components/Crud/Delete'
import CustomTable from '@/components/Crud/Table'
import Pagination from '@/components/Crud/Pagination'
-import CrudRole from '@/api/role'
+import CrudUser from '@/api/user'
import { mapGetters } from 'vuex'
import { parseTime } from '../../utils'
// import Pagination from '@/components/Pagination'
@@ -198,7 +204,7 @@ const defaultCrud = presenter(CRUD({
url: '/user/list',
orderBy: ['id asc'],
param: {},
- crudMethod: { ...CrudRole }
+ crudMethod: { ...CrudUser }
}))
// 设置初始form
@@ -210,7 +216,7 @@ const defaultForm = form({
})
export default {
name: 'UserList',
- components: { Pagination, CustomTable, Edit, Delete },
+ components: { Pagination, CustomTable, Edit },
mixins: [defaultCrud, defaultForm, header()],
data() {
return {
@@ -551,6 +557,13 @@ export default {
} else {
return null
}
+ },
+ delUser() {
+ CrudUser.del({
+ ids: this.$refs.customTable.$refs.table.selection.map(row => row.id)
+ }).then(() => {
+ this.crud.toQuery()
+ })
}
}
}
diff --git a/src/views/ysjl/3000/dj/yy/index.vue b/src/views/ysjl/3000/dj/yy/index.vue
index 05cc762..5ae064d 100644
--- a/src/views/ysjl/3000/dj/yy/index.vue
+++ b/src/views/ysjl/3000/dj/yy/index.vue
@@ -63,16 +63,21 @@ export default {
header: [
{
label: '层站',
- prop: 'D8',
+ prop: 'D9',
type: 1
},
{
label: '6.3施力层门间隙',
- prop: 'D7',
+ prop: 'D8',
type: 1
},
{
label: '6.3门扇与门扇',
+ prop: 'D7',
+ type: 1
+ },
+ {
+ label: '6.3门扇与立柱',
prop: 'D6',
type: 1
},
diff --git a/src/views/ysjl/3000/dj/zw/index.vue b/src/views/ysjl/3000/dj/zw/index.vue
index 3b8e52d..78764a0 100644
--- a/src/views/ysjl/3000/dj/zw/index.vue
+++ b/src/views/ysjl/3000/dj/zw/index.vue
@@ -7,7 +7,7 @@
import baseInfo from '@/views/ysjl/3000/common/index'
export default {
- name: 'ElevatorYeyin',
+ name: 'ElevatorZaWu',
components: { baseInfo },
data() {
return {
@@ -17,11 +17,12 @@ export default {
header: [
{
label: '层站',
- prop: 'D7',
+ prop: 'D2',
type: 1
},
{
label: '6.8门的闭合',
+ prop: 'D1',
type: 1
}
],
@@ -58,37 +59,7 @@ export default {
data: []
}
],
- tableHeader2: [
- {
- label: '电动机电流载重量百分比',
- type: 1
- },
- {
- label: '30%',
- prop: 'D1',
- type: 1
- },
- {
- label: '40%',
- prop: 'D2',
- type: 1
- },
- {
- label: '45%',
- prop: 'D3',
- type: 1
- },
- {
- label: '50%',
- prop: 'D4',
- type: 1
- },
- {
- label: '60%',
- prop: 'D5',
- type: 1
- }
- ],
+ tableHeader2: [],
list: [],
list1: []
}