Commit c783a85a authored by 吴志坤's avatar 吴志坤

工序库设备领用登录弹窗

parent 32b19aa0
...@@ -42,3 +42,15 @@ export function detail(id) { ...@@ -42,3 +42,15 @@ export function detail(id) {
method: 'get' method: 'get'
}) })
} }
// 菜单权限验证接口
export function checkPermission(password) {
return request({
url: '/wbapply/checkPermission',
method: 'post',
password,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
})
}
...@@ -227,12 +227,6 @@ ...@@ -227,12 +227,6 @@
{{ scope.row.psm || '-' }} {{ scope.row.psm || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="pissb" prop="pissb">
<template slot-scope="scope">
<span v-if="scope.row.pissb === '0'"></span>
<span v-else></span>
</template>
</el-table-column>
</el-table> </el-table>
</el-dialog> </el-dialog>
...@@ -312,12 +306,6 @@ ...@@ -312,12 +306,6 @@
{{ scope.row.psm || '-' }} {{ scope.row.psm || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="pissb" prop="pissb">
<template slot-scope="scope">
<span v-if="scope.row.pissb === '0'"></span>
<span v-else></span>
</template>
</el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="totalDetail>0" v-show="totalDetail>0"
......
...@@ -272,8 +272,8 @@ ...@@ -272,8 +272,8 @@
<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-group v-model="radio1" class="ml-4" style="padding: 25px 7px;" @change="login">
<el-radio label="1" size="large">设备库</el-radio>
<el-radio label="2" size="large">工序库</el-radio> <el-radio label="2" size="large">工序库</el-radio>
<el-radio label="1" size="large">设备库</el-radio>
</el-radio-group> </el-radio-group>
</el-form> </el-form>
...@@ -315,10 +315,9 @@ ...@@ -315,10 +315,9 @@
{{ scope.row.psm || '-' }} {{ scope.row.psm || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="pissb" prop="pissb"> <el-table-column label="回收时间" prop="recycleDate">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.pissb === '0'"></span> {{ scope.row.recycleDate || '-' }}
<span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -341,14 +340,11 @@ ...@@ -341,14 +340,11 @@
<!-- 登录验证--> <!-- 登录验证-->
<el-dialog :title="title" :visible.sync="openLogin" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="openLogin" width="500px" append-to-body>
<el-form ref="form" :model="loginform" label-width="80px"> <el-form ref="form" :model="loginform" label-width="80px">
<el-form-item label="用户名">
<el-input v-model="loginform.username"></el-input>
</el-form-item>
<el-form-item label="密码"> <el-form-item label="密码">
<el-input type="password" v-model="loginform.password"></el-input> <el-input type="password" v-model="loginform.password"></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="handleSubmit">登录</el-button> <el-button type="primary" @click="handleConfirm">确定</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-dialog> </el-dialog>
...@@ -356,7 +352,7 @@ ...@@ -356,7 +352,7 @@
</template> </template>
<script> <script>
import { getEquipment } from '@/api/equipment/application' import { getEquipment } from '@/api/equipment/application'
import { listWbApply, deleteLogical, detailList, batchAddition, detail } from '@/api/equipment/draw' import { listWbApply, deleteLogical, detailList, batchAddition, detail, checkPermission } from '@/api/equipment/draw'
import { parseTime } from '@/utils' import { parseTime } from '@/utils'
export default { export default {
name: 'Draw', name: 'Draw',
...@@ -368,7 +364,7 @@ export default { ...@@ -368,7 +364,7 @@ export default {
}, },
// 打开登录验证界面 // 打开登录验证界面
openLogin: false, openLogin: false,
radio1: '', radio1: '2',
ptype: '', ptype: '',
pgx: '', pgx: '',
prank: '', prank: '',
...@@ -491,6 +487,16 @@ export default { ...@@ -491,6 +487,16 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
// 菜单权限验证确定
handleConfirm() {
checkPermission(this.loginform.password).then(res => {
if (res.code === 200) {
this.$message.warning('已切换到设备库')
}
})
},
handleCance() { handleCance() {
this.loadingDetail = true this.loadingDetail = true
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
...@@ -513,7 +519,6 @@ export default { ...@@ -513,7 +519,6 @@ export default {
}) })
console.log('canceList', this.canceList) console.log('canceList', this.canceList)
batchAddition(this.canceList).then(res => { batchAddition(this.canceList).then(res => {
console.log('res', res)
if (res.code === 200) { if (res.code === 200) {
this.loadingDetail = false this.loadingDetail = false
this.openHandle = false this.openHandle = false
...@@ -659,7 +664,7 @@ export default { ...@@ -659,7 +664,7 @@ export default {
}, },
// 登录 // 登录
login() { login() {
this.title = '登录' this.title = '菜单权限'
this.openLogin = true this.openLogin = true
}, },
// warehouse的重置按钮 // warehouse的重置按钮
......
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