|
@@ -36,6 +36,8 @@
|
|
|
<el-link type="primary" class="el-icon-plus" :underline="false" @click='addSetting()'
|
|
<el-link type="primary" class="el-icon-plus" :underline="false" @click='addSetting()'
|
|
|
v-if="form.sendType == 4 && (formType != 3 && setting.length < 1) && roles.includes('add_sop_temp_day')">添加天数
|
|
v-if="form.sendType == 4 && (formType != 3 && setting.length < 1) && roles.includes('add_sop_temp_day')">添加天数
|
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
+ <el-link type="primary" class="el-icon-smoking" :underline="false" @click='openCenterType()' v-if="form.sendType != 4 && formType != 3" style="margin-left: 20px">一键更新发课类型
|
|
|
|
|
+ </el-link>
|
|
|
<el-tabs v-model="tabIndex" type="card" @tab-remove="delSetting" v-if="setting && setting.length > 0"
|
|
<el-tabs v-model="tabIndex" type="card" @tab-remove="delSetting" v-if="setting && setting.length > 0"
|
|
|
:before-leave="leave" @tab-click="tabClick">
|
|
:before-leave="leave" @tab-click="tabClick">
|
|
|
<el-tab-pane v-for="(item, index) in setting" :closable="formType != 3 && roles.includes('del_sop_temp_day')" :key="index" :name="index + ''">
|
|
<el-tab-pane v-for="(item, index) in setting" :closable="formType != 3 && roles.includes('del_sop_temp_day')" :key="index" :name="index + ''">
|
|
@@ -619,6 +621,26 @@
|
|
|
<el-button type="primary" @click="saveSortsRules">保存</el-button>
|
|
<el-button type="primary" @click="saveSortsRules">保存</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ title="更新发课类型"
|
|
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
|
|
+ width="30%"
|
|
|
|
|
+ :before-close="handleClose">
|
|
|
|
|
+ <el-radio-group v-model="selectType">
|
|
|
|
|
+ <el-radio
|
|
|
|
|
+ v-for="item in sysQwSopAiContentType"
|
|
|
|
|
+ :key="item.dictValue"
|
|
|
|
|
+ :label="item.dictValue"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ item.dictLabel }}
|
|
|
|
|
+ </el-radio>
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="updateCenterType()">确 定</el-button>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -681,7 +703,8 @@ import {
|
|
|
addOrUpdateSetting,
|
|
addOrUpdateSetting,
|
|
|
getSelectableRange,
|
|
getSelectableRange,
|
|
|
selectRulesInfo,
|
|
selectRulesInfo,
|
|
|
- delRules
|
|
|
|
|
|
|
+ delRules,
|
|
|
|
|
+ updateCenterType
|
|
|
} from "@/api/qw/sopTemp";
|
|
} from "@/api/qw/sopTemp";
|
|
|
import {courseList, videoList} from "@/api/qw/sop";
|
|
import {courseList, videoList} from "@/api/qw/sop";
|
|
|
import ImageUpload from "@/views/qw/sop/ImageUpload";
|
|
import ImageUpload from "@/views/qw/sop/ImageUpload";
|
|
@@ -695,6 +718,8 @@ export default {
|
|
|
components: {ImageUpload, userVideo, draggable},
|
|
components: {ImageUpload, userVideo, draggable},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ selectType:'4',
|
|
|
|
|
+ dialogVisible:false,
|
|
|
addTag: [{
|
|
addTag: [{
|
|
|
addTag: [],
|
|
addTag: [],
|
|
|
inputVisible: false,
|
|
inputVisible: false,
|
|
@@ -1778,6 +1803,16 @@ export default {
|
|
|
this.$set(list.content[index].setting[0], fieldName, newVal);
|
|
this.$set(list.content[index].setting[0], fieldName, newVal);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ //打开弹窗
|
|
|
|
|
+ openCenterType(){
|
|
|
|
|
+ this.dialogVisible = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ updateCenterType(){
|
|
|
|
|
+ updateCenterType({id:this.form.id,sendType:this.selectType}).then(r => {
|
|
|
|
|
+ this.dialogVisible = false;
|
|
|
|
|
+ this.leave(0);
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|