平昌党建换组件
This commit is contained in:
@@ -96,7 +96,6 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
add() {
|
add() {
|
||||||
console.log(123)
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "./create"
|
url: "./create"
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="create-sub-task">
|
<div class="create-sub-task">
|
||||||
<template v-if="!userSelect">
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
@@ -54,40 +54,43 @@
|
|||||||
<div class="left" style="line-height: 22px;">
|
<div class="left" style="line-height: 22px;">
|
||||||
<em>*</em>执行人
|
<em>*</em>执行人
|
||||||
</div>
|
</div>
|
||||||
<u-row @click="handleSelectUser(0)" style="justify-content: flex-end">
|
<AiPagePicker type="sysUser" :isShowPhone="true" :selected.sync="form.userInfoList"
|
||||||
<div v-if="form.userInfoList.length" class="value">
|
action="/app/wxcp/wxuser/list?status=1" nodeKey="id" class="select-user">
|
||||||
|
<app-nucleic-acid-sampling v-if="form.userInfoList.length" class="value">
|
||||||
已选择<em>{{form.userInfoList.slice(0,2).map(e=>e.name).join("、")}}</em>等
|
已选择<em>{{form.userInfoList.slice(0,2).map(e=>e.name).join("、")}}</em>等
|
||||||
<em>{{form.userInfoList.length}}</em>人
|
<em>{{form.userInfoList.length}}</em>人
|
||||||
</div>
|
</app-nucleic-acid-sampling>
|
||||||
<div v-else class="placeholder">请选择</div>
|
<span v-else class="color-999">请选择</span>
|
||||||
<div class="arrow"></div>
|
<div class="arrow"></div>
|
||||||
</u-row>
|
</AiPagePicker>
|
||||||
</u-row>
|
</u-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="card border" style="padding: 13px 17px;margin-bottom: 0">
|
<div class="card border" style="padding: 13px 17px;margin-bottom: 0">
|
||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<div class="left" style="line-height: 22px;">督办人</div>
|
<div class="left" style="line-height: 22px;">督办人</div>
|
||||||
<u-row @click="handleSelectUser(1)" style="justify-content: flex-end">
|
<AiPagePicker type="sysUser" :isShowPhone="true" :selected.sync="form.checkUserList"
|
||||||
<div v-if="form.checkUserList.length" class="value">
|
action="/app/wxcp/wxuser/list?status=1" nodeKey="id" class="select-user">
|
||||||
|
<app-nucleic-acid-sampling v-if="form.checkUserList.length" class="value">
|
||||||
已选择<em>{{form.checkUserList.slice(0,2).map(e=>e.name).join("、")}}</em>等
|
已选择<em>{{form.checkUserList.slice(0,2).map(e=>e.name).join("、")}}</em>等
|
||||||
<em>{{form.checkUserList.length}}</em>人
|
<em>{{form.checkUserList.length}}</em>人
|
||||||
</div>
|
</app-nucleic-acid-sampling>
|
||||||
<div v-else class="placeholder">请选择</div>
|
<span v-else class="color-999">请选择</span>
|
||||||
<div class="arrow"></div>
|
<div class="arrow"></div>
|
||||||
</u-row>
|
</AiPagePicker>
|
||||||
</u-row>
|
</u-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="card" style="padding: 13px 17px">
|
<div class="card" style="padding: 13px 17px">
|
||||||
<u-row justify="between">
|
<u-row justify="between">
|
||||||
<div class="left" style="line-height: 22px;">抄送人</div>
|
<div class="left" style="line-height: 22px;">抄送人</div>
|
||||||
<u-row @click="handleSelectUser(2)" style="justify-content: flex-end">
|
<AiPagePicker type="sysUser" :isShowPhone="true" :selected.sync="form.sendUserList"
|
||||||
<div v-if="form.sendUserList.length" class="value">
|
action="/app/wxcp/wxuser/list?status=1" nodeKey="id" class="select-user">
|
||||||
|
<app-nucleic-acid-sampling v-if="form.sendUserList.length" class="value">
|
||||||
已选择<em>{{form.sendUserList.slice(0,2).map(e=>e.name).join("、")}}</em>等
|
已选择<em>{{form.sendUserList.slice(0,2).map(e=>e.name).join("、")}}</em>等
|
||||||
<em>{{form.sendUserList.length}}</em>人
|
<em>{{form.sendUserList.length}}</em>人
|
||||||
</div>
|
</app-nucleic-acid-sampling>
|
||||||
<div v-else class="placeholder">请选择</div>
|
<span v-else class="color-999">请选择</span>
|
||||||
<div class="arrow"></div>
|
<div class="arrow"></div>
|
||||||
</u-row>
|
</AiPagePicker>
|
||||||
</u-row>
|
</u-row>
|
||||||
</div>
|
</div>
|
||||||
<div class="card" style="padding: 12px 17px;">
|
<div class="card" style="padding: 12px 17px;">
|
||||||
@@ -99,9 +102,6 @@
|
|||||||
<div class="footer" @click="handleCreate">创建</div>
|
<div class="footer" @click="handleCreate">创建</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<AiSelectEnterprise :visible.sync="userSelect" :value="selectList" v-if="userSelect"
|
|
||||||
@change="userChange"></AiSelectEnterprise>
|
|
||||||
<ai-back ref="aiBack" v-if="!userSelect"/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -112,7 +112,6 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
index: null,
|
index: null,
|
||||||
userSelect: false,
|
|
||||||
selectList: [],
|
selectList: [],
|
||||||
form: {
|
form: {
|
||||||
parentTaskCode: null,
|
parentTaskCode: null,
|
||||||
@@ -166,17 +165,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectUser(status) {
|
|
||||||
this.currentClick = status
|
|
||||||
if (this.currentClick == 0 && this.form.userInfoList.length) {
|
|
||||||
this.selectList = this.form.userInfoList
|
|
||||||
} else if (this.currentClick == 1 && this.form.checkUserList.length) {
|
|
||||||
this.selectList = this.form.checkUserList
|
|
||||||
} else if (this.currentClick == 2 && this.form.sendUserList.length) {
|
|
||||||
this.selectList = this.form.sendUserList
|
|
||||||
}
|
|
||||||
this.userSelect = true
|
|
||||||
},
|
|
||||||
dateChange(e) {
|
dateChange(e) {
|
||||||
let date = this.getDate({format: true});
|
let date = this.getDate({format: true});
|
||||||
if (new Date(date).getTime() > new Date(e.target.value).getTime()) {
|
if (new Date(date).getTime() > new Date(e.target.value).getTime()) {
|
||||||
@@ -260,6 +248,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
|
display: inline-block;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
border-top: 5px solid #CCCCCC;
|
border-top: 5px solid #CCCCCC;
|
||||||
|
|||||||
Reference in New Issue
Block a user