|
@@ -113,14 +113,13 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div align="center" class="block">
|
|
|
- <el-pagination :current-page="curIndex" background :page-sizes="[5]" :page-size="pageSize" layout="total, prev, pager, next" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" />
|
|
|
+ <el-pagination :current-page="curIndex" background :page-sizes="[8]" :page-size="pageSize" layout="total, prev, pager, next" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" />
|
|
|
</div>
|
|
|
</el-main>
|
|
|
<!-- xmind -->
|
|
|
<el-main style="background:#ffffff; width:98%;margin:0% 1% 1% 1%; font-size:14px;border-radius:8px;">
|
|
|
<el-button type="primary" size="mini" style="margin-left:1%;" @click="upload_File()">导入</el-button><br>
|
|
|
- <el-table :data="grid_xmind" size="mini" :header-cell-style="{ background: '#F0F2F4', color: '#333B4A' }" style="width: 100%; font-size:13px;margin-top:1%;" border @select-all="clickAllData" @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" min-width="50" align="center" @change="clickAllData(gridData)" />
|
|
|
+ <el-table :data="grid_xmind" size="mini" :header-cell-style="{ background: '#F0F2F4', color: '#333B4A' }" style="width: 100%; font-size:13px;margin-top:1%;" border>
|
|
|
<el-table-column prop="name" label="文件名" min-width="80" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.name }}</template>
|
|
|
</el-table-column>
|
|
@@ -130,7 +129,7 @@
|
|
|
<el-table-column label="操作" min-width="150px" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="primary" plain @click="data_load(scope.row)">下载</el-button>
|
|
|
- <el-button size="mini" type="danger" plain @click="deleteCaseData(scope.row.id)">删除</el-button>
|
|
|
+ <el-button size="mini" type="danger" plain @click="deleteXmind(scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -170,7 +169,7 @@ export default {
|
|
|
bizJson: localStorage.getItem('key'),
|
|
|
userData: '',
|
|
|
caseInfo: '',
|
|
|
- pageSize: 5,
|
|
|
+ pageSize: 8,
|
|
|
curIndex: 1,
|
|
|
startId: '',
|
|
|
end: '',
|
|
@@ -532,7 +531,7 @@ export default {
|
|
|
this.key_arr = []
|
|
|
}
|
|
|
this.startId = e.id
|
|
|
- queryCasesData({ pageSize: 5, curIndex: 1, caseFolderId: e.id }).then(res => {
|
|
|
+ queryCasesData({ pageSize: 8, curIndex: 1, caseFolderId: e.id }).then(res => {
|
|
|
this.gridData = res.data.list
|
|
|
this.grid_xmind = res.data.subList
|
|
|
this.total = res.data.total
|
|
@@ -697,6 +696,32 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ // 删除xmind
|
|
|
+ deleteXmind(e) {
|
|
|
+ this.$confirm('是否确认删除', '确认信息', {
|
|
|
+ distinguishCancelAndClose: true,
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ var xmind_a = this.grid_xmind.filter(item => {
|
|
|
+ return e.url !== item.url
|
|
|
+ })
|
|
|
+ var xmind_code = {
|
|
|
+ id: this.startId,
|
|
|
+ xmindUrl: JSON.stringify(xmind_a),
|
|
|
+ modifier: this.userInformation
|
|
|
+ }
|
|
|
+ updateXmindUrl(xmind_code).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.grid_xmind = xmind_a
|
|
|
+ this.$message({ type: 'success', message: '删除成功' })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(action => { this.$message({ type: 'success', message: '已取消' }) })
|
|
|
+ },
|
|
|
+
|
|
|
filerName(url) {
|
|
|
// 提取下载的文件名
|
|
|
var a = url.split('/')
|
|
@@ -716,7 +741,11 @@ export default {
|
|
|
if (this.startId === '') {
|
|
|
this.$message({ message: '提示,👈请选择目录', type: 'success', duration: 1000, offset: 150 })
|
|
|
} else {
|
|
|
- this.$refs.im_File.click()
|
|
|
+ if (this.grid_xmind.length > 2) {
|
|
|
+ this.$message({ message: '文件不能大于3条', type: 'success', duration: 1000, offset: 150 })
|
|
|
+ } else {
|
|
|
+ this.$refs.im_File.click()
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|