|
@@ -338,25 +338,28 @@
|
|
|
<el-button type="primary" hc-btn size="small" class="ml-2" @click="batchSetRule">设置</el-button>
|
|
|
</div>
|
|
|
|
|
|
- <div style="position: relative; height: 240px" class="mt-2">
|
|
|
+ <div style="position: relative; height: 440px" class="mt-2">
|
|
|
<hc-table :column="ruleTableColumn" :datas="ruleTableData">
|
|
|
<template #rule="{ row }">
|
|
|
- <el-select
|
|
|
- v-model="row.rule"
|
|
|
- placeholder="请选择"
|
|
|
- multiple
|
|
|
- clearable
|
|
|
- class="custom-select"
|
|
|
- :popper-append-to-body="false"
|
|
|
- @change="ruleChange(row)"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in nodeTypeData"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <div class="flex items-center">
|
|
|
+ <span class="text-red">*</span>
|
|
|
+ <el-select
|
|
|
+ v-model="row.rule"
|
|
|
+ placeholder="请选择"
|
|
|
+ multiple
|
|
|
+ clearable
|
|
|
+ class="custom-select"
|
|
|
+ :popper-append-to-body="false"
|
|
|
+ @change="ruleChange(row)"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in nodeTypeData"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</hc-table>
|
|
|
</div>
|
|
@@ -1224,6 +1227,10 @@ const ruleChange = async (ele)=>{
|
|
|
}
|
|
|
const getRuleLoad = ref(false)
|
|
|
const getRuleValue = async (wbsId, param) => {
|
|
|
+ if (!param) {
|
|
|
+ window.$message?.warning('请选择题名规则')
|
|
|
+ return
|
|
|
+ }
|
|
|
getRuleLoad.value = true
|
|
|
const { error, code, msg, data } = await queryApi.previewNodeName({
|
|
|
wbsId:wbsId,
|