fix:工序类别,控制策略下拉修改
This commit is contained in:
parent
e35abdef00
commit
780bb48db8
@ -38,9 +38,9 @@
|
||||
<el-table-column prop="operationCode" label="工序编码" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="operationSeq" label="工序序号" align="center" />
|
||||
<el-table-column prop="operationType" label="工序类别" align="center">
|
||||
<template #default="scope">
|
||||
<!-- <template #default="scope">
|
||||
<dict-tag :options="options.operationTypeOptions" :value="scope.row.operationType" />
|
||||
</template>
|
||||
</template> -->
|
||||
</el-table-column>
|
||||
<el-table-column prop="description" label="描述" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="standardTime" label="标准时间(秒)" align="center" />
|
||||
@ -111,10 +111,11 @@
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="工序类别" prop="operationType">
|
||||
<el-select v-model="form.operationType" placeholder="请选择工序类别">
|
||||
<!-- <el-select v-model="form.operationType" placeholder="请选择工序类别">
|
||||
<el-option v-for="item in options.operationTypeOptions" :key="item.dictValue" :label="item.dictLabel"
|
||||
:value="item.dictValue"></el-option>
|
||||
</el-select>
|
||||
</el-select> -->
|
||||
<el-input v-model="form.operationType" placeholder="请选择工序类别" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
@ -124,10 +125,11 @@
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="控制策略" prop="controlStrategy">
|
||||
<el-select v-model="form.controlStrategy" placeholder="请选择控制策略">
|
||||
<!-- <el-select v-model="form.controlStrategy" placeholder="请选择控制策略">
|
||||
<el-option v-for="item in options.controlStrategyOptions" :key="item.dictValue" :label="item.dictLabel"
|
||||
:value="item.dictValue"></el-option>
|
||||
</el-select>
|
||||
</el-select> -->
|
||||
<el-input v-model="form.controlStrategy" placeholder="请选择控制策略" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
@ -591,9 +593,6 @@ function handleInput(row) {
|
||||
}
|
||||
// 删除表格行
|
||||
function deleteTableRow(row) {
|
||||
console.log(row.id, '090909');
|
||||
|
||||
|
||||
if (row.id) {
|
||||
const Ids = row.id
|
||||
proxy
|
||||
@ -640,6 +639,7 @@ function deleteTableRow1(row) {
|
||||
function getSelectWorkmanship() {
|
||||
getDictsSelect().then(res => {
|
||||
if (res.code == 200) {
|
||||
console.log(res, '控制类别!');
|
||||
const activeStrategies = res.data.filter(item => item.isActive === 1);
|
||||
options.value.controlStrategyOptions = activeStrategies.map(item => {
|
||||
return {
|
||||
@ -650,7 +650,7 @@ function getSelectWorkmanship() {
|
||||
}
|
||||
})
|
||||
}
|
||||
getSelectWorkmanship()
|
||||
// getSelectWorkmanship()
|
||||
|
||||
|
||||
function handleFlowName(val, row) {
|
||||
@ -738,6 +738,7 @@ function handleClick(tab, event) {
|
||||
function getSelectDict() {
|
||||
getDictsType().then(res => {
|
||||
if (res.code == 200) {
|
||||
console.log(res, '字典数据');
|
||||
const activeDicts = res.data
|
||||
options.value.operationTypeOptions = activeDicts.map(item => {
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user