| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <!-- -->
- <template>
- <div id="popupContainer" class=''>
- <el-dialog :title="ryTitle" @close="closeDialog" width="50%" :visible.sync="dialogFormVisible">
- <el-tabs v-model="currentViewId" type="card">
- <el-tab-pane
- :label="option.label"
- :name="option.label"
- v-for="option in options"
- :key="option.value">
- <component
- :is="option.value"
- :ryEngid="ryEngid"
- :ryInfoContent="ryInfoContent"
- :ryObjId="ryObjId">
- </component>
- </el-tab-pane>
- </el-tabs>
- </el-dialog>
- </div>
- </template>
- <script>
- export default {
- components: {
- jichuxinxi:resolve => {require(['./jichuxinxi.vue'], resolve)},//基础信息
- yunxingguanli:resolve => {require(['./yunxingguanli.vue'], resolve)},//农村饮水工程运行管理情况表
- anfangdiaoyan:resolve => {require(['./anfangdiaoyan.vue'], resolve)},//暗访调研行政村统计表
- yunxingweihu:resolve => {require(['./yunxingweihu.vue'], resolve)},//村内农村饮水工程设施运行维护情况表
- yongshuihu:resolve => {require(['./yongshuihu.vue'], resolve)},//用水户情况表
- qianrengongshui:resolve => {require(['./qianrengongshui.vue'], resolve)},//千人以上供水工程水源地保护情况表
- },
- props:['ryEngid',"ryInfoContent",'ryTitle','ryObjId'],
- data() {
- return {
- currentViewId:'基础信息',
- dialogFormVisible:true,
- options: [
- {
- value: "jichuxinxi",
- label: "基础信息"
- },{
- value: "yunxingguanli",
- label: "农村饮水工程运行管理情况表"
- },{
- value: "anfangdiaoyan",
- label: "暗访调研行政村统计表"
- },{
- value: "yunxingweihu",
- label: "村内农村饮水工程设施运行维护情况表"
- },{
- value: "yongshuihu",
- label: "用水户情况表"
- },{
- value: "qianrengongshui",
- label: "千人以上供水工程水源地保护情况表"
- }
- ]
- };
- },
- computed: {},
- watch: {},
- //生命周期 - 创建完成(可以访问当前this实例)
- created() {
- },
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {
-
- },
- beforeCreate() {}, //生命周期 - 创建之前
- beforeMount() {}, //生命周期 - 挂载之前
- beforeUpdate() {}, //生命周期 - 更新之前
- updated() {}, //生命周期 - 更新之后
- beforeDestroy() {}, //生命周期 - 销毁之前
- destroyed() {}, //生命周期 - 销毁完成
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
- methods: {
- closeDialog() {
- this.$emit("cancelHandler");
- },
- showDialog() {
- this.dialogFormVisible = true;
- },
- },
- }
- </script>
- <style scoped>
- /*@import url(); 引入公共css类*/
- </style>
|