|
@@ -221,6 +221,23 @@
|
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+ <template v-slot:directoryId="{ row }">
|
|
|
|
|
+ <el-cascader
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ v-model="row.directoryId"
|
|
|
|
|
+ class="my-cascader"
|
|
|
|
|
+ :disabled="true"
|
|
|
|
|
+ :options="folderList"
|
|
|
|
|
+ :props="{
|
|
|
|
|
+ value: 'id',
|
|
|
|
|
+ label: 'name',
|
|
|
|
|
+ children: 'sonDirectoryList',
|
|
|
|
|
+ emitPath: false,
|
|
|
|
|
+ checkStrictly: true
|
|
|
|
|
+ }"
|
|
|
|
|
+ ></el-cascader>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-dropdown
|
|
<el-dropdown
|
|
@@ -466,16 +483,14 @@
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- {label: '分类',
|
|
|
|
|
- prop: 'typeName',
|
|
|
|
|
- width: 180,
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '文档位置',
|
|
|
|
|
+ prop: 'directoryId',
|
|
|
|
|
+ slot: 'directoryId',
|
|
|
|
|
+ width: 220,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
|
- showOverflowTooltip: true,
|
|
|
|
|
- formatter: () => {
|
|
|
|
|
- // 优先使用fullPath,如果没有则回退到name
|
|
|
|
|
- return this.parentData?.fullPath || this.parentData?.name || '';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '编码',
|
|
label: '编码',
|
|
@@ -767,28 +782,28 @@
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- let createUserS=[],checkOutS=[]
|
|
|
|
|
- this.selection.forEach(item=>{
|
|
|
|
|
- if(!isCreateUserId(item)){
|
|
|
|
|
- createUserS.push(item.name)
|
|
|
|
|
|
|
+ let createUserS = [],
|
|
|
|
|
+ checkOutS = [];
|
|
|
|
|
+ this.selection.forEach((item) => {
|
|
|
|
|
+ if (!isCreateUserId(item)) {
|
|
|
|
|
+ createUserS.push(item.name);
|
|
|
}
|
|
}
|
|
|
- if(isCreateUserId(item)){
|
|
|
|
|
- checkOutS.push(item.name)
|
|
|
|
|
|
|
+ if (isCreateUserId(item)) {
|
|
|
|
|
+ checkOutS.push(item.name);
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
- if(createUserS.toString()){
|
|
|
|
|
- this.$message.warning(createUserS+'您不是创建人,无权限修改!');
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ if (createUserS.toString()) {
|
|
|
|
|
+ this.$message.warning(createUserS + '您不是创建人,无权限修改!');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- if(!checkOutS.toString()){
|
|
|
|
|
- this.$message.warning(checkOutS+'已被检出 无法修改!');
|
|
|
|
|
|
|
+ if (!checkOutS.toString()) {
|
|
|
|
|
+ this.$message.warning(checkOutS + '已被检出 无法修改!');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
this.powerOpenShow = true;
|
|
this.powerOpenShow = true;
|
|
|
- this.$nextTick(()=>{
|
|
|
|
|
- this.$refs.PowerRefAll.setTableList([])
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.PowerRefAll.setTableList([]);
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
//权限保存
|
|
//权限保存
|
|
|
powerSave(tableList) {
|
|
powerSave(tableList) {
|
|
@@ -988,4 +1003,16 @@
|
|
|
:deep(.ele-table-tool-title-content) {
|
|
:deep(.ele-table-tool-title-content) {
|
|
|
display: contents;
|
|
display: contents;
|
|
|
}
|
|
}
|
|
|
|
|
+ .my-cascader {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ :deep(.el-input__inner) {
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ background: none;
|
|
|
|
|
+ cursor: inherit;
|
|
|
|
|
+ }
|
|
|
|
|
+ :deep(.el-input__suffix) {
|
|
|
|
|
+ display: none;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|