|
|
@@ -37,7 +37,7 @@
|
|
|
</el-tree>
|
|
|
</el-col>
|
|
|
<el-col :span="18">
|
|
|
- <el-table :data="tablelist" size="mini" border>
|
|
|
+ <el-table :data="tablelist" size="mini" border highlight-current-row stripe >
|
|
|
<el-table-column label="操作" width="70" align="center" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<template v-if="scope.row.Parentid !== 0">
|
|
|
@@ -72,6 +72,12 @@
|
|
|
<el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false" v-model="selectedorg"
|
|
|
placeholder="请选择组织"></el-cascader>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="二级单位" prop="category" label-width="120px" required>
|
|
|
+ <el-select v-model="organizeform.category" placeholder="请选择" style="width: 100%" @change="searchSelectChange">
|
|
|
+ <el-option key="1" label="是" value="1"></el-option>
|
|
|
+ <el-option key="0" label="否" value="0"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="组织名称" prop="fullname" label-width="120px">
|
|
|
<el-input v-model="organizeform.fullname" auto-complete="off"></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -133,6 +139,7 @@
|
|
|
parentid: 0,
|
|
|
fullname: '',
|
|
|
description: '',
|
|
|
+ category: '0',
|
|
|
id: 0
|
|
|
},
|
|
|
rulesorganize: {
|
|
|
@@ -184,6 +191,9 @@
|
|
|
authUser: 'authUser'
|
|
|
}),
|
|
|
methods: {
|
|
|
+ searchSelectChange() {
|
|
|
+ this.$forceUpdate()
|
|
|
+ },
|
|
|
initData() {
|
|
|
let _this = this
|
|
|
// paginate
|
|
|
@@ -192,7 +202,7 @@
|
|
|
_size: this.size,
|
|
|
keyword: this.keyword,
|
|
|
parentid: this.parentid,
|
|
|
- IsInnerOrganize: this.organizeform.IsInnerOrganize
|
|
|
+ IsInnerOrganize: 1
|
|
|
}
|
|
|
// request
|
|
|
this.$axios.get('organizes/listbandparentname', {
|
|
|
@@ -221,7 +231,7 @@
|
|
|
let _this = this
|
|
|
// request
|
|
|
let params = {
|
|
|
- IsInnerOrganize: this.organizeform.IsInnerOrganize
|
|
|
+ IsInnerOrganize: 1
|
|
|
}
|
|
|
_this.$axios.get('organizes/list', {
|
|
|
params
|
|
|
@@ -334,6 +344,7 @@
|
|
|
return val.substring(0, 19)
|
|
|
},
|
|
|
opendatadialog(item, v, index) {
|
|
|
+ console.log(v, '22222')
|
|
|
this.operatingitem = item
|
|
|
this.datadialogVisible = true
|
|
|
this.clearorganizeform()
|
|
|
@@ -372,6 +383,11 @@
|
|
|
_this.dialogtitle = `编辑组织信息(${v.Fullname})`
|
|
|
_this.organizeform.parentid = v.Parentid
|
|
|
_this.organizeform.fullname = v.Fullname
|
|
|
+ if (v.Category == "unit") {
|
|
|
+ _this.organizeform.category = '1'
|
|
|
+ } else {
|
|
|
+ _this.organizeform.category = '0'
|
|
|
+ }
|
|
|
_this.organizeform.description = v.Description
|
|
|
_this.organizeform.id = v.Id
|
|
|
// 选中状态
|
|
|
@@ -415,6 +431,7 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ console.log(_this.organizeform, '789')
|
|
|
if (_this.operatingitem === 1) {
|
|
|
_this.organizeform.IsInnerOrganize = 1
|
|
|
_this.$axios.post('organizes/', _this.organizeform)
|
|
|
@@ -516,6 +533,7 @@
|
|
|
parentid: 0,
|
|
|
fullname: '',
|
|
|
description: '',
|
|
|
+ category: '0',
|
|
|
id: 0
|
|
|
}
|
|
|
},
|