|
@@ -9,7 +9,7 @@
|
|
|
<a-form-model-item v-if="knowledgeForm.categoryId" label="*所选分类:" prop="categoryId">
|
|
|
<a-cascader v-model="knowledgeForm.categoryId"
|
|
|
v-if="!$route.query.isEdit"
|
|
|
- class="scroll-ckunk"
|
|
|
+ class="scroll-ckunk categoryId-style"
|
|
|
:popupStyle="{
|
|
|
maxWidth: widthVar + 'px',
|
|
|
'overflow-x': 'auto'
|
|
@@ -20,7 +20,9 @@
|
|
|
:fieldNames="{ label: 'name', value: 'pkId', children: 'children' }"
|
|
|
placeholder="请选择"
|
|
|
changeOnSelect
|
|
|
- @change="dropdownVisibleChange" />
|
|
|
+ @change="dropdownVisibleChange">
|
|
|
+ <a-icon v-if="!!pkId" slot="suffixIcon" type="" />
|
|
|
+ </a-cascader>
|
|
|
<a-cascader v-model="knowledgeForm.categoryId"
|
|
|
v-else
|
|
|
class="scroll-ckunk"
|
|
@@ -32,10 +34,11 @@
|
|
|
:fieldNames="{ label: 'name', value: 'pkId', children: 'children' }"
|
|
|
placeholder="请选择"
|
|
|
changeOnSelect
|
|
|
- @change="dropdownVisibleChange" />
|
|
|
+ @change="dropdownVisibleChange">
|
|
|
+ </a-cascader>
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="*知识类型:" prop="type">
|
|
|
- <a-select v-model="knowledgeForm.type" placeholder="请选择" :disabled="!!pkId">
|
|
|
+ <a-select v-model="knowledgeForm.type" placeholder="请选择" :disabled="!!pkId" :showArrow="!pkId">
|
|
|
<a-select-option v-for="(item,index) in knowledgeList" :key="index" :value="item.value">
|
|
|
{{item.label}}
|
|
|
</a-select-option>
|
|
@@ -300,7 +303,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- console.log(!this.$route.query.isEdit)
|
|
|
this.knowledgeForm = Object.assign({},this.$options.data().knowledgeForm)
|
|
|
this.auditForm = Object.assign({},this.$options.data().auditForm)
|
|
|
let pkId = this.$route.query.pkId
|
|
@@ -688,12 +690,32 @@ export default {
|
|
|
padding:0 20px 0 12px;
|
|
|
background:#f5f5f5;
|
|
|
cursor:not-allowed;
|
|
|
- color:rgba(0, 0, 0, 0.25);
|
|
|
+ color:#595959;
|
|
|
+}
|
|
|
+.ant-select-disabled {
|
|
|
+ color:#595959;
|
|
|
+}
|
|
|
+.ant-input[disabled] {
|
|
|
+ color:#595959;
|
|
|
+ -webkit-text-fill-color: #595959;;
|
|
|
|
|
|
-
|
|
|
}
|
|
|
+.ant-cascader-picker-disabled {
|
|
|
+ color:#595959;
|
|
|
+}
|
|
|
+.ant-select-arrow {
|
|
|
+ color:#595959;
|
|
|
+}
|
|
|
+
|
|
|
</style>
|
|
|
<style scoped>
|
|
|
+/deep/ .ant-cascader-picker-arrow {
|
|
|
+ color: #bfbfbf;
|
|
|
+}
|
|
|
+/deep/ .ant-input-disabled{
|
|
|
+ color: #595959;
|
|
|
+ -webkit-text-fill-color: #565656;
|
|
|
+}
|
|
|
/deep/ .ant-upload.ant-upload-drag {
|
|
|
width: 30%;
|
|
|
background: #fff;
|