|
@@ -102,7 +102,7 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="起草公文">
|
|
|
- <el-select style="width: 100%" v-model="dialogForm.qcgwArr" placeholder="请选择起草公文人员" multiple filterable>
|
|
|
+ <el-select style="width: 100%" v-model="dialogForm.qcgwArr" placeholder="请选择起草公文人员" multiple filterable v-if="userListObj">
|
|
|
<el-option v-for="item in userListObj " :key="item.value" :label="item.label" :value="item">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -200,7 +200,7 @@ export default {
|
|
|
dialogFormVisible: false,
|
|
|
dialogForm: {
|
|
|
lcmc: '',
|
|
|
- qcgwArr: '',
|
|
|
+ qcgwArr: [],
|
|
|
applyObj: ''
|
|
|
},
|
|
|
check_rules: {
|
|
@@ -333,7 +333,7 @@ export default {
|
|
|
this.title = "新建流程";
|
|
|
this.dialogForm = {
|
|
|
lcmc: '',
|
|
|
- qcgwArr: '',
|
|
|
+ qcgwArr: [],
|
|
|
applyObj: ''
|
|
|
};
|
|
|
this.addAll = [
|
|
@@ -364,10 +364,7 @@ export default {
|
|
|
let transFormat = JSON.parse(singleDATA.lc_qcgw);
|
|
|
let qcgwTempArr = []
|
|
|
if (transFormat == "") { //流程为通用流程 无公文人员
|
|
|
- qcgwTempArr = {
|
|
|
- label: "",
|
|
|
- value: ""
|
|
|
- }
|
|
|
+ qcgwTempArr = []
|
|
|
} else {
|
|
|
transFormat.forEach(item => {
|
|
|
qcgwTempArr.push({
|
|
@@ -518,6 +515,7 @@ export default {
|
|
|
},
|
|
|
//删除
|
|
|
delData(item) {
|
|
|
+ let _this = this;
|
|
|
let transObj = {
|
|
|
lc_id: item.lc_id,
|
|
|
};
|
|
@@ -529,13 +527,13 @@ export default {
|
|
|
.then(() => {
|
|
|
lcgl_del(transObj).then((res) => {
|
|
|
if (res.code == 1) {
|
|
|
- this.$message({
|
|
|
+ _this.$message({
|
|
|
message: "删除成功!",
|
|
|
type: "success",
|
|
|
});
|
|
|
- this.getListData();
|
|
|
+ _this.getListData();
|
|
|
} else {
|
|
|
- this.$message({
|
|
|
+ _this.$message({
|
|
|
message: res.msg,
|
|
|
type: "error",
|
|
|
});
|
|
@@ -546,13 +544,13 @@ export default {
|
|
|
},
|
|
|
//点击-应用对象
|
|
|
DXlinkNumber(val) {
|
|
|
+ let _this = this;
|
|
|
this.userListObj = [];
|
|
|
-
|
|
|
let transObj = {
|
|
|
dept_id: val.value,
|
|
|
all: '1',
|
|
|
page: 1,
|
|
|
- limit: 999,
|
|
|
+ limit: 99999,
|
|
|
};
|
|
|
org_users(transObj).then((res) => {
|
|
|
if (res.code == "1") {
|
|
@@ -564,8 +562,7 @@ export default {
|
|
|
value: item.user_id,
|
|
|
})
|
|
|
});
|
|
|
-
|
|
|
- this.userListObj = tempArrOne;
|
|
|
+ _this.userListObj = tempArrOne;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -598,6 +595,7 @@ export default {
|
|
|
this.cur_page = val;
|
|
|
this.getListData();
|
|
|
},
|
|
|
+
|
|
|
},
|
|
|
|
|
|
};
|