| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <!-- -->
- <template>
- <div id="popupContainer" class=''>
- <el-dialog @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"
- :currentResCode="currentQshCode"
- :currentObjectRgstrId="currentObjectRgstrId">
- </component>
- </el-tab-pane>
- </el-tabs>
- </el-dialog>
- </div>
- </template>
- <script>
- export default {
- components: {
- jichuxinxi:resolve => {require(['./jichuxinxi.vue'], resolve)},//基础信息
- dengjixinxi:resolve => {require(['./dengjixinxi.vue'], resolve)},//登记信息
- useWwaterInfo:resolve => {require(['./useWaterInfo.vue'], resolve)},//取水口取水及监管情况
- problemList:resolve => {require(['./problemList.vue'], resolve)},//问题清单
- },
- props: ["currentDuchaTpe","currentQshCode","currentObjectRgstrId"],
- data() {
- return {
- currentViewId:'基础信息',
- dialogFormVisible:true,
- options:[],
- options_ducha:[
- {
- value: "jichuxinxi",
- label: "基础信息"
- },
- {
- value: "dengjixinxi",
- label: "登记信息"
- },
- {
- value: "useWwaterInfo",
- label: "取水口取水及监管情况"
- },
- {
- value: "problemList",
- label: "问题清单"
- }
- ],
- options_base:[
- {
- value: "jichuxinxi",
- label: "基础信息"
- }
- ]
- };
- },
- computed: {},
- watch: {},
- //生命周期 - 创建完成(可以访问当前this实例)
- created() {
- },
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {
- if(this.currentDuchaTpe){
- this.options = this.options_ducha;
- }else{
- this.options = this.options_base;
- }
- },
- 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>
|