|
|
@@ -36,6 +36,14 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="是否外部订单">
|
|
|
+ <el-select :size="overSize" v-model="queryForm.isExternal" placeholder="请选择" clearable style="width: 100%">
|
|
|
+ <el-option label="是" :value="1"></el-option>
|
|
|
+ <el-option label="否" :value="0"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="是否启用">
|
|
|
<el-select :size="overSize" v-model="queryForm.validStatus" placeholder="请选择" clearable
|
|
|
@@ -78,7 +86,7 @@
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="6" :offset="6" class="flex a-end j-c">
|
|
|
+ <el-col :span="6" class="flex a-end j-c">
|
|
|
<el-form-item>
|
|
|
<kt-button label="查询" :size="overSize" type="primary" perms="agreement:input:query" @click="queryEsmInfo" />
|
|
|
<el-button :disabled="agreementSelectionList.length == 0" label="批量修改" :size="overSize" type="primary"
|
|
|
@@ -380,14 +388,19 @@
|
|
|
<el-form class="demo-ruleForm wrap-scrollbar scroll-style" :model="attributionform" ref="attributionform"
|
|
|
:label-width="labelWidth" size="small">
|
|
|
<el-row>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item class="apistyle" label="api类型:">
|
|
|
+ <div class="flex a-c">
|
|
|
+ <span style="font-weight: bold;">api类型</span>
|
|
|
+ <div class="apiTypestyle flex j-start a-c " :class="{'apiactive':attributionform.apiType==item.id}" v-for="(item,index) in apiTypelist" :key="index" @click="apiChange(item.id)">
|
|
|
+ <img :src="attributionform.apiType==item.id?item.activeImg:item.img" alt="">
|
|
|
+ <span style="margin:auto">{{ item.label }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- <el-form-item class="apistyle" label="api类型:">
|
|
|
<el-select class="widths1" v-model="attributionform.apiType" @change="apiChange">
|
|
|
<el-option label="API" :value="1"></el-option>
|
|
|
<el-option label="python" :value="2"></el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-form-item> -->
|
|
|
<div v-if="attributionform.apiType == 2">
|
|
|
<el-col :span="24">
|
|
|
<div>
|
|
|
@@ -1284,7 +1297,8 @@
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="agreementSelectionVisible = false">取 消</el-button>
|
|
|
- <el-button style="background: #2D4D89;color: #fff;border-color: #2D4D89;" size="small" type="primary" @click="agreementSelectionSubmit">确 定</el-button>
|
|
|
+ <el-button style="background: #2D4D89;color: #fff;border-color: #2D4D89;" size="small" type="primary"
|
|
|
+ @click="agreementSelectionSubmit">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
@@ -1307,6 +1321,22 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ apiTypelist:[
|
|
|
+ {
|
|
|
+ id:1,
|
|
|
+ label:"API",
|
|
|
+ img:require('@/assets/api.png'),
|
|
|
+ activeImg:require('@/assets/api1.png')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id:2,
|
|
|
+ label:"python",
|
|
|
+ img:require('@/assets/python.png'),
|
|
|
+ activeImg:require('@/assets/python1.png')
|
|
|
+
|
|
|
+ }
|
|
|
+ ],
|
|
|
+
|
|
|
agreementActiveInfo: null,
|
|
|
labelData: '',
|
|
|
selectTree: [],
|
|
|
@@ -3212,10 +3242,11 @@ export default {
|
|
|
},
|
|
|
|
|
|
//请求类型change
|
|
|
- apiChange(e) {
|
|
|
+ apiChange(id) {
|
|
|
+ this.attributionform.apiType=id;
|
|
|
let params = {
|
|
|
insCompanyId: this.agreement.partnerCompaniesId,
|
|
|
- apiType: e,
|
|
|
+ apiType: id,
|
|
|
};
|
|
|
this.$api.insCompany.getPtlInsAttributionTemplate(params).then((res) => {
|
|
|
if (res.code == "200") {
|
|
|
@@ -3923,6 +3954,32 @@ export default {
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
|
|
|
+.apiTypestyle {
|
|
|
+ padding: 4px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ margin-left:50px;
|
|
|
+ width: 124px;
|
|
|
+ height: auto;
|
|
|
+ background: #F1F2F6;
|
|
|
+ border-radius: 4px 4px 4px 4px;
|
|
|
+ cursor: pointer;
|
|
|
+ img{
|
|
|
+ width: 28px;
|
|
|
+ height:28px;
|
|
|
+ }
|
|
|
+ >span{
|
|
|
+ // color: rgba(38,38,38,0.8);
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.apiactive {
|
|
|
+ background: #fff;
|
|
|
+ border: 1px solid #2D4D89;
|
|
|
+ color:#2D4D89;
|
|
|
+ font-weight: bold;
|
|
|
+}
|
|
|
+
|
|
|
/deep/ {
|
|
|
|
|
|
.el-dialog__header {
|