选择部门

This commit is contained in:
shijingjing
2022-07-20 11:30:14 +08:00
parent 5d8754639e
commit 05bb18f8f9

View File

@@ -139,23 +139,14 @@
</div> </div>
<div class="type-list"> <div class="type-list">
<div class="type-title">宣发部门</div> <div class="type-title">宣发部门</div>
<!-- <AiPagePicker <div @click="getDept" class="dept">
type="custom" <div v-if="departmentId">
:selected.sync="department" <AiOpenData type="departmentName" :openid="departmentId"/>
nodeKey="id" </div>
:ops="{ url: `./selectDeptUser`, label: 'name' }" <div v-if="!departmentId">请选择部门</div>
valueObj <!-- <input type="text" placeholder="请选择部门" :value="department" disabled /> -->
> <u-icon name="arrow-right"></u-icon>
<span class="label" v-if="department.length">已选择</span> </div>
<span v-else style="color: #999">请选择</span>
<u-icon
name="arrow-right"
color="#999"
size="24"
style="margin-left: 8px"
/>
</AiPagePicker> -->
<input type="text" placeholder="请选择部门" :value="department" disabled @click="getDept"/>
</div> </div>
</scroll-view> </scroll-view>
<div class="popBtn"> <div class="popBtn">
@@ -228,7 +219,7 @@ export default {
timeSelect: 0, timeSelect: 0,
start: "", start: "",
end: "", end: "",
department: '', departmentId: '',
departList: [], departList: [],
nowMonth: "", nowMonth: "",
nowDate: "", nowDate: "",
@@ -288,6 +279,7 @@ export default {
this.start = ""; this.start = "";
this.end = ""; this.end = "";
this.departId = ""; this.departId = "";
this.departmentId = "";
}, },
selectConfirm() { selectConfirm() {
@@ -298,6 +290,7 @@ export default {
} else { } else {
this.detailType = this.timeSelect; this.detailType = this.timeSelect;
} }
this.departId = this.departmentId
this.getBrokenDate(); this.getBrokenDate();
this.filterShow = false; this.filterShow = false;
}, },
@@ -350,7 +343,7 @@ export default {
type: this.timeSelect, type: this.timeSelect,
startTime: this.start, startTime: this.start,
endTime: this.end, endTime: this.end,
// departId: this.departId departId: this.departId
}, },
}) })
.then((res) => { .then((res) => {
@@ -633,7 +626,7 @@ export default {
}).then((res)=>{ }).then((res)=>{
console.log(res,111); console.log(res,111);
if(res?.departmentList) { if(res?.departmentList) {
this.department = res.departmentList[0].id this.departmentId = res.departmentList[0].id
} }
} }
).catch((err) => { ).catch((err) => {
@@ -844,6 +837,10 @@ export default {
background: #1365dd; background: #1365dd;
color: #fff; color: #fff;
} }
.dept {
display: flex;
justify-content: space-between
}
} }
.popBtn { .popBtn {
display: flex; display: flex;