|
@@ -9,7 +9,6 @@
|
|
|
v-model:page="page"
|
|
|
@row-save="createRow"
|
|
|
@row-update="updateRow"
|
|
|
- @row-del="deleteRow"
|
|
|
@search-change="searchChange"
|
|
|
@search-reset="resetChange"
|
|
|
@size-change="dataList"
|
|
@@ -44,11 +43,19 @@
|
|
|
link
|
|
|
type="primary"
|
|
|
icon="el-icon-edit"
|
|
|
- :disabled="false"
|
|
|
+ v-if="row.usable === 0"
|
|
|
@click="doEdit(row, index)"
|
|
|
>编辑</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
+ link
|
|
|
+ type="danger"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ v-if="row.usable === 0"
|
|
|
+ @click="deleteRow(row, index)"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
link
|
|
|
type="primary"
|
|
|
icon="el-icon-copy-document"
|
|
@@ -212,9 +219,11 @@ const bindProcess = (row) => {
|
|
|
// 设置表格列或者其他自定义的option
|
|
|
option.value = Object.assign(option.value, {
|
|
|
selection: true,
|
|
|
- labelWidth: 110,
|
|
|
+ labelWidth: 100,
|
|
|
editBtn: false,
|
|
|
- searchLabelWidth: 110,
|
|
|
+ delBtn: false,
|
|
|
+ menuWidth: 250,
|
|
|
+ searchLabelWidth: 100,
|
|
|
column: [
|
|
|
{
|
|
|
label: "工艺路线编号",
|