|
@@ -204,6 +204,28 @@
|
|
|
:value="item.dictValue"
|
|
:value="item.dictValue"
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="可查看设置公司" prop="setCompanyIdList">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="form.setCompanyIdList"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ multiple
|
|
|
|
|
+ remote
|
|
|
|
|
+ reserve-keyword
|
|
|
|
|
+ placeholder="请输入公司名称搜索"
|
|
|
|
|
+ :remote-method="searchCompanies"
|
|
|
|
|
+ :loading="companySearchLoading"
|
|
|
|
|
+ style="width: 220px"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in companyOptions"
|
|
|
|
|
+ :key="item.dictValue"
|
|
|
|
|
+ :label="item.dictLabel"
|
|
|
|
|
+ :value="item.dictValue"
|
|
|
|
|
+ />
|
|
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="是否是互医/商城小程序" prop="isMall">
|
|
<el-form-item label="是否是互医/商城小程序" prop="isMall">
|
|
|
<el-select
|
|
<el-select
|
|
@@ -308,7 +330,9 @@ export default {
|
|
|
],
|
|
],
|
|
|
title: null,
|
|
title: null,
|
|
|
open: false,
|
|
open: false,
|
|
|
- form: {},
|
|
|
|
|
|
|
+ form: {
|
|
|
|
|
+ setCompanyIdList: []
|
|
|
|
|
+ },
|
|
|
rules: {
|
|
rules: {
|
|
|
name: [
|
|
name: [
|
|
|
{ required: true, message: "名称不能为空", trigger: "blur" }
|
|
{ required: true, message: "名称不能为空", trigger: "blur" }
|
|
@@ -460,6 +484,15 @@ export default {
|
|
|
...response.data,
|
|
...response.data,
|
|
|
type: response.data.type.toString()
|
|
type: response.data.type.toString()
|
|
|
}
|
|
}
|
|
|
|
|
+ if(!!this.form.setCompanyIds){
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form,
|
|
|
|
|
+ "setCompanyIdList",
|
|
|
|
|
+ this.form.setCompanyIds.split(",").map(str => parseInt(str, 10))
|
|
|
|
|
+ );
|
|
|
|
|
+ // this.form.setCompanyIdList = this.form.setCompanyIds.split(",").map(str => parseInt(str, 10));
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log( this.form);
|
|
|
this.searchCompanies("");
|
|
this.searchCompanies("");
|
|
|
this.open = true
|
|
this.open = true
|
|
|
this.title = "修改小程序配置"
|
|
this.title = "修改小程序配置"
|
|
@@ -486,6 +519,12 @@ export default {
|
|
|
submitForm() {
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
|
+ if(!!this.form.setCompanyIdList && this.form.setCompanyIdList.length > 0){
|
|
|
|
|
+ this.form.setCompanyIds = this.form.setCompanyIdList.join(',')
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.form.setCompanyIds = "";
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log(this.form);
|
|
|
if (this.form.id != null) {
|
|
if (this.form.id != null) {
|
|
|
update(this.form).then(response => {
|
|
update(this.form).then(response => {
|
|
|
const {code, msg} = response
|
|
const {code, msg} = response
|
|
@@ -524,6 +563,7 @@ export default {
|
|
|
secret: null,
|
|
secret: null,
|
|
|
img: null,
|
|
img: null,
|
|
|
originalId: null,
|
|
originalId: null,
|
|
|
|
|
+ setCompanyIdList: [],
|
|
|
token: 'cbnd7lJvkripVOpyTFAna6NAWCxCrvC',
|
|
token: 'cbnd7lJvkripVOpyTFAna6NAWCxCrvC',
|
|
|
aesKey: 'HlEiBB55eaWUaeBVAQO3cWKWPYv1vOVQSq7nFNICw4E',
|
|
aesKey: 'HlEiBB55eaWUaeBVAQO3cWKWPYv1vOVQSq7nFNICw4E',
|
|
|
msgDataFormat: 'JSON',
|
|
msgDataFormat: 'JSON',
|