0000deletable

This commit is contained in:
chenjianan
2019-05-04 15:50:43 +08:00
parent a232fc15a4
commit dd5bc482f4

View File

@@ -116,10 +116,10 @@
<el-table-column label="操作" fixed="right" align="center" width="100"> <el-table-column label="操作" fixed="right" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
:disabled="Number(id)!==0"
size="mini" size="mini"
type="danger" type="danger"
icon="el-icon-delete" icon="el-icon-delete"
disabled
@click="handleDelete(scope.row)">删除</el-button> @click="handleDelete(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -202,10 +202,10 @@
<el-table-column label="操作" fixed="right" align="center" width="200"> <el-table-column label="操作" fixed="right" align="center" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
:disabled="Number(id)!==0"
size="mini" size="mini"
type="danger" type="danger"
icon="el-icon-delete" icon="el-icon-delete"
disabled
@click="handleDelete(scope.row)">删除</el-button> @click="handleDelete(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
@@ -226,6 +226,7 @@
<script> <script>
import { projectSelect, machineSelect, groupSelect, basicPartsData, deleteBasicParts, purchasePartsData, deletePurchaseData } from '@/api/TechnologyCenter/QueryParts' import { projectSelect, machineSelect, groupSelect, basicPartsData, deleteBasicParts, purchasePartsData, deletePurchaseData } from '@/api/TechnologyCenter/QueryParts'
import { mapGetters } from 'vuex'
export default { export default {
name: 'Index', name: 'Index',
data() { data() {
@@ -249,6 +250,10 @@ export default {
} }
}, },
computed: { computed: {
...mapGetters([
'name',
'id' // 人员编号
]),
groupName() { groupName() {
for (let i = 0; i < this.group.length; i++) { for (let i = 0; i < this.group.length; i++) {
if (this.group[i].value === this.groupValue) { if (this.group[i].value === this.groupValue) {