Merge pull request 'fix : 移除输出log' (#373) from dj into master

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/373
This commit is contained in:
2024-06-21 05:03:07 +00:00
30 changed files with 45 additions and 70 deletions

View File

@@ -55,7 +55,7 @@ export const getUserDetail = (userId) => {
// 操作 // 操作
export const operate = (data, type) => { export const operate = (data, type) => {
console.log(type ,'type'); // console.log(type ,'type');
if(data.userId && type !== '0') return editUser(data) if(data.userId && type !== '0') return editUser(data)
else if(type == '0') return editUserOA(data) else if(type == '0') return editUserOA(data)
return addUser(data) return addUser(data)

View File

@@ -134,7 +134,7 @@ const handleReject = async () => {
// ...values // ...values
auditOpinion: _value.value auditOpinion: _value.value
} }
console.log('params', params) // console.log('params', params)
const res = await rejectTask(params) const res = await rejectTask(params)
ElNotification({ ElNotification({
title: '提示', title: '提示',

View File

@@ -39,25 +39,7 @@
<process-diagram-viewer mode="view" :idName="title" v-if="processDiagramViewer&&changeDiagram"/> <process-diagram-viewer mode="view" :idName="title" v-if="processDiagramViewer&&changeDiagram"/>
</div> </div>
</div> </div>
</div> </div>
<!-- <div v-if="changeDiagram">-->
<!-- <div class="approval-record">-->
<!-- <div class="approval-title">-->
<!-- <baseTitle title="流程图"></baseTitle>-->
<!-- <div class="diagram">-->
<!--&lt;!&ndash; <div class="base-title">流程图</div>&ndash;&gt;-->
<!--&lt;!&ndash; <el-switch&ndash;&gt;-->
<!--&lt;!&ndash; v-model="changeDiagram"&ndash;&gt;-->
<!--&lt;!&ndash; style="&#45;&#45;el-switch-on-color: #13ce66; &#45;&#45;el-switch-off-color:#BEA266"&ndash;&gt;-->
<!--&lt;!&ndash; />&ndash;&gt;-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="process">-->
<!-- <process-diagram-viewer mode="view" :idName="title" v-if="processDiagramViewer"/>-->
<!-- </div>-->
<!-- </div>-->
<div class="oper-page-btn"> <div class="oper-page-btn">
<el-button color="#DED0B2" v-if="mode === 'submit'" @click="handleSubmit">提交</el-button> <el-button color="#DED0B2" v-if="mode === 'submit'" @click="handleSubmit">提交</el-button>
<el-button color="#DED0B2" v-else-if="mode === 'resubmit'" @click="handleSubmit">重新提交</el-button> <el-button color="#DED0B2" v-else-if="mode === 'resubmit'" @click="handleSubmit">重新提交</el-button>
@@ -245,7 +227,7 @@ const choosePreProcess = () => {
preProcessArray.push(preProcessObj) preProcessArray.push(preProcessObj)
}) })
localFormData.value.preProcess = preProcessArray localFormData.value.preProcess = preProcessArray
console.log('localFormData.value.preProcess', localFormData.value.preProcess) // console.log('localFormData.value.preProcess', localFormData.value.preProcess)
showPreTable.value = false showPreTable.value = false
} }
@@ -351,7 +333,7 @@ const handleSubmit = async () => {
projectId: projectId.value, projectId: projectId.value,
preProcess: JSON.stringify(localFormData.value.preProcess) preProcess: JSON.stringify(localFormData.value.preProcess)
} }
console.log('params', params) // console.log('params', params)
let res let res
if (props.step === '20') { if (props.step === '20') {
if (props.mode === 'resubmit') { if (props.mode === 'resubmit') {

View File

@@ -66,7 +66,6 @@ const handleCancel = () => {
visible.value = false visible.value = false
} }
const handleDelete = () => { const handleDelete = () => {
console.log('确认')
emit("delete") emit("delete")
} }
</script> </script>

View File

@@ -39,8 +39,8 @@ export const useProcessStore = defineStore('process', () => {
} }
const delProcess = (delNode) => { const delProcess = (delNode) => {
processData.value.process.splice(processData.value.process.indexOf(delNode), 1) processData.value.process.splice(processData.value.process.indexOf(delNode), 1)
console.log("删除数据") // console.log("删除数据")
console.log(processData.value.process) // console.log(processData.value.process)
} }
const getDesign = () => { const getDesign = () => {

View File

@@ -317,7 +317,7 @@ const handleEdit = async (id) => {
restFrom() restFrom()
getDataSourceManageDetails(id).then(res => { getDataSourceManageDetails(id).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
console.log('res', res.data) // console.log('res', res.data)
formRules.value.password[0].required = false formRules.value.password[0].required = false
form.value = res.data form.value = res.data
title.value = "编辑数据模型管理" title.value = "编辑数据模型管理"

View File

@@ -256,7 +256,7 @@ const changeChartItem = (event) => {
} }
arr.push(obj) arr.push(obj)
}) })
console.log('arr',arr) // console.log('arr',arr)
for (const propertyName in option.legend.selected) { for (const propertyName in option.legend.selected) {
if (propertyName === item.label) { if (propertyName === item.label) {
option.legend.selected[propertyName] = true option.legend.selected[propertyName] = true
@@ -296,10 +296,10 @@ const startDrag = (event) => {
flag.value = false flag.value = false
} }
} else if (chart === 'pie') { } else if (chart === 'pie') {
console.log('拖动饼图') // console.log('拖动饼图')
flag.value = false flag.value = false
}else if (chart === 'radar') { }else if (chart === 'radar') {
console.log('拖动雷达') // console.log('拖动雷达')
flag.value = false flag.value = false
} }
} }

View File

@@ -273,7 +273,7 @@ const isShowAxisLine = (type) => {
* 初始化echarts实例方法 * 初始化echarts实例方法
*/ */
const initChart = () => { const initChart = () => {
console.log('initChartoption', option) // console.log('initChartoption', option)
//3.初始化container容器 //3.初始化container容器
myEcharts = echarts.init(chart.value); myEcharts = echarts.init(chart.value);
//5.传入数据 //5.传入数据
@@ -293,7 +293,7 @@ const initChart = () => {
* 保存数据 * 保存数据
*/ */
const saveData = () => { const saveData = () => {
console.log('最终initInfo', initInfo) // console.log('最终initInfo', initInfo)
emit("getFinalInfo", initInfo) emit("getFinalInfo", initInfo)
} }
/** /**

View File

@@ -101,11 +101,11 @@ const compositeParam = (item) => {
} }
} }
const getAttachment = (val) => { const getAttachment = (val) => {
console.log('上传文件getAttachment', val) // console.log('上传文件getAttachment', val)
formData.value.singleFile = compositeParam(val) formData.value.singleFile = compositeParam(val)
} }
const getOtherFile = (val) => { const getOtherFile = (val) => {
console.log('上传文件getOtherFile', val) // console.log('上传文件getOtherFile', val)
showTable.value = false showTable.value = false
let fileObj = compositeParam(val) let fileObj = compositeParam(val)
otherFileList.value.push(fileObj) otherFileList.value.push(fileObj)
@@ -223,7 +223,7 @@ const handleResubmit = (instance) => {
projectId: route.query.projectId, projectId: route.query.projectId,
userIds: userIds userIds: userIds
} }
console.log('重新提交params', params) // console.log('重新提交params', params)
resubmitPhaseForm(params).then(res => { resubmitPhaseForm(params).then(res => {
ElNotification({ ElNotification({
title: '提示', title: '提示',

View File

@@ -155,7 +155,7 @@ const compositeParam = (item) => {
} }
} }
const getFile = (val) => { const getFile = (val) => {
console.log('上传文件', val) // console.log('上传文件', val)
showTable.value = false showTable.value = false
let fileObj = compositeParam(val) let fileObj = compositeParam(val)
formData.value.files.push(fileObj) formData.value.files.push(fileObj)

View File

@@ -8,10 +8,10 @@
import { onMounted } from 'vue'; import { onMounted } from 'vue';
onMounted(()=>{ onMounted(()=>{
console.log('步骤一挂载'); // console.log('步骤一挂载');
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>

View File

@@ -8,10 +8,10 @@
import { onMounted } from 'vue'; import { onMounted } from 'vue';
onMounted(()=>{ onMounted(()=>{
console.log('步骤一挂载'); // console.log('步骤一挂载');
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>

View File

@@ -8,10 +8,10 @@
import { onMounted } from 'vue'; import { onMounted } from 'vue';
onMounted(()=>{ onMounted(()=>{
console.log('步骤一挂载'); // console.log('步骤一挂载');
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>

View File

@@ -8,10 +8,10 @@
import { onMounted } from 'vue'; import { onMounted } from 'vue';
onMounted(()=>{ onMounted(()=>{
console.log('步骤一挂载'); // console.log('步骤一挂载');
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>

View File

@@ -8,10 +8,10 @@
import { onMounted } from 'vue'; import { onMounted } from 'vue';
onMounted(()=>{ onMounted(()=>{
console.log('步骤1-5挂载'); // console.log('步骤1-5挂载');
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>

View File

@@ -60,7 +60,7 @@ const schema = reactive([
const getInfo = async () => { const getInfo = async () => {
const { data } = await getInfoById(route.query.id) const { data } = await getInfoById(route.query.id)
console.log("🚀 ~ getInfo ~ res:", data) // console.log("🚀 ~ getInfo ~ res:", data)
const params = { const params = {
createTime: data.createTime, createTime: data.createTime,
departmentMark: data.departmentMark, departmentMark: data.departmentMark,
@@ -136,7 +136,7 @@ const setDeptmentInfo = async ({ departmentChargeLeadershipIds = [], departmentH
departmentId: route.query.id departmentId: route.query.id
} }
const res = await setDeptInfo(params) const res = await setDeptInfo(params)
console.log(res.data); // console.log(res.data);
} }
getInfo() getInfo()
@@ -145,4 +145,4 @@ getInfo()
<style lang="scss" scoped> <style lang="scss" scoped>
</style> </style>

View File

@@ -193,7 +193,7 @@ const getList = async () => {
const getDetail = (deptId) => { const getDetail = (deptId) => {
getDeptDetail(deptId).then(res => { getDeptDetail(deptId).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
console.log(res.data) // console.log(res.data)
if (title.value == "行内新增部门") { if (title.value == "行内新增部门") {
form.value.parentId = res.data.deptId form.value.parentId = res.data.deptId
} else { } else {

View File

@@ -160,7 +160,7 @@ const tableConfig = reactive({
}) })
const init = async () => { const init = async () => {
console.log(authStore.roles,'userinfo'); // console.log(authStore.roles,'userinfo');
if(!authStore.roles.includes('superAdmin')) { if(!authStore.roles.includes('superAdmin')) {
searchConfig.value = searchConfig.value.slice(1) searchConfig.value = searchConfig.value.slice(1)
} }
@@ -169,7 +169,7 @@ const init = async () => {
searchConfig.value.find(item=>item.prop == 'departmentId').props.data = data searchConfig.value.find(item=>item.prop == 'departmentId').props.data = data
const res = await getSubCompOpt() const res = await getSubCompOpt()
searchConfig.value.find(item=>item.prop == 'subCompanyId').props.data = res.data searchConfig.value.find(item=>item.prop == 'subCompanyId').props.data = res.data
console.log("🚀 ~ init ~ searchConfig.value:", searchConfig.value) // console.log("🚀 ~ init ~ searchConfig.value:", searchConfig.value)
} }
init() init()

View File

@@ -66,7 +66,7 @@ const _value = computed({
return props.value; return props.value;
}, },
set(val) { set(val) {
console.log(val,"组件") // console.log(val,"组件")
emit("update:value", val); emit("update:value", val);
} }
}) })
@@ -76,7 +76,7 @@ const chinese = computed(()=>{
}) })
const convertCurrency = (money) => { const convertCurrency = (money) => {
console.log("zhuanhuan ",money) // console.log("zhuanhuan ",money)
//汉字的数字 //汉字的数字
const cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; const cnNums = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
//基本单位 //基本单位

View File

@@ -187,7 +187,7 @@ const getMinWidth = (col) => {
} }
} }
const showError = (col, val) => { const showError = (col, val) => {
console.log('showError', val) // console.log('showError', val)
if (col.props.required) { if (col.props.required) {
switch (col.valueType) { switch (col.valueType) {
case ValueType.dept: case ValueType.dept:
@@ -208,7 +208,7 @@ const delRow = (i) => {
_value.value.splice(i, 1) _value.value.splice(i, 1)
} }
const addRow = () => { const addRow = () => {
console.log('添加', props.maxSize, _value.value) // console.log('添加', props.maxSize, _value.value)
if (props.maxSize > 0 && _value.value.length >= props.maxSize) { if (props.maxSize > 0 && _value.value.length >= props.maxSize) {
console.log('限制大小') console.log('限制大小')
ElMessage.warning(`最多只能添加${props.maxSize}`) ElMessage.warning(`最多只能添加${props.maxSize}`)

View File

@@ -79,7 +79,7 @@ const chooseUser=()=>{
userPicker.value.showUserPicker() userPicker.value.showUserPicker()
} }
watch(() => props.perm, (newVal, oldVal) => { watch(() => props.perm, (newVal, oldVal) => {
console.log('newVal',newVal,userPicker.value) // console.log('newVal',newVal,userPicker.value)
}); });
const selected = (select) => { const selected = (select) => {
@@ -93,7 +93,7 @@ const selected = (select) => {
userInfoList.push(userInfo) userInfoList.push(userInfo)
} }
userList.value = userInfoList userList.value = userInfoList
console.log('select',userList.value) // console.log('select',userList.value)
} }
const delDept = (i) => { const delDept = (i) => {
userList.value.splice(i, 1) userList.value.splice(i, 1)

View File

@@ -38,7 +38,7 @@ export default {
} }
}, },
created() { created() {
console.log("出发了",this.value.placeholder,!this.value.placeholder) // console.log("出发了",this.value.placeholder,!this.value.placeholder)
if (undefined !== this.value.placeholder){ if (undefined !== this.value.placeholder){
this.placeholder = this.value.placeholder this.placeholder = this.value.placeholder
}else { }else {

View File

@@ -256,7 +256,7 @@ const getDefaultValidErr = () => {
} }
} }
const showValidFinish = (success, err) => { const showValidFinish = (success, err) => {
console.log("处理完成") // console.log("处理完成")
validResult.value.success = success validResult.value.success = success
validResult.value.finished = true validResult.value.finished = true
validResult.value.title = success ? '校验完成 😀' : '校验失败 ' validResult.value.title = success ? '校验完成 😀' : '校验失败 '
@@ -316,11 +316,11 @@ const doPublish = () => {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let design = processStore.getDesign() let design = processStore.getDesign()
console.log(design) // console.log(design)
let template = { let template = {
...design ...design
} }
console.log(template) // console.log(template)
addProcessDefinition(template).then(res => { addProcessDefinition(template).then(res => {
ElNotification({ ElNotification({
title: '提示', title: '提示',

View File

@@ -99,7 +99,7 @@ const getDepartmentTreeList = () => {
//获取部门信息 //获取部门信息
getDepartmentTree().then(res => { getDepartmentTree().then(res => {
deptList.value = res.data; deptList.value = res.data;
console.log("获取部门信息===========", res.data); // console.log("获取部门信息===========", res.data);
}); });
}; };
const filterNode = (value, data) => { const filterNode = (value, data) => {

View File

@@ -194,7 +194,7 @@ const selectUser = (value, orgType) => {
} }
const filterConditionMosr = (list) => { const filterConditionMosr = (list) => {
processFromPerms.value.forEach((item) => { processFromPerms.value.forEach((item) => {
console.log(item) // console.log(item)
if (item.required && supportTypes.value.indexOf(item.valueType) > -1){ if (item.required && supportTypes.value.indexOf(item.valueType) > -1){
list.push({title: item.title, id: item.id, valueType: item.valueType}) list.push({title: item.title, id: item.id, valueType: item.valueType})
} }

View File

@@ -315,7 +315,7 @@ const requestTestHandler = () => {
default: default:
break; break;
} }
console.log("==================[测试打印内容]==================") // console.log("==================[测试打印内容]==================")
request.then(res => { request.then(res => {
console.log(res) console.log(res)
if (res.status === 200) { if (res.status === 200) {

View File

@@ -188,7 +188,6 @@ const viewHistoricalVersion = (row) => {
loading.value = true loading.value = true
getHistoryVersion(row.processDefinitionKey).then(res => { getHistoryVersion(row.processDefinitionKey).then(res => {
loading.value = false; loading.value = false;
// console.log("历史版本数据==", res.data);
res.data.forEach(row => { res.data.forEach(row => {
row.logo = JSON.parse(row.logo); row.logo = JSON.parse(row.logo);
}); });

View File

@@ -103,7 +103,6 @@ const content = computed(() => {
//校验数据配置的合法性 //校验数据配置的合法性
const validate = (err) => { const validate = (err) => {
try { try {
console.log(props.config.props.assignedType)
switch (props.config.props.assignedType) { switch (props.config.props.assignedType) {
case "ASSIGN_USER": case "ASSIGN_USER":
showError.value = !validate_ASSIGN_USER(err); showError.value = !validate_ASSIGN_USER(err);
@@ -113,7 +112,6 @@ const validate = (err) => {
break; break;
case "SELF_SELECT": case "SELF_SELECT":
showError.value = !validate_SELF_SELECT(err); showError.value = !validate_SELF_SELECT(err);
console.log(showError.value);
break; break;
case "LEADER_TOP": case "LEADER_TOP":
showError.value = !validate_LEADER_TOP(err); showError.value = !validate_LEADER_TOP(err);
@@ -139,7 +137,6 @@ const validate = (err) => {
} }
return showError return showError
} catch (e) { } catch (e) {
console.log(e)
return false; return false;
} }
} }

View File

@@ -44,7 +44,6 @@ const headerBgc = computed(() => {
const validate = () => { const validate = () => {
console.log("调用成功")
return [] return []
} }

View File

@@ -81,7 +81,6 @@ const queryForm = ref()
const showDetails = (row, column) => { const showDetails = (row, column) => {
if (column.label !== '操作') { if (column.label !== '操作') {
console.log(row)
selectTask.value = row selectTask.value = row
nextTick(() => { nextTick(() => {
taskDetails.value.init() taskDetails.value.init()