|
@@ -68,7 +68,7 @@
|
|
|
<view class="content-area-item mt10 p10 bg-white">
|
|
|
<view class="font14 weight mb10">抄送到人</view>
|
|
|
<avatarList :userList="userList" @deleteUsers="deleteUsers" />
|
|
|
- <u-button class="mt20" type="primary" style="width: 100px; height: 25px" @click="insertUsers()" shape="circle" icon="plus" size="mini" :disabled="form.reportStatus==1"> 选择人员 </u-button>
|
|
|
+ <u-button class="mt20" type="primary" style="width: 100px; height: 25px" @click="insertUsers()" shape="circle" icon="plus" size="mini" :disabled="form.reportStatus == 1"> 选择人员 </u-button>
|
|
|
</view>
|
|
|
<view class="content-area-item mt10 p10 bg-white">
|
|
|
<view class="flex">
|
|
@@ -78,14 +78,14 @@
|
|
|
:modelValue="form.sendDingTalk == 0 ? false : true"
|
|
|
:ctiveColor="proxy.$settingStore.themeColor.color"
|
|
|
size="20"
|
|
|
- :disabled="form.reportStatus==1"
|
|
|
+ :disabled="form.reportStatus == 1"
|
|
|
@change="(event) => switchChage(event, 'sendDingTalk')"
|
|
|
asyncChange
|
|
|
></u-switch>
|
|
|
</view>
|
|
|
<view class="flex"> </view>
|
|
|
</view>
|
|
|
- <view class="content-area-item mt10 p10 bg-white" v-if="form.reportStatus != 1">
|
|
|
+ <view class="content-area-item mt10 p10 bg-white" v-if="form.reportStatus != 1">
|
|
|
<view class="flex">
|
|
|
<view class="font14 weight">定时发送</view>
|
|
|
<u-switch
|
|
@@ -229,9 +229,9 @@ function insertUsers() {
|
|
|
|
|
|
/** 删除人员按钮事件 */
|
|
|
function deleteUsers(index) {
|
|
|
- if(state.form.reportStatus==1){
|
|
|
- console.log('已发送不可修改抄送人')
|
|
|
- return
|
|
|
+ if (state.form.reportStatus == 1) {
|
|
|
+ console.log("已发送不可修改抄送人");
|
|
|
+ return;
|
|
|
}
|
|
|
state.userList.splice(index, 1);
|
|
|
realTimeSaving();
|
|
@@ -277,8 +277,8 @@ function modalConfirm() {
|
|
|
|
|
|
/** 提交 */
|
|
|
function handleSubmit() {
|
|
|
- state.form.sendDingTalk==true?1:0;
|
|
|
- state.form.id=state.form.id?Number(state.form.id):'';
|
|
|
+ state.form.sendDingTalk == true ? 1 : 0;
|
|
|
+ state.form.id = state.form.id ? Number(state.form.id) : "";
|
|
|
state.form.ccTo = state.userList.map((obj) => `${obj.id}`).join(",");
|
|
|
state.form.reportDate = proxy.$time.formatterDate(new Date(), "yyyy-MM-dd");
|
|
|
state.form.workContents.forEach((e) => {
|
|
@@ -311,8 +311,8 @@ watch(
|
|
|
state.form.workContents.forEach((e) => {
|
|
|
state.projectsCheck.push(e.projectId);
|
|
|
});
|
|
|
- var ccTo = state.form.ccTo.length > 0 ? state.form.ccTo.split(",").map((num) => Number(num)) : [];
|
|
|
- setTimeout(function(){
|
|
|
+ var ccTo = state.form.ccTo.length > 0 ? state.form.ccTo.split(",").map((num) => Number(num)) : [];
|
|
|
+ setTimeout(function () {
|
|
|
state.userDate.forEach((e) => {
|
|
|
if (ccTo.includes(e.userId)) {
|
|
|
state.userList.push({
|
|
@@ -331,8 +331,7 @@ watch(
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- },300)
|
|
|
-
|
|
|
+ }, 300);
|
|
|
|
|
|
projectApi()
|
|
|
.ProjectsSelect()
|
|
@@ -362,16 +361,11 @@ onShow(() => {
|
|
|
|
|
|
onLoad((options) => {
|
|
|
init();
|
|
|
- if(options.id){
|
|
|
- state.form.id=options.id
|
|
|
- }else{
|
|
|
- state.form.id=''
|
|
|
+ if (options.id) {
|
|
|
+ state.form.id = options.id;
|
|
|
+ } else {
|
|
|
+ state.form.id = "";
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
});
|
|
|
|
|
|
onUnload(() => {
|
|
@@ -380,22 +374,24 @@ onUnload(() => {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-:deep(.u-cell__body) {
|
|
|
- color: #000000;
|
|
|
- font-size: 12px;
|
|
|
- padding: 10px 0px !important;
|
|
|
-}
|
|
|
+:deep() {
|
|
|
+ .u-cell__body {
|
|
|
+ color: #000000;
|
|
|
+ font-size: 12px;
|
|
|
+ padding: 10px 0px !important;
|
|
|
+ }
|
|
|
|
|
|
-:deep(.u-collapse-item__content) {
|
|
|
- overflow: auto;
|
|
|
-}
|
|
|
+ .u-collapse-item__content {
|
|
|
+ overflow: auto;
|
|
|
+ }
|
|
|
|
|
|
-:deep(.u-collapse-item__content__text) {
|
|
|
- padding: 0;
|
|
|
-}
|
|
|
+ .u-collapse-item__content__text {
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
|
|
|
-:deep(.u-cell__left-icon-wrap) {
|
|
|
- margin: 0;
|
|
|
+ .u-cell__left-icon-wrap {
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.content-area {
|