|
|
@@ -2813,6 +2813,30 @@
|
|
|
<el-button type="primary" @click="submitForm35">提 交</el-button>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
+ <el-tab-pane label="AI打标签行业配置" name="aiTagTradeType.config">
|
|
|
+ <el-form ref="form36" :model="form36" :rules="rules36" label-width="300px">
|
|
|
+ <el-form-item label="行业选择" prop="tradeType">
|
|
|
+ <el-select
|
|
|
+ v-model="form36.tradeType"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="请选择行业"
|
|
|
+ style="width: 400px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in tradeTypeOptions"
|
|
|
+ :key="item.dictValue"
|
|
|
+ :label="item.dictLabel"
|
|
|
+ :value="item.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <div class="footer">
|
|
|
+ <el-button type="primary" @click="submitForm36">提 交</el-button>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
@@ -3022,6 +3046,9 @@ export default {
|
|
|
form33:{},
|
|
|
form34:{},
|
|
|
form35:{},
|
|
|
+ form36:{
|
|
|
+ tradeType: ''
|
|
|
+ },
|
|
|
form40: {
|
|
|
enablePhoneConfig: false,
|
|
|
enablePhoneLimitConfig:false,
|
|
|
@@ -3103,9 +3130,18 @@ export default {
|
|
|
rules33: {},
|
|
|
rules34: {},
|
|
|
rules35: {},
|
|
|
+ rules36: {
|
|
|
+ tradeType: [
|
|
|
+ { required: true, message: '请选择行业', trigger: 'change' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ tradeTypeOptions: [],
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getDicts("trade_type").then((response) => {
|
|
|
+ this.tradeTypeOptions = response.data;
|
|
|
+ });
|
|
|
this.checkProjectName();
|
|
|
this.getConfigByKey(this.activeName)
|
|
|
listStore().then(response => {
|
|
|
@@ -3434,6 +3470,8 @@ export default {
|
|
|
this.configKey = key;
|
|
|
if (key == 'cId.config') {
|
|
|
this.form40 = { enablePhoneConfig: false, generateCount: 1 };
|
|
|
+ } else if (key == 'aiTagTradeType.config') {
|
|
|
+ this.form36 = { tradeType: '' };
|
|
|
}
|
|
|
}
|
|
|
if (key == 'sys.oss.cloudStorage') {
|
|
|
@@ -3599,6 +3637,24 @@ export default {
|
|
|
if(key=="courseAppConfig.config"){
|
|
|
this.form35 =JSON.parse(response.data.configValue);
|
|
|
}
|
|
|
+ if(key=="aiTagTradeType.config"){
|
|
|
+ if (response.data && response.data.configValue) {
|
|
|
+ const parsed = JSON.parse(response.data.configValue);
|
|
|
+ let tradeType = '';
|
|
|
+ if (Array.isArray(parsed)) {
|
|
|
+ tradeType = parsed[0] != null ? String(parsed[0]) : '';
|
|
|
+ } else if (parsed && typeof parsed === 'object') {
|
|
|
+ if (parsed.tradeType != null && parsed.tradeType !== '') {
|
|
|
+ tradeType = String(parsed.tradeType);
|
|
|
+ } else if (Array.isArray(parsed.tradeTypes) && parsed.tradeTypes.length) {
|
|
|
+ tradeType = String(parsed.tradeTypes[0]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.form36 = { tradeType };
|
|
|
+ } else {
|
|
|
+ this.form36 = { tradeType: '' };
|
|
|
+ }
|
|
|
+ }
|
|
|
if(key == 'vc.config'){
|
|
|
if(!!response.data){
|
|
|
this.configId = response.data.configId
|
|
|
@@ -3938,6 +3994,14 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ submitForm36(){
|
|
|
+ var param={configId:this.configId,configName : "AI打标签行业配置", configKey: this.configKey,configValue:JSON.stringify(this.form36)}
|
|
|
+ updateConfigByKey(param).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
submitForm32(){
|
|
|
const param = { configId: this.configId, configName : "直播源配置", configKey: this.configKey, configValue: JSON.stringify(this.form32) }
|
|
|
console.log(param)
|