移动端集中修改dict字典展示

This commit is contained in:
zlwu committed 2025-08-10 09:53:20 +08:00
1 parent 4b9dbe40fb
commit 8bbe4e6a35
16 files changed
+1684 -134

No files matched your search

@@ -80,12 +80,17 @@
)"
:key="nameIndex"
:text="name.trim()"
type="success"
:type="getApproverType()"
size="mini"
class="approver-tag"
/>
</template>
<u-tag v-else text="无" type="info" size="mini" />
<u-tag
v-else
text="无"
:type="getNoApproverType()"
size="mini"
/>
</view>
</view>
@@ -458,6 +463,16 @@ export default {
}
},
// 获取审批人员标签类型
getApproverType() {
return 'success'; // 审批人员使用成功样式
},
// 获取无审批人员标签类型
getNoApproverType() {
return 'info'; // 无审批人员使用信息样式
},
// 注:getDownloadUrl方法已被移除,现在统一使用request.js中的downloadFile方法
},
};
@@ -76,7 +76,7 @@
v-for="user in selectCopyUserList"
:key="user.userId"
:text="user.nickName"
type="primary"
:type="getCopyUserType()"
size="mini"
closable
@close="handleCopyCloseTag(user)"
@@ -1060,6 +1060,11 @@ export default {
});
});
},
// 获取抄送用户标签类型
getCopyUserType() {
return 'primary'; // 抄送用户使用主要样式
},
},
};
</script>
+6 -1
View File
@@ -20,7 +20,7 @@
v-for="user in selectUserList"
:key="user.userId"
:text="user.nickName"
type="primary"
:type="getSelectedUserType()"
size="mini"
closable
@close="handleCloseTag(user)"
@@ -403,6 +403,11 @@ export default {
this.$emit('confirmCallBack', this.selectUserList);
this.close();
},
// 获取选中用户标签类型
getSelectedUserType() {
return 'primary'; // 选中用户使用主要样式
},
},
};
</script>
+12 -2
View File
@@ -11,7 +11,7 @@
<u-col span="6">
<u-tag
:text="isInitialized ? '已初始化' : '未初始化'"
:type="isInitialized ? 'success' : 'warning'"
:type="getInitStatusType(isInitialized)"
/>
</u-col>
</u-row>
@@ -23,7 +23,7 @@
<u-col span="6">
<u-tag
:text="isWeChatEnv ? '微信浏览器' : '非微信环境'"
:type="isWeChatEnv ? 'success' : 'error'"
:type="getWeChatEnvType(isWeChatEnv)"
/>
</u-col>
</u-row>
@@ -462,6 +462,16 @@ export default {
duration: 2000,
});
},
// 获取初始化状态标签类型
getInitStatusType(isInitialized) {
return isInitialized ? 'success' : 'warning';
},
// 获取微信环境标签类型
getWeChatEnvType(isWeChatEnv) {
return isWeChatEnv ? 'success' : 'error';
},
},
};
</script>