|
@@ -41,17 +41,17 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="formulaInput"
|
|
v-model="formulaInput"
|
|
placeholder="请输入元素名称"
|
|
placeholder="请输入元素名称"
|
|
-
|
|
|
|
|
|
+
|
|
clearable
|
|
clearable
|
|
@clear="searchFormulaName">
|
|
@clear="searchFormulaName">
|
|
</el-input>
|
|
</el-input>
|
|
<el-button type="primary" class="mg-l-10" @click="searchFormulaName">搜索</el-button>
|
|
<el-button type="primary" class="mg-l-10" @click="searchFormulaName">搜索</el-button>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table
|
|
<el-table
|
|
:data="editEleListFilter"
|
|
:data="editEleListFilter"
|
|
border
|
|
border
|
|
- style="width: 100%"
|
|
|
|
|
|
+ style="width: 100%"
|
|
>
|
|
>
|
|
<el-table-column align="center" prop="eName" label="字段信息">
|
|
<el-table-column align="center" prop="eName" label="字段信息">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -76,15 +76,15 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+
|
|
<script>
|
|
<script>
|
|
|
|
|
|
import { dictionary } from "@/api/manager/archivetree";
|
|
import { dictionary } from "@/api/manager/archivetree";
|
|
@@ -168,9 +168,9 @@ export default {
|
|
this.curData=data;
|
|
this.curData=data;
|
|
console.log(data,'data');
|
|
console.log(data,'data');
|
|
this.getTableElmentsData()
|
|
this.getTableElmentsData()
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
treeLoadNode(node, resolve) {
|
|
treeLoadNode(node, resolve) {
|
|
let parentId = 12345678910;
|
|
let parentId = 12345678910;
|
|
if (node.level != 0) {
|
|
if (node.level != 0) {
|
|
@@ -178,7 +178,7 @@ export default {
|
|
}
|
|
}
|
|
// 开启 “加载中” 动画
|
|
// 开启 “加载中” 动画
|
|
if (node.level == 0) this.loading = true
|
|
if (node.level == 0) this.loading = true
|
|
- tabTypeLazyTreeAll({
|
|
|
|
|
|
+ tabTypeLazyTreeAll({
|
|
parentId, projectId: this.projectid, pcurrent: 1, size: 1000,majorDataType:this.activeIndex
|
|
parentId, projectId: this.projectid, pcurrent: 1, size: 1000,majorDataType:this.activeIndex
|
|
}).then(res => {
|
|
}).then(res => {
|
|
// 请求接口,返回数据
|
|
// 请求接口,返回数据
|
|
@@ -186,7 +186,7 @@ export default {
|
|
this.loading = false
|
|
this.loading = false
|
|
resolve(data);
|
|
resolve(data);
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
filterNode(value, data) {
|
|
filterNode(value, data) {
|
|
if (!value) return true;
|
|
if (!value) return true;
|
|
@@ -200,7 +200,7 @@ export default {
|
|
this.allTreeData=[]
|
|
this.allTreeData=[]
|
|
if (!this.allTreeData.length) {
|
|
if (!this.allTreeData.length) {
|
|
this.treeloading = true;
|
|
this.treeloading = true;
|
|
-
|
|
|
|
|
|
+
|
|
let parentId=''
|
|
let parentId=''
|
|
if(this.curData.hasChildren){
|
|
if(this.curData.hasChildren){
|
|
parentId=this.curData.id
|
|
parentId=this.curData.id
|
|
@@ -218,7 +218,7 @@ export default {
|
|
this.treeloading = false;
|
|
this.treeloading = false;
|
|
this.$refs.treeall.filter(this.filterText);
|
|
this.$refs.treeall.filter(this.filterText);
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
this.treeloading = false;
|
|
this.treeloading = false;
|
|
this.$refs.treeall.filter(this.filterText);
|
|
this.$refs.treeall.filter(this.filterText);
|
|
@@ -235,13 +235,13 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
//获取元素列表
|
|
//获取元素列表
|
|
-
|
|
|
|
|
|
+
|
|
getTableElmentsData(){
|
|
getTableElmentsData(){
|
|
getTableElments(this.curData.initTableId).then((res) => {
|
|
getTableElments(this.curData.initTableId).then((res) => {
|
|
this.editEleListFilter = res.data.data;
|
|
this.editEleListFilter = res.data.data;
|
|
this.editEleListAll = [].concat(this.editEleListFilter);
|
|
this.editEleListAll = [].concat(this.editEleListFilter);
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
//设置为文件日期
|
|
//设置为文件日期
|
|
async setFiledate(row){
|
|
async setFiledate(row){
|
|
@@ -254,25 +254,18 @@ export default {
|
|
this.$message.success(res.msg)
|
|
this.$message.success(res.msg)
|
|
this.getTableElmentsData()
|
|
this.getTableElmentsData()
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
//取消设置
|
|
//取消设置
|
|
async quitFiledate(row){
|
|
async quitFiledate(row){
|
|
- let ids=row.tableElementKey
|
|
|
|
- const { data: res } = await removeTabusstime(ids)
|
|
|
|
|
|
+ //let ids=row.tableElementKey
|
|
|
|
+ const { data: res } = await removeTabusstime(row.id)
|
|
console.log(res);
|
|
console.log(res);
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success(res.msg)
|
|
this.$message.success(res.msg)
|
|
this.getTableElmentsData()
|
|
this.getTableElmentsData()
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -280,7 +273,7 @@ export default {
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
-
|
|
|
|
|
|
+
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
//调整表单样式
|
|
//调整表单样式
|
|
.excelHtml {
|
|
.excelHtml {
|
|
@@ -422,4 +415,3 @@ export default {
|
|
color: white;
|
|
color: white;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
-
|
|
|