|
@@ -680,7 +680,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import { getModelList,addModel,delMdid,getModelDetail,updateModel,addGroup,getParamsList,changePar,delAllPar,getModelParList,delFen,changeShenhe } from "@/api/register/regCom";
|
|
|
|
|
|
|
+import { getModelList,addModel,delMdid,getModelDetail,updateModel,addGroup,getParamsList,changePar,delAllPar,getModelParList,delFen,changeShenhe,delModelPar } from "@/api/register/regCom";
|
|
|
import { ref, onMounted, onUnmounted, nextTick } from 'vue';
|
|
import { ref, onMounted, onUnmounted, nextTick } from 'vue';
|
|
|
import { Search } from '@element-plus/icons-vue'
|
|
import { Search } from '@element-plus/icons-vue'
|
|
|
import {
|
|
import {
|
|
@@ -790,6 +790,7 @@ const upload = reactive({
|
|
|
const downUrl = ref(import.meta.env.VITE_APP_BASE_API)
|
|
const downUrl = ref(import.meta.env.VITE_APP_BASE_API)
|
|
|
const tableKey = ref(0);
|
|
const tableKey = ref(0);
|
|
|
const totalComReg = ref()
|
|
const totalComReg = ref()
|
|
|
|
|
+const parMgid = ref()
|
|
|
const currentPage = ref(1)
|
|
const currentPage = ref(1)
|
|
|
const tableData2 = ref([
|
|
const tableData2 = ref([
|
|
|
{ date1:'流域拓扑', date2:'', date3:'single', date4:'基于水文响应' },
|
|
{ date1:'流域拓扑', date2:'', date3:'single', date4:'基于水文响应' },
|
|
@@ -952,6 +953,8 @@ function gatherTable(){
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
function handleNodeClick(node, data){
|
|
function handleNodeClick(node, data){
|
|
|
|
|
+ console.log(node.mgid)
|
|
|
|
|
+ parMgid.value = node.mgid
|
|
|
var keyArray = []
|
|
var keyArray = []
|
|
|
selFen.value = false
|
|
selFen.value = false
|
|
|
tableDataCanAll.value.forEach(item=>{
|
|
tableDataCanAll.value.forEach(item=>{
|
|
@@ -1055,17 +1058,31 @@ function delAllCan(){
|
|
|
}).catch(() => {});
|
|
}).catch(() => {});
|
|
|
}
|
|
}
|
|
|
function saveChangePar(){
|
|
function saveChangePar(){
|
|
|
- tableDataCanAll.value.forEach((item, index, array) => {
|
|
|
|
|
|
|
+ if(tableDataCanAll.value.length>0){
|
|
|
|
|
+ tableDataCanAll.value.forEach((item, index, array) => {
|
|
|
item.mdid = parForm.value.mdid
|
|
item.mdid = parForm.value.mdid
|
|
|
item.parCate = 'int'
|
|
item.parCate = 'int'
|
|
|
- })
|
|
|
|
|
- changePar(tableDataCanAll.value).then(res=>{
|
|
|
|
|
- if(res.code===200){
|
|
|
|
|
- proxy.$modal.msgSuccess("修改成功");
|
|
|
|
|
- dialogVisiblePei.value = false
|
|
|
|
|
- getModelListTable()
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+ changePar(tableDataCanAll.value).then(res=>{
|
|
|
|
|
+ if(res.code===200){
|
|
|
|
|
+ proxy.$modal.msgSuccess("修改成功");
|
|
|
|
|
+ dialogVisiblePei.value = false
|
|
|
|
|
+ getModelListTable()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ var par = {
|
|
|
|
|
+ mdid:parForm.value.mdid
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ delModelPar(par).then(res=>{
|
|
|
|
|
+ if(res.code===200){
|
|
|
|
|
+ proxy.$modal.msgSuccess("修改成功");
|
|
|
|
|
+ dialogVisiblePei.value = false
|
|
|
|
|
+ getModelListTable()
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
async function showPei(row){
|
|
async function showPei(row){
|
|
|
dialogVisiblePei.value = true
|
|
dialogVisiblePei.value = true
|
|
@@ -1115,7 +1132,7 @@ function showDe(row){
|
|
|
function addCan(){
|
|
function addCan(){
|
|
|
tableDataCan.value.push({
|
|
tableDataCan.value.push({
|
|
|
key:Math.random(),
|
|
key:Math.random(),
|
|
|
- mdid:parForm.value.mdid,
|
|
|
|
|
|
|
+ mgid:parMgid.value,
|
|
|
parGroup:parTree.value.parGroupCode
|
|
parGroup:parTree.value.parGroupCode
|
|
|
})
|
|
})
|
|
|
console.log(tableDataCan.value)
|
|
console.log(tableDataCan.value)
|