|
@@ -57,6 +57,19 @@
|
|
/>
|
|
/>
|
|
<u-button class="mt20" type="primary" style="width: 100px; height: 25px" @click="handleAction('项目状态', project_status)" shape="circle" icon="plus" size="mini"> 选择项目状态 </u-button>
|
|
<u-button class="mt20" type="primary" style="width: 100px; height: 25px" @click="handleAction('项目状态', project_status)" shape="circle" icon="plus" size="mini"> 选择项目状态 </u-button>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="content-area-item mt10 p10 bg-white">
|
|
|
|
+ <view class="font14 weight mb10 required">公开状态</view>
|
|
|
|
+ <u-input
|
|
|
|
+ :modelValue="proxy.$common.mapping('label', 'value', form.visibleRange, project_displayType)"
|
|
|
|
+ fontSize="14px"
|
|
|
|
+ placeholderStyle="color:#909399;font-size:12px"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ border="none"
|
|
|
|
+ disabledColor="transparent"
|
|
|
|
+ disabled
|
|
|
|
+ />
|
|
|
|
+ <u-button class="mt20" type="primary" style="width: 100px; height: 25px" @click="handleAction('公开状态', project_displayType)" shape="circle" icon="plus" size="mini"> 选择公开状态 </u-button>
|
|
|
|
+ </view>
|
|
<view class="content-area-item mt10 p10 bg-white">
|
|
<view class="content-area-item mt10 p10 bg-white">
|
|
<view class="font14 weight mb10 required">项目负责人</view>
|
|
<view class="font14 weight mb10 required">项目负责人</view>
|
|
<avatarList :userList="projectHeadList" @deleteUsers="(value) => deleteUsers(value, 'projectHeadList')" />
|
|
<avatarList :userList="projectHeadList" @deleteUsers="(value) => deleteUsers(value, 'projectHeadList')" />
|
|
@@ -127,7 +140,7 @@ import { storageSystem } from "@/utils/storage"; // 公共方法引用
|
|
/*----------------------------------公共变量-----------------------------------*/
|
|
/*----------------------------------公共变量-----------------------------------*/
|
|
const systemStore = systemStores();
|
|
const systemStore = systemStores();
|
|
const { proxy } = getCurrentInstance();
|
|
const { proxy } = getCurrentInstance();
|
|
-const { project_status, project_type, project_ascription } = proxy.useDict("project_status", "project_type", "project_ascription");
|
|
|
|
|
|
+const { project_status, project_type, project_ascription,project_displayType } = proxy.useDict("project_status", "project_type", "project_ascription","project_displayType");
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
id: {
|
|
id: {
|
|
type: String,
|
|
type: String,
|
|
@@ -196,9 +209,11 @@ function handleAction(title, event, index, ind) {
|
|
*/
|
|
*/
|
|
function selectAction(e) {
|
|
function selectAction(e) {
|
|
if (state.actionTitle == "项目类型") {
|
|
if (state.actionTitle == "项目类型") {
|
|
- state.form.projectType = e.value[0].value; //项目名称
|
|
|
|
|
|
+ state.form.projectType = e.value[0].value;
|
|
} else if (state.actionTitle == "项目状态") {
|
|
} else if (state.actionTitle == "项目状态") {
|
|
- state.form.projectStatus = e.value[0].value; //项目名称
|
|
|
|
|
|
+ state.form.projectStatus = e.value[0].value;
|
|
|
|
+ } else if (state.actionTitle == "公开状态") {
|
|
|
|
+ state.form.visibleRange = e.value[0].value;
|
|
}
|
|
}
|
|
state.actionShow = false;
|
|
state.actionShow = false;
|
|
}
|
|
}
|
|
@@ -221,6 +236,7 @@ function selectListApi() {
|
|
state.form.projectName = data.projectName;
|
|
state.form.projectName = data.projectName;
|
|
state.form.projectType = data.projectType;
|
|
state.form.projectType = data.projectType;
|
|
state.form.projectStatus = data.projectStatus;
|
|
state.form.projectStatus = data.projectStatus;
|
|
|
|
+ state.form.visibleRange = data.visibleRange;
|
|
state.form.projectWorkload = data.projectWorkload ? data.projectWorkload : "";
|
|
state.form.projectWorkload = data.projectWorkload ? data.projectWorkload : "";
|
|
state.form.projectHead = data.projectHead;
|
|
state.form.projectHead = data.projectHead;
|
|
state.form.projectMember = data.projectMember;
|
|
state.form.projectMember = data.projectMember;
|
|
@@ -303,6 +319,7 @@ function handleSubmit(value) {
|
|
projectHead: state.form.projectHead, //项目负责人
|
|
projectHead: state.form.projectHead, //项目负责人
|
|
projectMember: state.form.projectMember, //项目成员
|
|
projectMember: state.form.projectMember, //项目成员
|
|
projectDescribe: state.form.projectDescribe, //项目描述
|
|
projectDescribe: state.form.projectDescribe, //项目描述
|
|
|
|
+ visibleRange: state.form.visibleRange, //公开状态
|
|
// startTime: "2022-10-01T01:00:00",
|
|
// startTime: "2022-10-01T01:00:00",
|
|
// endTime: "2023-03-31T23:59:59",
|
|
// endTime: "2023-03-31T23:59:59",
|
|
})
|
|
})
|