|
@@ -125,7 +125,43 @@
|
|
|
|
|
|
<u-modal :show="modalShow" title="" :confirmText="'确定'" :cancelText="'取消'" :zoom="false" :showCancelButton="true" @confirm="modalConfirm" @cancel="modalShow = false">
|
|
|
<view class="slot-content" style="max-height: 80vh">
|
|
|
- <u-checkbox-group v-model="projectsCheck" placement="row" :size="14" v-if="projectsList.length > 0" style="max-height: 100%; overflow: auto">
|
|
|
+
|
|
|
+ <view v-if="projectsList.length > 0">
|
|
|
+
|
|
|
+ <u-checkbox-group v-model="projectsCheck" placement="row" :size="14" style="max-height: 100%; overflow: auto">
|
|
|
+ <view class="checkbox-group-title">最近使用</view>
|
|
|
+ <block v-for="(item, index) in projectsList">
|
|
|
+ <u-checkbox v-if="item.submissions>0"
|
|
|
+ :customStyle="{ marginBottom: '8px', width: '50%' }"
|
|
|
+ :label="item.projectName+' ('+item.submissions+'次)'"
|
|
|
+ :name="item.id"
|
|
|
+ :activeColor="proxy.$settingStore.themeColor.color"
|
|
|
+ >
|
|
|
+ </u-checkbox>
|
|
|
+ </block>
|
|
|
+ <u-line class="u-line" color="info" style="margin:10px 0"></u-line>
|
|
|
+
|
|
|
+
|
|
|
+ <view class="checkbox-group-title">其他</view>
|
|
|
+
|
|
|
+ <block v-for="(item, index) in projectsList">
|
|
|
+ <u-checkbox v-if="!item.submissions"
|
|
|
+ :customStyle="{ marginBottom: '8px', width: '50%' }"
|
|
|
+ :label="item.projectName"
|
|
|
+ :name="item.id"
|
|
|
+ :activeColor="proxy.$settingStore.themeColor.color"
|
|
|
+ >
|
|
|
+ </u-checkbox>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </block>
|
|
|
+
|
|
|
+
|
|
|
+ </u-checkbox-group>
|
|
|
+
|
|
|
+ <!-- <u-checkbox-group v-else v-model="projectsCheck" placement="row" :size="14" style="max-height: 100%; overflow: auto">
|
|
|
<u-checkbox
|
|
|
:customStyle="{ marginBottom: '8px', width: '50%' }"
|
|
|
v-for="(item, index) in projectsList"
|
|
@@ -135,7 +171,9 @@
|
|
|
:activeColor="proxy.$settingStore.themeColor.color"
|
|
|
>
|
|
|
</u-checkbox>
|
|
|
- </u-checkbox-group>
|
|
|
+ </u-checkbox-group> -->
|
|
|
+ </view>
|
|
|
+
|
|
|
<view v-else>请联系项目管理人员给您分配项目后重试!</view>
|
|
|
</view>
|
|
|
</u-modal>
|
|
@@ -224,6 +262,7 @@ function switchChage(e, key) {
|
|
|
function insertUsers() {
|
|
|
//将人员选中数据传入store中
|
|
|
systemStore.mallList.activeUserList = state.userList;
|
|
|
+
|
|
|
proxy.$tab.navigateTo(`/pages/business/common/projectMange/mall/index?number=200&type=3`);
|
|
|
}
|
|
|
|
|
@@ -240,6 +279,11 @@ function deleteUsers(index) {
|
|
|
/** 添加项目按钮事件 */
|
|
|
function insertProjects() {
|
|
|
modal.modalShow = true;
|
|
|
+ projectApi()
|
|
|
+ .ProjectsSelect()
|
|
|
+ .then((requset) => {
|
|
|
+ state.projectsList = requset.data;
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/** 实时保存填写数据 */
|
|
@@ -349,6 +393,10 @@ watch(
|
|
|
onReady(() => {});
|
|
|
|
|
|
onShow(() => {
|
|
|
+
|
|
|
+ init();
|
|
|
+
|
|
|
+
|
|
|
//循环将缓存数据遍历
|
|
|
|
|
|
if(!state.form.id){
|
|
@@ -357,7 +405,8 @@ onShow(() => {
|
|
|
state[key] = storages[key];
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
// 监听组件返回数据
|
|
|
uni.$on("UserMall", function (value) {
|
|
@@ -384,6 +433,13 @@ onUnload(() => {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.checkbox-group-title{
|
|
|
+ display:block;width:100%;
|
|
|
+ font-size:16px;
|
|
|
+ font-weight:bold;
|
|
|
+ note-color: #909399;
|
|
|
+ margin-bottom:10px;
|
|
|
+}
|
|
|
:deep() {
|
|
|
.u-cell__body {
|
|
|
color: #000000;
|