Selaa lähdekoodia

修改绑定工序分组和工艺条件。

jiaxiaoqiang 3 kuukautta sitten
vanhempi
commit
77eb61c2bf

+ 1 - 0
src/views/base/craftManagement/route/bindConfig.ts

@@ -210,6 +210,7 @@ export const formOption = {
     },
     {
       label: "工艺条件",
+      type: "textarea",
       prop: "processAsk",
       span: 24,
     },

+ 18 - 5
src/views/base/craftManagement/route/components/groupProcess.vue

@@ -35,6 +35,7 @@ function confirmClick() {
 }
 
 const startGroup = async (nodes: any[], routeId: string) => {
+  console.log(nodes);
   nodesData.value = markRaw(nodes);
   routeIdA.value = routeId;
 
@@ -111,7 +112,13 @@ const addGroup = () => {
       </el-row>
 
       <div v-for="key in Object.keys(groupData)" :key="key">
-        <div class="group-name">{{ key }}</div>
+        <div class="name-container">
+          <div class="group-name">{{ key }}</div>
+          <el-button link type="danger" @click="() => delete groupData[key]"
+            >删除</el-button
+          >
+        </div>
+
         <el-select
           v-model="groupData[key]"
           multiple
@@ -132,7 +139,7 @@ const addGroup = () => {
           <el-option
             v-for="item in nodesData"
             :key="item.operationId"
-            :label="item.operationName"
+            :label="item.operationName + '(' + item.operationId + ')'"
             :value="item.operationId"
           />
         </el-select>
@@ -140,17 +147,23 @@ const addGroup = () => {
     </template>
     <template #footer>
       <div style="flex: auto">
-        <el-button @click="cancelClick">cancel</el-button>
-        <el-button type="primary" @click="confirmClick">confirm</el-button>
+        <el-button @click="cancelClick">取消</el-button>
+        <el-button type="primary" @click="confirmClick">保存</el-button>
       </div>
     </template>
   </el-drawer>
 </template>
 
 <style scoped lang="scss">
+.name-container {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  margin-top: 15px;
+}
+
 .group-name {
   font-size: 16px;
   font-weight: bold;
-  margin-top: 20px;
 }
 </style>