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