shj
2022-08-10 01b6b200bedf57900a88bbd982cf25889e13dc49
src/views/goalManagement/performanceAppraisal/component/DailogSearch.vue
@@ -18,18 +18,21 @@
                  <el-col :span="6" :offset="1">
                     <el-form-item>
                        <el-button size="default" type="primary" @click="listApi()">查询</el-button>
                        <el-button size="default" @click="resetForm(ruleFormRef)">重置</el-button>
                        <el-button size="default" @click="reset">重置</el-button>
                     </el-form-item>
                  </el-col>
               </el-row>
            </el-form>
            <el-button size="default" :icon="Delete">清除选择</el-button>
            <el-table :data="tableData" style="width: 100%; margin-top: 20px">
               <el-table-column align="center" width="50px" type="selection"></el-table-column>
               <el-table-column align="center" prop="date" label="标准标题" />
               <!-- <el-table-column align="center" prop="name" label="目标指标编号" width="180" />
         <el-table-column align="center" prop="address" label="年度" />
         <el-table-column align="center" prop="address" label="指标值" /> -->
            <el-button size="default" :icon="Delete" @click="clear">清除选择</el-button>
            <el-table :data="tableData" style="width: 100%; margin-top: 20px" @cell-click="radio">
               <el-table-column align="center" width="70px">
                  <template #default="scope">
                     <el-radio-group v-model="radio1">
                        <el-radio :label="scope.row.id" size="large">{{ null }}</el-radio>
                     </el-radio-group>
                  </template>
               </el-table-column>
               <el-table-column align="center" prop="title" label="标准标题" />
            </el-table>
            <el-pagination
               style="padding: 20px 0; border-bottom: 1px solid #dedede"
@@ -43,6 +46,7 @@
            />
         </el-col>
         <el-col :span="7">
         <div v-if="dynamicTags[0]==''?false:true">
            <el-tag
               v-for="tag in dynamicTags"
               :key="tag"
@@ -52,8 +56,9 @@
               :disable-transitions="false"
               @close="handleClose(tag)"
            >
               {{ tag }}
               {{ tag.title }}
            </el-tag>
            </div>
         </el-col>
      </el-row>
      <template #footer>
@@ -98,7 +103,11 @@
               }
            });
      };
    //   重置
   const reset=()=>{
      ruleForm.searchParams.title=""
      listApi()
   }
      const tableData = ref();
      const currentPage4 = ref();
      const pageSize4 = ref();
@@ -114,10 +123,19 @@
         listApi();
      };
      // 右方点击添加后显示标签
      const dynamicTags = ref(['Tag 1', 'Tag 2', 'Tag 3']);
      const dynamicTags = ref(['']);
      const handleClose = (tag: string) => {
         dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1);
         radio1.value = '';
      };
      const radio1 = ref('');
      const radio = (event: any) => {
         dynamicTags.value[0] = event;
      };
      const clear=()=>{
         dynamicTags.value=['']
         radio1.value=""
      }
      //全屏
      const full = ref(false);
      const toggleFullscreen = () => {
@@ -128,6 +146,7 @@
         }
      };
      return {
         reset,
         dialogVisible,
         listApi,
         openDailog,
@@ -143,6 +162,9 @@
         Delete,
         full,
         toggleFullscreen,
         radio1,
         radio,
         clear,
         FullScreen,
      };
   },