Browse Source

no message

linwenxin 6 tháng trước cách đây
mục cha
commit
23241785aa

+ 7 - 1
src/components/head.vue

@@ -14,7 +14,13 @@
         </div>
       </div>
       <div class="aszhongjian">
-        {{ userInfo.companyWechatId ? userInfo.companyName : '广佛格力家用工单系统' }}
+        {{
+          userInfo.type == 1
+            ? userInfo.companyName
+            : userInfo.type == 2
+            ? '平台管理员'
+            : userInfo.adminWebsits.map(item => item.name).join(',')
+        }}
       </div>
       <div class="asright">{{ timeStr }}</div>
     </div>

+ 16 - 0
src/views/setting/workContactLetter/department/index.vue

@@ -243,6 +243,14 @@ export default {
     // 打开创建弹窗
     openForm() {
       //
+      getAccountList({
+        // websitId: val,
+        isWebsit: false,
+        pageNum: 1,
+        pageSize: -1
+      }).then(res => {
+        this.accountList = res.data.records
+      })
       Promise.all([getWebsit({ status: true }), letterManagerList({ pageNum: 1, pageSize: -1, params: [] })]).then(
         ([res2, res3]) => {
           this.websitList = res2.data
@@ -253,6 +261,14 @@ export default {
     },
     // 打开详情弹窗
     openDetailForm(row) {
+      getAccountList({
+        // websitId: val,
+        isWebsit: false,
+        pageNum: 1,
+        pageSize: -1
+      }).then(res => {
+        this.accountList = res.data.records
+      })
       Promise.all([
         letterManagerDetailUser({ id: row.id }),
         getWebsit({ status: true }),