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