Commit 6a3e9ba4 authored by 高宇's avatar 高宇

Merge remote-tracking branch 'origin/project1' into project1

# Conflicts:
#	src/views/equipment/draw.vue
parents b534f7d2 da25e478
...@@ -401,36 +401,7 @@ export default { ...@@ -401,36 +401,7 @@ export default {
this.single = selection.length !== 1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
}, },
// 树权限(父子联动)
handleCheckedTreeConnect(value, type) {
if (type === 'menu') {
this.form.menuCheckStrictly = !!value
} else if (type === 'dept') {
this.form.deptCheckStrictly = !!value
}
},
// 树权限(全选/全不选)
handleCheckedTreeNodeAll(value, type) {
if (type === 'menu') {
this.$refs.menu.setCheckedNodes(value ? this.menuOptions : [])
} else if (type === 'dept') {
this.$refs.dept.setCheckedNodes(value ? this.deptOptions : [])
}
},
// 树权限(展开/折叠)
handleCheckedTreeExpand(value, type) {
if (type === 'menu') {
const treeList = this.menuOptions
for (let i = 0; i < treeList.length; i++) {
this.$refs.menu.store.nodesMap[treeList[i].id].expanded = value
}
} else if (type === 'dept') {
const treeList = this.deptOptions
for (let i = 0; i < treeList.length; i++) {
this.$refs.dept.store.nodesMap[treeList[i].id].expanded = value
}
}
},
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.open = true this.open = true
......
...@@ -265,10 +265,6 @@ ...@@ -265,10 +265,6 @@
<el-button type="primary" style="padding: 8px 7px;" icon="el-icon-search" size="small" @click="handleQueryWarehouse">查询</el-button> <el-button type="primary" style="padding: 8px 7px;" icon="el-icon-search" size="small" @click="handleQueryWarehouse">查询</el-button>
<el-button style="padding: 8px 7px;" icon="el-icon-refresh" size="small" @click="resetQueryWarehouse">重置</el-button> <el-button style="padding: 8px 7px;" icon="el-icon-refresh" size="small" @click="resetQueryWarehouse">重置</el-button>
</el-form-item> </el-form-item>
<el-radio-group v-model="radio1" class="ml-4" style="padding: 25px 7px;" @change="login">
<el-radio label="2" size="large">工序库</el-radio>
<el-radio label="1" size="large">设备库</el-radio>
</el-radio-group>
</el-form> </el-form>
<el-table v-loading="loadingDetail" border :data="detailApplyList" @selection-change="handleSelectionChange"> <el-table v-loading="loadingDetail" border :data="detailApplyList" @selection-change="handleSelectionChange">
...@@ -348,7 +344,6 @@ ...@@ -348,7 +344,6 @@
import { import {
listWbApply, listWbApply,
deleteLogical, deleteLogical,
detailList,
batchAddition, batchAddition,
detail, detail,
canceListByType, canceListByType,
...@@ -379,7 +374,7 @@ export default { ...@@ -379,7 +374,7 @@ export default {
multipleSelection: [], multipleSelection: [],
detailApplyList: [], detailApplyList: [],
deviceList: [], deviceList: [],
// TODO: 表单里的单项详情参数 // 表单里的单项详情参数
singleDetails: { singleDetails: {
pn: '', pn: '',
phd: '', phd: '',
...@@ -397,12 +392,6 @@ export default { ...@@ -397,12 +392,6 @@ export default {
loadingDetail: false, loadingDetail: false,
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 选中数组
ids: [],
// 非单个禁用
single: true,
// 非多个禁用
multiple: true,
// 总条数 // 总条数
total: 0, total: 0,
// apply_detail的总条数 // apply_detail的总条数
...@@ -413,16 +402,6 @@ export default { ...@@ -413,16 +402,6 @@ export default {
title: '', title: '',
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
// 是否显示弹出层(数据权限)
openDataScope: false,
// 日期范围
// dateRange: [],
// 菜单表格数据
menuList: [],
menuExpand: false,
menuNodeAll: false,
deptExpand: true,
deptNodeAll: false,
// 状态数据字典 // 状态数据字典
statusOptions: [ statusOptions: [
{ {
...@@ -449,9 +428,9 @@ export default { ...@@ -449,9 +428,9 @@ export default {
queryParams: { queryParams: {
page: 1, page: 1,
rows: 10, rows: 10,
pn: undefined, pn: '',
lot: undefined, lot: '',
plocation: undefined, plocation: '',
ptype: 1, ptype: 1,
delFlag: 0 delFlag: 0
}, },
...@@ -459,15 +438,14 @@ export default { ...@@ -459,15 +438,14 @@ export default {
queryParamsDetail: { queryParamsDetail: {
page: 1, page: 1,
rows: 10, rows: 10,
pn: undefined, pn: '',
lot: undefined, lot: '',
plocation: undefined, plocation: '',
ptype: 1, ptype: 1,
delFlag: 0 delFlag: 0
}, },
// 表单参数 // 表单参数
form: {}, form: {},
deptOptions: [],
// 判断状态显示表单 // 判断状态显示表单
applyStatus: '' applyStatus: ''
} }
...@@ -483,12 +461,6 @@ export default { ...@@ -483,12 +461,6 @@ export default {
next() next()
}, },
created() { created() {
// this.resetQuery()
// if (this.$store.getters.searchParams[this.$route.path]) {
// const { searchParams } = this.$store.getters; const { path } = this.$route
// const param = JSON.parse(searchParams[path]) // 保留着的查询条件
// this.queryParams = { ...param }
// }
this.getList() this.getList()
}, },
methods: { methods: {
...@@ -710,25 +682,8 @@ export default { ...@@ -710,25 +682,8 @@ export default {
) )
}, },
// 取消按钮
cancel() {
this.open = false
this.reset()
},
// 取消按钮(数据权限)
cancelDataScope() {
this.openDataScope = false
this.reset()
},
// 表单重置 // 表单重置
reset() { reset() {
if (this.$refs.menu !== undefined) {
this.$refs.menu.setCheckedKeys([])
}
this.menuExpand = false
this.menuNodeAll = false
this.deptExpand = true
this.deptNodeAll = false
this.form = { this.form = {
pn: undefined, pn: undefined,
ptype: undefined, ptype: undefined,
...@@ -763,7 +718,7 @@ export default { ...@@ -763,7 +718,7 @@ export default {
prank: '', prank: '',
pstatus: '', pstatus: '',
ptype: '1', ptype: '1',
delFlag: 0 delFlag: '0'
} }
this.handleQuery() this.handleQuery()
}, },
...@@ -787,36 +742,7 @@ export default { ...@@ -787,36 +742,7 @@ export default {
handleSelectionChange: function(selection) { handleSelectionChange: function(selection) {
this.multipleSelection = selection this.multipleSelection = selection
}, },
// 树权限(父子联动)
handleCheckedTreeConnect(value, type) {
if (type === 'menu') {
this.form.menuCheckStrictly = !!value
} else if (type === 'dept') {
this.form.deptCheckStrictly = !!value
}
},
// 树权限(全选/全不选)
handleCheckedTreeNodeAll(value, type) {
if (type === 'menu') {
this.$refs.menu.setCheckedNodes(value ? this.menuOptions : [])
} else if (type === 'dept') {
this.$refs.dept.setCheckedNodes(value ? this.deptOptions : [])
}
},
// 树权限(展开/折叠)
handleCheckedTreeExpand(value, type) {
if (type === 'menu') {
const treeList = this.menuOptions
for (let i = 0; i < treeList.length; i++) {
this.$refs.menu.store.nodesMap[treeList[i].id].expanded = value
}
} else if (type === 'dept') {
const treeList = this.deptOptions
for (let i = 0; i < treeList.length; i++) {
this.$refs.dept.store.nodesMap[treeList[i].id].expanded = value
}
}
},
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const id = row.businessId const id = row.businessId
......
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