|
@@ -328,6 +328,22 @@
|
|
|
</div>
|
|
|
|
|
|
|
|
|
+ </HcDialog>
|
|
|
+ <!-- 公式参数配置 -->
|
|
|
+ <HcDialog :show="formulaModal" title="公式参数配置" widths="84%" saveText="保存" @close="formulaModal = false" @save="saveformulaModal">
|
|
|
+
|
|
|
+ <div v-if="componentDetail['type']==='radio'">
|
|
|
+ <el-form ref="formIDVFRef" :model="formulaModalinfo" label-width="auto" size="large" >
|
|
|
+ <el-form-item :label="componentDetail['info']['label']">
|
|
|
+ <!-- onkeyup="value = value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g,'$1')" -->
|
|
|
+ <el-radio-group size="large" v-model="formulaModalinfo.type">
|
|
|
+ <el-radio :label="componentDetail['info']['value'][0]['value']">{{componentDetail['info']['value'][0]['label']}}</el-radio>
|
|
|
+ <el-radio :label="componentDetail['info']['value'][1]['value']" class="ml-4">{{componentDetail['info']['value'][1]['label']}}</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+
|
|
|
</HcDialog>
|
|
|
</template>
|
|
|
|
|
@@ -409,6 +425,18 @@ const tenantId = ref(props.tenantId);
|
|
|
const wbsType = ref(props.wbsType);
|
|
|
//全局变量
|
|
|
const projectId = ref(useAppState.getProjectId);
|
|
|
+const componentDetail=ref({
|
|
|
+ type:'radio',
|
|
|
+ info:{
|
|
|
+ label:'是否引用公式数据',
|
|
|
+ value:[
|
|
|
+ {label:'是',value:1},
|
|
|
+ {label:'否',value:0},
|
|
|
+
|
|
|
+ ]
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
//监听
|
|
|
watch(() => [
|
|
@@ -945,7 +973,8 @@ const setTableFormMenu = (info) => {
|
|
|
//newArr.push({label: '插入设计值/频率', key: "IDVF"})
|
|
|
newArr.push({label: '插入特殊字符', key: "special"})
|
|
|
newArr.push({label: '关联试验数据', key: "CTD"}),
|
|
|
- newArr.push({label: '关联试验文件', key: "file"})
|
|
|
+ newArr.push({label: '关联试验文件', key: "file"}),
|
|
|
+ // newArr.push({label: '公式参数', key:"formula"})
|
|
|
tableFormMenu.value = newArr
|
|
|
}
|
|
|
|
|
@@ -961,7 +990,10 @@ const onRightClick = (event, KeyName, index) => {
|
|
|
tableFormItemNode.value = {KeyName, index, startPos, endPos, pkeyId: formKeyIds.value}
|
|
|
contextMenuRef.value?.showMenu(event) //展开菜单
|
|
|
}
|
|
|
-
|
|
|
+const formulaModal=ref(false)
|
|
|
+const formulaModalinfo=ref({
|
|
|
+ type:''
|
|
|
+})
|
|
|
//鼠标右键菜单被点击
|
|
|
const handleMenuSelect = ({key}) => {
|
|
|
if (key === 'IDVF') {
|
|
@@ -978,6 +1010,12 @@ const handleMenuSelect = ({key}) => {
|
|
|
filedialogTableData.value=[]
|
|
|
|
|
|
}
|
|
|
+ else if(key === 'formula'){
|
|
|
+ console.log('公式参数');
|
|
|
+ formulaModal.value=true
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//插入设计值
|
|
@@ -1342,7 +1380,10 @@ const submitinsertData = async () => {
|
|
|
window?.$message?.warning('请选择你要关联的数据')
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+//公式参数配置
|
|
|
+const saveformulaModal=()=>{
|
|
|
+ console.log('保存');
|
|
|
+}
|
|
|
//节点被点击
|
|
|
const ElTreeClick = async (data,node) => {
|
|
|
console.log(data,mode);
|