|
@@ -9,8 +9,8 @@
|
|
|
<el-option value="2400#单元" laabel="2400#单元"></el-option>
|
|
|
<el-option value="8200#单元" laabel="8200#单元"></el-option>
|
|
|
<el-option value="8500#单元" laabel="8500#单元"></el-option>
|
|
|
+ <el-option value="8800#单元" laabel="8500#单元"></el-option>
|
|
|
<el-option value="8900#单元" laabel="8900#单元"></el-option>
|
|
|
- <el-option value="8800#单元" laabel="8800#单元"></el-option>
|
|
|
<el-option value="9000#单元" laabel="9000#单元"></el-option>
|
|
|
<el-option value="其他" laabel="其他"></el-option>
|
|
|
</el-select>
|
|
@@ -52,7 +52,9 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="负责部门" prop="responsibleUnit">
|
|
|
- <treeselect v-model="queryParams.responsibleUnit" :options="allDeptOptions" :show-count="true" placeholder="请选择负责部门" style="width: 220px"/>
|
|
|
+ <el-select v-model="queryParams.responsibleUnit" placeholder="请选择负责部门" @change="handleQuery" clearable >
|
|
|
+ <el-option v-for="item in allDeptOptions" :key="item.deptId" :value="item.deptId" :label="item.deptName" />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
@@ -196,8 +198,8 @@
|
|
|
<el-option value="2400#单元" laabel="2400#单元"></el-option>
|
|
|
<el-option value="8200#单元" laabel="8200#单元"></el-option>
|
|
|
<el-option value="8500#单元" laabel="8500#单元"></el-option>
|
|
|
- <el-option value="8900#单元" laabel="8900#单元"></el-option>
|
|
|
<el-option value="8800#单元" laabel="8800#单元"></el-option>
|
|
|
+ <el-option value="8900#单元" laabel="8900#单元"></el-option>
|
|
|
<el-option value="9000#单元" laabel="9000#单元"></el-option>
|
|
|
<el-option value="其他" laabel="其他"></el-option>
|
|
|
</el-select>
|
|
@@ -234,7 +236,9 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="负责部门 " prop="responsibleUnit">
|
|
|
- <treeselect v-model="form.responsibleUnit" :options="allDeptOptions" @select="getResponsiblePersonList" :show-count="true" placeholder="请选择负责部门" />
|
|
|
+ <el-select v-model="form.responsibleUnit" @change="getResponsiblePersonList" placeholder="请选择负责部门" clearable style="width: 100%">
|
|
|
+ <el-option v-for="item in allDeptOptions" :key="item.deptId" :value="item.deptId" :label="item.deptName" />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="负责人员" prop="responsiblePerson">
|
|
|
<el-select v-model="form.responsiblePerson" clearable filterable style="width: 100%">
|
|
@@ -390,7 +394,7 @@ import {
|
|
|
listIssuelist,
|
|
|
updateIssuelist
|
|
|
} from "@/api/issue/issuelist";
|
|
|
-import {treeselect} from "@/api/system/dept";
|
|
|
+import {listDeptByNames, treeselect} from "@/api/system/dept";
|
|
|
import {getToken} from "@/utils/auth";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -585,8 +589,8 @@ export default {
|
|
|
this.getAllDeptList();
|
|
|
},
|
|
|
methods: {
|
|
|
- getResponsiblePersonList(node, instanceId){
|
|
|
- this.getUserList(node.id);
|
|
|
+ getResponsiblePersonList(val){
|
|
|
+ this.getUserList(val);
|
|
|
},
|
|
|
getUserList(deptId){
|
|
|
this.userOptions=[];
|
|
@@ -610,7 +614,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getAllDeptList(){
|
|
|
- alltreeselect().then(response => {
|
|
|
+ listDeptByNames({deptName:'CTA/M,CTM/M,CTA/SP,CTS/LY,CBP,CBP/B'}).then(response => {
|
|
|
this.allDeptOptions = response.data;
|
|
|
});
|
|
|
},
|