|
@@ -139,7 +139,7 @@
|
|
|
<template #edit="{ row, rowIndex }">
|
|
|
<div style="display: flex; justify-content: space-between;">
|
|
|
<vxe-input v-model="row.modifyName" type="text" placeholder="请输入新文件名" @input="modifyChange(row, rowIndex)"></vxe-input>
|
|
|
- <el-popover popper-class="popper-open" placement="bottom" width="200" trigger="manual" v-model="visible3" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
|
|
|
+ <el-popover popper-class="popper-open" placement="bottom" trigger="manual" v-model="visible3" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
|
|
|
<i slot="reference"></i>
|
|
|
</el-popover>
|
|
|
<div style="word-break: keep-all; line-height: 33px;">{{row.newName.lastIndexOf('.') > -1 ? row.newName.substr(row.newName.lastIndexOf('.')) : ''}}</div>
|
|
@@ -361,7 +361,7 @@
|
|
|
<div class="content-right">
|
|
|
|
|
|
<!--创建文件设置 -->
|
|
|
- <template v-if="menuIndex == '7'">
|
|
|
+ <div v-show="menuIndex == '7'">
|
|
|
<div class="handle-item" >
|
|
|
<label class="handle-label">文件类型:</label>
|
|
|
<el-select v-model="foundData.foundType" style="width:150px;" size="small" @change="refreshList('change')">
|
|
@@ -387,7 +387,7 @@
|
|
|
<el-divider content-position="left">
|
|
|
<i class="el-icon-s-tools" style="margin-right: 3px;"></i>文件名设置
|
|
|
</el-divider>
|
|
|
- <el-popover placement="left" popper-class="popper-open" width="200" trigger="manual" v-model="visible4" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
|
|
|
+ <el-popover placement="left" popper-class="popper-open" trigger="manual" v-model="visible5" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
|
|
|
<i slot="reference"></i>
|
|
|
</el-popover>
|
|
|
|
|
@@ -404,8 +404,8 @@
|
|
|
</div>
|
|
|
|
|
|
<el-popover placement="bottom" popper-class="popper-open" trigger="hover">
|
|
|
- <img src="../assets/image/f-tips.jpg" style="width: 260px;"/>
|
|
|
- <div slot="reference" style="margin: 10px 0; text-decoration: underline;cursor: pointer;color: #777; text-align: center;">查看文件名填写示例</div>
|
|
|
+ <img src="../assets/image/f-tips.jpg" style="width: 220px;"/>
|
|
|
+ <div slot="reference" class="i-tips" style="margin-bottom: 10px;">查看文件名填写示例</div>
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
|
|
@@ -416,7 +416,7 @@
|
|
|
</div>
|
|
|
<div class="handle-item">
|
|
|
<label class="handle-label">创建名称:</label>
|
|
|
- <el-input placeholder="请输入创建名称" @input="inputChange('foundData', 'foundName', 'visible4')" size="small" v-model="foundData.foundName" style="width:150px;"></el-input>
|
|
|
+ <el-input placeholder="请输入创建名称" @input="inputChange('foundData', 'foundName', 'visible5')" size="small" v-model="foundData.foundName" style="width:150px;"></el-input>
|
|
|
</div>
|
|
|
<el-divider content-position="left">
|
|
|
<i class="el-icon-s-tools" style="margin-right: 3px;"></i>编号设置
|
|
@@ -460,11 +460,11 @@
|
|
|
<i class="el-icon-folder-opened" slot="reference" style="width: 18px;cursor: pointer; font-size: 22px; vertical-align: middle;" @click="openFolder('foundData')"></i>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
- </template>
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
<!--提取设置 -->
|
|
|
- <template v-if="['5', '6'].indexOf(menuIndex) > -1">
|
|
|
+ <div v-show="['5', '6'].indexOf(menuIndex) > -1">
|
|
|
<el-divider content-position="left">
|
|
|
<i class="el-icon-s-goods" style="margin-right: 3px;"></i>提取内容
|
|
|
<el-popover placement="bottom" popper-class="popper-open" trigger="hover" content="勾选内容将与文件名一起提取">
|
|
@@ -509,10 +509,10 @@
|
|
|
<i class="el-icon-folder-opened" slot="reference" style="width: 18px;cursor: pointer; font-size: 22px; vertical-align: middle;" @click="openFolder('extractData')"></i>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
- </template>
|
|
|
+ </div>
|
|
|
|
|
|
<!--时间属性 -->
|
|
|
- <template v-if="['3', '4'].indexOf(menuIndex) > -1">
|
|
|
+ <div v-show="['3', '4'].indexOf(menuIndex) > -1">
|
|
|
<el-divider content-position="left"><i class="el-icon-s-flag" style="margin-right: 3px;"></i>时间属性</el-divider>
|
|
|
<div class="handle-item">
|
|
|
<label class="handle-label">创建时间:</label>
|
|
@@ -522,14 +522,14 @@
|
|
|
<label class="handle-label">修改时间:</label>
|
|
|
<el-date-picker type="datetime" v-model="handleData.mtime" placeholder="文件修改时间" style="width:170px;" size="small"></el-date-picker>
|
|
|
</div>
|
|
|
- <el-popover placement="bottom" popper-class="popper-open" trigger="hover">
|
|
|
- <img src="../assets/image/t-tips.jpg" style="width: 360px;"/>
|
|
|
- <div slot="reference" style="margin-top: 20px; text-decoration: underline;cursor: pointer;color: #777; text-align: center;">如何查看时间属性是否修改成功?</div>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
+ <el-popover placement="left" popper-class="popper-open" trigger="hover" content="内容">
|
|
|
+ <img src="../assets/image/t-tips.jpg" style="width: 300px;"/>
|
|
|
+ <div slot="reference" class="i-tips">如何查看时间属性是否修改成功?</div>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
|
|
|
<!-- 重命名设置 -->
|
|
|
- <template v-if="['1', '2'].indexOf(menuIndex) > -1">
|
|
|
+ <div v-show="['1', '2'].indexOf(menuIndex) > -1">
|
|
|
<div class="handle-item">
|
|
|
<label class="handle-label">命名方式:</label>
|
|
|
<el-select v-model="handleData.fileMethod" style="width:150px;" size="small" @change="setChange">
|
|
@@ -554,7 +554,7 @@
|
|
|
<label class="handle-label">新文件名:</label>
|
|
|
<el-input v-model="handleData.fileName" placeholder="请输入内容" style="width:150px;" size="small" @input="inputChange('handleData', 'fileName', 'visible')"></el-input>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<!--2、替换 -->
|
|
|
<template v-if="handleData.fileMethod == '2'">
|
|
|
<div class="handle-item" >
|
|
@@ -566,7 +566,7 @@
|
|
|
<el-input v-model="handleData.fileReplace" placeholder="请输入替换内容" style="width:150px;" size="small" @input="inputChange('handleData', 'fileReplace', 'visible')"></el-input>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<!--3、插入 -->
|
|
|
<div class="handle-item" v-if="handleData.fileMethod == '3'">
|
|
|
<div class="handle-item">
|
|
@@ -627,7 +627,7 @@
|
|
|
|
|
|
<el-popover placement="bottom" popper-class="popper-open" trigger="hover">
|
|
|
<img src="../assets/image/a-tips.jpg" style="width: 260px;"/>
|
|
|
- <div slot="reference" style="margin-top: 20px; text-decoration: underline;cursor: pointer;color: #777; text-align: center;">查看表格名称示例</div>
|
|
|
+ <div slot="reference" class="i-tips">查看表格名称示例</div>
|
|
|
</el-popover>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -705,7 +705,7 @@
|
|
|
<!-- 扩展名 -->
|
|
|
<div v-if="menuIndex == '1' && handleData.fileMethod != '6'">
|
|
|
<el-divider content-position="left" style="font-weight: 800;"><i class="el-icon-wind-power" style="margin-right: 3px;"></i>扩展名</el-divider>
|
|
|
- <el-popover popper-class="popper-open" placement="left" width="200" trigger="manual" v-model="visible2" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
|
|
|
+ <el-popover popper-class="popper-open" placement="left" trigger="manual" v-model="visible2" content='文件名不能包含下列任何字符: \ / : * ? " < > |'>
|
|
|
<i slot="reference"></i>
|
|
|
</el-popover>
|
|
|
<div class="handle-item">
|
|
@@ -745,7 +745,7 @@
|
|
|
<el-button type="info" style="margin: 10px auto;" @click="reset()">重置设置</el-button>
|
|
|
</div>
|
|
|
|
|
|
- </template>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -793,6 +793,7 @@ export default {
|
|
|
visible2: false,
|
|
|
visible3: false,
|
|
|
visible4: false,
|
|
|
+ visible5: false,
|
|
|
tipsModal: true,
|
|
|
tipsDesc: '非会员不支持修改时间属性,如需完整功能请开通会员',
|
|
|
imgUrl: this.$api.imgUrl,
|
|
@@ -1957,13 +1958,13 @@ export default {
|
|
|
this.visible3 = true;
|
|
|
setTimeout(() => {
|
|
|
this.visible3 = false;
|
|
|
- }, 1500)
|
|
|
+ }, 2000)
|
|
|
}
|
|
|
}
|
|
|
row.newName = row.modifyName + row.suffix;
|
|
|
},
|
|
|
// 是否包含特殊字符
|
|
|
- containsAnyChar(str, charsArray) {
|
|
|
+ containsAnyChar(str, charsArray) {
|
|
|
for (let i = 0; i < charsArray.length; i++) {
|
|
|
if (str.includes(charsArray[i])) {
|
|
|
return true;
|
|
@@ -1979,7 +1980,7 @@ export default {
|
|
|
this[popName] = true;
|
|
|
setTimeout(() => {
|
|
|
this[popName] = false;
|
|
|
- }, 1500)
|
|
|
+ }, 2000)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -2554,4 +2555,12 @@ export default {
|
|
|
color: #888;
|
|
|
margin-left: 5px;
|
|
|
}
|
|
|
+
|
|
|
+ .i-tips{
|
|
|
+ margin-top: 10px;
|
|
|
+ text-decoration: underline;
|
|
|
+ cursor: pointer;
|
|
|
+ color: #777;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
</style>
|