lanceJiang 1 жил өмнө
parent
commit
2a6900cc68

+ 0 - 54
src/views/approve/components/approvedContent.vue

@@ -290,60 +290,6 @@ const allowAppendNode = ref(true)
 // 允许回退
 const allowRollback = ref(true)
 const modelContentConfig = ref({})
-/*const package_modelContentConfig = (data, list = [], levelIdx = 0) => {
-	const new_list = [data]
-	let curData = data
-	while (curData.childNode) {
-		new_list.push(curData.childNode)
-		curData = curData.childNode
-	}
-	/!**local_status: 0: 已执行(success) 1:执行中(error) // 默认未执行(info)*!/
-	return new_list.reduce((_list, config, i) => {
-		// 节点唯一key
-		/!*if (!config.local_name) {
-			config.local_name = `${config.nodeName}&_&${levelIdx}_${i}`
-		}*!/
-		config.local_status = 'info'
-		// 条件分支
-		if (Array.isArray(config.conditionNodes)) {
-			// console.log('条件节点', config)
-			_list.push(config)
-			if (Array.isArray(config.conditionNodes) && config.conditionNodes.length) {
-				// 节点唯一key(条件分支 额外处理)
-				config.conditionNodes.map((v, _i) => {
-					// v.local_name = v.local_name || `${config.local_name}_${v.nodeName}*${_i}`
-					v.local_status = 'info'
-				})
-				// const _val = processChecked[config.local_name] // temptemptemp
-				const _val = undefined // config.conditionNodes[0]
-				let condition = config.conditionNodes[0]
-				if (_val) {
-					config.conditionNodes.some(_condition => {
-						/!*if (_condition.local_name === _val) {
-							condition = _condition
-							return true
-						}*!/
-					})
-				} else {
-					// console.error('else......', condition)
-					// processChecked[config.local_name] = condition.local_name
-				}
-				// console.warn('条件节点', condition.nodeName)
-				if (condition.childNode) {
-					package_modelContentConfig(condition.childNode, _list, levelIdx + 1)
-				}
-			}
-		} else {
-			_list.push(config)
-		}
-		return _list
-	}, list)
-}*/
-/*const processTimelineList = computed(() => {
-	// return []
-	return package_modelContentConfig(modelContentConfig.value)
-})
-window.processTimelineList = processTimelineList*/
 /**
  * 详情按钮各个操作弹窗
  * @param visibleType 评论 拒绝 同意等