Commit 39ed0177 authored by Mac's avatar Mac
parents c56c1d3a 2b66608c
...@@ -353,8 +353,8 @@ ...@@ -353,8 +353,8 @@
<!--<el-select filterable v-model='addMsg.DepartmentID' @change="getPostList()">--> <!--<el-select filterable v-model='addMsg.DepartmentID' @change="getPostList()">-->
<el-select filterable multiple v-model='RangeIdsList' @change="changeRange"> <el-select filterable multiple v-model='RangeIdsList' @change="changeRange">
<el-option :label="$t('active.cl_tongyong')" :value='-1'></el-option> <el-option :label="$t('active.cl_tongyong')" :value='-1'></el-option>
<el-option v-for='item in departmentList' :label='item.DepartmentName' :value='item.DepartmentID' <el-option v-for='item in departmentList' :label='item.DeptName' :value='item.DeptId'
:key='item.DepartmentID' :disabled="item.disabled"> :key='item.DeptId' :disabled="item.disabled">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -384,6 +384,10 @@ ...@@ -384,6 +384,10 @@
</div> </div>
</template> </template>
<script> <script>
import {
getDeptPage,
} from '../../api/system/dept'
export default { export default {
data() { data() {
return { return {
...@@ -491,15 +495,25 @@ ...@@ -491,15 +495,25 @@
} }
}, },
getDepartment() { //获取部门 getDepartment() { //获取部门
this.apipost('admin_get_DepartmentGetList', this.departmentMsg, res => { var msg = {
if (res.data.resultCode == 1) { pageIndex: 1,
let d = res.data.data; pageSize: 999,
d.forEach(x => { rowsPerPage: 12,
x.disabled = true; DeptName: "", //部门名称
}) DeptId: 0, //部门编号
this.departmentList = d; Status: "-1",
} School_Id: "0",
}, err => {}) DeptTier: "0",
ParentId: "0",
}
getDeptPage(msg).then(res => {
this.departmentList = res.Data.PageData;
this.departmentList.forEach(x=>{
x.disabled = true;
})
}).catch(() => {
})
}, },
getProfitLossList(id) { // 获取禁用时间 getProfitLossList(id) { // 获取禁用时间
this.apipost('FinanceInfo_post_GetProfitLossList', { this.apipost('FinanceInfo_post_GetProfitLossList', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment