吴树波 hace 1 mes
padre
commit
a1a1d7df97
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1 0
      package.json
  2. 2 2
      src/views/qw/sopTemp/updateSopTemp.vue

+ 1 - 0
package.json

@@ -41,6 +41,7 @@
     "clipboard": "2.0.4",
     "compression-webpack-plugin": "^5.0.1",
     "core-js": "3.6.5",
+    "dayjs": "^1.11.13",
     "echarts": "4.2.1",
     "element-ui": "^2.15.5",
     "file-saver": "2.0.1",

+ 2 - 2
src/views/qw/sopTemp/updateSopTemp.vue

@@ -52,7 +52,7 @@
                                   placeholder="内容名称,仅内部可见"/>
                       </el-form-item>
                       <el-form-item label="课程" v-if="form.sendType == 5 && item.content && item.content.length > 0" required>
-                        <el-select :disabled="(formType == 3 || form.sendType == 5) && item.id != null" v-model="item.content[0].courseId"
+                        <el-select :disabled="((formType == 3 || form.sendType == 5) && item.id != null) || !roles.includes('update_sop_temp_scourse')" v-model="item.content[0].courseId"
                                    placeholder="请选择课程" style=" margin-right: 10px;" size="mini" remote
                                    filterable
                                    @change="courseChangeUpdate(item.content[0], index, 0)">
@@ -63,7 +63,7 @@
                             :value="parseInt(dict.dictValue)"
                           />
                         </el-select>
-                        <el-select :disabled="(formType == 3 || form.sendType == 5) && item.id != null" v-model="item.content[0].videoId"
+                        <el-select :disabled="((formType == 3 || form.sendType == 5) && item.id != null) || !roles.includes('update_sop_temp_scourse')" v-model="item.content[0].videoId"
                                    placeholder="请选择小节" size="mini" style=" margin-right: 10px;" remote
                                    filterable
                                    @change="videoIdChange(item.content[0],index,0)">