|
@@ -5,7 +5,7 @@
|
|
<div class="hc-slogan-icon">
|
|
<div class="hc-slogan-icon">
|
|
<img class="logo" :src="ImgText3" alt="">
|
|
<img class="logo" :src="ImgText3" alt="">
|
|
</div>
|
|
</div>
|
|
- <SearchInput placeholder="请输入您想查找的内容" v-model="searchKey" @input="SearchKeyInput"/>
|
|
|
|
|
|
+ <SearchInput v-model="searchKey" placeholder="请输入您想查找的内容" @input="SearchKeyInput" />
|
|
<div class="home-link-box">
|
|
<div class="home-link-box">
|
|
<span>他们都在搜索:</span>
|
|
<span>他们都在搜索:</span>
|
|
<div class="home-link">
|
|
<div class="home-link">
|
|
@@ -21,20 +21,25 @@
|
|
<router-link to="/schedule/data">资料进度</router-link>
|
|
<router-link to="/schedule/data">资料进度</router-link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <el-button type="danger" @click="delClick">删除提醒</el-button>
|
|
|
|
+
|
|
|
|
+ <el-button type="warning" @click="abnormalClick">异常提醒</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import {ref, watch} from "vue";
|
|
|
|
-import {useAppStore} from "~src/store";
|
|
|
|
|
|
+import { ref, watch } from 'vue'
|
|
|
|
+import { useAppStore } from '~src/store'
|
|
import SearchInput from '~com/home/SearchInput.vue'
|
|
import SearchInput from '~com/home/SearchInput.vue'
|
|
-import ImgText3 from "~src/assets/view/text-3.png";
|
|
|
|
|
|
+import { apiErrorMessage, delMessageV2 } from '~com/message/index.js'
|
|
|
|
+import ImgText3 from '~src/assets/view/text-3.png'
|
|
|
|
|
|
//变量
|
|
//变量
|
|
const useAppState = useAppStore()
|
|
const useAppState = useAppStore()
|
|
-const HomeTheme = ref(useAppState.getHomeTheme);
|
|
|
|
|
|
+const HomeTheme = ref(useAppState.getHomeTheme)
|
|
|
|
|
|
//监听
|
|
//监听
|
|
watch(() => [
|
|
watch(() => [
|
|
@@ -48,6 +53,30 @@ const searchKey = ref('')
|
|
const SearchKeyInput = (value) => {
|
|
const SearchKeyInput = (value) => {
|
|
searchKey.value = value
|
|
searchKey.value = value
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+//删除提醒
|
|
|
|
+const delClick = () => {
|
|
|
|
+ delMessageV2((action, instance, done) => {
|
|
|
|
+ if (action === 'confirm') {
|
|
|
|
+ instance.confirmButtonLoading = true
|
|
|
|
+ instance.confirmButtonText = 'Loading...'
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ done()
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ instance.confirmButtonLoading = false
|
|
|
|
+ }, 300)
|
|
|
|
+ }, 3000)
|
|
|
|
+ } else {
|
|
|
|
+ done()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+//删除提醒
|
|
|
|
+const abnormalClick = () => {
|
|
|
|
+ apiErrorMessage()
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|