|
|
@@ -56,7 +56,16 @@
|
|
|
|
|
|
</div>
|
|
|
|
|
|
-
|
|
|
+ <el-dialog
|
|
|
+ title="店铺资质消息提示"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ width="40%"
|
|
|
+ center>
|
|
|
+ <div v-for="(item,index) in promptList">({{index+1}})、{{item}}</div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="dialogVisible = false">已 知 晓</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
|
|
|
|
|
|
</div>
|
|
|
@@ -67,6 +76,7 @@
|
|
|
import doctorChart from "./components/store/doctorChart.vue";
|
|
|
import PanelGroup from "./components/store/PanelGroup.vue";
|
|
|
import StoreOrderMoney from "./components/store/StoreOrderMoney.vue";
|
|
|
+import { queryValidStoreLastInfo } from '@/api/store/store';
|
|
|
export default {
|
|
|
name: 'Index',
|
|
|
components: {
|
|
|
@@ -75,9 +85,16 @@ PanelGroup,StoreOrderMoney,doctorChart
|
|
|
data() {
|
|
|
return {
|
|
|
data:null,
|
|
|
+ promptList:[],
|
|
|
+ dialogVisible: false,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ console.log("是否执行资质提示方法")
|
|
|
+ this.handleNoticeInfo();
|
|
|
+ })
|
|
|
+
|
|
|
//this.getIndex();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -88,6 +105,25 @@ PanelGroup,StoreOrderMoney,doctorChart
|
|
|
|
|
|
});
|
|
|
}, */
|
|
|
+ handleNoticeInfo() {
|
|
|
+ queryValidStoreLastInfo()
|
|
|
+ .then(response => {
|
|
|
+ console.log("noticeInfo接口完整响应:", response);
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.promptList = response.data;
|
|
|
+ if (this.promptList && this.promptList.length > 0) {
|
|
|
+ this.dialogVisible = true;
|
|
|
+ }
|
|
|
+ console.log("通知信息请求完成!", this.promptList);
|
|
|
+ } else {
|
|
|
+ console.warn("接口返回非成功状态:", response.code);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ console.error("获取通知信息失败:", err);
|
|
|
+ this.$message.error("加载通知信息失败,请稍后重试");
|
|
|
+ });
|
|
|
+ },
|
|
|
getDocT(row){
|
|
|
setTimeout(() => {
|
|
|
this.$refs.getDoc.getDoc(row);
|