|
|
@@ -37,19 +37,11 @@
|
|
|
size="small"
|
|
|
style="margin-left: 30px"
|
|
|
>
|
|
|
- <el-form-item label="机构:">
|
|
|
- <el-cascader
|
|
|
- class="widths"
|
|
|
- :options="institutionOptions"
|
|
|
+ <el-form-item label="机构编码:">
|
|
|
+ <el-input
|
|
|
v-model="peopledeptid"
|
|
|
- :props="{
|
|
|
- checkStrictly: true,
|
|
|
- value: 'id',
|
|
|
- label: 'name',
|
|
|
- }"
|
|
|
- @change="handleChange"
|
|
|
- clearable
|
|
|
- ></el-cascader>
|
|
|
+ placeholder="请输入机构编码"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="来源:">
|
|
|
<el-select v-model="managementSource" placeholder="选择来源">
|
|
|
@@ -116,6 +108,18 @@
|
|
|
width="150"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="managementSource"
|
|
|
+ label="来源"
|
|
|
+ align="center"
|
|
|
+ width="150"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.managementSource == '1'">渠道</span>
|
|
|
+ <span v-if="scope.row.managementSource == '2'">个代</span>
|
|
|
+ <span v-if="scope.row.managementSource == '3'">服务</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="address" label="机构地址" align="center">
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -568,7 +572,6 @@ export default {
|
|
|
this.getDictItems("comattribute");
|
|
|
this.getDictItems("comtype");
|
|
|
this.getQueryTree(); //获取省市区数据
|
|
|
- this.deptInt(); //获取机构数据
|
|
|
},
|
|
|
mounted() {
|
|
|
this.changeTreeWidth(); // 初始化树的宽度
|
|
|
@@ -622,7 +625,6 @@ export default {
|
|
|
comleveloptions: [],
|
|
|
comattributeoptions: [],
|
|
|
comtypeoptions: [],
|
|
|
- institutionOptions: [], //机构数据
|
|
|
//------------下拉框数据 end-----------------
|
|
|
|
|
|
//---dialog begin ----
|
|
|
@@ -779,18 +781,6 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- deptInt() {
|
|
|
- this.$api.dept.findDeptTree(this.peopledeptid, "").then((res) => {
|
|
|
- this.institutionOptions = res.data;
|
|
|
- });
|
|
|
- },
|
|
|
- handleChange(val) {
|
|
|
- if (val.length !== 0) {
|
|
|
- this.peopledeptid = val.at(-1);
|
|
|
- } else {
|
|
|
- this.peopledeptid = "9";
|
|
|
- }
|
|
|
- },
|
|
|
//点击每一行的事件
|
|
|
rowClick(row, treeNode) {
|
|
|
//点每行展开折叠
|
|
|
@@ -1156,6 +1146,7 @@ export default {
|
|
|
data: comtype,
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
// 提交表单
|
|
|
submitForm() {
|
|
|
let that = this;
|