|
@@ -209,6 +209,19 @@ const delRemove = () => {
|
|
|
const delRest = () => {
|
|
|
flag.value = false;
|
|
|
};
|
|
|
+//获取弹框-下拉数据
|
|
|
+const getSelectData = async (id, name) => {
|
|
|
+ const { code, returnData } = await Query({
|
|
|
+ id,
|
|
|
+ dataContent: name ? [name] : name === null ? [null] : [],
|
|
|
+ });
|
|
|
+ if (code == 0) {
|
|
|
+ tableOptionser.value = returnData.listValues;
|
|
|
+ tableOptionCopys.value = _.cloneDeep(returnData.listValues);
|
|
|
+ } else {
|
|
|
+ tableOptionser.value = [];
|
|
|
+ }
|
|
|
+};
|
|
|
//获取表格数据
|
|
|
const getQuery = async () => {
|
|
|
try {
|
|
@@ -230,6 +243,11 @@ const getQuery = async () => {
|
|
|
}
|
|
|
tableData.value.push(...returnData.listValues);
|
|
|
tableCols.value = returnData.columnSet;
|
|
|
+ returnData.columnSet.forEach((item) => {
|
|
|
+ if (item.listqueryTemplateID && item.columnName === "protocolName") {
|
|
|
+ getSelectData(item.listqueryTemplateID);
|
|
|
+ }
|
|
|
+ });
|
|
|
tableCols.value.forEach((element) => {
|
|
|
element.label = element.columnLabel;
|
|
|
element.key = element.columnName;
|