|
@@ -75,7 +75,7 @@
|
|
:allow-drop="canDropHandle"
|
|
:allow-drop="canDropHandle"
|
|
:current-node-key="select_node"
|
|
:current-node-key="select_node"
|
|
:default-expanded-keys="defaultShowNodes"
|
|
:default-expanded-keys="defaultShowNodes"
|
|
- draggable
|
|
|
|
|
|
+ :draggable="classify_tab!==1"
|
|
:expand-on-click-node="false"
|
|
:expand-on-click-node="false"
|
|
check-strictly
|
|
check-strictly
|
|
:empty-text="$t('Common.no_classify_msg')"
|
|
:empty-text="$t('Common.no_classify_msg')"
|
|
@@ -94,7 +94,7 @@
|
|
:placeholder="$t('OnlineExcelPage.please_value_ipt')"
|
|
:placeholder="$t('OnlineExcelPage.please_value_ipt')"
|
|
class="label-input"
|
|
class="label-input"
|
|
v-model="new_label"
|
|
v-model="new_label"
|
|
- v-if="data.isEdit&&isSheetBtnShow('classifyOpt_edit')"
|
|
|
|
|
|
+ v-if="data.isEdit&&isSheetBtnShow('classifyOpt_edit')&&classify_tab!==1"
|
|
@blur="changeValue(data)"
|
|
@blur="changeValue(data)"
|
|
/>
|
|
/>
|
|
<span
|
|
<span
|
|
@@ -122,6 +122,7 @@
|
|
src="~@/assets/img/data_m/move_ico.png"
|
|
src="~@/assets/img/data_m/move_ico.png"
|
|
alt=""
|
|
alt=""
|
|
style="width: 14px; height: 14px; margin-right: 8px"
|
|
style="width: 14px; height: 14px; margin-right: 8px"
|
|
|
|
+ v-if="classify_tab!==1"
|
|
/>
|
|
/>
|
|
<!-- 目录操作:添加/编辑/删除 -->
|
|
<!-- 目录操作:添加/编辑/删除 -->
|
|
<img
|
|
<img
|
|
@@ -129,14 +130,14 @@
|
|
alt=""
|
|
alt=""
|
|
style="width: 14px; height: 14px; margin-right: 8px"
|
|
style="width: 14px; height: 14px; margin-right: 8px"
|
|
@click.stop="addNode(node,data)"
|
|
@click.stop="addNode(node,data)"
|
|
- v-if="!data.ExcelInfoId&&isSheetBtnShow('classifyOpt_edit')&&node.level<3"
|
|
|
|
|
|
+ v-if="!data.ExcelInfoId&&isSheetBtnShow('classifyOpt_edit')&&node.level<3&&classify_tab!==1"
|
|
/>
|
|
/>
|
|
<img
|
|
<img
|
|
src="~@/assets/img/set_m/edit.png"
|
|
src="~@/assets/img/set_m/edit.png"
|
|
alt=""
|
|
alt=""
|
|
style="width: 15px; height: 14px; margin-right: 8px"
|
|
style="width: 15px; height: 14px; margin-right: 8px"
|
|
@click.stop="editNode(node, data)"
|
|
@click.stop="editNode(node, data)"
|
|
- v-if="!data.ExcelInfoId&&isSheetBtnShow('classifyOpt_edit')"
|
|
|
|
|
|
+ v-if="!data.ExcelInfoId&&isSheetBtnShow('classifyOpt_edit')&&classify_tab!==1"
|
|
/>
|
|
/>
|
|
<img
|
|
<img
|
|
slot="reference"
|
|
slot="reference"
|
|
@@ -144,7 +145,7 @@
|
|
alt=""
|
|
alt=""
|
|
style="width: 14px; height: 14px"
|
|
style="width: 14px; height: 14px"
|
|
@click.stop="removeNode(node, data)"
|
|
@click.stop="removeNode(node, data)"
|
|
- v-if="!data.ExcelInfoId&&isSheetBtnShow('classifyOpt_delete')"
|
|
|
|
|
|
+ v-if="!data.ExcelInfoId&&isSheetBtnShow('classifyOpt_delete')&&classify_tab!==1"
|
|
/>
|
|
/>
|
|
<!-- 表格操作:共享/取消共享 -->
|
|
<!-- 表格操作:共享/取消共享 -->
|
|
<span v-if="data.ExcelInfoId&&data.ShowShareBtn">
|
|
<span v-if="data.ExcelInfoId&&data.ShowShareBtn">
|
|
@@ -248,7 +249,7 @@
|
|
</li> -->
|
|
</li> -->
|
|
<li
|
|
<li
|
|
class="editsty"
|
|
class="editsty"
|
|
- @click="saveOtherHandle"
|
|
|
|
|
|
+ @click="saveOtherHandle(null)"
|
|
v-if="isSheetBtnShow('otherSave')&&sheetDetailInfo.Button.CopyButton"
|
|
v-if="isSheetBtnShow('otherSave')&&sheetDetailInfo.Button.CopyButton"
|
|
>
|
|
>
|
|
<img src="~@/assets/img/icons/save_as_blue_new.png"/>
|
|
<img src="~@/assets/img/icons/save_as_blue_new.png"/>
|
|
@@ -591,16 +592,22 @@ export default {
|
|
this.currentTable = command.item
|
|
this.currentTable = command.item
|
|
this.isShowShareDia = true
|
|
this.isShowShareDia = true
|
|
}else{
|
|
}else{
|
|
- //取消共享就是 两个权限列表都为空
|
|
|
|
- sheetInterface.sheetAnalysisInterface.setSheetShare({
|
|
|
|
- ExcelInfoId:command.item.ExcelInfoId,
|
|
|
|
- ViewUserIds:[],
|
|
|
|
- EditUserIds:[]
|
|
|
|
- }).then(res=>{
|
|
|
|
- if(res.Ret!==200) return
|
|
|
|
- this.$message.success(`取消共享成功`)
|
|
|
|
- this.getTreeData();
|
|
|
|
- })
|
|
|
|
|
|
+ //取消共享就是 两个权限列表都为空 但是要二次确认
|
|
|
|
+ this.$confirm(/* "是否确认取消共享?" */this.$t('CustomAnalysisPage.cancel_share_hint'), this.$t('Dialog.warn_tit'), {
|
|
|
|
+ type: "warning",
|
|
|
|
+ }).then(() => {
|
|
|
|
+ sheetInterface.sheetAnalysisInterface.setSheetShare({
|
|
|
|
+ ExcelInfoId:command.item.ExcelInfoId,
|
|
|
|
+ ViewUserIds:[],
|
|
|
|
+ EditUserIds:[]
|
|
|
|
+ }).then(res=>{
|
|
|
|
+ if(res.Ret!==200) return
|
|
|
|
+ this.$message.success(this.$t('CustomAnalysisPage.cancel_share_success_msg'))
|
|
|
|
+ this.getTreeData()
|
|
|
|
+ this.getPublicList()
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
/* 获取表格分类 */
|
|
/* 获取表格分类 */
|