|
@@ -213,6 +213,12 @@
|
|
|
style="color:#409EFF;cursor: pointer;"
|
|
|
@click="editEditElementForm()"
|
|
|
></i>
|
|
|
+ <i
|
|
|
+ class="el-icon-sort marleft10"
|
|
|
+ size="26"
|
|
|
+ @click="privateTableSort()"
|
|
|
+ style="color:#409EFF;cursor: pointer;"
|
|
|
+ ></i>
|
|
|
</p>
|
|
|
<el-table
|
|
|
:data="formData"
|
|
@@ -440,6 +446,30 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!-- 元素表排序 -->
|
|
|
+ <el-dialog
|
|
|
+ title="调整排序"
|
|
|
+ :visible="excelSortTag"
|
|
|
+ width="50%"
|
|
|
+ append-to-body
|
|
|
+ >
|
|
|
+ <ManualSorting
|
|
|
+ v-if="excelSortTag2"
|
|
|
+ @bianhua='bianhua2()'
|
|
|
+ :sort='tableSortList'
|
|
|
+ />
|
|
|
+ <span
|
|
|
+ slot="footer"
|
|
|
+ class="dialog-footer"
|
|
|
+ >
|
|
|
+ <el-button @click="excelSortTag=false">取 消</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="editPrivateSort()"
|
|
|
+ >确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<!-- 关联清表 -->
|
|
|
<el-dialog
|
|
|
title="关联清表"
|
|
@@ -506,6 +536,7 @@
|
|
|
width="50%"
|
|
|
append-to-body
|
|
|
:close-on-click-modal="false"
|
|
|
+ @closed="saveNodeLoading = false"
|
|
|
>
|
|
|
<el-form
|
|
|
ref="nodeDetail"
|
|
@@ -1359,7 +1390,7 @@ import {
|
|
|
saveElement, remove as removeElement, updateBatchElements, getTemplate,
|
|
|
importWbsElement
|
|
|
} from "@/api/manager/wbsformelement";
|
|
|
-import { getLazytree, getDetail, update, findNodeTableByCondition as selectByNodeTable, removeTableByCondition as removeTableById ,removePrivateTreeNode} from "@/api/manager/wbsprivate";
|
|
|
+import { getLazytree, getDetail, update, findNodeTableByCondition as selectByNodeTable, removeTableByCondition as removeTableById ,removePrivateTreeNode,wbsTreePrivateTableSort} from "@/api/manager/wbsprivate";
|
|
|
import { findProjectTree as getAlltree } from "@/api/manager/projectinfo";
|
|
|
import { getList as getAttchFromOriginalName } from "@/api/resource/attach";
|
|
|
import { getDictionary } from "@/api/system/dict";
|
|
@@ -1478,6 +1509,10 @@ export default {
|
|
|
namelists: [],
|
|
|
|
|
|
infoNameVisible: false,
|
|
|
+
|
|
|
+ excelSortTag:false,
|
|
|
+ excelSortTag2:false,
|
|
|
+ tableSortList:[],
|
|
|
//#endregion
|
|
|
};
|
|
|
},
|
|
@@ -1559,9 +1594,6 @@ export default {
|
|
|
type: "success",
|
|
|
message: "新增成功!"
|
|
|
});
|
|
|
- this.$nextTick(() => {
|
|
|
- this.saveNodeLoading = false;
|
|
|
- })
|
|
|
})
|
|
|
},
|
|
|
updateNode () {
|
|
@@ -1861,6 +1893,7 @@ export default {
|
|
|
type: "warning",
|
|
|
message: "请先选择文件再进行导入"
|
|
|
});
|
|
|
+ return;
|
|
|
}
|
|
|
let forms = new FormData();
|
|
|
forms.append('excelFile', this.upFile);
|
|
@@ -1968,6 +2001,43 @@ export default {
|
|
|
this.$set(data, 'moreShow', value)
|
|
|
},
|
|
|
|
|
|
+ bianhua2 () {
|
|
|
+ this.excelSortTag2 = false
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.excelSortTag2 = true
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //私有树的元素表修改排序
|
|
|
+ privateTableSort(){
|
|
|
+ if(!this.curTreeData.id){
|
|
|
+ this.$message({
|
|
|
+ type: "warning",
|
|
|
+ message: "请先选择需要排序的节点"
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.tableSortList = this.formData.map((form,index)=>{
|
|
|
+ return{
|
|
|
+ sort:index+1,
|
|
|
+ deptName:form.tableName,
|
|
|
+ pkeyId:form.pkeyId,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.excelSortTag = true
|
|
|
+ this.excelSortTag2 = true
|
|
|
+ },
|
|
|
+ editPrivateSort(){
|
|
|
+ wbsTreePrivateTableSort(this.tableSortList).then(()=>{
|
|
|
+ this.updateNodeTable();
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "排序成功!"
|
|
|
+ });
|
|
|
+ this.excelSortTag = false;
|
|
|
+ this.excelSortTag2 = false;
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
getDeptCategorylist () {
|
|
|
if (this.deptCategorylist.length > 1) {
|
|
|
return;
|