|
@@ -130,7 +130,7 @@
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
|
|
|
|
- <el-select v-model="classifyForm.reportType" style="width:400px">
|
|
|
+ <el-select v-model="classifyForm.reportType" style="width:400px" :disabled="classifyForm.classify_id||classifyForm.parent_id">
|
|
|
<el-option label="研报" :value="1"/>
|
|
|
<el-option label="PPT" :value="2"/>
|
|
|
</el-select>
|
|
@@ -232,10 +232,8 @@
|
|
|
|
|
|
<script>
|
|
|
import mDialog from '@/components/mDialog.vue';
|
|
|
-import { classifylist,classifyparent,classifyadd,classifyedit } from 'api/api.js';
|
|
|
-import {reportVarietyInterence} from '@/api/modules/reportVariety'
|
|
|
+import { classifylist,classifyparent,classifyadd,classifyedit,classifydelete } from 'api/api.js';
|
|
|
import {classifyPermissionInterface} from '@/api/modules/classifyApi.js'
|
|
|
-import { reportV2Interface } from '@/api/modules/reportV2.js'
|
|
|
export default {
|
|
|
components:{mDialog},
|
|
|
computed: {
|
|
@@ -312,10 +310,11 @@ export default {
|
|
|
|
|
|
/* 添加分类默认关联父级品种 */
|
|
|
async changeClassify(id) {
|
|
|
- if(!this.classifyForm.classify_id) {
|
|
|
let item = this.$refs.classifyRef.getCheckedNodes(true)
|
|
|
console.log(item)
|
|
|
- }
|
|
|
+ if(item&&item[0]) {
|
|
|
+ this.classifyForm.reportType = item[0].data.ClassifyType
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
// 去设置章节
|
|
@@ -346,24 +345,27 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async handleEdit(item){
|
|
|
-
|
|
|
+ console.log(item)
|
|
|
this.classifyForm={
|
|
|
show:true,
|
|
|
classify_id:item.Id,
|
|
|
classify_name:item.ClassifyName,
|
|
|
parent_id: item.ParentId,
|
|
|
isLastLevel: !item.Child,
|
|
|
- reportType: 1,
|
|
|
- isReportWarn: 0,
|
|
|
- warnTime:'09:00:00'
|
|
|
+ reportType: item.ClassifyType,
|
|
|
+ isReportWarn: item.IsRemind,
|
|
|
+ warnTime: item.RemindTime
|
|
|
}
|
|
|
},
|
|
|
async setClassifyHandle(){
|
|
|
await this.$refs.formRef.validate();
|
|
|
- const { classify_name,parent_id,classify_id } = this.classifyForm;
|
|
|
+ const { classify_name,parent_id,classify_id,reportType,isReportWarn,warnTime } = this.classifyForm;
|
|
|
let params = {
|
|
|
ClassifyName: classify_name,
|
|
|
ParentId: parent_id,
|
|
|
+ ClassifyType: reportType,
|
|
|
+ IsRemind: isReportWarn,
|
|
|
+ RemindTime: warnTime
|
|
|
}
|
|
|
|
|
|
const { Ret,Msg } = classify_id
|
|
@@ -391,7 +393,11 @@ export default {
|
|
|
await this.$confirm('分类删除后不可恢复,是否确认删除?', '提示', {
|
|
|
type: 'warning'
|
|
|
})
|
|
|
-
|
|
|
+ const res = await classifydelete({ClassifyId:item.ClassifyId})
|
|
|
+
|
|
|
+ if(res.Ret!==200) return
|
|
|
+ this.$message.success('删除成功')
|
|
|
+ this.getList()
|
|
|
|
|
|
},
|
|
|
|