This commit is contained in:
parent
17f3b105cf
commit
7360bd5a81
|
|
@ -107,7 +107,7 @@ export default {
|
|||
this.belongName = this.rowData.belongName;
|
||||
this.detailStatus = this.rowData.detailStatus;
|
||||
if ((this.isAdd === 'edit' || this.isAdd === 'detail') && this.rowData) {
|
||||
console.log(this.rowData.classifyMarkId);
|
||||
// console.log(this.rowData.classifyMarkId);
|
||||
// 编辑模式:填充表单数据
|
||||
this.form = {
|
||||
id: this.rowData.id,
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ export default {
|
|||
watch: {
|
||||
selectedNode: {
|
||||
handler(newVal) {
|
||||
console.log(newVal);
|
||||
// console.log(newVal);
|
||||
this.addBtnIsShow = !(newVal && Number(newVal.level) === 3)
|
||||
// 更新并下发默认请求参数(例如 parentId)
|
||||
const parentId = newVal && newVal.id ? newVal.id : 0
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ export default {
|
|||
/** 初始化表单数据 */
|
||||
initFormData() {
|
||||
if (this.isAdd === 'edit' && this.rowData) {
|
||||
console.log(this.rowData);
|
||||
// console.log(this.rowData);
|
||||
// 编辑模式:填充表单数据
|
||||
this.form = {
|
||||
id: this.rowData.id,
|
||||
|
|
|
|||
|
|
@ -323,7 +323,7 @@ export default {
|
|||
if (this.$refs.ruleForm) {
|
||||
this.$refs.ruleForm.validateField('fileList')
|
||||
}
|
||||
console.log('文件列表更新:', fileList.length, '个文件')
|
||||
// console.log('文件列表更新:', fileList.length, '个文件')
|
||||
},
|
||||
|
||||
/**验证 */
|
||||
|
|
@ -359,7 +359,7 @@ export default {
|
|||
}
|
||||
if (this.isAdd === 'add') {
|
||||
formData.append('params', JSON.stringify(params));
|
||||
console.log(params);
|
||||
// console.log(params);
|
||||
addFileManageRightApi(formData).then(res => {
|
||||
this.loading.close();
|
||||
if (res.code === 200) {
|
||||
|
|
@ -373,7 +373,7 @@ export default {
|
|||
});
|
||||
} else {
|
||||
formData.append('params', JSON.stringify(params));
|
||||
console.log(params);
|
||||
// console.log(params);
|
||||
updateFileManageRightApi(formData).then(res => {
|
||||
this.loading.close();
|
||||
if (res.code === 200) {
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ export default {
|
|||
let params = _.cloneDeep(this.form);
|
||||
const selected = this.fileSetList.find(item => item.id === this.form.id);
|
||||
params.contentsName = selected.name;
|
||||
console.log(params);
|
||||
// console.log(params);
|
||||
|
||||
updateContentsNameAPI(params).then(res => {
|
||||
this.loading.close();
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ export default {
|
|||
methods: {
|
||||
// 分享
|
||||
handleShare(row) {
|
||||
console.log(row);
|
||||
// console.log(row);
|
||||
|
||||
this.isflag = true;
|
||||
row.selectedNodeName = this.selectedNodeName;
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ export default {
|
|||
|
||||
const transferApplyId = this.rowData.id;
|
||||
const res = await getTransferReceiceFilesApi({ transferApplyId });
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
|
||||
if (Array.isArray(res.data) && res.data.length > 0) {
|
||||
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ export default {
|
|||
}
|
||||
},
|
||||
handleProChange(value) {
|
||||
console.log(value);
|
||||
// console.log(value);
|
||||
this.checkTreeData = [];
|
||||
},
|
||||
// 选择移交档案
|
||||
|
|
@ -237,7 +237,7 @@ export default {
|
|||
const obj = this.findNodeById(this.treeDataList, this.form.deptId);
|
||||
params.deptName = obj?.label || '';
|
||||
params.transferFileDtos = this.checkTreeData;
|
||||
console.log(params);
|
||||
// console.log(params);
|
||||
|
||||
if (this.isAdd === 'add') {
|
||||
saveTransferApplyApi(params).then(res => {
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ export default {
|
|||
this.fileList.push(newFile);
|
||||
})
|
||||
}
|
||||
console.log(this.fileList);
|
||||
// console.log(this.fileList);
|
||||
|
||||
},
|
||||
// 确认接收
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export default {
|
|||
/** 初始化表单数据 */
|
||||
initFormData() {
|
||||
if (this.rowData) {
|
||||
console.log(this.rowData);
|
||||
// console.log(this.rowData);
|
||||
|
||||
// 编辑模式:填充表单数据
|
||||
this.form = {
|
||||
|
|
@ -100,7 +100,6 @@ export default {
|
|||
target: this.$el.querySelector('.el-dialog') || document.body
|
||||
})
|
||||
let params = _.cloneDeep(this.form);
|
||||
console.log(params);
|
||||
|
||||
updateTransferRecordFileApi(params).then(res => {
|
||||
this.loading.close();
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ export default {
|
|||
methods: {
|
||||
// 预览文件
|
||||
viewFile(row) {
|
||||
console.log(row);
|
||||
// console.log(row);
|
||||
|
||||
this.viewTitle = "预览";
|
||||
this.row = row;
|
||||
|
|
@ -106,7 +106,7 @@ export default {
|
|||
}
|
||||
const transferApplyId = this.rowData.id;
|
||||
const res = await getTransferRecordFilesApi({ transferApplyId });
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
|
||||
if (Array.isArray(res.data) && res.data.length > 0) {
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ export default {
|
|||
archivedType:2,
|
||||
}
|
||||
const payload = [periodicPayload, nonPeriodicPayload]
|
||||
console.log('保存归档配置: ', payload)
|
||||
// console.log('保存归档配置: ', payload)
|
||||
editAPI(payload).then(() => {
|
||||
this.$message.success('保存成功')
|
||||
this.query()
|
||||
|
|
@ -176,7 +176,7 @@ export default {
|
|||
// 查询归档配置
|
||||
query() {
|
||||
queryAPI().then(res => {
|
||||
console.log('查询归档配置: ', res)
|
||||
// console.log('查询归档配置: ', res)
|
||||
const list = Array.isArray(res.data) ? res.data : []
|
||||
const periodic = list[0] || {}
|
||||
const nonPeriodic = list[1] || {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue