Your Name
2022-07-05 25d3c170bf0913c27bfb5659a1bf5b0539c0fe15
src/views/goalManagement/tragetDecompositionMonth/index.vue
@@ -3,8 +3,8 @@
        <div class="minCenter">
            <div class="btns">
              <div>
                <el-button type="primary" :icon="Plus" @click="openDai">新建</el-button>
                <el-button type="warning" :icon="EditPen" plain @click="openDai">修改</el-button>
                <el-button type="primary" :icon="Plus" @click="openType">新建</el-button>
                <el-button type="warning" :icon="EditPen" plain >修改</el-button>
                <el-button type="danger" :icon="Delete" plain>删除</el-button>
              </div>
            </div>
@@ -76,9 +76,11 @@
            />
          </div>
        </div>
        <Dailog ref="Show"></Dailog>
</template>
<script lang="ts">
import search from '../targetSettings/component/search.vue'
import Dailog from '../targetDecompositionYear/component/Dailog.vue'
import { ref, toRefs, reactive, onMounted, defineComponent } from "vue";
import {
  ElMessageBox,
@@ -104,7 +106,7 @@
}
import type { TableColumnCtx } from "element-plus/es/components/table/src/table-column/defaults";
export default defineComponent({
  components: { ElButton, ElInput,search},
  components: { ElButton, ElInput,search,Dailog},
  setup() {
  
    
@@ -162,7 +164,11 @@
    const handleCurrentChange = (val: number) => {
      console.log(`current page: ${val}`);
    };
    // 打开弹窗
   const Show=ref()
   const openType=()=>{
   Show.value.openDailog()
   }
    return {
      activeName,
      handleClick,
@@ -172,6 +178,8 @@
      pageSize4,
      handleSizeChange,
      handleCurrentChange,
      Show,
      openType,
      Plus,
      Delete,
      Upload,