|
@@ -21,7 +21,7 @@
|
|
|
<el-button type="primary">查询</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item style="float: right;">
|
|
|
- <el-button type="primary" id="aa">下载</el-button>
|
|
|
+ <el-button type="primary">下载</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-col>
|
|
@@ -37,19 +37,19 @@
|
|
|
<el-table-column type="index" width="60"></el-table-column>
|
|
|
<el-table-column width="200">
|
|
|
<template slot="header">
|
|
|
- <el-checkbox @change="checkName($event,0)">
|
|
|
+ <el-checkbox @change="checkChanged(0, 0)">
|
|
|
<span>模具名称</span>
|
|
|
</el-checkbox>
|
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
|
- <el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(0, scope.$index)">
|
|
|
<span>{{scope.row.name}}</span>
|
|
|
</el-checkbox>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="200">
|
|
|
<template slot="header">
|
|
|
- <el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(1, 0)">
|
|
|
<span>模具3D图档</span>
|
|
|
</el-checkbox>
|
|
|
</template>
|
|
@@ -57,13 +57,13 @@
|
|
|
<span v-if="scope.row.states[0] == 0" style="padding-left: 24px;">未上传</span>
|
|
|
<span v-else-if="scope.row.states[0] == 1" style="padding-left: 24px;">审批中</span>
|
|
|
<span v-else>
|
|
|
- <el-checkbox>已通过</el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(1, scope.$index)">已通过</el-checkbox>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="200">
|
|
|
<template slot="header">
|
|
|
- <el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(2, 0)">
|
|
|
<span>模具2D图档</span>
|
|
|
</el-checkbox>
|
|
|
</template>
|
|
@@ -71,13 +71,13 @@
|
|
|
<span v-if="scope.row.states[1] == 0" style="padding-left: 24px;">未上传</span>
|
|
|
<span v-else-if="scope.row.states[1] == 1" style="padding-left: 24px;">审批中</span>
|
|
|
<span v-else>
|
|
|
- <el-checkbox>已通过</el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(2, scope.$index)">已通过</el-checkbox>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="200">
|
|
|
<template slot="header">
|
|
|
- <el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(3, 0)">
|
|
|
<span>零件3D图档</span>
|
|
|
</el-checkbox>
|
|
|
</template>
|
|
@@ -85,13 +85,13 @@
|
|
|
<span v-if="scope.row.states[2] == 0" style="padding-left: 24px;">未上传</span>
|
|
|
<span v-else-if="scope.row.states[2] == 1" style="padding-left: 24px;">审批中</span>
|
|
|
<span v-else>
|
|
|
- <el-checkbox>已通过</el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(3, scope.$index)">已通过</el-checkbox>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="200">
|
|
|
<template slot="header">
|
|
|
- <el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(4, 0)">
|
|
|
<span>零件2D图档</span>
|
|
|
</el-checkbox>
|
|
|
</template>
|
|
@@ -99,13 +99,13 @@
|
|
|
<span v-if="scope.row.states[3] == 0" style="padding-left: 24px;">未上传</span>
|
|
|
<span v-else-if="scope.row.states[3] == 1" style="padding-left: 24px;">审批中</span>
|
|
|
<span v-else>
|
|
|
- <el-checkbox>已通过</el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(4, scope.$index)">已通过</el-checkbox>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column width="200">
|
|
|
<template slot="header">
|
|
|
- <el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(5, 0)">
|
|
|
<span>保养方案</span>
|
|
|
</el-checkbox>
|
|
|
</template>
|
|
@@ -113,7 +113,7 @@
|
|
|
<span v-if="scope.row.states[4] == 0" style="padding-left: 24px;">未上传</span>
|
|
|
<span v-else-if="scope.row.states[4] == 1" style="padding-left: 24px;">审批中</span>
|
|
|
<span v-else>
|
|
|
- <el-checkbox>已通过</el-checkbox>
|
|
|
+ <el-checkbox @change="checkChanged(5, scope.$index)">已通过</el-checkbox>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -197,6 +197,11 @@ export default {
|
|
|
},
|
|
|
selsChange(sels) {
|
|
|
this.sels = sels;
|
|
|
+ },
|
|
|
+ // 点击复选框事件
|
|
|
+ checkChanged(x, y) {
|
|
|
+ this.checkBoxArray[x][y].value=!this.checkBoxArray[x][y].value;
|
|
|
+ console.log("x="+x+" y="+y+" value="+this.checkBoxArray[x][y].value);
|
|
|
}
|
|
|
},
|
|
|
created() {
|