|
@@ -180,6 +180,7 @@
|
|
|
@row-del="rowDel"
|
|
|
:summary-method="summaryMethod"
|
|
|
@saveColumn="saveColumn"
|
|
|
+ @resetColumn="resetColumn"
|
|
|
:cell-style="cellStyle"
|
|
|
>
|
|
|
<template slot="menuLeft">
|
|
@@ -302,14 +303,21 @@
|
|
|
|
|
|
<span v-else> {{ row.cname }}</span>
|
|
|
</template>
|
|
|
- <template slot="partsList" slot-scope="{ row, index }">
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- type="text"
|
|
|
- @click="partrePick(row, index)"
|
|
|
- :disabled="disabled"
|
|
|
- >操作</el-button
|
|
|
- >
|
|
|
+ <template slot="partsDescribe" slot-scope="{ row, index }">
|
|
|
+ <span v-if="row.$cellEdit" style="display:flex">
|
|
|
+ <el-input
|
|
|
+ v-model="row.partsDescribe"
|
|
|
+ :readonly="true"
|
|
|
+ size="small"
|
|
|
+ placeholder="请点击右边按钮"
|
|
|
+ ></el-input>
|
|
|
+ <el-button
|
|
|
+ icon="el-icon-edit"
|
|
|
+ size="mini"
|
|
|
+ @click="partrePick(row, index)"
|
|
|
+ ></el-button>
|
|
|
+ </span>
|
|
|
+ <span v-else>{{ row.partsDescribe }}</span>
|
|
|
</template>
|
|
|
<template slot="priorityReferrer" slot-scope="{ row }">
|
|
|
<el-checkbox
|
|
@@ -1519,6 +1527,20 @@ export default {
|
|
|
this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
}
|
|
|
},
|
|
|
+ async resetColumn() {
|
|
|
+ this.tableOption = tableOption;
|
|
|
+ const inSave = await this.delColumnData(
|
|
|
+ this.getColumnName(5),
|
|
|
+ tableOption
|
|
|
+ );
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("重置成功");
|
|
|
+ //关闭窗口
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.crud.$refs.dialogColumn.columnBox = false;
|
|
|
+ }, 1000);
|
|
|
+ }
|
|
|
+ },
|
|
|
async saveGoodsColumn() {
|
|
|
const inSave = await this.saveColumnData(
|
|
|
this.getColumnName(26),
|