Commit 4562bbdf by wenyi.chen

0402需求变动

parent 6565999d
...@@ -3830,9 +3830,15 @@ ...@@ -3830,9 +3830,15 @@
"dev": true "dev": true
}, },
"node_modules/follow-redirects": { "node_modules/follow-redirects": {
"version": "1.15.5", "version": "1.15.6",
"resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.5.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
"integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"engines": { "engines": {
"node": ">=4.0" "node": ">=4.0"
}, },
...@@ -8375,9 +8381,9 @@ ...@@ -8375,9 +8381,9 @@
"dev": true "dev": true
}, },
"follow-redirects": { "follow-redirects": {
"version": "1.15.5", "version": "1.15.6",
"resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.5.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
"integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==" "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA=="
}, },
"form-data": { "form-data": {
"version": "4.0.0", "version": "4.0.0",
......
/** el-input disabled时的背景和边框*/
.el-input.is-disabled{
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-input .el-input__inner){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-input .el-input__wrapper){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
.el-textarea.is-disabled{
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__inner){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__wrapper){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
\ No newline at end of file
...@@ -9,7 +9,6 @@ import 'default-passive-events' ...@@ -9,7 +9,6 @@ import 'default-passive-events'
import ElementPlus from 'element-plus'; import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'; import 'element-plus/dist/index.css';
import '/@/theme/index.scss'; import '/@/theme/index.scss';
const app = createApp(App); const app = createApp(App);
directive(app); directive(app);
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
<el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input> <el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考信源" prop="refer"> <el-form-item label="参考信源" prop="refer">
<el-input v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考指南" prop="guide"> <el-form-item label="参考指南" prop="guide">
<el-input v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index"> <el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index">
<el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input> <el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<span style="color: red;" v-if="item.radio==1">*</span>内容: <span style="color: red;" v-if="item.radio==1">*</span>内容:
</el-col> </el-col>
<el-col :span="13"> <el-col :span="13">
<el-input v-model="item.value" placeholder="请填写内容" required :disabled="true"></el-input> <el-input type="textarea" v-model="item.value" placeholder="请填写内容" required :disabled="true"></el-input>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<span style="color: red;" v-if="item.radio==1">必填</span> <span style="color: red;" v-if="item.radio==1">必填</span>
...@@ -52,8 +52,8 @@ ...@@ -52,8 +52,8 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="normCollectInfo.remark" v-if="state.collectInfo"> <el-form-item label="收集备注" prop="normCollectInfo.remark" v-if="state.collectInfo">
<el-input v-model="state.normCollectInfo.remark" placeholder="请输入备注" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.normCollectInfo.remark" placeholder="请输入备注" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="用户截图" prop="state.srcList"> <el-form-item label="用户截图" prop="state.srcList">
<span v-if="state.imgHide==false"></span> <span v-if="state.imgHide==false"></span>
...@@ -291,4 +291,19 @@ onMounted(() => { ...@@ -291,4 +291,19 @@ onMounted(() => {
color: var(--el-radio-text-color) !important; color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important; -webkit-text-fill-color: var(--el-radio-text-color) !important;
} }
.el-textarea.is-disabled{
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__inner){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__wrapper){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
</style> </style>
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
<el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input> <el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考信源" prop="refer"> <el-form-item label="参考信源" prop="refer">
<el-input v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考指南" prop="guide"> <el-form-item label="参考指南" prop="guide">
<el-input v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index"> <el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index">
<el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input> <el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<span style="color: red;" v-if="item.radio==1">*</span>内容: <span style="color: red;" v-if="item.radio==1">*</span>内容:
</el-col> </el-col>
<el-col :span="13"> <el-col :span="13">
<el-input v-model="item.value" placeholder="请填写内容" required :disabled="true"></el-input> <el-input type="textarea" v-model="item.value" placeholder="请填写内容" required :disabled="true"></el-input>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<span style="color: red;" v-if="item.radio==1">必填</span> <span style="color: red;" v-if="item.radio==1">必填</span>
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="normCollectInfo.remark" v-if="state.collectInfo"> <el-form-item label="收集备注" prop="normCollectInfo.remark" v-if="state.collectInfo">
<el-input v-model="state.normCollectInfo.remark" placeholder="请输入备注" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.normCollectInfo.remark" placeholder="请输入备注" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="用户截图:" prop="state.srcList"> <el-form-item label="用户截图:" prop="state.srcList">
<span v-if="state.imgHide==false"></span> <span v-if="state.imgHide==false"></span>
...@@ -303,4 +303,19 @@ onMounted(() => { ...@@ -303,4 +303,19 @@ onMounted(() => {
color: var(--el-radio-text-color) !important; color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important; -webkit-text-fill-color: var(--el-radio-text-color) !important;
} }
.el-textarea.is-disabled{
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__inner){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__wrapper){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
</style> </style>
...@@ -10,7 +10,10 @@ ...@@ -10,7 +10,10 @@
<el-option v-for="(item, index) in state.taskList" :key="index" :label="item.name" <el-option v-for="(item, index) in state.taskList" :key="index" :label="item.name"
:value="item.id"></el-option> :value="item.id"></el-option>
</el-select> </el-select>
<el-button size="default" type="primary" @click="searchChange()" >查询</el-button> <el-select v-model="state.apiListParam.norm_id" placeholder="请选择指标" size="default" @change="searchChange" clearable filterable style="width:200px;margin-right: 20px;">
<el-option v-for="(item, index) in state.normList" :key="index" :label="item.name"
:value="item.id"></el-option>
</el-select>
</div> </div>
</div> </div>
...@@ -91,6 +94,7 @@ ...@@ -91,6 +94,7 @@
<script setup name="taskPackage-list"> <script setup name="taskPackage-list">
import { getCurrentInstance } from 'vue'; import { getCurrentInstance } from 'vue';
import { claimTasksApi } from '/@/api/claimTasks/index'; import { claimTasksApi } from '/@/api/claimTasks/index';
import { normApi } from '/@/api/norm/index';
import { taskPackageApi } from '/@/api/taskPackage/index'; import { taskPackageApi } from '/@/api/taskPackage/index';
import { ElMessageBox, ElMessage } from 'element-plus'; import { ElMessageBox, ElMessage } from 'element-plus';
import { Session } from '/@/utils/storage'; import { Session } from '/@/utils/storage';
...@@ -124,6 +128,7 @@ const state = reactive({ ...@@ -124,6 +128,7 @@ const state = reactive({
normListExtend:[], normListExtend:[],
testIndex:0, testIndex:0,
taskList:[], taskList:[],
normList:[],
}); });
// 获取任务列表 // 获取任务列表
...@@ -132,9 +137,18 @@ const getTaskList = () => { ...@@ -132,9 +137,18 @@ const getTaskList = () => {
state.taskList = res.data state.taskList = res.data
}) })
} }
// 获取指标列表
const getNormList = () => {
normApi().normList({page:-1,limit:-1}).then(res => {
state.normList = res.data
})
}
// 页面加载时 // 页面加载时
onMounted(() => { onMounted(() => {
getTaskList() getTaskList()
getNormList()
getList() getList()
state.tableHeight = getCurrentInstance().refs.pageMain.offsetHeight - 130 - 52 + "px"; state.tableHeight = getCurrentInstance().refs.pageMain.offsetHeight - 130 - 52 + "px";
}); });
......
...@@ -10,18 +10,18 @@ ...@@ -10,18 +10,18 @@
<el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input> <el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考信源" prop="refer"> <el-form-item label="参考信源" prop="refer">
<el-input v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考指南" prop="guide"> <el-form-item label="参考指南" prop="guide">
<el-input v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index"> <el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index">
<el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input> <el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input>
<div style="width: 10%;">内容:</div> <div style="width: 10%;">内容:</div>
<el-input v-model="item.value" placeholder="请输入标题对应的值" clearable style="width: 60%;" :disabled="true"></el-input> <el-input v-model="item.value" placeholder="请输入标题对应的值" clearable style="width: 60%;" :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="state.normCollectInfo.remark"> <el-form-item label="收集备注" prop="state.normCollectInfo.remark">
<el-input v-model="state.normCollectInfo.remark" placeholder="请输入备注" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.normCollectInfo.remark" placeholder="请输入备注" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-divider><span style="color: #F56C6C;">用户需填写区域</span></el-divider> <el-divider><span style="color: #F56C6C;">用户需填写区域</span></el-divider>
<el-form-item label="信源类型" prop="normCollectInfo.refer_type"> <el-form-item label="信源类型" prop="normCollectInfo.refer_type">
...@@ -32,9 +32,28 @@ ...@@ -32,9 +32,28 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="标题" :prop="'userFilled.' + index+ '.name'" v-for="(item, index) in state.formItem.userFilled" :key="index"> <el-form-item label="标题" :prop="'userFilled.' + index+ '.name'" v-for="(item, index) in state.formItem.userFilled" :key="index">
<el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input> <el-row style="width: 100% !important;">
<div style="width: 10%;"><span style="color: red;" v-if="item.radio==1">*</span>内容:</div> <el-col :span="7">
<el-input v-model="item.value" placeholder="请填写内容" style="width: 60%;" required :disabled="true"></el-input> <el-input v-model="item.name" placeholder="请输入标题" clearabl :disabled="true"></el-input>
</el-col>
<el-col :span="2">
<span style="color: red;" v-if="item.radio==1">*</span>内容:
</el-col>
<el-col :span="13">
<el-input type="textarea" v-model="item.value" placeholder="请填写内容" required :disabled="true"></el-input>
</el-col>
<el-col :span="2">
<span style="color: red;" v-if="item.radio==1">必填</span>
</el-col>
</el-row>
<el-row style="width: 100% !important; margin-left: -8%; margin-top: 10 !important;">
<el-col :span="2">
<div>备注:</div>
</el-col>
<el-col :span="22">
<el-input v-model="item.remark" placeholder="请输入备注(选填)" clearabl :disabled="true"></el-input>
</el-col>
</el-row>
</el-form-item> </el-form-item>
<el-form-item label="用户截图" prop="state.srcList"> <el-form-item label="用户截图" prop="state.srcList">
<span v-if="state.imgHide==false"></span> <span v-if="state.imgHide==false"></span>
...@@ -121,7 +140,7 @@ const openDialog = (data) => { ...@@ -121,7 +140,7 @@ const openDialog = (data) => {
state.userIndex = 0; state.userIndex = 0;
state.index = 0; state.index = 0;
userFilled.forEach(item => { userFilled.forEach(item => {
state.formItem.userFilled.push({id:item.id,name:item.extend_name,radio:item.required+"",value:item.extend_value}); state.formItem.userFilled.push({id:item.id,name:item.extend_name,radio:item.required+"",value:item.extend_value,remark:item.extend_remarks});
state.userIndex++ state.userIndex++
}); });
adminFilled.forEach(item => { adminFilled.forEach(item => {
...@@ -237,4 +256,20 @@ onMounted(() => { ...@@ -237,4 +256,20 @@ onMounted(() => {
color: var(--el-radio-text-color) !important; color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important; -webkit-text-fill-color: var(--el-radio-text-color) !important;
} }
.el-textarea.is-disabled{
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__inner){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__wrapper){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
</style> </style>
...@@ -10,7 +10,10 @@ ...@@ -10,7 +10,10 @@
<el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input> <el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考信源" prop="refer"> <el-form-item label="参考信源" prop="refer">
<el-input v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input>
</el-form-item>
<el-form-item label="参考指南" prop="guide">
<el-input type="textarea" v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index"> <el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index">
<el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input> <el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input>
...@@ -40,7 +43,7 @@ ...@@ -40,7 +43,7 @@
<span style="color: red;" v-if="item.radio==1">*</span>内容: <span style="color: red;" v-if="item.radio==1">*</span>内容:
</el-col> </el-col>
<el-col :span="13"> <el-col :span="13">
<el-input v-model="item.value" placeholder="请填写内容" required :disabled="true"></el-input> <el-input type="textarea" v-model="item.value" placeholder="请填写内容" required :disabled="true"></el-input>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<span style="color: red;" v-if="item.radio==1">必填</span> <span style="color: red;" v-if="item.radio==1">必填</span>
...@@ -56,8 +59,8 @@ ...@@ -56,8 +59,8 @@
</el-row> </el-row>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="收集备注" prop="remark">
<el-input v-model="state.formItem.addItem.remark" placeholder="请输入备注" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.remark" placeholder="请输入备注" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="网页截图"> <el-form-item label="网页截图">
<div style="border: 1px solid #ccc; width: 100%;"> <div style="border: 1px solid #ccc; width: 100%;">
...@@ -100,6 +103,7 @@ import { Editor, Toolbar } from '@wangeditor/editor-for-vue' ...@@ -100,6 +103,7 @@ import { Editor, Toolbar } from '@wangeditor/editor-for-vue'
import { claimTasksApi } from '/@/api/claimTasks' import { claimTasksApi } from '/@/api/claimTasks'
import { ElMessage } from 'element-plus'; import { ElMessage } from 'element-plus';
import { getUploadUrl } from "/@/utils/getHost.js"; import { getUploadUrl } from "/@/utils/getHost.js";
import '/@/css/index.css';
// 定义子组件向父组件传值/事件 // 定义子组件向父组件传值/事件
const emit = defineEmits(['refresh']); const emit = defineEmits(['refresh']);
...@@ -169,6 +173,7 @@ const openDialog = (data) => { ...@@ -169,6 +173,7 @@ const openDialog = (data) => {
state.formItem.addItem.name = addItem.name; state.formItem.addItem.name = addItem.name;
state.formItem.addItem.task_name = addItem.task_name; state.formItem.addItem.task_name = addItem.task_name;
state.formItem.addItem.refer = addItem.refer; state.formItem.addItem.refer = addItem.refer;
state.formItem.addItem.guide = addItem.guide;
state.not_collectible_remarks = data.not_collectible_remarks state.not_collectible_remarks = data.not_collectible_remarks
state.not_collectible = data.not_collectible state.not_collectible = data.not_collectible
//富文本内容相关 //富文本内容相关
...@@ -257,7 +262,7 @@ const handleCreated = (editor) => { ...@@ -257,7 +262,7 @@ const handleCreated = (editor) => {
editorRef.value = editor // 记录 editor 实例,重要! editorRef.value = editor // 记录 editor 实例,重要!
} }
// 暴露变量 // 暴露变量
defineExpose({ defineExpose({
openDialog, openDialog,
}); });
</script> </script>
...@@ -270,22 +275,36 @@ defineExpose({ ...@@ -270,22 +275,36 @@ defineExpose({
justify-content: center; justify-content: center;
align-content: center; align-content: center;
} }
/** el-input disabled时的背景和边框*/ /** el-input disabled时的背景和边框*/
.el-input.is-disabled{ .el-input.is-disabled{
background:#fff !important; background:#fff !important;
color: var(--el-radio-text-color) !important; color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important; -webkit-text-fill-color: var(--el-radio-text-color) !important;
} }
:deep(.el-input .el-input__inner){ :deep(.el-input .el-input__inner){
background:#fff !important; background:#fff !important;
color: var(--el-radio-text-color) !important; color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important; -webkit-text-fill-color: var(--el-radio-text-color) !important;
} }
:deep(.el-input .el-input__wrapper){ :deep(.el-input .el-input__wrapper){
background:#fff !important; background:#fff !important;
color: var(--el-radio-text-color) !important; color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important; -webkit-text-fill-color: var(--el-radio-text-color) !important;
} }
.el-textarea.is-disabled{
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__inner){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__wrapper){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
</style> </style>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<el-button size="small" @click="receive(scope.row.id)" type="danger">退回领取</el-button> <el-button size="small" @click="receive(scope.row.id)" type="danger">退回领取</el-button>
</div> </div>
<div v-if="scope.row.status == 3 || scope.row.status == 4"> <div v-if="scope.row.status == 3 || scope.row.status == 4">
<el-button size="small" @click="details(scope.row)" type="primary">查看信息</el-button> <el-button size="small" @click="details(scope.row)" >查看信息</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -10,7 +10,10 @@ ...@@ -10,7 +10,10 @@
<el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input> <el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考信源" prop="refer"> <el-form-item label="参考信源" prop="refer">
<el-input v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input>
</el-form-item>
<el-form-item label="参考指南" prop="guide">
<el-input type="textarea" v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="信源类型" prop="refer_type"> <el-form-item label="信源类型" prop="refer_type">
<el-select v-model="state.formItem.addItem.refer_type" placeholder="请选择信源等级"> <el-select v-model="state.formItem.addItem.refer_type" placeholder="请选择信源等级">
...@@ -178,6 +181,7 @@ const openDialog = (data) => { ...@@ -178,6 +181,7 @@ const openDialog = (data) => {
state.formItem.addItem.name = addItem.name; state.formItem.addItem.name = addItem.name;
state.formItem.addItem.task_name = addItem.task_name; state.formItem.addItem.task_name = addItem.task_name;
state.formItem.addItem.refer = addItem.refer; state.formItem.addItem.refer = addItem.refer;
state.formItem.addItem.guide = addItem.guide;
state.not_collectible_remarks = data.not_collectible_remarks state.not_collectible_remarks = data.not_collectible_remarks
state.not_collectible = data.not_collectible state.not_collectible = data.not_collectible
//富文本内容相关 //富文本内容相关
...@@ -313,6 +317,7 @@ const closeDialog = () => { ...@@ -313,6 +317,7 @@ const closeDialog = () => {
state.formItem.addItem.refer = ''; state.formItem.addItem.refer = '';
state.formItem.addItem.refer_type = ''; state.formItem.addItem.refer_type = '';
state.formItem.addItem.remark = ''; state.formItem.addItem.remark = '';
state.formItem.addItem.guide = '';
state.formItem.dynamicItem = []; state.formItem.dynamicItem = [];
state.formItem.userFilled = []; state.formItem.userFilled = [];
state.formItem.editorImgList = []; state.formItem.editorImgList = [];
...@@ -409,4 +414,19 @@ defineExpose({ ...@@ -409,4 +414,19 @@ defineExpose({
color: var(--el-radio-text-color) !important; color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important; -webkit-text-fill-color: var(--el-radio-text-color) !important;
} }
.el-textarea.is-disabled{
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__inner){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__wrapper){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
</style> </style>
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
<el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input> <el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考信源" prop="refer"> <el-form-item label="参考信源" prop="refer">
<el-input v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考指南" prop="guide"> <el-form-item label="参考指南" prop="guide">
<el-input v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index"> <el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index">
<el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input> <el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 30%;" :disabled="true"></el-input>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<span style="color: red;" v-if="item.radio==1">*</span>内容: <span style="color: red;" v-if="item.radio==1">*</span>内容:
</el-col> </el-col>
<el-col :span="13"> <el-col :span="13">
<el-input v-model="item.value" placeholder="请填写内容" required></el-input> <el-input v-model="item.value" type="textarea" placeholder="请填写内容" required></el-input>
</el-col> </el-col>
<el-col :span="2"> <el-col :span="2">
<span style="color: red;" v-if="item.radio==1">必填</span> <span style="color: red;" v-if="item.radio==1">必填</span>
...@@ -48,12 +48,12 @@ ...@@ -48,12 +48,12 @@
<div>备注:</div> <div>备注:</div>
</el-col> </el-col>
<el-col :span="22"> <el-col :span="22">
<el-input v-model="item.remark" placeholder="请输入备注(选填)" clearabl :disabled="true"></el-input> <el-input v-model="item.remark" placeholder="请输入备注(选填)" clearabl :disabled="true"></el-input>
</el-col> </el-col>
</el-row> </el-row>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="收集备注" prop="remark">
<el-input v-model="state.formItem.addItem.remark" placeholder="请输入备注" clearable></el-input> <el-input type="textarea" v-model="state.formItem.addItem.remark" placeholder="请输入备注" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="网页截图"> <el-form-item label="网页截图">
<div style="border: 1px solid #ccc; width: 100%;"> <div style="border: 1px solid #ccc; width: 100%;">
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<el-col :span="12"> <el-col :span="12">
<span class="dialog-footer"> <span class="dialog-footer">
<el-col :span="20"> <el-col :span="20">
<el-input v-model="state.notCollectibleData.reason" placeholder="请输入不可采集原因" clearable></el-input><el-button type="warning" :loading="state.btnLoading" @click="notCollectible()" size="danger">不可采集</el-button> <el-input type="textarea" v-model="state.notCollectibleData.reason" placeholder="请输入不可采集原因" clearable></el-input><el-button type="warning" :loading="state.btnLoading" @click="notCollectible()" size="danger">不可采集</el-button>
</el-col> </el-col>
</span> </span>
</el-col> </el-col>
...@@ -457,4 +457,19 @@ defineExpose({ ...@@ -457,4 +457,19 @@ defineExpose({
color: var(--el-radio-text-color) !important; color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important; -webkit-text-fill-color: var(--el-radio-text-color) !important;
} }
.el-textarea.is-disabled{
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__inner){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__wrapper){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
</style> </style>
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
<el-input v-model="state.ruleForm.price" :disabled="true"></el-input> <el-input v-model="state.ruleForm.price" :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考信源" prop="refer"> <el-form-item label="参考信源" prop="refer">
<el-input v-model="state.ruleForm.refer" :disabled="true"></el-input> <el-input type="textarea" v-model="state.ruleForm.refer" :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考指南" prop="guide"> <el-form-item label="参考指南" prop="guide">
<el-input v-model="state.ruleForm.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input> <el-input type="textarea" v-model="state.ruleForm.guide" placeholder="请输入参考指南" clearable :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="名称" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.dynamicItem" :key="index"> <el-form-item label="名称" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.dynamicItem" :key="index">
<el-input v-model="item.extend_name" placeholder="请输入标题" clearable style="width: 40%;margin-right:20px" :disabled="true"></el-input> <el-input v-model="item.extend_name" placeholder="请输入标题" clearable style="width: 40%;margin-right:20px" :disabled="true"></el-input>
...@@ -175,4 +175,20 @@ onMounted(() => { ...@@ -175,4 +175,20 @@ onMounted(() => {
color: var(--el-radio-text-color) !important; color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important; -webkit-text-fill-color: var(--el-radio-text-color) !important;
} }
.el-textarea.is-disabled{
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__inner){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
:deep(.el-textarea .el-textarea__wrapper){
background:#fff !important;
color: var(--el-radio-text-color) !important;
-webkit-text-fill-color: var(--el-radio-text-color) !important;
}
</style> </style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-form ref="dialogFormRef" :model="state.formItem.addItem" :rules="state.rules" size="default" label-width="100px" <el-form ref="dialogFormRef" :model="state.formItem.addItem" :rules="state.rules" size="default" label-width="100px"
v-loading="state.dataLoading" label-position="right" style="width: 90%;text-align: center;"> v-loading="state.dataLoading" label-position="right" style="width: 90%;text-align: center;">
<el-form-item label="指标名称" prop="name"> <el-form-item label="指标名称" prop="name">
<el-input v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable></el-input> <el-input type="textarea" v-model="state.formItem.addItem.name" placeholder="请输入指标名称" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="难度等级"> <el-form-item label="难度等级">
<el-select v-model="state.formItem.addItem.level" placeholder="请选择难度等级" prop="level"> <el-select v-model="state.formItem.addItem.level" placeholder="请选择难度等级" prop="level">
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="参考信源" prop="refer"> <el-form-item label="参考信源" prop="refer">
<el-input v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable></el-input> <el-input type="textarea" v-model="state.formItem.addItem.refer" placeholder="请输入参考信源" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="单价" prop="price"> <el-form-item label="单价" prop="price">
<el-input v-model="state.formItem.addItem.price" placeholder="请输入单价" clearable prop="price"></el-input> <el-input v-model="state.formItem.addItem.price" placeholder="请输入单价" clearable prop="price"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="参考指南" prop="guide"> <el-form-item label="参考指南" prop="guide">
<el-input v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable></el-input> <el-input type="textarea" v-model="state.formItem.addItem.guide" placeholder="请输入参考指南" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index"> <el-form-item label="标题" :prop="'dynamicItem.' + index+ '.name'" v-for="(item, index) in state.formItem.dynamicItem" :key="index">
<el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 40%;"></el-input> <el-input v-model="item.name" placeholder="请输入标题" clearable style="width: 40%;"></el-input>
...@@ -199,7 +199,7 @@ const finalData = () => { ...@@ -199,7 +199,7 @@ const finalData = () => {
// 数据详情 // 数据详情
state.formItem.addItem.name = addItem.name; state.formItem.addItem.name = addItem.name;
state.formItem.addItem.level = addItem.level; state.formItem.addItem.level = addItem.level;
state.formItem.addItem.sort = addItem.sort; state.formItem.addItem.sort = addItem.sort+'';
state.formItem.addItem.refer = addItem.refer; state.formItem.addItem.refer = addItem.refer;
state.formItem.addItem.price =addItem.price; state.formItem.addItem.price =addItem.price;
state.formItem.addItem.guide = addItem.guide; state.formItem.addItem.guide = addItem.guide;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment