|
@@ -51,7 +51,7 @@
|
|
</el-table>
|
|
</el-table>
|
|
<pagination v-show="tableData.total>0" :total="tableData.total" v-model:page="tableData.param.pageNum" v-model:limit="tableData.param.pageSize" @pagination="queryList" />
|
|
<pagination v-show="tableData.total>0" :total="tableData.total" v-model:page="tableData.param.pageNum" v-model:limit="tableData.param.pageSize" @pagination="queryList" />
|
|
</div>
|
|
</div>
|
|
- <EditDic ref="editDicRef" @queryList="queryList" />
|
|
|
|
|
|
+ <EditDic ref="editDicRef" @queryList="handleFinish()" />
|
|
<Detail ref="detailRef" />
|
|
<Detail ref="detailRef" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -62,19 +62,17 @@ import { ElMessageBox, ElMessage, FormInstance } from 'element-plus';
|
|
import EditDic from './component/edit.vue';
|
|
import EditDic from './component/edit.vue';
|
|
import Detail from './component/detail.vue';
|
|
import Detail from './component/detail.vue';
|
|
import api from '/@/api/heatingDistrict';
|
|
import api from '/@/api/heatingDistrict';
|
|
|
|
+import { emit } from 'process';
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'loop',
|
|
name: 'loop',
|
|
components: { EditDic,Detail },
|
|
components: { EditDic,Detail },
|
|
props: {
|
|
props: {
|
|
- organizationId: {
|
|
|
|
- default: ''
|
|
|
|
- },
|
|
|
|
- plotId: {
|
|
|
|
|
|
+ nodeId: {
|
|
default: ''
|
|
default: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- setup(prop) {
|
|
|
|
|
|
+ setup(prop, { emit }) {
|
|
const editDicRef = ref();
|
|
const editDicRef = ref();
|
|
const detailRef=ref();
|
|
const detailRef=ref();
|
|
const queryRef = ref();
|
|
const queryRef = ref();
|
|
@@ -89,8 +87,7 @@ export default defineComponent({
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
name: '',
|
|
name: '',
|
|
number: '',
|
|
number: '',
|
|
- plotId: '',
|
|
|
|
- organizationId: '',
|
|
|
|
|
|
+ nodeId: '',
|
|
status: -1
|
|
status: -1
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -104,10 +101,14 @@ export default defineComponent({
|
|
state.tableData.loading = false
|
|
state.tableData.loading = false
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ const handleFinish = () => {
|
|
|
|
+ emit('finish')
|
|
|
|
+ queryList()
|
|
|
|
+ }
|
|
|
|
|
|
- watch(() => prop.plotId, () => {
|
|
|
|
- state.tableData.param.organizationId = prop.organizationId
|
|
|
|
- state.tableData.param.plotId = prop.plotId
|
|
|
|
|
|
+ watch(() => prop.nodeId, () => {
|
|
|
|
+ state.tableData.param.nodeId = prop.nodeId
|
|
queryList()
|
|
queryList()
|
|
}, {
|
|
}, {
|
|
deep: true,
|
|
deep: true,
|
|
@@ -120,7 +121,7 @@ export default defineComponent({
|
|
}
|
|
}
|
|
// 打开新增修改弹窗
|
|
// 打开新增修改弹窗
|
|
const onOpenDialog = (row: any) => {
|
|
const onOpenDialog = (row: any) => {
|
|
- editDicRef.value.openDialog(row, { organizationId: prop.organizationId, plotId: prop.plotId });
|
|
|
|
|
|
+ editDicRef.value.openDialog(row, { nodeId: prop.nodeId });
|
|
};
|
|
};
|
|
|
|
|
|
// 状态修改
|
|
// 状态修改
|
|
@@ -176,6 +177,7 @@ export default defineComponent({
|
|
queryList,
|
|
queryList,
|
|
resetQuery,
|
|
resetQuery,
|
|
handleStatusChange,
|
|
handleStatusChange,
|
|
|
|
+ handleFinish,
|
|
...toRefs(state),
|
|
...toRefs(state),
|
|
};
|
|
};
|
|
},
|
|
},
|