|
@@ -120,7 +120,7 @@
|
|
|
|
|
|
|
|
<!-- 默认值 -->
|
|
<!-- 默认值 -->
|
|
|
<template v-slot:defaultValue="{ row }">
|
|
<template v-slot:defaultValue="{ row }">
|
|
|
- <el-input v-if="row.textType == 1 || row.textType == 4" v-model="row.defaultValue"
|
|
|
|
|
|
|
+ <el-input v-if="row.textType == 1 || row.textType == 4 || row.textType == 5" v-model="row.defaultValue"
|
|
|
placeholder="请输入"></el-input>
|
|
placeholder="请输入"></el-input>
|
|
|
<el-select v-if="row.textType == 2" v-model="row.defaultValue" placeholder="请选择">
|
|
<el-select v-if="row.textType == 2" v-model="row.defaultValue" placeholder="请选择">
|
|
|
<el-option label="TRUE" :value="'TRUE'" />
|
|
<el-option label="TRUE" :value="'TRUE'" />
|
|
@@ -140,12 +140,17 @@
|
|
|
|
|
|
|
|
<!-- 单位 -->
|
|
<!-- 单位 -->
|
|
|
<template v-slot:unitName="{ row }">
|
|
<template v-slot:unitName="{ row }">
|
|
|
- <DictSelection v-if="row.textType != 2" dictName="工艺参数单位" clearable filterable v-model="row.unitName">
|
|
|
|
|
|
|
+ <DictSelection v-if="row.textType != 2 && row.textType != 5" dictName="工艺参数单位" clearable filterable
|
|
|
|
|
+ v-model="row.unitName">
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
|
|
|
+
|
|
|
|
|
+ <span v-if="row.textType == 5"> h(小时)</span>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-popconfirm class="ele-action" title="确定要删除当前参数吗?" @confirm="remove(row)">
|
|
<el-popconfirm class="ele-action" title="确定要删除当前参数吗?" @confirm="remove(row)">
|
|
@@ -166,7 +171,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -200,6 +204,8 @@ import ParamModal from './ParamModal.vue'
|
|
|
|
|
|
|
|
import { pageList } from '@/api/technology/version/version.js';
|
|
import { pageList } from '@/api/technology/version/version.js';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
components: {
|
|
components: {
|
|
|
ProductModal,
|
|
ProductModal,
|
|
|
ParamModal,
|
|
ParamModal,
|
|
@@ -392,8 +398,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
remove(row) {
|
|
remove(row) {
|
|
|
- const data = this.$refs.table.getData() ?? [];
|
|
|
|
|
|
|
|
|
|
|
|
+ const data = this.$refs.table.getData() ?? [];
|
|
|
if (row.id) {
|
|
if (row.id) {
|
|
|
this.removeList.push(row.id);
|
|
this.removeList.push(row.id);
|
|
|
this.$refs.table.setData(data.filter((d) => d.id !== row.id));
|
|
this.$refs.table.setData(data.filter((d) => d.id !== row.id));
|
|
@@ -425,11 +431,14 @@ export default {
|
|
|
: parameter.save;
|
|
: parameter.save;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (this.removeList.length > 0) {
|
|
|
|
|
+ this.form['removeList'] = this.removeList
|
|
|
|
|
+ }
|
|
|
saveOrUpdate(this.form)
|
|
saveOrUpdate(this.form)
|
|
|
.then((msg) => {
|
|
.then((msg) => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
this.form = {};
|
|
this.form = {};
|
|
|
|
|
+ this.form['removeList'] = []
|
|
|
this.$message.success(msg);
|
|
this.$message.success(msg);
|
|
|
this.updateVisible(false);
|
|
this.updateVisible(false);
|
|
|
this.$emit('done');
|
|
this.$emit('done');
|